xhj 2 jaren geleden
bovenliggende
commit
c2e485f49a

+ 11 - 9
App.vue

@@ -539,11 +539,12 @@
 						this.globalData.userInfoFromServer = Object.assign({}, data[userId]);
 					} catch (error) {
 						console.log(error)
-						uni.showToast({
-							title: "用户属性获取失败",
-							icon: "none",
-							duration: 2000,
-						})
+						console.log("用户属性获取失败")
+						// uni.showToast({
+						// 	title: "用户属性获取失败",
+						// 	icon: "none",
+						// 	duration: 2000,
+						// })
 					}
 
 				}
@@ -569,10 +570,11 @@
 					}
 				} catch (error) {
 					console.log(error)
-					uni.showToast({
-						title: "用户属性获取失败",
-						icon: "none"
-					})
+					console.log("用户属性获取失败")
+					// uni.showToast({
+					// 	title: "用户属性获取失败",
+					// 	icon: "none"
+					// })
 				}
 
 			},

+ 1 - 1
card/cardDetail/cardDetail.vue

@@ -122,7 +122,7 @@
 					let that = this; //获取小程序码
 					const params = {
 						page: 'card/index/index',
-						scene: this.cardInfo.id
+						params: this.cardInfo.id
 					};
 					return new Promise((resolve, reject) => {
 						req.getRequest('/api/other/program/code', params, url => {

+ 2 - 20
card/index/index.vue

@@ -477,7 +477,8 @@ import util from '../../utils/util.js';
 		async onShow() {
 			this.getConfig()
 			if (this.scene) {
-				await this.loadCodeParams();
+				this.cardId = this.scene
+				// await this.loadCodeParams();
 			}
 			await req.silenceLogin(this.options.userId ? this.options.userId : '', '')
 			this.userInfo = req.getStorage('userInfo')
@@ -536,25 +537,6 @@ import util from '../../utils/util.js';
 					);
 				});
 			},
-			loadCodeParams() {
-				let _ts = this;
-				return new Promise((resolve, reject) => {
-					if (!_ts.scene) {
-						resolve();
-						return false;
-					}
-					req.getRequest(
-						'/api/code/params', {
-							scene: _ts.scene
-						},
-						data => {
-							this.options.userId = data.userId
-							this.cardId = data.scene
-							resolve();
-						}
-					);
-				});
-			},
 			getImgList(url) {
 				var list = [];
 				if (url) {

+ 1 - 1
card/poster/poster.vue

@@ -144,7 +144,7 @@ export default {
 				let that = this; //获取小程序码
 				const params = {
 					page: 'card/index/index',
-					scene: this.cardInfo.id
+					params: this.cardInfo.id
 				};
 				return new Promise((resolve, reject) => {
 					req.getRequest('/api/other/program/code', params, url => {

+ 1 - 1
library/posterService/posterService.vue

@@ -118,7 +118,7 @@
 				let userInfo = req.getStorage('userInfo')
 				const params = {
 					page: 'pages/index/index',
-					scene: userInfo.saleNo
+					params: userInfo.saleNo
 				};
 				return new Promise((resolve, reject) => {
 					req.getRequest('/api/other/program/code', params, url => {

+ 3 - 1
match/activityDetail/activityDetail.vue

@@ -140,7 +140,9 @@ export default {
 	},
 	async onShow() {
 		this.isLogin = req.isAuth();
-		await this.loadCodeParams();
+		// await this.loadCodeParams();
+		if(this.options.scene)
+			this.options.id = this.options.scene
 		await this.getConfig();
 		await this.getData(true);
 		if(this.isLogin){

+ 1 - 1
mine/help/help.vue

@@ -39,7 +39,7 @@
 				this.scene = options.scene;
 			}
 
-			await this.loadCodeParams();
+			// await this.loadCodeParams();
 		},
 		onReachBottom() {
 			this.form.page++;

+ 1 - 1
pages/authorize/authorize.vue

@@ -143,7 +143,7 @@ export default {
 
 		if (options.scene) {
 			this.scene = options.scene;
-			this.loadCodeParams();
+			// this.loadCodeParams();
 		}
 		this.getAbout();
 		// this.isphone()

+ 1 - 1
pages/empty/empty.vue

@@ -18,7 +18,7 @@
 		components: {},
 		props: {},
 		onLoad: async function(options) {
-			await this.loadCodeParams();
+			// await this.loadCodeParams();
 
 			if (options.scene) {
 				this.scene = options.scene;