内容发布完成

This commit is contained in:
aixianling
2021-12-20 17:29:52 +08:00
parent 6d0810031d
commit 14e0cd8faf
6 changed files with 470 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
<div slot="btn" @tap="handleInit">
<slot v-if="$slots.default"/>
<div v-else class="areaSelector">
<image :src="icon" class="location"/>
<image :src="locationIcon" class="location"/>
<div v-text="currentArea.name"/>
</div>
</div>
@@ -35,6 +35,7 @@ export default {
areaId: {default: ''},
name: {default: ''},
all: Boolean,
icon: {default: "location.svg"}
},
computed: {
...mapState(['user']),
@@ -53,8 +54,8 @@ export default {
currentArea() {
return this.fullArea?.slice(-1)?.[0] || {}
},
icon() {
return this.$cdn + 'location.svg'
locationIcon() {
return this.$cdn + this.icon
},
},
data() {