This commit is contained in:
aihe 2023-12-09 14:33:40 +08:00
parent a9bec68feb
commit a25b521cda
5 changed files with 15 additions and 16 deletions

View File

@ -13,7 +13,7 @@
<tpx-checkitems :list="dataList.filter(v=> !keyword || (v.title.indexOf(keyword) > -1))" :value="value" v-slot="dlCurrent" min-checked="1" type="single" <tpx-checkitems :list="dataList.filter(v=> !keyword || (v.title.indexOf(keyword) > -1))" :value="value" v-slot="dlCurrent" min-checked="1" type="single"
@onChange="handleDataItemChange" @onChange="handleDataItemChange"
> >
<view slot style="margin-top: 10rpx;"> <view slot class="mt-20">
<u-row justify="between"> <u-row justify="between">
<u-col span="10"> <u-col span="10">
<u-text size="28" :text="dlCurrent.item.title"></u-text> <u-text size="28" :text="dlCurrent.item.title"></u-text>
@ -22,7 +22,7 @@
<u-checkbox :checked="dlCurrent.checked" shape="circle" size="32" activeColor="#B12D29"></u-checkbox> <u-checkbox :checked="dlCurrent.checked" shape="circle" size="32" activeColor="#B12D29"></u-checkbox>
</view> </view>
</u-row> </u-row>
<u-line margin="10rpx 0 0 0"></u-line> <u-line margin="20rpx 0 0 0"></u-line>
</view> </view>
</tpx-checkitems> </tpx-checkitems>
</view> </view>
@ -95,7 +95,6 @@
<style scoped lang="scss"> <style scoped lang="scss">
.shet-cont{ .shet-cont{
min-height: 500rpx;
padding: 10rpx 0 30rpx 0; padding: 10rpx 0 30rpx 0;
} }
.chk-icon{ .chk-icon{

View File

@ -21,7 +21,7 @@
<u-text v-if="dlCurrent.item.desc" size="28" :text="dlCurrent.item.desc" color="#999"></u-text> <u-text v-if="dlCurrent.item.desc" size="28" :text="dlCurrent.item.desc" color="#999"></u-text>
<view v-if="dlCurrent.item.val == payTypeEnum.other" class="pb-20"> <view v-if="dlCurrent.item.val == payTypeEnum.other" class="pb-20">
<u-textarea v-model="model.otherDesc" border="surround" height="160" placeholder="请填写" <u-textarea v-model="model.otherDesc" border="surround" height="120" placeholder="请填写"
maxlength="50" count></u-textarea> maxlength="50" count></u-textarea>
</view> </view>
@ -56,7 +56,7 @@
</template> </template>
<template v-slot:footer> <template v-slot:footer>
<view class="blcok-white-noradius"> <view class="blcok-white-noradius" style="margin-top: 0;margin-bottom: 0;">
<u-button @click="handleEditItem()" type="primary" size="large" shape="circle" <u-button @click="handleEditItem()" type="primary" size="large" shape="circle"
custom-style="height:80rpx;font-size: 30rpx;" custom-style="height:80rpx;font-size: 30rpx;"
>确认</u-button> >确认</u-button>
@ -137,12 +137,11 @@
}, },
handleEditItem() { handleEditItem() {
const { value, cardId } = this.model.value const { value, cardId, otherDesc } = this.model
this.$emit('onChange', this.model) this.$emit('onChange', this.model)
this.$emit('update:value', value) this.$emit('update:value', value)
this.$emit('update:cardId', cardId) this.$emit('update:cardId', cardId)
this.$emit('update:otherDesc', otherDesc) this.$emit('update:otherDesc', otherDesc)
debugger
this.handleCloseModal() this.handleCloseModal()
} }
} }
@ -151,7 +150,6 @@
<style scoped lang="scss"> <style scoped lang="scss">
.shet-cont{ .shet-cont{
min-height: 300rpx;
padding: 10rpx 0 30rpx 0; padding: 10rpx 0 30rpx 0;
} }
.chk-icon{ .chk-icon{

View File

@ -13,7 +13,7 @@
<tpx-checkitems :list="dataList.filter(v=> !keyword || (v.title.indexOf(keyword) > -1))" :value="value" v-slot="dlCurrent" min-checked="1" type="single" <tpx-checkitems :list="dataList.filter(v=> !keyword || (v.title.indexOf(keyword) > -1))" :value="value" v-slot="dlCurrent" min-checked="1" type="single"
@onChange="handleDataItemChange" @onChange="handleDataItemChange"
> >
<view slot style="margin-top: 10rpx;"> <view slot class="mt-20">
<u-row justify="between"> <u-row justify="between">
<u-col span="10"> <u-col span="10">
<u-text size="28" :text="dlCurrent.item.title"></u-text> <u-text size="28" :text="dlCurrent.item.title"></u-text>
@ -22,7 +22,7 @@
<u-checkbox :checked="dlCurrent.checked" shape="circle" size="32" activeColor="#B12D29"></u-checkbox> <u-checkbox :checked="dlCurrent.checked" shape="circle" size="32" activeColor="#B12D29"></u-checkbox>
</view> </view>
</u-row> </u-row>
<u-line margin="10rpx 0 0 0"></u-line> <u-line margin="20rpx 0 0 0"></u-line>
</view> </view>
</tpx-checkitems> </tpx-checkitems>
</view> </view>
@ -100,7 +100,6 @@
<style scoped lang="scss"> <style scoped lang="scss">
.shet-cont{ .shet-cont{
min-height: 500rpx;
padding: 10rpx 0 30rpx 0; padding: 10rpx 0 30rpx 0;
} }
.chk-icon{ .chk-icon{

View File

@ -4,8 +4,8 @@
<view @touchmove.stop="" class="dialog-mask" @click="handleClose()"></view> <view @touchmove.stop="" class="dialog-mask" @click="handleClose()"></view>
<view :class="`dialog-content ${type} pos-${closePosType}`" <view :class="`dialog-content ${type} pos-${closePosType}`"
:style="`padding: 30rpx;background-color:${bgColor};${contentStyle};`"> :style="`padding: 30rpx;background-color:${bgColor};${contentStyle};`">
<u-row v-if="title" @touchmove.stop="" justify="between" style="margin-bottom: 30rpx;"> <u-row v-if="title" @touchmove.stop="" justify="between" custom-style="margin-bottom: 30rpx;">
<u-col v-if="title" span="9" style="font-size: 32rpx;font-weight: 600;">{{title}}</u-col> <u-col v-if="title" span="9" custom-style="font-size: 32rpx;font-weight: 600;">{{title}}</u-col>
<view span="3" align="right" @click="handleClose()"> <view span="3" align="right" @click="handleClose()">
<u-icon name="close" size="32" color="#999"></u-icon> <u-icon name="close" size="32" color="#999"></u-icon>
</view> </view>
@ -122,7 +122,8 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
max-height: 75%; max-height: 85%;
min-height: 60%;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;

View File

@ -4,8 +4,10 @@
<view v-for="(item) in list" @click="handleChangeTab(item)" <view v-for="(item) in list" @click="handleChangeTab(item)"
:class="`sta-item ${value == item.val?'active':''} stai-${mode}`"> :class="`sta-item ${value == item.val?'active':''} stai-${mode}`">
<view class="stai-text"> <view class="stai-text">
{{item.title}} <u-row>
<slot :item="item"></slot> {{item.title}}
<slot :item="item"></slot>
</u-row>
<view class="stai-chk-line"></view> <view class="stai-chk-line"></view>
</view> </view>
</view> </view>