Commit e8f9a1c5 by sunerhu

1.H5 分享页面修改--测试

parent 04532a53
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
}, },
"dependencies": { "dependencies": {
"nanoid": "^4.0.0", "nanoid": "^4.0.0",
"require.js": "^1.0.0",
"vue-signature-pad": "^3.0.2", "vue-signature-pad": "^3.0.2",
"weixin-js-sdk": "^1.6.0" "weixin-js-sdk": "^1.6.0"
} }
......
...@@ -103,7 +103,14 @@ ...@@ -103,7 +103,14 @@
search search
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('isLogin')){
this.queryAreaCenterInfo();
this.announcementQuery();
}else{
uni.navigateTo({
url:'/components/login/login'
})
}
}, },
methods: { methods: {
tokefu(){ tokefu(){
...@@ -173,15 +180,8 @@ ...@@ -173,15 +180,8 @@
this.old.y = e.detail.y this.old.y = e.detail.y
} }
}, },
onShow() { mounted() {
if(!uni.getStorageSync('isLogin')){
uni.navigateTo({
url:'/components/login/login'
})
}else{
this.queryAreaCenterInfo();
this.announcementQuery();
}
} }
} }
......
...@@ -159,10 +159,12 @@ ...@@ -159,10 +159,12 @@
orgdataList: [], orgdataList: [],
queryorgList: [], queryorgList: [],
shareId: '', shareId: '',
realName:'' realName:'',
partnerLevel:''
}; };
}, },
onLoad() { onLoad(option) {
this.partnerLevel = option.levelCode
this.getqueryOrgList() this.getqueryOrgList()
let dataForm = uni.getStorageSync('userinfodataForm') let dataForm = uni.getStorageSync('userinfodataForm')
this.realName = dataForm.realName this.realName = dataForm.realName
......
...@@ -157,6 +157,7 @@ ...@@ -157,6 +157,7 @@
} }
}, },
ckidentity(item){ ckidentity(item){
console.log(item, 15551)
if(item.identity == true && this.customerBasicInfo.partnerType ==null){ if(item.identity == true && this.customerBasicInfo.partnerType ==null){
uni.showToast({ uni.showToast({
title: "您本人尚未加盟,您加盟后可邀请加盟", title: "您本人尚未加盟,您加盟后可邀请加盟",
...@@ -164,6 +165,10 @@ ...@@ -164,6 +165,10 @@
icon: 'none' icon: 'none'
}); });
return false return false
}else if(item.title == '邀请加盟'){
uni.navigateTo({
url: `${item.link}?levelCode=` + this.customerBasicInfo.levelCode
});
}else{ }else{
uni.navigateTo({ uni.navigateTo({
url: item.link url: item.link
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment