Commit 3c801558 by zhangzhen

细节优化,加订阅消息提示

parent eebca2b1
......@@ -16,7 +16,7 @@
<text class="cuIcon cuIcon-title text-pink"></text>
<text class="text-title text-bold text-xl">{{item.storeName||'门店名称'}}</text>
</view>
<text :class="item.status==1?'text-pink':item.status==0?'text-cyan':item.status==2?'text-gray':'text-red'">{{orderStatusEnum[item.status]}}</text>
<text :class="item.status==1?'text-pink':item.status==0?'text-cyan':item.status==2?'text-gray':'text-red'">{{item.status>=3? refundStatusEnum[item.refundStatus]: orderStatusEnum[item.status]}}</text>
</view>
<view class="flex-row room-image-box">
......@@ -162,7 +162,12 @@ import NoLogin from "@/components/noLogin/noLogin"
},
loginStatus:true,
orderStatusEnum:{},
roomTypeEnum:{}
roomTypeEnum:{},
refundStatusEnum:{
1:'退款中',
2:'退款中',
3:'已退款'
}
};
},
onLoad() {
......
......@@ -80,7 +80,7 @@
<view class="part">
<button class="cu-btn block round line-pink lg" @tap="onNavToShare">分享好友</button>
</view>
<view class="part">
<view v-is="orderInfo.status == 1" class="part">
<button class="cu-btn block round bg-mauve lg" @tap="onNavToOrder">房间续单</button>
</view>
</view>
......@@ -140,7 +140,10 @@
this.orderNo = option.orderNo;
this.onGetDicts()
this.onLoading();
this.onMessagePush()
if(option.success){
this.onMessagePush()
}
},
methods:{
onGetDicts() {
......@@ -237,15 +240,7 @@
})
},
onMessagePush(){
if( !uni.getStorageSync("orderUseMessage")){
uni.requestSubscribeMessage({
tmplIds:['oTc000e4NHkoc7v9OLBZiwM6Q6SFzguemrx6d0iuVS8'],
complete: (res) => {
console.log(res,909090)
uni.setStorageSync("orderUseMessage",true);
}
})
}
}
}
}
......
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