Showing
2 changed files
with
13 additions
and
7 deletions
| 1 | 西园寺预约 | 1 | 西园寺预约 |
| 2 | 2 | ||
| 3 | 库:git@gitlab.kmlab.com:hooke1234/xysBooking.git | 3 | 库:git@gitlab.kmlab.com:hooke1234/xysBooking.git |
| 4 | -编译上传:npm run build_tar => npm run scp-jcedu 进入服务器 /home/www/f/ 执行 tar -xzvf dist.tar.gz && rm -rf dist.tar.gz | 4 | +编译上传:npm run build_tar && npm run scp-jcedu 进入服务器 /home/www/f/ 执行 tar -xzvf dist.tar.gz && rm -rf dist.tar.gz |
| 5 | +本地删除压缩包 rm -rf dist.tar.gz | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-26 10:24:45 | 2 | * @Date: 2024-01-26 10:24:45 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-29 13:44:24 | 4 | + * @LastEditTime: 2024-01-29 14:50:15 |
| 5 | * @FilePath: /xysBooking/src/views/callback.vue | 5 | * @FilePath: /xysBooking/src/views/callback.vue |
| 6 | * @Description: 反馈页面 | 6 | * @Description: 反馈页面 |
| 7 | --> | 7 | --> |
| ... | @@ -14,14 +14,14 @@ | ... | @@ -14,14 +14,14 @@ |
| 14 | </div> | 14 | </div> |
| 15 | <div v-else class="text-prompts"> | 15 | <div v-else class="text-prompts"> |
| 16 | <img src="https://cdn.ipadbiz.cn/xys/booking/%E6%88%90%E5%8A%9F@2x.png"> | 16 | <img src="https://cdn.ipadbiz.cn/xys/booking/%E6%88%90%E5%8A%9F@2x.png"> |
| 17 | - <div class="text">支付完成</div> | 17 | + <!-- <div class="text">支付完成</div> --> |
| 18 | </div> | 18 | </div> |
| 19 | <div class="appointment-information"> | 19 | <div class="appointment-information"> |
| 20 | <div class="number-of-visitors">参观人数:<span>{{ billInfo?.total_qty }} 人</span></div> | 20 | <div class="number-of-visitors">参观人数:<span>{{ billInfo?.total_qty }} 人</span></div> |
| 21 | <div class="visit-time">参访时间:<span>{{ billInfo?.datetime }}</span></div> | 21 | <div class="visit-time">参访时间:<span>{{ billInfo?.datetime }}</span></div> |
| 22 | <div class="payment-amount">支付金额:<span>¥ {{ billInfo?.total_amt }}</span></div> | 22 | <div class="payment-amount">支付金额:<span>¥ {{ billInfo?.total_amt }}</span></div> |
| 23 | </div> | 23 | </div> |
| 24 | - <div style="border-bottom: 1px dashed #A67939; padding: 0.5rem; display: flex; justify-content: center;"> | 24 | + <div style="padding: 0.5rem; display: flex; justify-content: center; margin-top: 1rem;"> |
| 25 | <van-button color="#A67939" size="small" @click="returnMerchant()">返回商户</van-button> | 25 | <van-button color="#A67939" size="small" @click="returnMerchant()">返回商户</van-button> |
| 26 | </div> | 26 | </div> |
| 27 | <!-- <div class="appointment-notice"> | 27 | <!-- <div class="appointment-notice"> |
| ... | @@ -59,7 +59,7 @@ const PAY_STATUS = { | ... | @@ -59,7 +59,7 @@ const PAY_STATUS = { |
| 59 | FAIL: '1', | 59 | FAIL: '1', |
| 60 | UNKNOWN: '2', | 60 | UNKNOWN: '2', |
| 61 | } | 61 | } |
| 62 | -const pay_status = ref('1'); | 62 | +const pay_status = ref('0'); // 默认支付完成 |
| 63 | 63 | ||
| 64 | //获取url中返回参数 | 64 | //获取url中返回参数 |
| 65 | function getQueryString(name) { | 65 | function getQueryString(name) { |
| ... | @@ -75,11 +75,13 @@ function getQueryString(name) { | ... | @@ -75,11 +75,13 @@ function getQueryString(name) { |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | -const out_trade_no = getQueryString('out_trade_no'); | 78 | +// const out_trade_no = getQueryString('out_trade_no'); |
| 79 | +// const out_trade_no = '110286610147000542401290012506'; | ||
| 80 | +const out_trade_no = $route.query.out_trade_no; | ||
| 79 | 81 | ||
| 80 | const callback = async () => { | 82 | const callback = async () => { |
| 81 | // 获取订单详情 | 83 | // 获取订单详情 |
| 82 | - const { code:code_pay, data:data_pay } = await onAuthBillInfoAPI({ pay_id: out_trade_no }); | 84 | + const { code:code_pay, data:data_pay } = await onAuthBillInfoAPI({ order_id: out_trade_no }); |
| 83 | if (code_pay) { | 85 | if (code_pay) { |
| 84 | // | 86 | // |
| 85 | data_pay.datetime = data_pay && formatDatetime(data_pay); | 87 | data_pay.datetime = data_pay && formatDatetime(data_pay); |
| ... | @@ -110,12 +112,15 @@ onMounted(async () => { | ... | @@ -110,12 +112,15 @@ onMounted(async () => { |
| 110 | .callback-page { | 112 | .callback-page { |
| 111 | position: relative; | 113 | position: relative; |
| 112 | background-color: #FFF; | 114 | background-color: #FFF; |
| 115 | + height: 600px; | ||
| 116 | + border-bottom: 1px dashed #A67939; | ||
| 113 | .text-prompts { | 117 | .text-prompts { |
| 114 | display: flex; | 118 | display: flex; |
| 115 | align-items: center; | 119 | align-items: center; |
| 116 | justify-content: center; | 120 | justify-content: center; |
| 117 | height: 20vh; | 121 | height: 20vh; |
| 118 | flex-direction: column; | 122 | flex-direction: column; |
| 123 | + padding-top: 1rem; | ||
| 119 | img { | 124 | img { |
| 120 | width: 30vw; | 125 | width: 30vw; |
| 121 | } | 126 | } | ... | ... |
-
Please register or login to post a comment