fix:radio修复
parent
0dd5fde92c
commit
497d4e295f
|
@ -58,8 +58,13 @@
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
</view>
|
</view>
|
||||||
</uni-forms>
|
</uni-forms>
|
||||||
<label class="ss-flex ss-m-t-20" @tap="onChange" v-if="state.protocol?.status == 1">
|
<radio-group @change="onChange" v-if="state.protocol?.status == 1">
|
||||||
<radio :checked="state.isAgree" color="var(--ui-BG-Main)" style="transform: scale(0.6)" />
|
<label class="ss-flex ss-m-t-20">
|
||||||
|
<radio
|
||||||
|
:checked="state.isAgree"
|
||||||
|
color="var(--ui-BG-Main)"
|
||||||
|
style="transform: scale(0.6)"
|
||||||
|
/>
|
||||||
<view class="agreement-text ss-flex">
|
<view class="agreement-text ss-flex">
|
||||||
<view class="ss-m-r-4">勾选代表同意</view>
|
<view class="ss-m-r-4">勾选代表同意</view>
|
||||||
<view
|
<view
|
||||||
|
@ -75,6 +80,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</label>
|
</label>
|
||||||
|
</radio-group>
|
||||||
<su-fixed bottom placeholder>
|
<su-fixed bottom placeholder>
|
||||||
<view class="submit-box ss-flex ss-row-center ss-p-30">
|
<view class="submit-box ss-flex ss-row-center ss-p-30">
|
||||||
<button class="submit-btn ss-reset-button ui-BG-Main ui-Shadow-Main" @tap="submit">
|
<button class="submit-btn ss-reset-button ui-BG-Main ui-Shadow-Main" @tap="submit">
|
||||||
|
|
|
@ -27,13 +27,18 @@
|
||||||
<view class="cart-content ss-flex-1 ss-p-x-30 ss-m-b-40">
|
<view class="cart-content ss-flex-1 ss-p-x-30 ss-m-b-40">
|
||||||
<view class="goods-box ss-r-10 ss-m-b-14" v-for="item in state.list" :key="item.id">
|
<view class="goods-box ss-r-10 ss-m-b-14" v-for="item in state.list" :key="item.id">
|
||||||
<view class="ss-flex ss-col-center">
|
<view class="ss-flex ss-col-center">
|
||||||
<view class="check-box ss-flex ss-col-center ss-p-l-10" @tap="onSelectSingle(item.id)">
|
<radio-group
|
||||||
|
@change="onSelectSingle(item.id)"
|
||||||
|
class="check-box ss-flex ss-col-center ss-p-l-10"
|
||||||
|
>
|
||||||
|
<label class="radio ss-flex">
|
||||||
<radio
|
<radio
|
||||||
:checked="state.selectedIds.includes(item.id)"
|
:checked="state.selectedIds.includes(item.id)"
|
||||||
color="var(--ui-BG-Main)"
|
color="var(--ui-BG-Main)"
|
||||||
style="transform: scale(0.8)"
|
style="transform: scale(0.8)"
|
||||||
/>
|
/>
|
||||||
</view>
|
</label>
|
||||||
|
</radio-group>
|
||||||
<s-goods-item
|
<s-goods-item
|
||||||
:title="item.goods.title"
|
:title="item.goods.title"
|
||||||
:img="item.sku_price.image || item.goods.image"
|
:img="item.sku_price.image || item.goods.image"
|
||||||
|
@ -59,14 +64,16 @@
|
||||||
<su-fixed bottom :val="48" placeholder v-if="state.list.length > 0" :isInset="false">
|
<su-fixed bottom :val="48" placeholder v-if="state.list.length > 0" :isInset="false">
|
||||||
<view class="cart-footer ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom">
|
<view class="cart-footer ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom">
|
||||||
<view class="footer-left ss-flex ss-col-center">
|
<view class="footer-left ss-flex ss-col-center">
|
||||||
<view class="check-box ss-flex ss-col-center ss-p-r-30" @tap="onSelectAll">
|
<radio-group @change="onSelectAll" class="check-box ss-flex ss-col-center ss-p-r-30">
|
||||||
|
<label class="radio ss-flex">
|
||||||
<radio
|
<radio
|
||||||
:checked="state.isAllSelected"
|
:checked="state.isAllSelected"
|
||||||
color="var(--ui-BG-Main)"
|
color="var(--ui-BG-Main)"
|
||||||
style="transform: scale(0.7)"
|
style="transform: scale(0.8)"
|
||||||
/>
|
/>
|
||||||
<view> 全选 </view>
|
<view class="ss-m-l-8"> 全选 </view>
|
||||||
</view>
|
</label>
|
||||||
|
</radio-group>
|
||||||
<text>合计:</text>
|
<text>合计:</text>
|
||||||
<view class="text-price price-text">
|
<view class="text-price price-text">
|
||||||
{{ state.totalPriceSelected }}
|
{{ state.totalPriceSelected }}
|
||||||
|
|
|
@ -17,19 +17,21 @@
|
||||||
<view class="refund-item">
|
<view class="refund-item">
|
||||||
<view class="item-title ss-m-b-20">售后类型</view>
|
<view class="item-title ss-m-b-20">售后类型</view>
|
||||||
<view class="ss-flex-col">
|
<view class="ss-flex-col">
|
||||||
<view
|
<radio-group @change="onRefundChange">
|
||||||
|
<label
|
||||||
class="ss-flex ss-col-center ss-p-y-10"
|
class="ss-flex ss-col-center ss-p-y-10"
|
||||||
v-for="(item, index) in state.refundTypeList"
|
v-for="(item, index) in state.refundTypeList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@tap="formData.type = item.value"
|
|
||||||
>
|
>
|
||||||
<radio
|
<radio
|
||||||
:checked="formData.type === item.value"
|
:checked="formData.type === item.value"
|
||||||
color="var(--ui-BG-Main)"
|
color="var(--ui-BG-Main)"
|
||||||
style="transform: scale(0.8)"
|
style="transform: scale(0.8)"
|
||||||
|
:value="item.value"
|
||||||
/>
|
/>
|
||||||
<view class="item-value">{{ item.text }}</view>
|
<view class="item-value ss-m-l-8">{{ item.text }}</view>
|
||||||
</view>
|
</label>
|
||||||
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 申请原因 -->
|
<!-- 申请原因 -->
|
||||||
|
@ -99,17 +101,13 @@
|
||||||
>申请原因</view
|
>申请原因</view
|
||||||
>
|
>
|
||||||
<view class="modal-content content_box">
|
<view class="modal-content content_box">
|
||||||
<view
|
<radio-group @change="onChange">
|
||||||
class="ss-flex ss-col-center"
|
<label
|
||||||
|
class="radio ss-flex ss-col-center"
|
||||||
v-for="item in state.refundReasonList"
|
v-for="item in state.refundReasonList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
>
|
>
|
||||||
<view class="ss-flex-1 ss-p-20" @tap="onTitle(item.value, item.title)">{{
|
<view class="ss-flex-1 ss-p-20">{{ item.title }}</view>
|
||||||
item.title
|
|
||||||
}}</view>
|
|
||||||
<view class="radio">
|
|
||||||
<radio-group @change="onChange(item.value, item.title)">
|
|
||||||
<label class="radio">
|
|
||||||
<radio
|
<radio
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
color="var(--ui-BG-Main)"
|
color="var(--ui-BG-Main)"
|
||||||
|
@ -118,8 +116,6 @@
|
||||||
</label>
|
</label>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="modal-foot foot_box ss-flex ss-row-center ss-col-center">
|
<view class="modal-foot foot_box ss-flex ss-row-center ss-col-center">
|
||||||
<button class="ss-reset-button close-btn ui-BG-Main-Gradient" @tap="onReason"
|
<button class="ss-reset-button close-btn ui-BG-Main-Gradient" @tap="onReason"
|
||||||
>确定</button
|
>确定</button
|
||||||
|
@ -209,10 +205,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//选择售后类型
|
||||||
|
function onRefundChange(e) {
|
||||||
|
formData.type = e.detail.value;
|
||||||
|
}
|
||||||
|
|
||||||
//选择申请原因
|
//选择申请原因
|
||||||
function onChange(val, title) {
|
function onChange(e) {
|
||||||
state.currentValue = val;
|
state.currentValue = e.detail.value;
|
||||||
state.reasonText = title;
|
state.refundReasonList.forEach((item) => {
|
||||||
|
if (item.value === e.detail.value) {
|
||||||
|
state.reasonText = item.title;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
//确定
|
//确定
|
||||||
function onReason() {
|
function onReason() {
|
||||||
|
|
|
@ -178,9 +178,4 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.uni-radio-input) {
|
|
||||||
width: 36rpx;
|
|
||||||
height: 36rpx;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="modal-content ss-flex-1">
|
<view class="modal-content ss-flex-1">
|
||||||
<view class="pay-title ss-p-l-30 ss-m-y-30">选择支付方式</view>
|
<view class="pay-title ss-p-l-30 ss-m-y-30">选择支付方式</view>
|
||||||
<view class="pay-type-item" v-for="item in state.payMethods" :key="item.title">
|
<radio-group @change="onTapPay">
|
||||||
|
<label class="pay-type-item" v-for="item in state.payMethods" :key="item.title">
|
||||||
<view
|
<view
|
||||||
class="pay-item ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom"
|
class="pay-item ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom"
|
||||||
:class="{ 'disabled-pay-item': item.disabled }"
|
:class="{ 'disabled-pay-item': item.disabled }"
|
||||||
|
@ -21,7 +22,6 @@
|
||||||
allowedPayment.includes(item.value) &&
|
allowedPayment.includes(item.value) &&
|
||||||
!(state.orderType === 'recharge' && item.value === 'money')
|
!(state.orderType === 'recharge' && item.value === 'money')
|
||||||
"
|
"
|
||||||
@tap="onTapPay(item.disabled, item.value)"
|
|
||||||
>
|
>
|
||||||
<view class="ss-flex ss-col-center">
|
<view class="ss-flex ss-col-center">
|
||||||
<image
|
<image
|
||||||
|
@ -57,7 +57,8 @@
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</label>
|
||||||
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
<!-- 工具 -->
|
<!-- 工具 -->
|
||||||
<view class="modal-footer ss-flex ss-row-center ss-col-center ss-m-t-80 ss-m-b-40">
|
<view class="modal-footer ss-flex ss-row-center ss-col-center ss-m-t-80 ss-m-b-40">
|
||||||
|
@ -191,12 +192,8 @@
|
||||||
state.payStatus = 2;
|
state.payStatus = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onTapPay(disabled, value) {
|
function onTapPay(e) {
|
||||||
if (disabled) {
|
state.payment = e.detail.value;
|
||||||
state.payment = '';
|
|
||||||
} else {
|
|
||||||
state.payment = value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setRechargeOrder(id) {
|
async function setRechargeOrder(id) {
|
||||||
|
|
|
@ -10,9 +10,7 @@
|
||||||
v-for="item in state.radioList"
|
v-for="item in state.radioList"
|
||||||
:key="item.type"
|
:key="item.type"
|
||||||
>
|
>
|
||||||
<view>
|
|
||||||
<radio :value="item.type" color="var(--ui-BG-Main)" style="transform: scale(0.8)" />
|
<radio :value="item.type" color="var(--ui-BG-Main)" style="transform: scale(0.8)" />
|
||||||
</view>
|
|
||||||
<view class="radio-subtitle">{{ item.type }}</view>
|
<view class="radio-subtitle">{{ item.type }}</view>
|
||||||
</label>
|
</label>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
|
|
|
@ -32,10 +32,10 @@
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
>
|
>
|
||||||
<view class="ss-flex ss-col-center">
|
<view class="ss-flex ss-col-center">
|
||||||
<view
|
<radio-group
|
||||||
v-show="state.editMode"
|
|
||||||
class="check-box ss-flex ss-col-center ss-p-l-10"
|
class="check-box ss-flex ss-col-center ss-p-l-10"
|
||||||
@tap="onSelect(item.goods_id)"
|
@change="onSelect(item.goods_id)"
|
||||||
|
v-show="state.editMode"
|
||||||
>
|
>
|
||||||
<label class="radio">
|
<label class="radio">
|
||||||
<radio
|
<radio
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
style="transform: scale(0.8)"
|
style="transform: scale(0.8)"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
</view>
|
</radio-group>
|
||||||
<s-goods-item
|
<s-goods-item
|
||||||
:title="item.goods.title"
|
:title="item.goods.title"
|
||||||
:img="item.goods.image"
|
:img="item.goods.image"
|
||||||
|
@ -66,17 +66,16 @@
|
||||||
<su-fixed bottom :val="0" placeholder v-show="state.editMode">
|
<su-fixed bottom :val="0" placeholder v-show="state.editMode">
|
||||||
<view class="cart-footer ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom">
|
<view class="cart-footer ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom">
|
||||||
<view class="footer-left ss-flex ss-col-center">
|
<view class="footer-left ss-flex ss-col-center">
|
||||||
<view class="check-box ss-flex ss-col-center ss-p-r-30" @tap="onSelectAll">
|
<radio-group @change="onSelectAll">
|
||||||
<label class="radio">
|
<label class="check-box ss-flex ss-col-center ss-p-r-30">
|
||||||
<radio
|
<radio
|
||||||
:checked="state.selectAll"
|
:checked="state.selectAll"
|
||||||
color="var(--ui-BG-Main)"
|
color="var(--ui-BG-Main)"
|
||||||
style="transform: scale(0.7)"
|
style="transform: scale(0.7)"
|
||||||
/>
|
/>
|
||||||
</label>
|
|
||||||
|
|
||||||
<view> 全选 </view>
|
<view> 全选 </view>
|
||||||
</view>
|
</label>
|
||||||
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
<view class="footer-right">
|
<view class="footer-right">
|
||||||
<button
|
<button
|
||||||
|
@ -181,7 +180,7 @@
|
||||||
state.editMode = false;
|
state.editMode = false;
|
||||||
state.selectedCollectList = [];
|
state.selectedCollectList = [];
|
||||||
state.selectAll = false;
|
state.selectAll = false;
|
||||||
state.pagination = pagination
|
state.pagination = pagination;
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,10 +35,10 @@
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
>
|
>
|
||||||
<view class="ss-flex ss-col-center">
|
<view class="ss-flex ss-col-center">
|
||||||
<view
|
<radio-group
|
||||||
v-show="state.editMode"
|
v-show="state.editMode"
|
||||||
class="check-box ss-flex ss-col-center ss-p-l-10"
|
class="check-box ss-flex ss-col-center ss-p-l-10"
|
||||||
@tap="onSelect(item.goods_id)"
|
@change="onSelect(item.goods_id)"
|
||||||
>
|
>
|
||||||
<label class="radio">
|
<label class="radio">
|
||||||
<radio
|
<radio
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
style="transform: scale(0.8)"
|
style="transform: scale(0.8)"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
</view>
|
</radio-group>
|
||||||
<s-goods-item
|
<s-goods-item
|
||||||
:title="item.goods.title"
|
:title="item.goods.title"
|
||||||
:img="item.goods.image"
|
:img="item.goods.image"
|
||||||
|
@ -69,16 +69,16 @@
|
||||||
<su-fixed bottom :val="0" placeholder v-show="state.editMode">
|
<su-fixed bottom :val="0" placeholder v-show="state.editMode">
|
||||||
<view class="cart-footer ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom">
|
<view class="cart-footer ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom">
|
||||||
<view class="footer-left ss-flex ss-col-center">
|
<view class="footer-left ss-flex ss-col-center">
|
||||||
<view class="check-box ss-flex ss-col-center ss-p-r-30" @tap="onSelectAll">
|
<radio-group @change="onSelectAll">
|
||||||
<label class="radio">
|
<label class="check-box ss-flex ss-col-center ss-p-r-30">
|
||||||
<radio
|
<radio
|
||||||
:checked="state.selectAll"
|
:checked="state.selectAll"
|
||||||
color="var(--ui-BG-Main)"
|
color="var(--ui-BG-Main)"
|
||||||
style="transform: scale(0.7)"
|
style="transform: scale(0.7)"
|
||||||
/>
|
/>
|
||||||
</label>
|
|
||||||
<view>全选</view>
|
<view>全选</view>
|
||||||
</view>
|
</label>
|
||||||
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
<view class="footer-right">
|
<view class="footer-right">
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -75,13 +75,14 @@
|
||||||
v-if="['accountLogin', 'smsLogin', 'smsRegister'].includes(authType)"
|
v-if="['accountLogin', 'smsLogin', 'smsRegister'].includes(authType)"
|
||||||
class="agreement-box ss-flex ss-row-center"
|
class="agreement-box ss-flex ss-row-center"
|
||||||
>
|
>
|
||||||
<label class="radio ss-flex" @tap="onChange">
|
<radio-group @change="onChange" class="ss-flex ss-col-center">
|
||||||
|
<label class="radio ss-flex">
|
||||||
<radio
|
<radio
|
||||||
:checked="state.protocol"
|
:checked="state.protocol"
|
||||||
color="var(--ui-BG-Main)"
|
color="var(--ui-BG-Main)"
|
||||||
style="transform: scale(0.8)"
|
style="transform: scale(0.8)"
|
||||||
/>
|
/>
|
||||||
<view class="agreement-text ss-flex ss-col-center">
|
<view class="agreement-text ss-flex ss-col-center ss-m-l-8">
|
||||||
我已阅读并遵守
|
我已阅读并遵守
|
||||||
<view
|
<view
|
||||||
class="tcp-text"
|
class="tcp-text"
|
||||||
|
@ -98,6 +99,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</label>
|
</label>
|
||||||
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
<view class="safe-box"></view>
|
<view class="safe-box"></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -19,14 +19,15 @@
|
||||||
<view v-for="(item, index) in state.couponInfo.can_use" :key="index">
|
<view v-for="(item, index) in state.couponInfo.can_use" :key="index">
|
||||||
<s-coupon-list :data="item" type="user" :disabled="false">
|
<s-coupon-list :data="item" type="user" :disabled="false">
|
||||||
<template #default>
|
<template #default>
|
||||||
|
<radio-group @change="radioChange(item.id)" class="ss-flex ss-col-center">
|
||||||
<label class="radio">
|
<label class="radio">
|
||||||
<radio
|
<radio
|
||||||
color="var(--ui-BG-Main)"
|
color="var(--ui-BG-Main)"
|
||||||
style="transform: scale(0.8)"
|
style="transform: scale(0.8)"
|
||||||
@tap.stop="radioChange(item.id)"
|
|
||||||
:checked="state.couponId == item.id"
|
:checked="state.couponId == item.id"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
</radio-group>
|
||||||
</template>
|
</template>
|
||||||
</s-coupon-list>
|
</s-coupon-list>
|
||||||
</view>
|
</view>
|
||||||
|
|
Loading…
Reference in New Issue