|
|
@@ -16,14 +16,20 @@
|
|
|
<view class="usermain">
|
|
|
|
|
|
<!-- 我的公司 -->
|
|
|
- <view class="usermain-item item-padding">
|
|
|
- <view class="usermain-item-title">我的公司</view>
|
|
|
+ <view class="usermain-item item-padding" @click="goNavNoLogin('/my/setting/mimi')">
|
|
|
+ <view class="usermain-item-title">隐私协议</view>
|
|
|
<view>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="usermain-item item-padding">
|
|
|
- <view class="usermain-item-title">我的公司</view>
|
|
|
+ <view class="usermain-item item-padding" @click="goNavNoLogin('/my/setting/xieyi')">
|
|
|
+ <view class="usermain-item-title">用户协议</view>
|
|
|
+ <view>
|
|
|
+ <u-icon name="arrow-right"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="usermain-item item-padding" @click="goNavNoLogin('/my/setting/about')">
|
|
|
+ <view class="usermain-item-title">关于我们</view>
|
|
|
<view>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
</view>
|
|
|
@@ -65,7 +71,8 @@
|
|
|
zhiFuBao: '',
|
|
|
zhiFuBaoName: '',
|
|
|
sex: 1,
|
|
|
- age: 0
|
|
|
+ age: 0,
|
|
|
+ arr:[]
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -214,28 +221,32 @@
|
|
|
},
|
|
|
getUserInfo() {
|
|
|
let userId = uni.getStorageSync('userId')
|
|
|
- this.$Request.get("/app/user/selectUserById").then(res => {
|
|
|
- if (res.code == 0) {
|
|
|
- this.$queue.setData('avatar', res.data.avatar);
|
|
|
- this.$queue.setData('userId', res.data.userId);
|
|
|
- this.$queue.setData('userName', res.data.userName);
|
|
|
- this.$queue.setData('phone', res.data.phone);
|
|
|
- this.$queue.setData('age', res.data.age);
|
|
|
- this.$queue.setData('weChatNum',res.data.weChatNum)
|
|
|
- this.weChatNum = res.data.weChatNum
|
|
|
- this.sex = res.data.sex
|
|
|
- this.age = res.data.age
|
|
|
- this.phone = res.data.phone;
|
|
|
- this.avatar = res.data.avatar;
|
|
|
- this.userName = res.data.userName;
|
|
|
- if (this.userName == null) {
|
|
|
- this.userName = res.data.nickName;
|
|
|
- } else {
|
|
|
- this.userName = res.data.userName;
|
|
|
+ if (userId) {
|
|
|
+ this.$Request.getT("/app/common/type/310").then((res) => {
|
|
|
+ //消息未读提醒
|
|
|
+ if (res.code == 0) {
|
|
|
+ if (res.data && res.data.value) {
|
|
|
+ this.arr.push(res.data.value);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- uni.hideLoading();
|
|
|
- });
|
|
|
+ });
|
|
|
+ this.$Request.getT("/app/common/type/337").then((res) => {
|
|
|
+ //预约成功通知(通用)
|
|
|
+ if (res.code == 0) {
|
|
|
+ if (res.data && res.data.value) {
|
|
|
+ this.arr.push(res.data.value);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$Request.getT("/app/common/type/338").then((res) => {
|
|
|
+ //订单状态通知
|
|
|
+ if (res.code == 0) {
|
|
|
+ if (res.data && res.data.value) {
|
|
|
+ this.arr.push(res.data.value);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
|
|
|
},
|
|
|
@@ -341,6 +352,28 @@
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ goNavNoLogin(e) {
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ if (uni.getStorageSync("sendMsg")) {
|
|
|
+ // console.log('授权+1')
|
|
|
+ wx.requestSubscribeMessage({
|
|
|
+ tmplIds: this.arr,
|
|
|
+ success(re) {
|
|
|
+ var datas = JSON.stringify(re);
|
|
|
+ if (datas.indexOf("accept") != -1) {
|
|
|
+ // console.log(re)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: (res) => {
|
|
|
+ // console.log(res)
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
+ uni.navigateTo({
|
|
|
+ url: e,
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
// userphone(){
|
|
|
// uni.navigateTo({
|