|
@@ -22,10 +22,10 @@
|
|
|
|
|
|
<view class="coupon-title">可用优惠券:{{ total }}</view>
|
|
|
<view class="coupon-list">
|
|
|
- <u-radio-group v-model="radiovalue1" placement="column" @change="changeChechk($event)">
|
|
|
+ <!-- <u-radio-group v-model="radiovalue1" placement="column" @change="changeChechk($event)"> -->
|
|
|
<view class="flex coupon-list-item" v-for="(item,index) in list" :key="index"
|
|
|
- :style="{backgroundImage:`url(${ index == isActive ? backOn : backOff })`}">
|
|
|
- <view class="flex coupon-list-item-info">
|
|
|
+ :style="{backgroundImage:`url(${ index == isActive ? backOn : backOff })`}" @click="changeChechk(item.id)">
|
|
|
+ <view class="flex coupon-list-item-info" @click="exclusive(index)">
|
|
|
<view class="money">
|
|
|
<!-- <view class="">¥<text>{{ item.discount / 100 }}</text></view> -->
|
|
|
<view class="price flex">
|
|
@@ -41,15 +41,25 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="uradio">
|
|
|
- <u-radio :customStyle="{ marginBottom: '8px' }" :name="item.id" activeColor="#F9822C" size="24"
|
|
|
+ <view class="uradio" @click="exclusive(index)">
|
|
|
+ <view class="" style="background-color: #F9822C;width: 24px;height: 24px;border-radius: 50%;" v-if="index == isActive">
|
|
|
+ <div style="display: inline-block;margin: 4px;">
|
|
|
+ <u-icon name="checkbox-mark" color="#fff" size="16"></u-icon>
|
|
|
+ </div>
|
|
|
+ </view>
|
|
|
+ <view class="" style="background-color: rgb(200, 201, 204);width: 24px;height: 24px;border-radius: 50%;" v-else>
|
|
|
+ <div style="display: inline-block;margin: 4px;">
|
|
|
+ <u-icon name="checkbox-mark" color="#fff" size="16"></u-icon>
|
|
|
+ </div>
|
|
|
+ </view>
|
|
|
+ <!-- <u-radio :customStyle="{ marginBottom: '8px' }" :name="item.id" activeColor="#F9822C" size="24"
|
|
|
@change="exclusive(index)">
|
|
|
- </u-radio>
|
|
|
+ </u-radio> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-loadmore :line="true" v-if="list.length>5" :status="status" :loading-text="'努力加载中'"
|
|
|
:nomore-text="'已经到底了'" />
|
|
|
- </u-radio-group>
|
|
|
+ <!-- </u-radio-group> -->
|
|
|
</view>
|
|
|
|
|
|
<view class="flex empty" v-if="!list.length">
|