50 lines
1.0 KiB
Vue
50 lines
1.0 KiB
Vue
|
|
<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: ['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'],
|
||
|
|
complete(res) {
|
||
|
|
console.log(res)
|
||
|
|
}
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
</style>
|