问题修复
This commit is contained in:
parent
bf0ea0101a
commit
d5debcd6db
|
|
@ -0,0 +1,50 @@
|
||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<!-- 模态框 -->
|
||||||
|
<view class="cu-modal" :class="isShow?'show':''">
|
||||||
|
<view class="cu-dialog">
|
||||||
|
<view class="padding-xl text-left">
|
||||||
|
<view>前往确认是否授权订单进度消息提醒</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-bar bg-white">
|
||||||
|
<navigator class="modal-bottom-oper margin-0 flex-sub text-black" @tap="hideModal" target="miniProgram">取消
|
||||||
|
</navigator>
|
||||||
|
<view class="modal-bottom-oper margin-0 flex-sub text-main-color solid-left" @tap="confirm">确定</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'vertify-subscribe',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isShow: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
showModal(e) {
|
||||||
|
this.isShow = true
|
||||||
|
},
|
||||||
|
hideModal(e) {
|
||||||
|
this.isShow = false;
|
||||||
|
},
|
||||||
|
confirm(e) {
|
||||||
|
this.hideModal();
|
||||||
|
// 提示订阅消息
|
||||||
|
uni.requestSubscribeMessage({
|
||||||
|
tmplIds: ['yqd3p4qsqn1RiyUb8kO4dPqoGKipRQg_y99nGw0jtLE',
|
||||||
|
'gFoPAYF4J6Y_O5OzzNUbvMxTrsAS7aUWffdNH42xhzM'],
|
||||||
|
complete(res) {
|
||||||
|
console.log(res)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
2
main.js
2
main.js
|
|
@ -17,6 +17,7 @@ import vertifyCertify from '@/components/vertify/vertify-certify.vue';
|
||||||
import vertifyBusinessCertify from '@/components/vertify/vertify-business-certify.vue';
|
import vertifyBusinessCertify from '@/components/vertify/vertify-business-certify.vue';
|
||||||
import vertifyWorkerType from '@/components/vertify/vertify-worker-type.vue';
|
import vertifyWorkerType from '@/components/vertify/vertify-worker-type.vue';
|
||||||
import vertifyBankBind from '@/components/vertify/vertify-bank-bind.vue';
|
import vertifyBankBind from '@/components/vertify/vertify-bank-bind.vue';
|
||||||
|
import vertifySubscribe from '@/components/vertify/vertify-subscribe.vue';
|
||||||
|
|
||||||
Vue.component('cu-custom', CuCustom)
|
Vue.component('cu-custom', CuCustom)
|
||||||
Vue.component('confirm-modal', ConfirmModal);
|
Vue.component('confirm-modal', ConfirmModal);
|
||||||
|
|
@ -26,6 +27,7 @@ Vue.component('vertify-certify', vertifyCertify);
|
||||||
Vue.component('vertify-worker-type', vertifyWorkerType);
|
Vue.component('vertify-worker-type', vertifyWorkerType);
|
||||||
Vue.component('vertify-bank-bind', vertifyBankBind);
|
Vue.component('vertify-bank-bind', vertifyBankBind);
|
||||||
Vue.component('vertify-business-certify', vertifyBusinessCertify);
|
Vue.component('vertify-business-certify', vertifyBusinessCertify);
|
||||||
|
Vue.component('vertify-subscribe', vertifySubscribe);
|
||||||
|
|
||||||
const data = type => {
|
const data = type => {
|
||||||
//模拟异步请求数据
|
//模拟异步请求数据
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@
|
||||||
<!-- 登录校验弹窗 -->
|
<!-- 登录校验弹窗 -->
|
||||||
<vertify-login ref="vertifyLogin" @reload="reloadForwardPage"></vertify-login>
|
<vertify-login ref="vertifyLogin" @reload="reloadForwardPage"></vertify-login>
|
||||||
<!-- <vertify-phone ref="vertifyPhone" @reload="reloadForwardPage"></vertify-phone> -->
|
<!-- <vertify-phone ref="vertifyPhone" @reload="reloadForwardPage"></vertify-phone> -->
|
||||||
|
<!-- 订阅授权 -->
|
||||||
|
<vertify-subscribe ref="vertifySubscribe"></vertify-subscribe>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -52,6 +54,23 @@
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
this.moduleBarInfos = await this.$api.data('moduleBarInfos');
|
this.moduleBarInfos = await this.$api.data('moduleBarInfos');
|
||||||
|
let curUserInfo = this.$request.getCurUserInfo();
|
||||||
|
let _this = this;
|
||||||
|
if (curUserInfo && curUserInfo.phone && curUserInfo.type != null) {
|
||||||
|
wx.getSetting({
|
||||||
|
withSubscriptions: true,
|
||||||
|
success(res) {
|
||||||
|
console.log(res.subscriptionsSetting)
|
||||||
|
if (!res.subscriptionsSetting.mainSwitch
|
||||||
|
|| !res.subscriptionsSetting.itemSettings
|
||||||
|
|| res.subscriptionsSetting.itemSettings['yqd3p4qsqn1RiyUb8kO4dPqoGKipRQg_y99nGw0jtLE'] !== 'accept'
|
||||||
|
|| res.subscriptionsSetting.itemSettings['gFoPAYF4J6Y_O5OzzNUbvMxTrsAS7aUWffdNH42xhzM'] !== 'accept') {
|
||||||
|
// 提示授权订单进度消息提示
|
||||||
|
_this.$refs.vertifySubscribe.showModal();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
reloadForwardPage() {
|
reloadForwardPage() {
|
||||||
this.getCurPageInfo({
|
this.getCurPageInfo({
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<uni-collapse ref="collapse">
|
<uni-collapse ref="collapse">
|
||||||
<uni-collapse-item ref="collapseItem" v-for="(billItem, index) in bill" :open="openStatusArr[index] === '0' ? true : false" >
|
<uni-collapse-item ref="collapseItem" :showArrow="false" v-for="(billItem, index) in bill" :open="openStatusArr[index] === '0' ? true : false" >
|
||||||
<template v-slot:title>
|
<template v-slot:title>
|
||||||
<view class="padding bg-white" :data-index="index" @click="showStatement">
|
<view class="padding bg-white" :data-index="index" @click="showStatement">
|
||||||
<view class="margin-bottom-xs">{{billItem.createTime}}</view>
|
<view class="margin-bottom-xs">{{billItem.createTime}}</view>
|
||||||
|
|
|
||||||
|
|
@ -1070,18 +1070,7 @@
|
||||||
},
|
},
|
||||||
acceptOrder(id, code, status, funName) {
|
acceptOrder(id, code, status, funName) {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
// 提示订阅消息
|
|
||||||
uni.requestSubscribeMessage({
|
|
||||||
tmplIds: ['Yd2PJIdgBhEadi3EkAGyS4DiFp1Rd5ErsEs_jEt-HX4'],
|
|
||||||
complete(res) {
|
|
||||||
_this.noticeMsg({
|
|
||||||
remind: '接单提醒',
|
|
||||||
name: _this.curUserInfo.name,
|
|
||||||
orderId: code
|
|
||||||
});
|
|
||||||
_this.updateOrderStatus(id, status, funName);
|
_this.updateOrderStatus(id, status, funName);
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
async noticeMsg(params = {}) {
|
async noticeMsg(params = {}) {
|
||||||
this.$request.noticeMsg({
|
this.$request.noticeMsg({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue