lsx 2 ani în urmă
părinte
comite
d7020471f8
1 a modificat fișierele cu 11 adăugiri și 12 ștergeri
  1. 11 12
      src/pages/index/payExternal.vue

+ 11 - 12
src/pages/index/payExternal.vue

@@ -2,7 +2,6 @@
 	<view class="">
 		<!-- <web-view :src='info'></web-view> -->
 	</view>
-
 </template>
 
 <script>
@@ -11,20 +10,20 @@
 			return {
 				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?'
-				Object.keys(data).forEach(item=>{
-					this.info = this.info + item + '=' + encodeURIComponent(data[item]) + '&'
-				})
-			}
-			location.href =  this.info
+		},
+		onLoad(opthios) {
+			if(opthios.viewUrl){
+				let data = JSON.parse(decodeURIComponent(opthios.viewUrl))
+				// 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>
 
 <style>
 
-</style>
+</style>