diff --git a/root/detail/apply.vue b/root/detail/apply.vue index 4f3ef12..885590b 100644 --- a/root/detail/apply.vue +++ b/root/detail/apply.vue @@ -370,7 +370,7 @@ - + @@ -482,7 +482,7 @@ export default { let codeRes = _str.split("="); console.log('邀请 codeRes 2',codeRes) this.oid = codeRes[1].split('_')[1]; - this.relationId = codeRes[1].split('_')[0]; + this.relationId = codeRes[1].split('_')[2]; this.type = '1'; console.log('邀请 codeRes 3 oid:',this.oid,' rid:',this.relationId) } else { diff --git a/root/detail/myMain.vue b/root/detail/myMain.vue index d20a188..e775f62 100644 --- a/root/detail/myMain.vue +++ b/root/detail/myMain.vue @@ -46,6 +46,7 @@ export default { _name:'', _job:'', _oid:'', + _rid:'' }; }, props: { @@ -78,6 +79,9 @@ export default { }, oid:{ default:'', + }, + rid:{ + default:'' } }, created() { @@ -117,6 +121,9 @@ export default { }, oid(val){ this._oid = val; + }, + rid(val){ + this._rid = val; } }, methods: { @@ -125,6 +132,7 @@ export default { that._name = that.name; that._job = that.job; that._oid = that.oid; + that._rid = that.rid; that.appInfo = that.recommendList; console.log("that.appInfo", that.appInfo); let _env = uni.getAccountInfoSync().miniProgram.envVersion; @@ -136,6 +144,7 @@ export default { { env: _env, orderId:that._oid, + relationId:that._rid }, (res) => { console.log("获取邀请码:", res);