【类 型】:feat
【原 因】:获取禁飞区和贤妃去列表 【过 程】: 【影 响】:
This commit is contained in:
parent
754963fe17
commit
8fa898a5f7
14
App.vue
14
App.vue
@ -3,8 +3,11 @@
|
||||
// 数据初始化
|
||||
onLaunch: function(options) {
|
||||
//从二维码获取站点id 商铺id
|
||||
this.$store.commit('setShopId', String(options.query.s))
|
||||
this.$store.commit('setSiteId', String(options.query.z))
|
||||
// 获取参数,如果不存在则使用默认值
|
||||
const shopId = options?.query?.s || '2dc23dcfecc05fb1'
|
||||
const siteId = options?.query?.z || '13'
|
||||
this.$store.commit('setShopId', String(shopId))
|
||||
this.$store.commit('setSiteId', String(siteId))
|
||||
//异步加载商铺信息
|
||||
this.$store.dispatch('fetchShopCon')
|
||||
//异步加载站点列表
|
||||
@ -374,8 +377,8 @@
|
||||
.h100 {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.h80{
|
||||
|
||||
.h80 {
|
||||
height: 80%;
|
||||
}
|
||||
|
||||
@ -386,7 +389,8 @@
|
||||
.w100 {
|
||||
width: 100%;
|
||||
}
|
||||
.w80{
|
||||
|
||||
.w80 {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
|
1311
package-lock.json
generated
Normal file
1311
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -31,7 +31,7 @@
|
||||
</view> -->
|
||||
<!-- 主按钮 -->
|
||||
<view class="flex mse" style="margin-top: 30rpx;">
|
||||
<mainBut url="/pages/shop/list" bg="#D43030" imgSrc="/static/icons/ordernow.svg" butBt="开始点餐"
|
||||
<mainBut url="/pages/shop/list" bg="#D43030" imgSrc="/static/icons/ordernow.svg" butBt="景区闪购"
|
||||
butSt="Order Now" />
|
||||
<mainBut url="/pages/shop/list?tag=shop" bg="#FF8D1A" imgSrc="/static/icons/buggoods.svg" butBt="购买商品"
|
||||
butSt="Buy Goods" />
|
||||
@ -96,11 +96,11 @@
|
||||
},
|
||||
//获取首页banner列表
|
||||
bannerList() {
|
||||
return this.$store.state.bannerList
|
||||
.filter(item => item.type === 'index')
|
||||
.map(item => ({
|
||||
url: item.photo
|
||||
}))
|
||||
return this.$store.state.bannerList
|
||||
.filter(item => item.type === 'index')
|
||||
.map(item => ({
|
||||
url: item.photo
|
||||
}))
|
||||
}
|
||||
},
|
||||
watch: {},
|
||||
|
Loading…
Reference in New Issue
Block a user