chengziding 1 년 전
부모
커밋
3a15b3a17e
4개의 변경된 파일75개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 0
      pages.json
  2. 6 1
      pages/payCentre.vue
  3. 62 0
      pages/paySuccess.vue
  4. BIN
      static/login/logo1.png

+ 7 - 0
pages.json

@@ -15,6 +15,13 @@
 				"navigationStyle": "custom"
 			}
 		},
+		{
+			"path": "pages/paySuccess",
+			"style": {
+				"navigationBarTitleText": "支付成功",
+				"navigationStyle": "custom"
+			}
+		},
 		// {
 		//   "path": "pages/index",
 		//   "style": {

+ 6 - 1
pages/payCentre.vue

@@ -15,7 +15,12 @@
 		},
 		onLoad(options) {
 			if(options.orderNo){
-				this.goto(options.orderNo)
+				// this.$nextTick(()=>{
+				// 	this.goto(options.orderNo)
+				// })
+				setTimeout(()=>{
+					this.goto(options.orderNo)
+				},100)
 			}
 		},
 		methods: {

+ 62 - 0
pages/paySuccess.vue

@@ -0,0 +1,62 @@
+<template>
+	<view class="Body">
+		<image src="/static/login/logo1.png" mode=""></image>
+		<button type="primary" @click="goBack()">返回宜格服务APP</button>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				orderNo:""
+			}
+		},
+		onLoad(options) {
+			if(options.orderNo){
+				this.orderNo=options.orderNo
+			}else{
+				uni.showToast({
+					icon:"none",
+					title: "参数缺失!",
+					duration: 2000
+				});
+			}
+		},
+		methods: {
+			goBack() {
+				// window.location.href='sandh5payres://ygfuJumpScheme'
+				// this.isIos = uni.getSystemInfoSync().platform //判断是否安卓、ios
+				// if (this.isIos == 'android') {
+				// 	let ifr = document.createElement("iframe");
+				// 	ifr.src =
+				// 	"ygfwUrlSchemes://"; // 这里的hbuilder在manifest.json中配置->“App常用其它设置” -> “Android设置” -> “UrlSchemes” 项中进行设置
+				// 	ifr.style.display = "none";
+				// 	document.body.appendChild(ifr);
+				// } else {
+				// 	// window.location = "https://apps.apple.com/cn/app/idxxxxxxx" //你的苹果应用app链接 
+				// }
+				window.location ="ygfwUrlSchemes://&orderNo="+this.orderNo;
+			},
+			
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.Body {
+		padding-top: 300rpx;
+		text-align: center;
+
+		image {
+			width: 200rpx;
+			height: 200rpx;
+		}
+
+		button {
+			width: 80%;
+			margin: 200rpx auto 0;
+			// background: rgb(107,228,247);
+		}
+	}
+</style>

BIN
static/login/logo1.png