Commit ffb5559a authored by Mac's avatar Mac

判断一些字段

parent d0460498
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="good_List"> <view class="good_List" v-show="showpersonal==true">
<view class="good-item" style="margin-bottom:0;"> <view class="good-item" style="margin-bottom:0;">
<u-avatar mode="circle" :src="dataList.ServicepersonalHead"></u-avatar> <u-avatar mode="circle" :src="dataList.ServicepersonalHead"></u-avatar>
<view style="margin:13px 0 0 10px;"> <view style="margin:13px 0 0 10px;">
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
fileList: [], //商品上传图 fileList: [], //商品上传图
fileList2: [], //导游上传图 fileList2: [], //导游上传图
dataList: {}, //商品详情数据 dataList: {}, //商品详情数据
showpersonal:true,//是否评论服务人员
}; };
}, },
onLoad(option) { onLoad(option) {
...@@ -123,12 +124,18 @@ ...@@ -123,12 +124,18 @@
this.msg[0].GoodsId = param.GoodsId; this.msg[0].GoodsId = param.GoodsId;
this.msg[1].GoodsId = param.GoodsId; this.msg[1].GoodsId = param.GoodsId;
this.msg[0].StoreId = param.StoresIds; this.msg[0].StoreId = param.StoresIds;
this.msg[1].StoreId = param.StoresIds;
this.msg[1].ServicePersonalId = param.ServicepersonalId; this.msg[1].ServicePersonalId = param.ServicepersonalId;
this.msg[0].OrderDetailId = param.OrderDetailId; this.msg[0].OrderDetailId = param.OrderDetailId;
this.msg[1].OrderDetailId = param.OrderDetailId; this.msg[1].OrderDetailId = param.OrderDetailId;
this.goodsName = param.GoodsName; this.goodsName = param.GoodsName;
this.goodsPic = param.CoverImage; this.goodsPic = param.CoverImage;
this.OrderId = param.OrderId; this.OrderId = param.OrderId;
if(param.ServicepersonalId==0){
this.msg.splice(1,1);
this.showpersonal=false
}
// this.getOrderDetail(); // this.getOrderDetail();
} }
}, },
...@@ -177,6 +184,7 @@ ...@@ -177,6 +184,7 @@
}); });
return; return;
} }
if(this.showpersonal == true){
if (this.msg[1].CommentScore == 0) { if (this.msg[1].CommentScore == 0) {
this.$refs.uTips.show({ this.$refs.uTips.show({
title: "请您为服务人员打打分吧", title: "请您为服务人员打打分吧",
...@@ -185,6 +193,8 @@ ...@@ -185,6 +193,8 @@
}); });
return; return;
} }
}
this.submitStatus = true; this.submitStatus = true;
this.request2({ this.request2({
url: "/api/AppletStores/SetGuideCarCommentInfo", url: "/api/AppletStores/SetGuideCarCommentInfo",
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
<view class="good-info"> <view class="good-info">
<view class="good-name">{{x.GoodsName}}</view> <view class="good-name">{{x.GoodsName}}</view>
<view class="good-attr"> <view class="good-attr">
服务人员:{{x.ServicepersonalName}} 服务人员:{{x.ServicepersonalName!=null?x.ServicepersonalName:'到店分配'}}
</view> </view>
<view class="good-attr"> <view class="good-attr">
服务时间:{{x.ServiceDate+' '+x.ServiceTime}} 服务时间:{{x.ServiceDate+' '+(x.ServiceTime!=null?x.ServiceTime:'')}}
</view> </view>
</view> </view>
<view class="op-box"> <view class="op-box">
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<view class="good-name" @click="redirectGoods(x.GoodsId)">{{x.GoodsName}}</view> <view class="good-name" @click="redirectGoods(x.GoodsId)">{{x.GoodsName}}</view>
<view class="good-attr"> <view class="good-attr">
<text>人数/时间:{{x.Number}}人/{{x.ServiceDate+' '+(cx.ServiceTime?cx.ServiceTime:'')}}</text> <text>人数/时间:{{x.Number}}人/{{x.ServiceDate+' '+(cx.ServiceTime?cx.ServiceTime:'')}}</text>
<text>服务人员:{{x.ServicepersonalName}}</text> <text>服务人员:{{x.ServicepersonalName!=null?x.ServicepersonalName:'到店分配'}}</text>
</view> </view>
<view style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;margin-top: 2px;" @click.native.stop="goUrl(x.FreeShippingUrl)" <view style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;margin-top: 2px;" @click.native.stop="goUrl(x.FreeShippingUrl)"
v-if="x.FreeShippingRemarks !=null && x.FreeShippingRemarks!='' "> v-if="x.FreeShippingRemarks !=null && x.FreeShippingRemarks!='' ">
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<view style="margin-left: 15px; flex: 1;min-height: 80px;"> <view style="margin-left: 15px; flex: 1;min-height: 80px;">
<Text class="topic_cont_text">商品:{{cx.GoodsName}}</Text> <Text class="topic_cont_text">商品:{{cx.GoodsName}}</Text>
<Text class="topic_cont_text">时间:{{cx.ServiceDate+' '+(cx.ServiceTime?cx.ServiceTime:'')}}</Text> <Text class="topic_cont_text">时间:{{cx.ServiceDate+' '+(cx.ServiceTime?cx.ServiceTime:'')}}</Text>
<Text class="topic_cont_text">服务人员:{{cx.ServicepersonalName}}</Text> <Text class="topic_cont_text">服务人员:{{cx.ServicepersonalName!=null ?cx.ServicepersonalName:'到店分配'}}</Text>
</view> </view>
<view style="margin-left: 15px;"> <view style="margin-left: 15px;">
<text style="font-size: 10px;"></text> <text style="font-size: 10px;"></text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment