|
@@ -56,6 +56,36 @@
|
|
|
<img src="../assets/个人中心-进入.png" />
|
|
|
</p>
|
|
|
</div>
|
|
|
+ <div class="pay-line"></div>
|
|
|
+
|
|
|
+ <div class="pay-type">
|
|
|
+ <p class="title">充值方式</p>
|
|
|
+ <div class="pay-type__list">
|
|
|
+ <div
|
|
|
+ :class="[
|
|
|
+ 'pay-type__item',
|
|
|
+ currentPayType == item.nickName ? 'cur' : ''
|
|
|
+ ]"
|
|
|
+ v-for="item in payType"
|
|
|
+ :key="item.name"
|
|
|
+ @click="changePayType(item.nickName)"
|
|
|
+ >
|
|
|
+ <img :src="item.img" class="icon" />
|
|
|
+ <p class="name">{{ item.name }}</p>
|
|
|
+ <img
|
|
|
+ src="../assets/is_check.png"
|
|
|
+ class="check-img"
|
|
|
+ v-show="currentPayType == item.nickName"
|
|
|
+ />
|
|
|
+ <img
|
|
|
+ src="../assets/un_check.png"
|
|
|
+ class="check-img"
|
|
|
+ v-show="currentPayType != item.nickName"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<template v-if="show_month_order_entry">
|
|
|
<div
|
|
|
class="pay-product__item pay-product__month"
|
|
@@ -284,17 +314,11 @@
|
|
|
</div>
|
|
|
<template v-if="showPayYearBanner || showSpecialPayTempalte">
|
|
|
<div class="pay-btn-box">
|
|
|
- <div v-if="showHelpPay" class="help-pay__btn" @click="toHelpPay">
|
|
|
- 请好友代充
|
|
|
- </div>
|
|
|
<div class="pay-btn" @click="pay">立即充值</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div class="pay-box__fixed">
|
|
|
- <div v-if="showHelpPay" class="help-pay__btn" @click="toHelpPay">
|
|
|
- 请好友代充
|
|
|
- </div>
|
|
|
<div class="pay-btn" @click="pay">
|
|
|
{{
|
|
|
chargePrice ? "¥" + (chargePrice - currentCoupon.price) : ""
|
|
@@ -382,9 +406,6 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="pay-btn-box">
|
|
|
- <div v-if="showHelpPay" class="help-pay__btn" @click="toHelpPay">
|
|
|
- 请好友代充
|
|
|
- </div>
|
|
|
<div class="pay-btn" @click="payInXiYue">
|
|
|
{{ xiyue_pay_btn_text }}
|
|
|
</div>
|
|
@@ -474,10 +495,19 @@ export default {
|
|
|
couponList: [],
|
|
|
availdCouponList: [],
|
|
|
popupVisible: false,
|
|
|
+ payType: [
|
|
|
+ { name: "微信", img: require("../assets/wechat.png"), nickName: "wx" },
|
|
|
+ {
|
|
|
+ name: "支付宝",
|
|
|
+ img: require("../assets/alipay.png"),
|
|
|
+ nickName: "zfb"
|
|
|
+ }
|
|
|
+ ],
|
|
|
currentCoupon: {
|
|
|
id: "",
|
|
|
price: 0
|
|
|
- }
|
|
|
+ },
|
|
|
+ currentPayType: "zfb"
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -518,6 +548,10 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ //修改支付方式
|
|
|
+ changePayType(name) {
|
|
|
+ this.currentPayType = name;
|
|
|
+ },
|
|
|
//选择优惠券
|
|
|
chooseCoupon(coupon) {
|
|
|
this.currentCoupon = coupon;
|
|
@@ -720,7 +754,7 @@ export default {
|
|
|
flex: 1;
|
|
|
margin: 0;
|
|
|
background: #ef5952;
|
|
|
- border-radius: 4px;
|
|
|
+ border-radius: 10px;
|
|
|
border: 1px solid #ef5952;
|
|
|
height: 0.76rem;
|
|
|
line-height: 0.76rem;
|