Task:多店铺选择

This commit is contained in:
linxi
2025-03-24 18:13:19 +08:00
parent a1182276a9
commit 85b1a8f0f1
4 changed files with 133 additions and 5 deletions
+23 -3
View File
@@ -401,6 +401,10 @@
<image :src="webUrl + '/page/hotel/edit.png'" class="img" />
修改资料
</view>
<view class="bottom-btn" @click="changeHome">
<image :src="webUrl + '/icon/qiehuan.png'" class="img" />
切换店铺
</view>
</view>
</view>
<goo-skeleton v-else />
@@ -431,6 +435,7 @@
/>
</view>
</u-popup>
<homeList ref="homeList" @enter="goHome"></homeList>
</view>
</template>
@@ -446,7 +451,8 @@ import {
setTopHotelNew,
getHotelNewsZan,
getHotelShareBackgroundImage,
hotelNewsView
hotelNewsView,
getMerchantApply
} from "@/api/inn.js"
import {formatDateTime} from "@/utils"
import {getUrlParam} from "@/utils/common.js"
@@ -454,14 +460,16 @@ import imgBox from '@/components/imageTypeSet/imagebox.vue'
import cookie from "@/utils/store/cookie"
import {addStore, removeStore} from "@/api/favorite"
import { pageListenMixins } from '@/mixins/pageListenMixins'
import homeList from "../components/jin-edit/homeList.vue"
export default {
components: {
imgBox
imgBox,
homeList
},
mixins: [pageListenMixins],
data() {
return {
homeList: [],
webUrl: this.$VUE_APP_RESOURCES_URL,
isLoad: false,
activeIndex: 0,
@@ -588,6 +596,18 @@ export default {
this.fetchInnDetail()
},
methods: {
goHome(e) {
this.id = e.id
this.fetchInnDetail()
},
changeHome() {
uni.showLoading()
getMerchantApply().then(res => {
this.$refs.homeList.open(res.data || [])
}).finally(() => {
uni.hideLoading()
})
},
changeShare() {
this.showShare = !this.showShare
},