diff --git a/bundle/recharge/card.vue b/bundle/recharge/card.vue
index c3dd877..e4f45f1 100644
--- a/bundle/recharge/card.vue
+++ b/bundle/recharge/card.vue
@@ -4,56 +4,56 @@
-
+
- 白金卡
- ¥1602.00
+ 白银卡
+ ¥{{ userBalance.balance1 }}
- 9.5
+ {{ balance.discount1 }}
折
-
+
- 白金卡
- ¥1602.00
+ 黄金卡
+ ¥{{ userBalance.balance2 }}
- 9.5
+ {{ balance.discount2 }}
折
-
+
- 白金卡
- ¥1602.00
+ 铂金卡
+ ¥{{ userBalance.balance3 }}
- 9.5
+ {{ balance.discount3 }}
折
-
+
- 白金卡
- ¥1602.00
+ 钻石卡
+ ¥{{ userBalance.balance4 }}
- 9.5
+ {{ balance.discount4 }}
折
-
+
- 白金卡
- ¥1602.00
+ 至尊卡
+ ¥{{ userBalance.balance5 }}
- 9.5
+ {{ balance.discount5 }}
折
@@ -69,7 +69,37 @@
},
data() {
- return {}
+ return {
+ balance: {},
+ userBalance: {}
+ }
+ },
+
+ onLoad() {
+ let self = this;
+ uni.showLoading({
+ title: '加载中'
+ });
+ // 获取充值
+ self._post(
+ 'ground.ground/groundSetting',
+ {
+ app_id: self.getAppId(),
+ },
+ function(res) {
+ self.balance = res.data.lists.balance;
+ }
+ )
+
+ // 获取充值
+ self._post('user.index/detail', {
+ source: self.getPlatform()
+ }, function(res) {
+ console.log("🚀 ~ res:", res)
+ self.userBalance = res.data.userInfo;
+ self.loadding = false;
+ uni.hideLoading();
+ });
},
methods: {
diff --git a/bundle/recharge/recharge.vue b/bundle/recharge/recharge.vue
index 5166be2..11a44e3 100644
--- a/bundle/recharge/recharge.vue
+++ b/bundle/recharge/recharge.vue
@@ -8,87 +8,18 @@
充值金额只能消费,不能提现
-
+
-
+
- 充值1000
+ 充值{{ balance['balance' + (i + 1)] }}
-
预存享
- 9.5
- 折
-
-
-
-
-
-
-
-
- 充值1000
-
-
-
-
-
- 预存享
- 9.5
- 折
-
-
-
-
-
-
-
-
- 充值1000
-
-
-
-
-
- 预存享
- 9.5
- 折
-
-
-
-
-
-
-
-
- 充值1000
-
-
-
-
-
- 预存享
- 9.5
- 折
-
-
-
-
-
-
-
-
- 充值1000
-
-
-
-
-
- 预存享
- 9.5
+ {{ balance['discount' + (i + 1)] }}
折
@@ -104,32 +35,158 @@
确定
-
+
+
+