|
@@ -15,14 +15,14 @@
|
|
|
<view class="else">
|
|
|
<text>{{item.packageName}}班</text>
|
|
|
<text>{{item.courseAmount}}节课</text>
|
|
|
- <text>x1</text>
|
|
|
+ <!-- <text>x1</text> -->
|
|
|
</view>
|
|
|
<view class="price">
|
|
|
<view class="price-left">
|
|
|
{{(item.unitPrice*item.courseAmount).toFixed(2)}}元
|
|
|
</view>
|
|
|
<view class="order-amount">
|
|
|
- x1
|
|
|
+ <!-- x1 -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -115,30 +115,30 @@
|
|
|
</view>
|
|
|
<view class="pay-radio">
|
|
|
<view class="icon">
|
|
|
- <img src="../../../assets/img/riFill-wechat-pay-fill@1x.png" alt="">
|
|
|
+ <img src="../../../assets/img/riFill-wechat-pay-fill@1x.png" alt="">
|
|
|
</view>
|
|
|
<view class="text">
|
|
|
微信支付
|
|
|
</view>
|
|
|
<view class="radio-box">
|
|
|
- <label class="radio">
|
|
|
- <radio value="" /><text></text>
|
|
|
+ <label class="radio" @click="radioClick('weixin')">
|
|
|
+ <radio value="" :checked="payName == 'weixin'" /><text></text>
|
|
|
</label>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="pay-radio">
|
|
|
+ <!-- <view class="pay-radio">
|
|
|
<view class="icon">
|
|
|
- <img src="../../../assets/img/yunPay.png" alt="">
|
|
|
+ <img src="../../../assets/img/yunPay.png" alt="">
|
|
|
</view>
|
|
|
<view class="text">
|
|
|
云闪付
|
|
|
</view>
|
|
|
<view class="radio-box">
|
|
|
- <label class="radio">
|
|
|
- <radio value="" /><text></text>
|
|
|
+ <label class="radio" @click="radioClick('yushanfu')">
|
|
|
+ <radio value="" :checked="payName == 'yushanfu'" /><text></text>
|
|
|
</label>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<!-- 确认订单 -->
|
|
|
<view class="confirm">
|
|
@@ -192,7 +192,8 @@
|
|
|
entryFee: 0,
|
|
|
weFee: 0,
|
|
|
submitForm: {},
|
|
|
- id: ''
|
|
|
+ id: '',
|
|
|
+ payName: ''
|
|
|
}
|
|
|
},
|
|
|
onLoad(op) {
|
|
@@ -208,9 +209,21 @@
|
|
|
this.getStudentList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ radioClick(value) {
|
|
|
+ this.payName = value;
|
|
|
+ },
|
|
|
topayResult() {
|
|
|
this.submitForm.amount = 0.01;
|
|
|
- this.wxpy();
|
|
|
+ if(this.payName == 'weixin') {
|
|
|
+ this.wxpy();
|
|
|
+ } else if (this.payName == 'yushanfu') {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请选择支付方式',
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
wxpy() {
|
|
|
uni.showLoading({
|
|
@@ -490,35 +503,41 @@
|
|
|
padding: 40rpx 32rpx;
|
|
|
border-radius: 8px;
|
|
|
margin: 24rpx;
|
|
|
+
|
|
|
.headline {
|
|
|
color: rgba(51, 51, 51, 1);
|
|
|
font-size: 32rpx;
|
|
|
margin-bottom: 32rpx;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
-
|
|
|
- .pay-radio{
|
|
|
+
|
|
|
+ .pay-radio {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
margin-top: 28rpx;
|
|
|
- .icon{
|
|
|
- img{
|
|
|
+
|
|
|
+ .icon {
|
|
|
+ img {
|
|
|
width: 48rpx;
|
|
|
height: 48rpx;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
}
|
|
|
- .text{
|
|
|
+
|
|
|
+ .text {
|
|
|
margin-left: 8rpx;
|
|
|
}
|
|
|
- .radio-box{
|
|
|
+
|
|
|
+ .radio-box {
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
- /deep/.uni-radio-input{
|
|
|
+
|
|
|
+ /deep/.uni-radio-input {
|
|
|
width: 40rpx;
|
|
|
height: 40rpx;
|
|
|
}
|
|
|
- /deep/.uni-radio-input-checked{
|
|
|
+
|
|
|
+ /deep/.uni-radio-input-checked {
|
|
|
background-color: #0DBAC7 !important;
|
|
|
}
|
|
|
}
|