瀏覽代碼

no message

zpj 1 月之前
父節點
當前提交
6f6920af31
共有 1 個文件被更改,包括 4 次插入 和 5 次删除
  1. 4 5
      pages/index.vue

+ 4 - 5
pages/index.vue

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