ソースを参照

change
git commit -m change

carljin 3 年 前
コミット
ecf2b8c241

+ 4 - 4
common/config.js

@@ -1,9 +1,9 @@
 const config = {
-	// wxAppid:'wxbe90cc7c5233dd84',// 测试wxAppid 
-	wxAppid: 'wx45c3cf2b632f5fd5', // 正式wxAppid
+	wxAppid:'wxbe90cc7c5233dd84',// 测试wxAppid 
+	// wxAppid: 'wx45c3cf2b632f5fd5', // 正式wxAppid
 	
-	// baseUrl:'https://wx.hw.hongweisoft.com/parking',// 64服务器
-	baseUrl: 'https://parking.pdzhtc.com', //正式接口访问地址
+	baseUrl:'https://wx.hw.hongweisoft.com/parking',// 64服务器
+	// baseUrl: 'https://parking.pdzhtc.com', //正式接口访问地址
 }
 export {
 	config

+ 1 - 1
pages/handleMonthly/handleMonthly.vue

@@ -261,7 +261,6 @@
 					jumpUrl: this.jumpUrl
 				}).then(res => {
 					if(res.code === 200){
-						localStorage.setItem('jumpUrl', this.jumpUrl)
 						window.location.href = res.data.url
 					} else {
 						this.$refs.uToast.show({
@@ -343,6 +342,7 @@
 							// 	location.href = res.data.qrCodeUrl
 							// }
 							location.href = res.data.qrCodeUrl
+							localStorage.setItem('jumpUrl', this.jumpUrl)
 						} else {
 							this.$refs.uToast.show({
 								title: res.msg,

+ 15 - 0
pages/index/index.vue

@@ -325,6 +325,21 @@ export default {
 		totalPayCount: '' //应支付总笔数
     }
   },
+  onLoad(page) {
+  	const type = page?.type
+	if (type && type === 'jumpurl') {
+		const jumpurl = localStorage.getItem('jumpUrl')
+		if (jumpurl) {
+			uni.showLoading({
+				title: '正在跳转中...'
+			})
+			setTimeout(() => {
+				uni.hideLoading()
+				location.href = jumpurl
+			}, 0)
+		}
+	}
+  },
   onShow () {
     this.handleGetIndexData()
     this.getLocation()

+ 1 - 1
static/html/wxPayCallback.html

@@ -91,7 +91,7 @@
         function goToBgzchina() {
             var mchData = {
                 action: 'jumpOut',
-                jumpOutUrl: 'https://h5.pdzhtc.com' //要跳转到的页面。注意:不支持跳转到小程序
+                jumpOutUrl: 'https://h5.pdzhtc.com?type=jumpurl' //要跳转到的页面。注意:不支持跳转到小程序
             };
             var postData = JSON.stringify(mchData);
             parent.postMessage(postData, 'https://payapp.weixin.qq.com');