修改请他上线功能
This commit is contained in:
parent
c3349ee8ec
commit
e2b6df7640
|
@ -15,15 +15,14 @@
|
||||||
<view class="view-head">
|
<view class="view-head">
|
||||||
<view class="jian-view">
|
<view class="jian-view">
|
||||||
<view class="jian-view-left">
|
<view class="jian-view-left">
|
||||||
<span>{{order.artificerName}}</span>
|
<span>22{{order.artificerName}}</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="jian-view-right">
|
<view class="jian-view-right">
|
||||||
|
|
||||||
<view class="oder-mian-right">
|
<view class="oder-mian-right">
|
||||||
<view class="oder-mian-view oder-mian-jin">
|
<view class="oder-mian-view oder-mian-jin">
|
||||||
今日可约
|
{{order.status == 1?"可服务":"休息中"}}
|
||||||
</view>
|
</view>
|
||||||
<view class="oder-mian-view oder-mian-time">{{order.time}}</view>
|
<view class="oder-mian-view oder-mian-time"><span v-if="order.status == 1">{{order.time}}</span></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="jian-view-right-weizhi">
|
<view class="jian-view-right-weizhi">
|
||||||
<image class="jian-view-right-img" src="../../static/orderDetail/dingwei.png"></image>
|
<image class="jian-view-right-img" src="../../static/orderDetail/dingwei.png"></image>
|
||||||
|
@ -52,7 +51,7 @@
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="oder-mian-qing" @click="shangxian">请TA上线</view>
|
<view class="oder-mian-qing" @click="shangxian" v-if="order.status == 2">请TA上线</view>
|
||||||
<view class="oder-mian-guan" :class="[isFollow?'activeG':'activeQ']" @click="guanzhu(order)">
|
<view class="oder-mian-guan" :class="[isFollow?'activeG':'activeQ']" @click="guanzhu(order)">
|
||||||
+ 关注
|
+ 关注
|
||||||
</view>
|
</view>
|
||||||
|
@ -345,8 +344,8 @@
|
||||||
methods: {
|
methods: {
|
||||||
shangxian(){//请TA上线
|
shangxian(){//请TA上线
|
||||||
var data={
|
var data={
|
||||||
userId: this.myId,
|
userId: this.artificerId,
|
||||||
artificerId: this.artificerId
|
byUserId: this.myId
|
||||||
}
|
}
|
||||||
this.$Request.post("/app/message/insertUpMessage", data).then(res => {
|
this.$Request.post("/app/message/insertUpMessage", data).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
@ -470,6 +469,7 @@
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
console.log('getDet---->',res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.order = res.data
|
this.order = res.data
|
||||||
this.status = res.data.status
|
this.status = res.data.status
|
||||||
|
|
Loading…
Reference in New Issue