添加充值页面
This commit is contained in:
@ -89,6 +89,38 @@
|
||||
</view>
|
||||
</view>
|
||||
</Popup>
|
||||
|
||||
<!-- 会员卡选择弹窗 -->
|
||||
<Popup :show="balancePopup" :width='750' :padding="0" type="bottom" backgroundColor="#fff" radius="32rpx 32rpx 0 0">
|
||||
<view class="ww100 box-s-b pop-improt typeof pr">
|
||||
<image style="width: 64rpx;height: 64rpx;position: absolute; top: 26rpx;right: 30rpx;" src="@/static/icon/close2.png" mode="" @click="balancePopup = false"></image>
|
||||
|
||||
<view class="d-c-c pt44">
|
||||
<text class="f34 fb">会员卡选择</text>
|
||||
</view>
|
||||
|
||||
<view class="bg-white card" @click="selectCard">
|
||||
<view class="card-item">
|
||||
<view class="d-f a-i-c">
|
||||
<view class="card-title">白金会员卡</view>
|
||||
<view class="d-f a-i-c">
|
||||
<view class="discount">享</view>
|
||||
<view class="sale">
|
||||
<text>9.5</text>
|
||||
<text>折</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="d-f a-i-c">
|
||||
<view class="card-balance">¥212.00</view>
|
||||
<view class="icon-box d-c-c card-checkout"><span class="icon iconfont icon-xuanze"></span></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-btn" @click="confirmCard">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
</Popup>
|
||||
|
||||
<navbar title="确认订单"></navbar>
|
||||
|
||||
@ -179,9 +211,15 @@
|
||||
<view :class="payType == 'balance' ? 'item active' : 'item'" @tap="payTypeFunc('balance')">
|
||||
<view class="d-s-c">
|
||||
<view class="icon-box d-c-c mr10"><span class="icon iconfont icon-yue"></span></view>
|
||||
<text class="key">余额支付:(剩余:{{balance}})</text>
|
||||
<text class="key">平台余额</text>
|
||||
</view>
|
||||
<view class="icon-box d-c-c"><span class="icon iconfont icon-xuanze"></span></view>
|
||||
<view class="d-f a-i-c">
|
||||
<view class="mr10 dis" v-if="balance > 0">
|
||||
<!-- <text class="key">余额支付:(剩余:{{balance}})</text> -->
|
||||
铂金会员卡 <text style="color: #FF5951;">9.3</text>折
|
||||
</view>
|
||||
<view class="icon-box d-c-c"><span class="icon iconfont icon-xuanze"></span></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -246,7 +284,9 @@
|
||||
order: {},
|
||||
result: '',
|
||||
loadding: true,
|
||||
_submitting: false
|
||||
_submitting: false,
|
||||
balancePopup: false,
|
||||
balance: 0
|
||||
};
|
||||
},
|
||||
|
||||
@ -286,17 +326,17 @@
|
||||
// }
|
||||
|
||||
// 获取余额
|
||||
self._post(
|
||||
'user.user/userMoney',
|
||||
{
|
||||
app_id: self.getAppId(),
|
||||
},
|
||||
function (res) {
|
||||
if (res.code) {
|
||||
self.balance = res.data.balance
|
||||
}
|
||||
}
|
||||
)
|
||||
// self._post(
|
||||
// 'user.user/userMoney',
|
||||
// {
|
||||
// app_id: self.getAppId(),
|
||||
// },
|
||||
// function (res) {
|
||||
// if (res.code) {
|
||||
// self.balance = res.data.balance
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
|
||||
// 获取场馆详情
|
||||
self._post(
|
||||
@ -401,6 +441,7 @@
|
||||
this.billPopup = true;
|
||||
},
|
||||
|
||||
// 关闭消费明细
|
||||
closeBillPopup() {
|
||||
this.billPopup = false;
|
||||
this.showPrice = true;
|
||||
@ -409,7 +450,11 @@
|
||||
// 选择支付方式
|
||||
payTypeFunc(n) {
|
||||
this.payType = n;
|
||||
this.countPrice()
|
||||
if (n == 'balance') {
|
||||
this.balancePopup = true;
|
||||
} else {
|
||||
this.balancePopup = false;
|
||||
}
|
||||
},
|
||||
|
||||
// 去支付
|
||||
@ -566,6 +611,16 @@
|
||||
uni.navigateBack({delta: 1})
|
||||
}, 500);
|
||||
}
|
||||
},
|
||||
|
||||
// 选择会员卡
|
||||
selectCard() {
|
||||
this.balance = 200; // 模拟选择会员卡后的余额
|
||||
},
|
||||
|
||||
// 确认选择
|
||||
confirmCard() {
|
||||
this.balancePopup = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -826,4 +881,86 @@
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dis {
|
||||
font-size: 28rpx;
|
||||
color: #303133;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin-top: 28rpx;
|
||||
padding-bottom: 64rpx;
|
||||
|
||||
.card-item {
|
||||
width: 690rpx;
|
||||
height: 104rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16rpx;
|
||||
border: 2rpx solid #F4F4F4;
|
||||
margin: 0 30rpx 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
.card-title {
|
||||
font-size: 30rpx;
|
||||
color: #121212;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
|
||||
.discount {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
line-height: 44rpx;
|
||||
text-align: center;
|
||||
border-radius: 100%;
|
||||
background: #FF5951;
|
||||
color: #fff;
|
||||
font-size: 30rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.sale {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.card-balance {
|
||||
font-size: 30rpx;
|
||||
color: #303133;
|
||||
line-height: 42rpx;
|
||||
margin-right: 28rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
border: 2rpx solid #FF5951;
|
||||
background: #FFF4F4;
|
||||
|
||||
.card-checkout {
|
||||
.iconfont{
|
||||
color: #365A9A;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-btn {
|
||||
width: 630rpx;
|
||||
height: 90rpx;
|
||||
background: #365A9A;
|
||||
border-radius: 8rpx;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #FFFFFF;
|
||||
line-height: 90rpx;
|
||||
text-align: center;
|
||||
margin: 42rpx auto 0;
|
||||
}
|
||||
}
|
||||
|
||||
.pt44 {
|
||||
padding-top: 44rpx;;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user