|
@@ -18,11 +18,11 @@
|
|
|
:key="idx"
|
|
|
>
|
|
|
<view class="recharge-val flex align_center justify_center">
|
|
|
- <text>¥{{ opt.amount }}</text>
|
|
|
+ <text>¥{{ opt.rechargeAmount }}</text>
|
|
|
</view>
|
|
|
<view class="recharge-option-content flex_1">
|
|
|
- <view><text class="gift-text">充值{{ opt.amount }}元送{{ opt.gift }}元抵扣</text></view>
|
|
|
- <view class="gift-remark">{{opt.remark}}</view>
|
|
|
+ <view><text class="gift-text">充值{{ opt.rechargeAmount }}元送{{ opt.giveAmount }}元抵扣</text></view>
|
|
|
+ <view class="gift-remark">{{opt.remarks}}</view>
|
|
|
</view>
|
|
|
<view class="recharge-btn flex align_center justify_center" @tap="handleRecharge(opt)">
|
|
|
<text>去充值</text>
|
|
@@ -37,6 +37,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import {rechargeDetail,rechargeList} from '../../api/recharge.js'
|
|
|
import {
|
|
|
mapState,
|
|
|
mapMutations,
|
|
@@ -53,19 +54,7 @@ export default {
|
|
|
{ label: '充值余额', value: '10000.00' },
|
|
|
{ label: '抵扣余额', value: '1000.00' }
|
|
|
],
|
|
|
- rechargeOptions: [
|
|
|
- { amount: 1000, gift: 50, remark:'抵扣仅限机油产品' },
|
|
|
- { amount: 1500, gift: 75, remark:'抵扣仅限刹车片产品' },
|
|
|
- { amount: 2000, gift: 100, remark:'抵扣仅限轮胎产品' },
|
|
|
- { amount: 3000, gift: 150, remark:'抵扣仅限滤清器产品' },
|
|
|
- { amount: 5000, gift: 250, remark:'抵扣仅限滤清器产品' },
|
|
|
- { amount: 10000, gift: 500, remark:'抵扣仅限滤清器产品' },
|
|
|
- { amount: 15000, gift: 750, remark:'抵扣仅限滤清器产品' },
|
|
|
- { amount: 30000, gift: 1100, remark:'抵扣仅限滤清器产品' },
|
|
|
- { amount: 50000, gift: 2500, remark:'抵扣仅限滤清器产品' },
|
|
|
- { amount: 100000, gift: 5000, remark:'抵扣仅限滤清器产品' },
|
|
|
- { amount: 150000, gift: 7500, remark:'抵扣仅限滤清器产品' }
|
|
|
- ],
|
|
|
+ rechargeOptions: [],
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -93,7 +82,15 @@ export default {
|
|
|
return this.$store.state.vuex_tempOrderData
|
|
|
}
|
|
|
},
|
|
|
+ onShow() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ getList(){
|
|
|
+ rechargeList({dealerSn:this.shelfInfo.dealerSn}).then(res => {
|
|
|
+ this.rechargeOptions = res.data||[]
|
|
|
+ })
|
|
|
+ },
|
|
|
// 消费记录
|
|
|
viewRecord(item){
|
|
|
uni.navigateTo({
|