From 7c07a4ec7fb21f7ddfd1cab370815bef26f1d27f Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Mon, 11 Dec 2023 09:16:18 +0800 Subject: [PATCH] 支付成功页面的优化 --- pages/payment/pay_success/pay_success.js | 29 +++++++++++++++++++++++++++++ pages/payment/pay_success/pay_success.wxml | 70 ++++++++++++++++++++++++++++++++++++++++------------------------------ pages/payment/pay_success/pay_success.wxss | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 122 insertions(+), 33 deletions(-) diff --git a/pages/payment/pay_success/pay_success.js b/pages/payment/pay_success/pay_success.js index 17cc053..9a120e8 100644 --- a/pages/payment/pay_success/pay_success.js +++ b/pages/payment/pay_success/pay_success.js @@ -30,6 +30,29 @@ Page({ }); var type=options.type,order_sn=options.order_sn; var th=this,order=null; + + getApp().request.promiseGet("/api/weshop/ad/page?pid=1211&store_id=" + getApp().globalData.setting.stoid, { + data: { + enabled: 1 + } + }).then(res => { + if (res.data.code == 0 && res.data.data.pageData && res.data.data.pageData.length > 0) { + var a = res.data.data.pageData; + var arr = new Array(); + for (var i = 0; i < a.length; i++) { + var tt = { + 'ad_code': getApp().globalData.setting.imghost + a[i].ad_code, + 'media_link': '', + 'ad_weapplink': a[i].ad_weapplink + }; + arr.push(tt); + } + if (arr.length > 0) th.setData({ + banner: arr, + }); + } + }) + // 卡项订单 @@ -117,4 +140,10 @@ Page({ var url= '/pages/index/index/index'; getApp().goto(url) }, + + gotoshequn:function(e){ + getApp().goto(e.currentTarget.dataset.url); + }, + + }) \ No newline at end of file diff --git a/pages/payment/pay_success/pay_success.wxml b/pages/payment/pay_success/pay_success.wxml index 9e123c4..15acf65 100644 --- a/pages/payment/pay_success/pay_success.wxml +++ b/pages/payment/pay_success/pay_success.wxml @@ -12,6 +12,39 @@ + + + + + + + + + 订单详情 + + + + + 立即预约 + + + + + + + + 回到首页 + + + 查看订单 + + + + + + + + @@ -78,6 +111,8 @@ + + @@ -107,35 +142,10 @@ - - - - - - - - 订单详情 - - - - - 立即预约 - - - - - - - 查看订单 - - - - - - - 回到首页 - - - + + + + + \ No newline at end of file diff --git a/pages/payment/pay_success/pay_success.wxss b/pages/payment/pay_success/pay_success.wxss index 3a996eb..afc16f0 100644 --- a/pages/payment/pay_success/pay_success.wxss +++ b/pages/payment/pay_success/pay_success.wxss @@ -64,11 +64,12 @@ page { .btn { box-sizing: border-box; - height: 80rpx; - line-height: 80rpx; + height: 75rpx; + line-height: 75rpx; /* padding: 10rpx; */ text-align: center; - border-radius: 40rpx; + border-radius: 20rpx; + padding: 0 40rpx; } .pay_home { @@ -94,3 +95,52 @@ page { .border { border: 2rpx solid #ccc; } + + +.shequn{ + width: 94%; + margin:0 23rpx 23rpx 23rpx; + min-height: 260rpx; + background: white; + border-radius: 15rpx; + display: flex; +} + +.shequnleft{ + display: block; + width: 60%; + margin: 30rpx; +} +.shequnleft .one1{ + display: flex; + width: 100%; + height: 110rpx; + line-height: 110rpx; + margin-top: -15rpx; + font-size: 30rpx; + color: #313131; + font-weight: bold; +} +.shequnleft .one2{ + display: flex; + width: 100%; + color: #f39700; + font-size: 24rpx; +} +.shequnleft .one3{ + display: flex; + width: 100%; + color: #313131; + font-size: 24rpx; +} +.shequnright{ + display: flex; + width: 40%; + justify-content: center; + align-items: center; +} + +.shequnright image{ + width: 150rpx; + height: 150rpx; +} -- libgit2 0.21.4