Prechádzať zdrojové kódy

海外商品支付修改

kevin 1 rok pred
rodič
commit
34042db8c0

+ 0 - 3
frontendEle/src/views/shop/order-overseas.vue

@@ -237,9 +237,6 @@
             }
           } else {
             //移动端
-						let origin = window.location.origin + '/#/shop/order-list'
-						console.log('tyler', info.mweb_url + '&redirect_url=' + encodeURIComponent(origin))
-
             // let origin = window.location.origin + '/#/shop/order-list'
             window.location.replace("https://fele.ncshop.elken.com/wechat.html?mweb_url=" + info.mweb_url)
 

+ 6 - 4
pay/wechat.html

@@ -18,18 +18,20 @@
 	    return null;
 	}
 
-	let mweb_url = getQueryString('mweb_url', window.location.search);
-	let packages = getQueryString('package', window.location.search)
+	// let mweb_url = getQueryString('mweb_url', window.location.search);
+
+	let url = window.location.search
+	let index = url.indexOf("mweb_url=")
+	let mweb_url = url.substring(index + 1)
 
 	console.log('mweb_url', mweb_url)
-	console.log('packages', packages)
 
 	$(function() {
 		// test
 		// let redirect_url = 'https://nc-fele-mips.elken.com:8015/return.html';
 		// prod
 		let redirect_url = 'https://fele.ncshop.elken.com/return.html';
-		console.log('replace-o', mweb_url + '&package=' + packages + '&redirect_url=' + encodeURIComponent(redirect_url))
+		console.log('replace-o', mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
 		// window.location.replace(mweb_url + '&package=' + packages + '&redirect_url=' + encodeURIComponent(redirect_url))
 	});
 </script>