|
|
@ -20,9 +20,13 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-if="form.money" class="tip"> |
|
|
|
折后共计{{ form.money * 0.99 }}元 |
|
|
|
折后共计{{ |
|
|
|
form.money * |
|
|
|
(configList.preferential ? |
|
|
|
configList.preferential.keyCentent |
|
|
|
: 1) |
|
|
|
}}元 |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="select-money"> |
|
|
|
<view v-for="(item, index) in rechargeList" class="money-item" :key="index"> |
|
|
|
<view @click="selectMoney(item.price,index)" :class="{ 'active-money' : currentIndex == index }" |
|
|
@ -49,13 +53,16 @@ |
|
|
|
<script setup> |
|
|
|
import PrivacyAgreementPoup from "../../components/PrivacyAgreementPoup/PrivacyAgreementPoup.vue"; |
|
|
|
import showLogin from "../../components/showLogin/showLogin.vue"; |
|
|
|
|
|
|
|
import { mapState } from 'vuex' |
|
|
|
export default { |
|
|
|
name: 'Payment', |
|
|
|
component: { |
|
|
|
PrivacyAgreementPoup, |
|
|
|
showLogin |
|
|
|
}, |
|
|
|
computed : { |
|
|
|
...mapState(['configList']), |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
form: { |
|
|
@ -88,7 +95,7 @@ |
|
|
|
this.getRechargePage() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
// 用户选择加油金额 |
|
|
|
selectMoney(money, item) { |
|
|
|
this.form.money = money |
|
|
|