zpj 1 lună în urmă
părinte
comite
6f6920af31
1 a modificat fișierele cu 4 adăugiri și 5 ștergeri
  1. 4 5
      pages/index.vue

+ 4 - 5
pages/index.vue

@@ -65,8 +65,6 @@
 			let isWeiXin = isWx();
 			if (isWeiXin) {
 				const href = window.location.href
-				
-				console.log(href);
 				if (href.indexOf('?code=') > -1 || href.indexOf('&code=') > -1) {
 					const urlArr = href.split('?')
 					const rightUrlArr = urlArr[1].split('#/')
@@ -89,7 +87,8 @@
 					}
 					// await getUserInfo(from).then(async (res) => {
 					// 	if (res.code === 1) {
-							
+							// uni.setStorageSync('m_id')
+							// uni.setStorageSync('token')
 					// 	}
 					// })
 				} else {
@@ -170,8 +169,8 @@
 					pay_money: this.totalNum,
 					pay_code_source: this.code_type,
 					pay_type: pay_type,
-					m_id:0,
-					token:'',
+					m_id:uni.getStorageSync('m_id')?uni.getStorageSync('m_id'):0,
+					token:uni.getStorageSync('token')?uni.getStorageSync('token'):''
 				}).then((res) => {
 
 					if (res.code === 1) {