dingdong-master/components/vertify/vertify-subscribe.vue

51 lines
1.1 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();
// 提示订阅消息
wx.requestSubscribeMessage({
tmplIds: ['yqd3p4qsqn1RiyUb8kO4dPqoGKipRQg_y99nGw0jtLE',
'gFoPAYF4J6Y_O5OzzNUbvMxTrsAS7aUWffdNH42xhzM'],
complete(res) {
console.log(res)
}
})
}
}
}
</script>
<style>
</style>