|
@@ -8,13 +8,13 @@
|
|
|
<view class="title">充值金额</view>
|
|
|
<view class="row">
|
|
|
<text class="tit">¥</text>
|
|
|
- <input class="input" type="number" v-model="money" placeholder="请输入充值金额"
|
|
|
- placeholder-class="placeholder" />
|
|
|
+ <input class="input" type="number" v-model="money" placeholder="请选择充值金额"
|
|
|
+ placeholder-class="placeholder" disabled/>
|
|
|
</view>
|
|
|
<view class="xian"></view>
|
|
|
<view class="moneyBtn-box">
|
|
|
<view class="moneyBtn" v-for="(item, index) in moneyList" :class="{ current: choose == index }"
|
|
|
- :key="index" @click="changemoney(item, index)">{{ item }}元</view>
|
|
|
+ :key="index" @click="changemoney(item.price, index,item.id)">{{ item.price }}元</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -122,7 +122,8 @@
|
|
|
// #endif
|
|
|
nowmoney: 0,
|
|
|
card: '',
|
|
|
- pwd: ''
|
|
|
+ pwd: '',
|
|
|
+ chooseId: '',
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -146,9 +147,10 @@
|
|
|
data
|
|
|
}) => {
|
|
|
console.log(data, 'getRechargeList')
|
|
|
- data.recharge_quota.forEach(item => {
|
|
|
- this.moneyList.push(item.price * 1)
|
|
|
- })
|
|
|
+ // data.recharge_quota.forEach(item => {
|
|
|
+ // this.moneyList.push(item.price * 1)
|
|
|
+ // })
|
|
|
+ this.moneyList = data.recharge_quota
|
|
|
})
|
|
|
},
|
|
|
// 跳转
|
|
@@ -175,7 +177,8 @@
|
|
|
}
|
|
|
rechargeWechat({
|
|
|
price: this.money,
|
|
|
- from: this.type
|
|
|
+ from: this.type,
|
|
|
+ rechar_id: this.chooseId
|
|
|
})
|
|
|
.then(e => {
|
|
|
console.log(e);
|
|
@@ -297,9 +300,10 @@
|
|
|
navItem.loadingType = 'more';
|
|
|
}, 600);
|
|
|
},
|
|
|
- changemoney(item, index) {
|
|
|
+ changemoney(item, index,id) {
|
|
|
this.choose = index;
|
|
|
this.money = item;
|
|
|
+ this.chooseId = id
|
|
|
}
|
|
|
}
|
|
|
};
|