diff --git a/pages/person/index.vue b/pages/person/index.vue index 76662dd..0db4901 100644 --- a/pages/person/index.vue +++ b/pages/person/index.vue @@ -13,44 +13,34 @@ @clickCard="goPage('/root/person/info')" /> - +
-
- +
+
-
-
- 下游代理 -
-
+
+
下游代理
+
-
- {{ downCount }}家 -
-
- +
{{ downCount }}家
+
+
-
- +
+
-
- 发展代理 -
-
+
发展代理
+
-
- 邀请更多代理关注我 -
-
- +
邀请更多代理关注我
+
+
@@ -60,6 +50,7 @@ + - - - - + + + - + + + + - + 商家管理后台 @@ -249,13 +239,13 @@ export default { onReady() {}, data() { return { - isfdb:uni.getAccountInfoSync().miniProgram.appId == 'wxfab5320942daaafa', + isfdb: uni.getAccountInfoSync().miniProgram.appId == "wxfab5320942daaafa", downCount: 0, poastList: [], - appdatas:{}, - agencyCode:'', - applystatys:null, - isJm:uni.getStorageSync("apply-userinfo") && uni.getStorageSync("apply-userinfo").agencyId && uni.getStorageSync("apply-userinfo").agencyId == '114827', + appdatas: {}, + agencyCode: "", + applystatys: null, + isJm: uni.getStorageSync("apply-userinfo") && uni.getStorageSync("apply-userinfo").agencyId && uni.getStorageSync("apply-userinfo").agencyId == "114827", demoModeEnabled: uni.getStorageSync("DEMO_MODE_ENABLED") || false, themeColor: getApp().globalData.themeColor, themeBackgroundColor: getApp().globalData.themeBackgroundColor, @@ -348,18 +338,18 @@ export default { that.getinfoByLogin(); that.getPoastList(); that.G.Post( - that.api.bind_list, + that.api.bind_list, { pageNum: 1, pageSize: 1, - keys: '', + keys: "", platform: "pc", type: 2, formdata: true, }, (downRes) => { that.downCount = downRes.recordCount; - } + }, ); }); } else { @@ -729,17 +719,17 @@ export default { }, }); }, - getinfoByLogin(){ + getinfoByLogin() { let that = this; - that.G.Get(that.api.get_infoByLogin + '/' + uni.getStorageSync("AGENCY_ID"), {}, (res) => { + that.G.Get(that.api.get_infoByLogin + "/" + uni.getStorageSync("AGENCY_ID"), {}, (res) => { console.log("getinfoByLogin", res); - if(res){ + if (res) { that.applystatys = res.recordStatus; that.agencyCode = res.agencyCode; that.appdatas = res; - }else{ - that.applystatys = ''; - that.agencyCode = ''; + } else { + that.applystatys = ""; + that.agencyCode = ""; } }); }, @@ -769,7 +759,7 @@ export default { that.userInfo.teamType = userInfo.teamType; console.log("that.userInfo", that.userInfo); }, - goPaga($path){ + goPaga($path) { let that = this; console.log("goPaga $path", $path); uni.setStorageSync("applyfoemdata", JSON.stringify(that.appdatas)); @@ -940,7 +930,7 @@ export default { }); }); }, - // 设置分享布局 + // 设置分享布局 setShareJobImg(ctx, canvas, mycenter, funObj) { let that = this; let labelLeft = 0; @@ -1036,19 +1026,21 @@ export default { } this.getPoster(_item.url); }, - handleOpenForm(){ + handleOpenForm() { let that = this; uni.showModal({ - cancelText: '取消', + cancelText: "取消", confirmColor: getApp().globalData.themeColor, - confirmText: '申请加入', - content: '需要加入' + getApp().globalData.title + '后,才能查看职位佣金', - title: '', - success: (result) => {}, + confirmText: "申请加入", + content: "需要加入" + getApp().globalData.title + "后,才能查看职位佣金", + title: "", + success: (result) => { + that.goPaga("/root/bind/applyForm?code=" + that.agencyCode); + }, fail: (res) => {}, complete: (res) => {}, - }) - } + }); + }, }, }; diff --git a/root/bind/applyForm.vue b/root/bind/applyForm.vue index 8bc0bf7..2776498 100644 --- a/root/bind/applyForm.vue +++ b/root/bind/applyForm.vue @@ -262,7 +262,7 @@ export default { that.G.Get( that.api.bind_getSubscribeDetail, { - inviteCode: that.wxCode, + inviteCode: that.wxCode || uni.getStorageSync("miniApp-info").inviteCode, }, (res) => { console.log("企业基本信息:", res);