diff --git a/components/QuickRechargePanel.vue b/components/QuickRechargePanel.vue
new file mode 100644
index 0000000..4895049
--- /dev/null
+++ b/components/QuickRechargePanel.vue
@@ -0,0 +1,153 @@
+
+
+ 请选择充值金额
+
+
+
+ {{ formatAmount(amount) }}
+
+
+
+
+
+
+
+
+
diff --git a/components/area-product-list/special-area-wrapper.vue b/components/area-product-list/special-area-wrapper.vue
index 8a490ef..5dfbb55 100644
--- a/components/area-product-list/special-area-wrapper.vue
+++ b/components/area-product-list/special-area-wrapper.vue
@@ -104,8 +104,6 @@ export default {
},
created() {
const userInfo = uni.getStorageSync('userInfo') || this.userInfo
- console.log(userInfo.memberSign, '...userInfo')
- console.log(MEMBER_SIGN.ZERO_LEVEL, '...MEMBER_SIGN')
if (userInfo.memberSign == MEMBER_SIGN.ZERO_LEVEL) {
this.upgrade.name = '会员专区'
}
diff --git a/pages/pay/index.vue b/pages/pay/index.vue
index ec15c15..60889ec 100644
--- a/pages/pay/index.vue
+++ b/pages/pay/index.vue
@@ -1,11 +1,21 @@
-
- {{ '充值金额' }}
-
+ 充值金额
+
+
{{ '待支付金额' }}
@@ -686,6 +696,7 @@ import * as api from '@/config/pay.js'
import QRCode from 'qrcodejs2'
import successDialog from '@/components/successDialog.vue'
import * as act from '@/config/activity.js'
+import QuickRechargePanel from '@/components/QuickRechargePanel.vue'
import {
PAY_TYPE,
PAY_CHANEL,
@@ -702,6 +713,7 @@ var payStatus
export default {
components: {
successDialog,
+ QuickRechargePanel,
},
data() {
return {
@@ -750,6 +762,8 @@ export default {
UPGRADE_AREA,
REPURCHASE_AREA,
REISSUE_AREA,
+ quickAmounts: [399, 1995, 3990, 10000, 30000, 50000], // 快速充值金额选项
+ isQuickSelected: false, // 标记是否是快速选择触发的金额变化
}
},
computed: {
@@ -760,6 +774,16 @@ export default {
return false
},
},
+ watch: {
+ rechargeAmount(newVal, oldVal) {
+ // 当充值金额变化时,如果不是快速选择触发的,则清空快速选择状态
+ if (!this.isQuickSelected && newVal && this.$refs.quickRechargePanel) {
+ this.$refs.quickRechargePanel.clear()
+ }
+ // 重置标志位
+ this.isQuickSelected = false
+ },
+ },
async onLoad(options) {
this.paramsPost = JSON.parse(options.paramsPost)
// 获取支付配置
@@ -817,6 +841,10 @@ export default {
// this.getBankList()
},
methods: {
+ onAmountSelected(data) {
+ this.isQuickSelected = true // 标记这是快速选择触发的
+ this.rechargeAmount = data.amount.toString()
+ },
toUnBind() {
api
.unBind({
@@ -1481,8 +1509,7 @@ export default {
}
.contxt {
- margin-top: -220rpx;
- padding: 0 26rpx;
+ padding: 40rpx 26rpx 0;
padding-bottom: 300rpx;
}
@@ -1746,4 +1773,9 @@ export default {
justify-content: space-between;
padding-bottom: 15px;
}
+.recharge-input {
+ ::v-deep .uni-input-placeholder {
+ font-size: 48rpx;
+ }
+}