post_comment.wxml 3.5 KB

1
  1. <view class="{{[themeName]}}"><view class="flex bg-white m-t-20" style="padding:20rpx;"><u-image vue-id="74732c81-1" width="180rpx" height="180rpx" lazy-load="{{true}}" src="{{goodsData.goods_image}}" bind:__l="__l"></u-image><view class="m-l-20" style="flex:1;"><view class="line-2 nr">{{goodsData.goods_name}}</view><view class="row-between flex m-t-20"><view class="price flex primary"><price vue-id="74732c81-2" content="{{goodsData.goods_price}}" color="#101010" mainSize="36rpx" minorSize="28rpx" bind:__l="__l"></price></view><view class="muted">{{'x '+goodsData.goods_num+''}}</view></view></view></view><view class="bg-white p-l-20"><view class="comment flex"><view class="nr label">商品评价</view><u-rate bind:input="__e" vue-id="74732c81-3" count="{{5}}" gutter="20" size="38" inactive-color="#E5E5E5" inactive-icon="star-fill" value="{{commentObj.goods_comment}}" data-event-opts="{{[['^input',[['__set_model',['$0','goods_comment','$event',[]],['commentObj']]]]]}}" bind:__l="__l"></u-rate><block wx:if="{{commentObj.goods_comment==1||commentObj.goods_comment==2}}"><text class="m-l-30 tips-comment">差评</text></block><block wx:if="{{commentObj.goods_comment==3}}"><text class="m-l-30 tips-comment">中评</text></block><block wx:if="{{commentObj.goods_comment>=4}}"><text class="m-l-30 tips-comment">好评</text></block></view><view class="comment p-t-0"><view class="muted nr">其它评价</view><view class="flex m-t-20"><view class="nr label">描述相符</view><u-rate bind:input="__e" vue-id="74732c81-4" count="{{5}}" gutter="20" size="38" inactive-color="#E5E5E5" inactive-icon="star-fill" value="{{commentObj.description_comment}}" data-event-opts="{{[['^input',[['__set_model',['$0','description_comment','$event',[]],['commentObj']]]]]}}" bind:__l="__l"></u-rate></view><view class="flex m-t-20"><view class="nr label">服务态度</view><u-rate bind:input="__e" vue-id="74732c81-5" count="{{5}}" gutter="20" size="38" inactive-color="#E5E5E5" inactive-icon="star-fill" value="{{commentObj.service_comment}}" data-event-opts="{{[['^input',[['__set_model',['$0','service_comment','$event',[]],['commentObj']]]]]}}" bind:__l="__l"></u-rate></view><view class="flex m-t-20"><view class="nr label">配送服务</view><u-rate bind:input="__e" vue-id="74732c81-6" count="{{5}}" gutter="20" size="38" inactive-color="#E5E5E5" inactive-icon="star-fill" value="{{commentObj.express_comment}}" data-event-opts="{{[['^input',[['__set_model',['$0','express_comment','$event',[]],['commentObj']]]]]}}" bind:__l="__l"></u-rate></view></view></view><view class="bg-white m-t-20 p-b-30"><view class="md p-t-20 p-l-30">商品描述</view><view class="p-l-20 p-r-20 m-t-20 p-b-20"><textarea class="desc nr" name="address" placeholder="宝贝收到还满意吗,说说你的使用心得。分享给想买的他们吧!!" auto-blur="{{true}}" data-event-opts="{{[['input',[['__set_model',['$0','comment','$event',[]],['commentObj']]]]]}}" value="{{commentObj.comment}}" bindinput="__e"></textarea></view><view class="p-l-20"><uploader bind:input="__e" vue-id="74732c81-7" deletable="{{true}}" preview-size="160rpx" maxUpload="{{6}}" mutiple="{{true}}" image-fit="aspectFill" value="{{commentObj.image}}" data-event-opts="{{[['^input',[['__set_model',['$0','image','$event',[]],['commentObj']]]]]}}" bind:__l="__l"></uploader></view></view><view class="p-l-30 p-r-30 m-t-50"><view data-event-opts="{{[['tap',[['onAddComment',['$event']]]]]}}" class="btn white flex lg row-center br60" bindtap="__e">立即评价</view></view></view>