|
|
@@ -1,7 +1,7 @@ |
|
|
|
<!-- |
|
|
|
* @Date: 2022-03-29 16:57:58 |
|
|
|
* @LastEditors: JinxChen |
|
|
|
* @LastEditTime: 2023-02-26 15:57:18 |
|
|
|
* @LastEditTime: 2023-02-27 09:53:05 |
|
|
|
* @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue |
|
|
|
* @description: TODO 小台风充值h5 |
|
|
|
--> |
|
|
@@ -75,25 +75,62 @@ |
|
|
|
<!-- 底部支付类型选择 --> |
|
|
|
<div class="pay-radios"> |
|
|
|
<div class="radios-con"> |
|
|
|
<van-radio-group v-model="radio" direction="horizontal" @change="onRaidoChange"> |
|
|
|
<!-- <van-radio-group v-model="radio" direction="horizontal" @change="onRaidoChange"> |
|
|
|
<van-radio name="1"> |
|
|
|
<template #default> |
|
|
|
<span>微信支付</span> |
|
|
|
<!-- <img src="../../assets/wx_pay_icon.png"/> --> |
|
|
|
<img src="../../assets/wx_pay_icon.png"/> |
|
|
|
</template> |
|
|
|
</van-radio> |
|
|
|
<van-radio name="2"> |
|
|
|
<template #default> |
|
|
|
<span>支付宝</span> |
|
|
|
<!-- <img src="../../assets/alipay.png"/> --> |
|
|
|
<img src="../../assets/alipay.png"/> |
|
|
|
</template> |
|
|
|
</van-radio> |
|
|
|
<van-radio name="3"> |
|
|
|
<template #default> |
|
|
|
<span>花呗</span> |
|
|
|
<!-- <img src="../../assets/antpay.png"/> --> |
|
|
|
<img src="../../assets/antpay.png"/> |
|
|
|
</template> |
|
|
|
</van-radio> |
|
|
|
</van-radio-group> --> |
|
|
|
<van-radio-group v-model="radio" @change="onRaidoChange"> |
|
|
|
<van-cell-group border > |
|
|
|
<van-cell clickable @click="radio = '1'" center> |
|
|
|
<template #default> |
|
|
|
<div class="van-cell-text"> |
|
|
|
<img src="../../assets/wx-pay.png" alt=""> |
|
|
|
<span class="custom-title">微信支付</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #right-icon> |
|
|
|
<van-radio name="1" /> |
|
|
|
</template> |
|
|
|
</van-cell> |
|
|
|
<van-cell clickable @click="radio = '2'"> |
|
|
|
<template #default> |
|
|
|
<div class="van-cell-text"> |
|
|
|
<img src="../../assets/alipay.png"/> |
|
|
|
<span class="custom-title">支付宝支付</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #right-icon> |
|
|
|
<van-radio name="2" /> |
|
|
|
</template> |
|
|
|
</van-cell> |
|
|
|
<van-cell clickable @click="radio = '3'" > |
|
|
|
<template #default > |
|
|
|
<div class="van-cell-text"> |
|
|
|
<img src="../../assets/antpay.png"/> |
|
|
|
<span class="custom-title">花呗支付</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #right-icon> |
|
|
|
<van-radio name="3" /> |
|
|
|
</template> |
|
|
|
</van-cell> |
|
|
|
</van-cell-group> |
|
|
|
</van-radio-group> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -308,7 +345,8 @@ export default { |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.packageIssue = 1; |
|
|
|
this.wxPay(data); |
|
|
|
// todo 暂时取消开放微信支付 |
|
|
|
//this.wxPay(data); |
|
|
|
console.log("openid为空"); |
|
|
|
} |
|
|
|
} |
|
|
@@ -381,14 +419,17 @@ export default { |
|
|
|
fail: err => { |
|
|
|
console.log("支付出错了::", err); |
|
|
|
that.$dialog.confirm({ |
|
|
|
title: "支付失败", |
|
|
|
message: "出错了,请您重新进入" |
|
|
|
title: "温馨提示", |
|
|
|
message: "出错了,请您重新进入", |
|
|
|
showCancelButton: false |
|
|
|
}); |
|
|
|
}, |
|
|
|
cancel: function(err) { |
|
|
|
// 用户取消支付 |
|
|
|
that.$dialog.confirm({ |
|
|
|
message: "您取消了支付" |
|
|
|
title: "温馨提示", |
|
|
|
message: "您取消了支付", |
|
|
|
showCancelButton: false |
|
|
|
}); |
|
|
|
console.log("用户取消了支付::", err); |
|
|
|
} |
|
|
@@ -485,13 +526,14 @@ export default { |
|
|
|
background-color: white; |
|
|
|
height: 100vh; |
|
|
|
.topup-container { |
|
|
|
position: relative; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
flex-direction: column; |
|
|
|
background-color: white; |
|
|
|
overflow: scroll; |
|
|
|
height: calc(100vh - 4rem); |
|
|
|
/* height: calc(100vh - 4rem); */ |
|
|
|
.main { |
|
|
|
padding: 0 10px; |
|
|
|
display: flex; |
|
|
@@ -646,14 +688,15 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
.pay-radios { |
|
|
|
position: absolute; |
|
|
|
bottom: 0; |
|
|
|
position: relative; |
|
|
|
top: 0; |
|
|
|
width: 100%; |
|
|
|
/* background-color: red; */ |
|
|
|
/* padding: 0 15px; */ |
|
|
|
.radios-con { |
|
|
|
padding: 20px 10px; |
|
|
|
@include center(); |
|
|
|
/* @include center(); */ |
|
|
|
align-items: center; |
|
|
|
font-size: 18px; |
|
|
|
box-shadow: rgba(14, 30, 37, 0.12) 0 3px 5px 0, |
|
|
|
rgba(14, 30, 37, 0.32) 0 2px 16px 0; |
|
|
@@ -661,6 +704,14 @@ export default { |
|
|
|
height: 35px; |
|
|
|
width: auto; |
|
|
|
} |
|
|
|
.van-cell-text { |
|
|
|
display: flex; |
|
|
|
justify-content: flex-start; |
|
|
|
align-items: center; |
|
|
|
span { |
|
|
|
padding: 0 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|