【类 型】:feat
【原 因】:获取禁飞区和贤妃去列表 【过 程】: 【影 响】:
This commit is contained in:
parent
754963fe17
commit
8fa898a5f7
12
App.vue
12
App.vue
@ -3,8 +3,11 @@
|
|||||||
// 数据初始化
|
// 数据初始化
|
||||||
onLaunch: function(options) {
|
onLaunch: function(options) {
|
||||||
//从二维码获取站点id 商铺id
|
//从二维码获取站点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')
|
this.$store.dispatch('fetchShopCon')
|
||||||
//异步加载站点列表
|
//异步加载站点列表
|
||||||
@ -375,7 +378,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.h80{
|
.h80 {
|
||||||
height: 80%;
|
height: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -386,7 +389,8 @@
|
|||||||
.w100 {
|
.w100 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.w80{
|
|
||||||
|
.w80 {
|
||||||
width: 80%;
|
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> -->
|
||||||
<!-- 主按钮 -->
|
<!-- 主按钮 -->
|
||||||
<view class="flex mse" style="margin-top: 30rpx;">
|
<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" />
|
butSt="Order Now" />
|
||||||
<mainBut url="/pages/shop/list?tag=shop" bg="#FF8D1A" imgSrc="/static/icons/buggoods.svg" butBt="购买商品"
|
<mainBut url="/pages/shop/list?tag=shop" bg="#FF8D1A" imgSrc="/static/icons/buggoods.svg" butBt="购买商品"
|
||||||
butSt="Buy Goods" />
|
butSt="Buy Goods" />
|
||||||
|
Loading…
Reference in New Issue
Block a user