pingjia.wxml 4.9 KB

1
  1. <view><block wx:if="{{shopDet.shopScore}}"><view class="flex margin-lr padding-tb-sm u-border-bottom"><view class="flex padding-right"><view class="text-sl" style="color:#FD6416;">{{shopDet.shopScore}}</view><view class="flex flex-direction justify-around margin-left-sm"><view>商家评分</view><view class="flex"><block wx:for="{{shopDet.shopScore1}}" wx:for-item="ite" wx:for-index="__i0__" wx:key="*this"><u-icon vue-id="{{'b92e26ce-1-'+__i0__}}" color="#FCD202" name="star-fill" bind:__l="__l"></u-icon></block></view></view></view><view class="flex-sub flex justify-around u-border-left padding-left"><view class="flex flex-direction justify-around text-center"><view>好评</view><view>{{EvaluateData.goodReputation}}</view></view><view class="flex flex-direction justify-around text-center"><view>中评</view><view>{{EvaluateData.mediumReview}}</view></view><view class="flex flex-direction justify-around text-center"><view>差评</view><view>{{EvaluateData.negativeComment}}</view></view></view></view></block><view class="padding-tb-sm margin-lr"><u-button vue-id="b92e26ce-2" hover-class="none" type="primary" shape="circle" size="mini" plain="{{false}}" custom-style="{{count==0?customStyle:customStyle1}}" data-event-opts="{{[['^click',[['sel',[0]]]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">全部评论</u-button><u-button vue-id="b92e26ce-3" hover-class="none" type="primary" shape="circle" size="mini" plain="{{false}}" custom-style="{{count==1?customStyle:customStyle1}}" data-event-opts="{{[['^click',[['sel',[1]]]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">{{'好评('+EvaluateData.goodReputation+")"}}</u-button><u-button vue-id="b92e26ce-4" hover-class="none" type="primary" shape="circle" size="mini" plain="{{false}}" custom-style="{{count==2?customStyle:customStyle1}}" data-event-opts="{{[['^click',[['sel',[2]]]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">{{'中评('+EvaluateData.mediumReview+")"}}</u-button><u-button vue-id="b92e26ce-5" hover-class="none" type="primary" shape="circle" size="mini" plain="{{false}}" custom-style="{{count==3?customStyle:customStyle1}}" data-event-opts="{{[['^click',[['sel',[3]]]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">{{'差评('+EvaluateData.negativeComment+")"}}</u-button></view><block wx:for="{{EvaluateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="padding-tb-sm margin-lr u-border-bottom"><view class="flex justify-between align-center"><view class="flex align-center"><u-avatar vue-id="{{'b92e26ce-6-'+index}}" src="{{item.avatar}}" size="65" bind:__l="__l"></u-avatar><view class="margin-left-sm" style="line-height:46rpx;">{{(item.userName?item.userName:'匿名')+''}}</view><view class="flex margin-left-sm"><block wx:for="{{item.score}}" wx:for-item="ite" wx:for-index="__i1__" wx:key="*this"><u-icon vue-id="{{'b92e26ce-7-'+index+'-'+__i1__}}" color="#FCD202" name="star-fill" bind:__l="__l"></u-icon></block></view></view><view>{{item.createTime}}</view></view><view style="display:flex;"><view class="margin-top-sm" style="{{(!item.shopReplyMessage?'width: 90%;':'')}}">{{item.evaluateMessage}}</view><block wx:if="{{!item.shopReplyMessage}}"><view data-event-opts="{{[['tap',[['goShow',[index]]]]]}}" class="flex padding-top-sm margin-right" bindtap="__e"><image style="width:20px;height:20px;" src="../../static/images/order/pinglun.png"></image></view></block></view><block wx:if="{{item.shopReplyMessage}}"><view class="margin-top-sm"><view class="flex align-center"><view class="flex align-center text-df" style="color:#999999;"><view class="text-df">商家回复:</view>{{item.shopReplyMessage+''}}</view></view></view></block><block wx:if="{{item.pictures}}"><view class="flex" style="width:100%;margin-top:20rpx;flex-wrap:wrap;"><block wx:for="{{item.pictures}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><image style="width:200rpx;height:200rpx;margin-right:10rpx;margin-bottom:10rpx;" src="{{ite}}" mode data-event-opts="{{[['tap',[['lookImgs',[ind,'$0'],[[['EvaluateList','',index,'pictures']]]]]]]}}" bindtap="__e"></image></block></view></block></view></block><block wx:if="{{$root.g0<=0}}"><empty vue-id="b92e26ce-8" bind:__l="__l"></empty></block><u-popup bind:input="__e" vue-id="b92e26ce-9" mode="bottom" border-radius="14" closeable="{{closeable}}" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view><view class="margin padding-tb"><u-input bind:input="__e" style="background:#F5F5F5;" vue-id="{{('b92e26ce-10')+','+('b92e26ce-9')}}" type="textarea" height="200" placeholder="请填写回复的内容" maxlengt="200" clearable="{{false}}" value="{{pinglun}}" data-event-opts="{{[['^input',[['__set_model',['','pinglun','$event',[]]]]]]}}" bind:__l="__l"></u-input></view><view data-event-opts="{{[['tap',[['bindEvaluate']]]]}}" class="btn" bindtap="__e">提交</view></view></u-popup></view>