Commit 2ef3f594 by sunerhu

1.修改了一些Bug

parent 44ae8364
...@@ -163,9 +163,14 @@ ...@@ -163,9 +163,14 @@
loginType: '', loginType: '',
sliceshare: false, sliceshare: false,
nonRequiredCount: 0, nonRequiredCount: 0,
requiredCount: 0 requiredCount: 0,
realName: ''
}; };
}, },
onLoad(){
let dataForm = uni.getStorageSync('userinfodataForm')
this.realName = dataForm.realName
},
methods: { methods: {
goBack() { goBack() {
console.log(12121232) console.log(12121232)
...@@ -193,6 +198,43 @@ ...@@ -193,6 +198,43 @@
url:val.item.link url:val.item.link
}) })
}, },
uniShare(type) {
if (type === 1) {
uni.share({
provider: "weixin",
scene: "WXSceneSession",
type: 0,
href: "https://mdev.zuihuibi.cn/cffp/pages/invitationRegister/invitationRegister?shareId=" +
this.shareId,
title: "CFFP家庭财务策划师联盟邀您加入",
summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`,
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg",
success: function(res) {
console.log("success:" + JSON.stringify(res));
},
fail: function(err) {
console.log("fail:" + JSON.stringify(err));
}
});
} else if (type === 2) {
uni.share({
provider: "weixin",
scene: "WXSceneTimeline",
type: 0,
href: "https://mdev.zuihuibi.cn/cffp/pages/invitationRegister/invitationRegister?shareId=" +
this.shareId,
title: "CFFP家庭财务策划师联盟邀您加入",
summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`,
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg",
success: function(res) {
console.log("success:" + JSON.stringify(res));
},
fail: function(err) {
console.log("fail:" + JSON.stringify(err));
}
});
}
},
// 订单保存 // 订单保存
saveOrder() { saveOrder() {
if (this.loginType === 'visitor') { if (this.loginType === 'visitor') {
......
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
areaName:'', areaName:'',
invitationName:'', invitationName:'',
shareId:'', shareId:'',
levelaName:'' levelaName:'',
mobileNumber:'',
name:''
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -41,13 +43,15 @@ ...@@ -41,13 +43,15 @@
}) })
}, },
ckregister(){ ckregister(){
let dataForm = { // ' let dataForm = {
name: this.name, // name: this.name,
mobile: this.mobileNumber, // mobile: this.mobileNumber,
id:this.shareId // id:this.shareId
}; // };'
uni.navigateTo({ uni.navigateTo({
url:'/pages/invitationRegister/invitationlogin?form=' + JSON.stringify(dataForm) // url:'/pages/invitationRegister/invitationlogin?name=' + this.name+'&mobile=' +this.mobileNumber + '&id=' + this.shareId
url:`/pages/invitationRegister/invitationlogin?name=${this.name}&mobile=${this.mobileNumber}`
}) })
} }
} }
......
...@@ -55,7 +55,11 @@ ...@@ -55,7 +55,11 @@
} }
}, },
onLoad(options) { onLoad(options) {
this.form =JSON.parse( options.form) console.log(options, 2225)
this.form.name = options.name?options.name:''
this.form.mobile = options.mobile? options.mobile: ''
this.form.id = options.id?options.id:''
// this.form =JSON.parse( options.form)
}, },
methods:{ methods:{
sendMessage(){ sendMessage(){
...@@ -112,7 +116,6 @@ ...@@ -112,7 +116,6 @@
...this.form ...this.form
} }
api.loginVerification(params).then((res)=>{ api.loginVerification(params).then((res)=>{
console.log(res, 5524)
if(res['success']){ if(res['success']){
this.userId = String(res['data']['userId']); this.userId = String(res['data']['userId']);
uni.navigateTo({ uni.navigateTo({
......
...@@ -158,13 +158,15 @@ ...@@ -158,13 +158,15 @@
orgList: [], orgList: [],
orgdataList: [], orgdataList: [],
queryorgList: [], queryorgList: [],
shareId: '' shareId: '',
realName:''
}; };
}, },
onLoad() { onLoad() {
this.getqueryOrgList() this.getqueryOrgList()
console.log(uni.getStorageSync('userinfodataForm'),74174) console.log(uni.getStorageSync('userinfodataForm'),74174)
let dataForm = uni.getStorageSync('userinfodataForm') let dataForm = uni.getStorageSync('userinfodataForm')
this.realName = dataForm.realName
}, },
methods: { methods: {
queryorgchange(e) { queryorgchange(e) {
...@@ -279,7 +281,7 @@ ...@@ -279,7 +281,7 @@
href: "https://mdev.zuihuibi.cn/cffp/pages/invitationRegister/invitationRegister?shareId=" + href: "https://mdev.zuihuibi.cn/cffp/pages/invitationRegister/invitationRegister?shareId=" +
this.shareId, this.shareId,
title: "CFFP家庭财务策划师联盟邀您加入", title: "CFFP家庭财务策划师联盟邀您加入",
summary: `我是家庭财务策划师${uni.getStorageSync('cffp_userId')}正在使用CFFP财富中心,点击下载即刻加入!`, summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`,
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg", imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg",
success: function(res) { success: function(res) {
console.log("success:" + JSON.stringify(res)); console.log("success:" + JSON.stringify(res));
...@@ -296,7 +298,7 @@ ...@@ -296,7 +298,7 @@
href: "https://mdev.zuihuibi.cn/cffp/pages/invitationRegister/invitationRegister?shareId=" + href: "https://mdev.zuihuibi.cn/cffp/pages/invitationRegister/invitationRegister?shareId=" +
this.shareId, this.shareId,
title: "CFFP家庭财务策划师联盟邀您加入", title: "CFFP家庭财务策划师联盟邀您加入",
summary: "我是家庭财务策划师***正在使用CFFP财富中心,点击下载即刻加入!", summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`,
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg", imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg",
success: function(res) { success: function(res) {
console.log("success:" + JSON.stringify(res)); console.log("success:" + JSON.stringify(res));
......
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