|
|
@@ -132,7 +132,7 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
- <view class="flex-row justify-center" v-if="currService.status=8">
|
|
|
+ <view class="flex-row justify-center" v-if="currService.status!==12">
|
|
|
<view class="like">
|
|
|
<text>{{currService.preference || ''}}</text>
|
|
|
</view>
|
|
|
@@ -464,15 +464,7 @@
|
|
|
duration: 2000,
|
|
|
title: '操作成功'
|
|
|
});
|
|
|
- this.$api.service.currServiceInfo({
|
|
|
- storeId: this.storeId
|
|
|
- }).then(res => {
|
|
|
- console.log(res.data.data)
|
|
|
- this.currService = res.data.data
|
|
|
- this.setButtomState(this.currService)
|
|
|
- this.currService.avatar=this.currService.avatar.replace(/^http:/, "https:")
|
|
|
-
|
|
|
- })
|
|
|
+ this.currServiceInfo()
|
|
|
})
|
|
|
},
|
|
|
|
|
|
@@ -482,6 +474,11 @@
|
|
|
serviceObjectId:this.previousServiceOrderId,
|
|
|
preference:this.content
|
|
|
}).then(res=>{
|
|
|
+ if (this.currService){
|
|
|
+ if (this.currService.serviceObjectId == this.previousServiceOrderId ){
|
|
|
+ this.currService.preference = this.content
|
|
|
+ }
|
|
|
+ }
|
|
|
this.previousServiceOrderId=''
|
|
|
this.content=''
|
|
|
uni.showToast({
|