小程序底座提交一波

This commit is contained in:
aixianling
2022-02-18 20:17:07 +08:00
parent 21f5273b84
commit cfb00174e3
2 changed files with 6 additions and 2 deletions

View File

@@ -3,6 +3,9 @@
<ai-search-popup mode="bottom" ref="areaSelector" length="85%">
<div slot="btn" @tap="handleInit">
<slot v-if="$slots.default"/>
<div v-else-if="isForm">
<u-icon name="arrow-right" :label="currentArea.name||'请选择'" label-pos="left"/>
</div>
<div v-else class="areaSelector">
<image :src="locationIcon" class="location"/>
<div v-text="currentArea.name"/>
@@ -53,7 +56,8 @@ export default {
isHideTown: {
type: Boolean,
default: false
}
},
isForm:Boolean
},
computed: {
...mapState(['user']),

View File

@@ -2,7 +2,7 @@
<section class="AiDate">
<u-calendar v-model="show" :maxDate="maxDate"
@change="handleSelect" :mode="mode" @close="show=false"/>
<div flex @click="show=true">
<div class="flex" @click="show=true">
<div class="label" v-if="label" v-html="label"/>
<div class="placeholder" v-else v-html="placeholder"/>
<u-icon name="arrow-right" color="#ddd"/>