Fix:3982 【商城小程序】送礼页面优惠券改为选填模式
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
class="coupons__cover"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view @click="selectCoupon" class="check-radio" :class="{'v12-primary': data.checked}">
|
||||
<view @click="selectCoupon" class="check-radio" :class="{'v12-primary': data.checked}" v-if="showRadio">
|
||||
<radio
|
||||
v-if="radioModel && data.status === 0"
|
||||
:value="data.id"
|
||||
@@ -50,6 +50,10 @@
|
||||
export default {
|
||||
name: "Coupons",
|
||||
props: {
|
||||
showRadio: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
data: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
@change="changeNav"
|
||||
v-if="showTab"
|
||||
/>
|
||||
<view class="v12-radius-20 v12-white v12-align-center v12-justify-around v12-pa-3" v-else>
|
||||
<view class="v12-radius-20 v12-white v12-align-center v12-justify-around v12-pa-3" v-if="!showTab && showRadio">
|
||||
<view class="">
|
||||
<view class="v12-text-center v12-font-28">
|
||||
券后价
|
||||
@@ -61,6 +61,7 @@
|
||||
<view class="larg-one v12-mb-3">
|
||||
<Coupons
|
||||
:data="largOne"
|
||||
:showRadio="showRadio"
|
||||
:radio-model="current === 0"
|
||||
@change="selectCoupon"
|
||||
/>
|
||||
@@ -75,6 +76,7 @@
|
||||
>
|
||||
<Coupons
|
||||
:data="item"
|
||||
:showRadio="showRadio"
|
||||
:radio-model="current === 0"
|
||||
@change="selectCoupon"
|
||||
v-if="index !== maxIndex"
|
||||
@@ -93,7 +95,7 @@
|
||||
</view>
|
||||
<button disabled></button>
|
||||
<view
|
||||
v-if="current === 0"
|
||||
v-if="current === 0 && showRadio"
|
||||
:class="{ 'btn-disabled': current === 1 }"
|
||||
class="btn-done bold flex jc-center ai-center v12-primary"
|
||||
@click="setCoupon"
|
||||
@@ -111,6 +113,10 @@ export default {
|
||||
name: 'CouponsPopup',
|
||||
components: { SubSection, Coupons },
|
||||
props: {
|
||||
showRadio: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
twoList: {
|
||||
type: Object,
|
||||
default: {
|
||||
|
||||
Reference in New Issue
Block a user