Commit 9c9e8b26 by sunchao

邀请加盟分享

parent 9d159137
...@@ -171,6 +171,9 @@ ...@@ -171,6 +171,9 @@
courseItem courseItem
}, },
onLoad() { onLoad() {
},
onShow() {
if (uni.getStorageSync('isLogin')) { if (uni.getStorageSync('isLogin')) {
this.queryAreaCenterInfo(); this.queryAreaCenterInfo();
this.announcementQuery(); this.announcementQuery();
...@@ -180,8 +183,6 @@ ...@@ -180,8 +183,6 @@
url: '/components/login/login' url: '/components/login/login'
}) })
} }
},
onShow() {
let loginType = uni.getStorageSync('loginType') let loginType = uni.getStorageSync('loginType')
if(loginType == "visitor" ){ if(loginType == "visitor" ){
this.loginornot = false this.loginornot = false
......
...@@ -314,6 +314,7 @@ ...@@ -314,6 +314,7 @@
this.$refs.share.close() this.$refs.share.close()
}, },
reinvite(id) { reinvite(id) {
debugger;
this.shareId = id this.shareId = id
// #ifdef APP-PLUS // #ifdef APP-PLUS
this.$refs.share.open() this.$refs.share.open()
...@@ -324,20 +325,20 @@ ...@@ -324,20 +325,20 @@
// #endif // #endif
}, },
uniShare(type) { uniShare(type) {
console.log(`${baseURL}/cffp/static/cffp_logo.jpg`)
uni.share({ uni.share({
provider: "weixin", provider: "weixin",
scene: type === 1 ? "WXSceneSession" : "WXSceneTimeline", scene: type === 1 ? "WXSceneSession" : "WXSceneTimeline",
type: 0, type: 0,
href:"https://" + window.location.host + "/cffp/pages/invitationRegister/invitationRegister?shareId=" + href: `${baseURL}/cffp/pages/invitationRegister/invitationRegister?shareId=${this.shareId}&invitationCode=${this.invitationCode}`,
this.shareId + '&invitationCode=' + this.invitationCode,
title: "CFFP家庭财务策划师联盟邀您加入", title: "CFFP家庭财务策划师联盟邀您加入",
summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`, summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`,
imageUrl: `${baseURL}/cffp/static/cffp_logo.jpg`, imageUrl: `${baseURL}/cffp/static/cffp_logo.jpg`,
success: function(res) { success: function(res) {
// console.log("success:" + JSON.stringify(res)); console.log("success:" + JSON.stringify(res));
}, },
fail: function(err) { fail: function(err) {
// console.log("fail:" + JSON.stringify(err)); console.log("fail:" + JSON.stringify(err));
} }
}); });
// else if (type === 2) { // else if (type === 2) {
......
...@@ -88,7 +88,6 @@ ...@@ -88,7 +88,6 @@
imageUrl: that.WXdata.imageUrl, imageUrl: that.WXdata.imageUrl,
success: function(res) { success: function(res) {
console.log(res, 155) console.log(res, 155)
}, },
fail: function(err) { fail: function(err) {
alert(err) alert(err)
......
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