|
|
@@ -73,7 +73,8 @@
|
|
|
<view class="flex refund-item">
|
|
|
<view class="refund-label">审核结果:</view>
|
|
|
<view class="list">
|
|
|
- <button class="admin-button-com big default" @click="noticeMe()">点我开启通知</button>
|
|
|
+ <button class="admin-button-com big default" @click="noticeMe()" v-if="needNotice == 0">点我开启通知</button>
|
|
|
+ <button class="admin-button-com big blue" v-else>已经开启通知</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
@@ -109,7 +110,8 @@ export default {
|
|
|
unClear:[],
|
|
|
refundImgData:[],
|
|
|
uploadRefundImg:[],
|
|
|
- headers:{token:''}
|
|
|
+ headers:{token:''},
|
|
|
+ needNotice:0
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
@@ -145,7 +147,9 @@ export default {
|
|
|
uni.requestSubscribeMessage({
|
|
|
tmplIds: [this.getDictionariesInfo.hdMiniMessage.afterSale.msgId],
|
|
|
success(res) {
|
|
|
- console.log(res)
|
|
|
+ if(res[that.getDictionariesInfo.hdMiniMessage.afterSale.msgId] && res[that.getDictionariesInfo.hdMiniMessage.afterSale.msgId] == 'accept'){
|
|
|
+ that.needNotice = 1
|
|
|
+ }
|
|
|
},
|
|
|
fail(err) {
|
|
|
console.log(err)
|