<view class="evaluate-con" v-for="(itemall,idx) in orderCon" :key='idx' >
<view class="goodsStyle acea-row row-between" >
<view class="pictrue">
<image :src="itemall.productInfo.image" class="image" />
</view>
<view class="text acea-row row-between">
<view class="name line2 font-color-black">{{itemall.productInfo.storeName}}</view>
<!-- <view class="money">
<view>¥{{ orderCon.productInfo.price }}</view>
<view class="num">x{{ orderCon.cartNum }}</view>
</view> -->
</view>
</view>
<starall name='描述相符' v-model="submitdata.productEvaluateParams[idx].productScore"/>
<view class="score">
<view class="textarea">
<textarea
:data-idx = 'idx'
@input='changesall($event,idx)'
placeholder="从多个角度评价商品,可以帮助更多想买的人"
:maxlength="300"></textarea>
<view class="list acea-row row-middle">
<scroll-view scroll-x="true" class="scrollpictrue">
<view class="pictrue uploadBnt acea-row row-center-wrapper row-column" @click.stop="chooseImageall(idx)">
<text class="iconfont icon-icon25201"></text>
<view>发布买家秀</view>
</view>
<view class="pictrue"
v-for="(item, uploadPicturesIndex) in submitdata.productEvaluateParams[idx]['pics']"
:key="uploadPicturesIndex">
<image :src="item" />
<text class="iconfont icon-guanbi1 font-color-brown" @click.stop="delall(uploadPicturesIndex,idx)"></text>
</view>
</scroll-view>
</view>
</view>
</view>
</view>
<view class="starall">
<starall name='服务态度' v-model="submitdata.serviceScore"/>
</view>
<view class="evaluate-btnview"></view>
<view class="evaluate-btn">
<view class="evaluateBnt bg-color-brown" @click="submit">发布</view>
</view>
</view>
- 发布:2021-04-21 17:32
- 更新:2021-04-21 17:32
- 阅读:596
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.1.9
第三方开发者工具版本号: 1.05.2103200
基础库版本号: 2.16.0
项目创建方式: HBuilderX
示例代码:
操作步骤:
<view class="evaluate-con" v-for="(itemall,idx) in orderCon" :key='idx' >
<view class="goodsStyle acea-row row-between" >
<view class="pictrue">
<image :src="itemall.productInfo.image" class="image" />
</view>
<view class="text acea-row row-between">
<view class="name line2 font-color-black">{{itemall.productInfo.storeName}}</view>
<!-- <view class="money">
<view>¥{{ orderCon.productInfo.price }}</view>
<view class="num">x{{ orderCon.cartNum }}</view>
</view> -->
</view>
</view>
<starall name='描述相符' v-model="submitdata.productEvaluateParams[idx].productScore"/>
<view class="score">
<view class="textarea">
<textarea
:data-idx = 'idx'
@input='changesall($event,idx)'
placeholder="从多个角度评价商品,可以帮助更多想买的人"
:maxlength="300"></textarea>
<view class="list acea-row row-middle">
<scroll-view scroll-x="true" class="scrollpictrue">
<view class="pictrue uploadBnt acea-row row-center-wrapper row-column" @click.stop="chooseImageall(idx)">
<text class="iconfont icon-icon25201"></text>
<view>发布买家秀</view>
</view>
<view class="pictrue"
v-for="(item, uploadPicturesIndex) in submitdata.productEvaluateParams[idx]['pics']"
:key="uploadPicturesIndex">
<image :src="item" />
<text class="iconfont icon-guanbi1 font-color-brown" @click.stop="delall(uploadPicturesIndex,idx)"></text>
</view>
</scroll-view>
</view>
</view>
</view>
</view>
<view class="starall">
<starall name='服务态度' v-model="submitdata.serviceScore"/>
</view>
<view class="evaluate-btnview"></view>
<view class="evaluate-btn">
<view class="evaluateBnt bg-color-brown" @click="submit">发布</view>
</view>
</view>
<view class="evaluate-con" v-for="(itemall,idx) in orderCon" :key='idx' >
<view class="goodsStyle acea-row row-between" >
<view class="pictrue">
<image :src="itemall.productInfo.image" class="image" />
</view>
<view class="text acea-row row-between">
<view class="name line2 font-color-black">{{itemall.productInfo.storeName}}</view>
<!-- <view class="money">
<view>¥{{ orderCon.productInfo.price }}</view>
<view class="num">x{{ orderCon.cartNum }}</view>
</view> -->
</view>
</view>
<starall name='描述相符' v-model="submitdata.productEvaluateParams[idx].productScore"/>
<view class="score">
<view class="textarea">
<textarea
:data-idx = 'idx'
@input='changesall($event,idx)'
placeholder="从多个角度评价商品,可以帮助更多想买的人"
:maxlength="300"></textarea>
<view class="list acea-row row-middle">
<scroll-view scroll-x="true" class="scrollpictrue">
<view class="pictrue uploadBnt acea-row row-center-wrapper row-column" @click.stop="chooseImageall(idx)">
<text class="iconfont icon-icon25201"></text>
<view>发布买家秀</view>
</view>
<view class="pictrue"
v-for="(item, uploadPicturesIndex) in submitdata.productEvaluateParams[idx]['pics']"
:key="uploadPicturesIndex">
<image :src="item" />
<text class="iconfont icon-guanbi1 font-color-brown" @click.stop="delall(uploadPicturesIndex,idx)"></text>
</view>
</scroll-view>
</view>
</view>
</view>
</view>
<view class="starall">
<starall name='服务态度' v-model="submitdata.serviceScore"/>
</view>
<view class="evaluate-btnview"></view>
<view class="evaluate-btn">
<view class="evaluateBnt bg-color-brown" @click="submit">发布</view>
</view>
</view>
预期结果:
双向绑定有值
双向绑定有值
实际结果:
双向绑定无值
双向绑定无值
bug描述:
textarea 真机测试双向绑定失效
0 个回复