@dongkboy 4 settimane fa
parent
commit
71faa2a65f
2 ha cambiato i file con 24 aggiunte e 6 eliminazioni
  1. 7 1
      pages/tool/distributionCenter.vue
  2. 17 5
      pages/tool/invitationCode.vue

+ 7 - 1
pages/tool/distributionCenter.vue

@@ -208,7 +208,13 @@
 
 			this.getDistribution();
 			this.qrcodeImg = QR.createQrCodeImg(this.$base.h5BaseUrl + `/#/pages/registr/h5Registr?systemCode=${this
-				.system_code}&page=分销员注册&info=${JSON.stringify(this.Info)}`, {
+				.system_code}&page=分销员注册&info=${JSON.stringify({
+					name: this.Info.name,
+					infoId: this.Info.infoId,
+					id: this.Info.id,
+					headSculpture: this.Info.headSculpture,
+					deptName: this.Info.deptName,
+				})}`, {
 				size: parseInt(300), //二维码大小
 			})
 

+ 17 - 5
pages/tool/invitationCode.vue

@@ -64,16 +64,28 @@
 		onShow() {
 
 		},
-		onLoad() {
-			this.getUserInfo()//获取用户信息
+		async onLoad() {
+			await this.getUserInfo()//获取用户信息
 			this.paycodeimg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/registr/h5Registr?systemCode=" + this
-				.system_code+'&info='+JSON.stringify(this.Info), {
+				.system_code+'&info='+JSON.stringify({
+					name: this.Info.name,
+					infoId: this.Info.infoId,
+					id: this.Info.id,
+					headSculpture: this.Info.headSculpture,
+					deptName: this.Info.deptName,
+				}), {
 					size: parseInt(200), //二维码大小
 
 				})
 			this.recommendUrl = this.$base.h5BaseUrl + "/#/pages/registr/h5Registr?systemCode=" + this
-				.system_code;
-
+				.system_code+'&info='+JSON.stringify({
+					name: this.Info.name,
+					infoId: this.Info.infoId,
+					id: this.Info.id,
+					headSculpture: this.Info.headSculpture,
+					deptName: this.Info.deptName,
+				});
+				console.log(this.recommendUrl);
 			uni.getImageInfo({
 				src: '../../static/image/my/logo.png',
 				success: image => {