瀏覽代碼

支付结果静态页面

htc 2 天之前
父節點
當前提交
392a84f52a
共有 3 個文件被更改,包括 93 次插入1 次删除
  1. 6 0
      pages.json
  2. 81 0
      pagesPublish/payResult.vue
  3. 6 1
      pagesPublish/rechargeCenter.vue

+ 6 - 0
pages.json

@@ -100,6 +100,12 @@
 					"style": {
 						"navigationStyle": "custom"
 					}
+				},
+				{
+					"path": "payResult",
+					"style": {
+						"navigationStyle": "custom"
+					}
 				}
 			]
 		}

+ 81 - 0
pagesPublish/payResult.vue

@@ -0,0 +1,81 @@
+<template>
+	<view class="default_page adffcac" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
+		<cus-header title='支付结果' bgColor="transparent"></cus-header>
+		<image :src="imgBase+'pay_success.png'"></image>
+		<div class="title">支付成功</div>
+		<div class="tip">可以在个人中心“我的订单“中查看</div>
+		<div class="btn" @click="reviewOrder">查看订单</div>
+		<div class="btn back" @click="returnHome">返回首页</div>
+	</view>
+</template>
+
+<script>
+	export default {
+		data(){
+			return {
+				
+			}
+		},
+		methods:{
+			reviewOrder(){
+				
+			},
+			returnHome(){
+				uni.reLaunch({
+					url:'/pages/home'
+				})
+			},
+		}
+	}
+</script>
+
+<style scoped lang="scss">
+	.default_page{
+		padding: 0 120rpx;
+		
+		image{
+			width: 226rpx;
+			height: 142rpx;
+			margin-top: 196rpx;
+		}
+		
+		.title{
+			font-family: PingFangSC, PingFang SC;
+			font-weight: 600;
+			font-size: 40rpx;
+			color: #002846;
+			line-height: 51rpx;
+			margin-top: 42rpx;
+		}
+		.tip{
+			font-family: PingFangSC, PingFang SC;
+			font-weight: 400;
+			font-size: 28rpx;
+			color: #95A5B1;
+			line-height: 51rpx;
+			margin-top: 8rpx;
+		}
+		
+		.btn{
+			width: 100%;
+			height: 88rpx;
+			border: 1rpx solid #904A87;
+			background: #904A87;
+			border-radius: 44rpx;
+			font-family: PingFang-SC, PingFang-SC;
+			font-weight: bold;
+			font-size: 32rpx;
+			color: #FFFFFF;
+			line-height: 88rpx;
+			text-align: center;
+			letter-spacing: 2rpx;
+			margin-top: 197rpx;
+			&.back{
+				background: #FFFFFF;
+				border: 1rpx solid #E0E4E7;
+				color: #667E90;
+				margin-top: 40rpx;
+			}
+		}
+	}
+</style>

+ 6 - 1
pagesPublish/rechargeCenter.vue

@@ -45,7 +45,7 @@
 					<div class="box-btn-left-text">实付</div>
 					<div class="box-btn-left-money adfac"><span>¥</span>{{590}}<span style="margin-left: 9rpx;">/{{10}}次</span></div>
 				</div>
-				<div class="box-btn-right">确认协议并购买</div>
+				<div class="box-btn-right" @click="confirmBuy">确认协议并购买</div>
 			</div>
 		</div>
 	</view>
@@ -79,6 +79,11 @@
 			},
 			valueChange(val){
 				this.otherTimes = val;
+			},
+			confirmBuy(){
+				uni.navigateTo({
+					url:'/pagesPublish/payResult'
+				})
 			}
 		}
 	}