lsx 2 gadi atpakaļ
vecāks
revīzija
9e0b44e9d1
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      src/pages/index/payExternal.vue

+ 4 - 3
src/pages/index/payExternal.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="">
-		<web-view :src='info'></web-view>
+		<!-- <web-view :src='info'></web-view> -->
 	</view>
 
 </template>
@@ -9,17 +9,18 @@
 	export default {
 		data() {
 			return {
-				info: '',
+				info: 'https://openapi.ysepay.com/gateway.do?',
 			}
 		},
 		onLoad(opthios) {
 			if(opthios.viewUrl){
 				let data = JSON.parse(decodeURIComponent(opthios.viewUrl))
-				this.info = 'https://openapi.ysepay.com/gateway.do?'
+				// this.info = 'https://openapi.ysepay.com/gateway.do?'
 				Object.keys(data).forEach(item=>{
 					this.info = this.info + item + '=' + encodeURIComponent(data[item]) + '&'
 				})
 			}
+			location.href =  this.info
 		},
 	}
 </script>