修改
This commit is contained in:
parent
11ef3580aa
commit
c47ffdccb7
@ -32,7 +32,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="TemplateMessage" @tap='goTemplate' v-if="personRoleLoginFlag=='stationRole'">
|
||||
<view class="TemplateMessage" @tap='goTemplate' v-if="personRoleLoginFlag=='stationRole'||personRoleLoginFlag=='wholeRole'">
|
||||
护理机构运营人员模板消息订阅
|
||||
</view>
|
||||
<view class="centerfloat">
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
修改信息
|
||||
</view>
|
||||
</view>
|
||||
<view class="user" v-if="personRoleLoginFlag == 'stationRole'">
|
||||
<view class="user" v-if="personRoleLoginFlag == 'stationRole'||personRoleLoginFlag=='wholeRole'">
|
||||
<image class="img" src="../../static/users.png" mode=""></image>
|
||||
<view class="phone" style="top:245rpx" v-if="phone">
|
||||
{{phone}}
|
||||
@ -101,6 +101,7 @@
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.Personallist = null
|
||||
this.beijingurl = baseurl + '/profile/nursePersonAppletPicture/person_center.png'
|
||||
this.baseurl = baseurl;
|
||||
let that = this
|
||||
|
||||
@ -18,6 +18,22 @@ const store = new Vuex.Store({
|
||||
complete(scc) {}
|
||||
})
|
||||
},
|
||||
|
||||
//为全部所有人
|
||||
//预约订单接受消息通知
|
||||
subscribesuccesssome(state) {
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: [
|
||||
't6PZuAOalg6RTh_dzORsHthP4PeZQNSWVqlLmxypyas',
|
||||
'fmZMOW9dq4kKBH-BEpcVIltbG0C9-aiQUVG3USVfgR8',
|
||||
'foVV7Gke-8JdzgzHQ7QQrDV5lK1L5xLkuUyZurQC8L4',
|
||||
],
|
||||
success(res) {},
|
||||
fail(err) {},
|
||||
complete(scc) {}
|
||||
})
|
||||
},
|
||||
|
||||
//护理站
|
||||
//预约订单接受消息通知
|
||||
subscribesuccess(state) {
|
||||
@ -61,7 +77,6 @@ const store = new Vuex.Store({
|
||||
//护理站
|
||||
//预约订单拒绝消息通知
|
||||
integralopenPopup(contxt) {
|
||||
const nursePersonIds = uni.getStorageSync('nursePersonId');
|
||||
wx.getSetting({
|
||||
withSubscriptions: true,
|
||||
success(res) {
|
||||
@ -73,12 +88,16 @@ const store = new Vuex.Store({
|
||||
},
|
||||
//预约订单接受消息通知
|
||||
openPopup(contxt) {
|
||||
const nursePersonIds = uni.getStorageSync('nursePersonId');
|
||||
const personRoleLoginFlag = uni.getStorageSync('personRoleLoginFlag');
|
||||
wx.getSetting({
|
||||
withSubscriptions: true,
|
||||
success(res) {
|
||||
if (res.authSetting['scope.subscribeMessage']) {} else {
|
||||
contxt.commit('subscribesuccess')
|
||||
if (personRoleLoginFlag == 'wholeRole') {
|
||||
contxt.commit('subscribesuccesssome')
|
||||
} else {
|
||||
contxt.commit('subscribesuccess')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user