Commit 222fc834 by zhangzhen

细节优化

parent a0bfee68
......@@ -217,15 +217,17 @@
<view v-if="userInfo && (secondaryCardList.length || monthlyCardList.length)" class="flex-col card-use">
<text class="text-black text-left">专属权益</text>
<view class="radio-group-box">
<radio-group class="radio-group" @change="onRadioChange">
<label v-if="secondaryCardList.length" class="flex-between">
<view>次卡(剩余{{secondaryCardList[0].number}}次)</view>
<radio-group class="radio-group">
<label v-if="secondaryCardList.length" class="flex-between" @tap="onRadioChange('secondaryCard')">
<view class="flex-row-center">
<text>次卡(剩余{{secondaryCardList[0].number}}次)</text>
</view>
<view class="flex-row-center" >
<text>请选择</text>
<radio class='pink radio' :class="radioChecked=='secondaryCard'?'checked':''" value="secondaryCard" :checked="radioChecked=='secondaryCard'?true:false" style="transform:scale(0.7)" />
</view>
</label >
<label v-if="monthlyCardList.length" class="flex-between">
<label v-if="monthlyCardList.length" class="flex-between" @tap="onRadioChange('monthlyCard')">
<view>月卡</view>
<view class="flex-row-center" >
<text>请选择</text>
......@@ -638,8 +640,11 @@
},
methods: {
onRadioChange(e){
console.log(e,9999)
this.radioChecked = e.target.value;
if(this.radioChecked === e){
this.radioChecked = ''
}else{
this.radioChecked = e
}
this.onComputePrice();
},
// 日期切换
......
......@@ -88,10 +88,10 @@
</view>
<view class="flex-col">
<text class="text-gray text-bold">赠送余额消费</text>
<text class="text-black text-xl text-bold">{{statisticsData.rechargeFee || 0}}</text>
<text class="text-gray text-xl text-bold">{{statisticsData.rechargeFee || 0}}</text>
<view class="flex-row-center">
<text class="text-black">退款</text>
<text class="text-blue text-lg">{{statisticsData.rechargeRefundFee || 0}}</text>
<text class="text-gray">退款</text>
<text class="text-gray text-lg">{{statisticsData.rechargeRefundFee || 0}}</text>
</view>
</view>
<view class="flex-col">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment