小程序底座提交一波
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
<ai-search-popup mode="bottom" ref="areaSelector" length="85%">
|
<ai-search-popup mode="bottom" ref="areaSelector" length="85%">
|
||||||
<div slot="btn" @tap="handleInit">
|
<div slot="btn" @tap="handleInit">
|
||||||
<slot v-if="$slots.default"/>
|
<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">
|
<div v-else class="areaSelector">
|
||||||
<image :src="locationIcon" class="location"/>
|
<image :src="locationIcon" class="location"/>
|
||||||
<div v-text="currentArea.name"/>
|
<div v-text="currentArea.name"/>
|
||||||
@@ -53,7 +56,8 @@ export default {
|
|||||||
isHideTown: {
|
isHideTown: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
}
|
},
|
||||||
|
isForm:Boolean
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<section class="AiDate">
|
<section class="AiDate">
|
||||||
<u-calendar v-model="show" :maxDate="maxDate"
|
<u-calendar v-model="show" :maxDate="maxDate"
|
||||||
@change="handleSelect" :mode="mode" @close="show=false"/>
|
@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="label" v-if="label" v-html="label"/>
|
||||||
<div class="placeholder" v-else v-html="placeholder"/>
|
<div class="placeholder" v-else v-html="placeholder"/>
|
||||||
<u-icon name="arrow-right" color="#ddd"/>
|
<u-icon name="arrow-right" color="#ddd"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user