【类 型】:

【原  因】:
【过  程】:
【影  响】:
This commit is contained in:
air 2025-06-25 12:36:08 +08:00
parent 8fa898a5f7
commit f704e809e8
7 changed files with 14 additions and 14 deletions

View File

@ -2,13 +2,13 @@
export default {
//
onLaunch: function(options) {
//id id
//id id
// 使
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('fetchSiteList')

View File

@ -69,7 +69,7 @@
userInfo() {
return this.$store.state.userInfo
},
//
//
shopCon() {
return this.$store.state.shopCon
},

View File

@ -105,7 +105,7 @@
return null
}
},
//
//
shopCon() {
return this.$store.state.shopCon
},

View File

@ -170,7 +170,7 @@
//
uni.$u.http.post('/Api/Check/refundOrder', {
order_sn: this.order_sn, //
shop_id: this.$store.state.shop_id, //id
shop_id: this.$store.state.shop_id, //id
apply_price: Number(this.requestRefund_price), //
refund_remark: this.refund_remarkDescription //退
}, {
@ -230,7 +230,7 @@
}
},
//
//
shopCon() {
return this.$store.state.shopCon
},

View File

@ -151,7 +151,7 @@
siteCon() {
return this.$store.state.siteList.find(item => item.id === this.$store.state.site_id.toString())
},
//
//
shopCon() {
return this.$store.state.shopCon
},
@ -240,7 +240,7 @@
}
uni.$u.http.post('/Api/Check/checkout', {
cartList: JSON.stringify(this.cartList), //
shop_id: this.$store.state.shop_id, //id
shop_id: this.$store.state.shop_id, //id
total: this.total, //
transport_price: this.transportPrice, //
pack_price: this.packPrice, //

View File

@ -16,7 +16,7 @@ export default {
* spu产品图片路径
* sku产品图片路径
* 站点图片路径
* 商铺logo路径
* 单位logo路径
*/
"host": host,
"baseURL": baseURL,

View File

@ -20,7 +20,7 @@ const {
const store = new Vuex.Store({
//全局状态
state: {
shop_id: null, //商铺id
shop_id: null, //单位id
site_id: null, //当前站点id
userInfo: {
name: null,
@ -37,7 +37,7 @@ const store = new Vuex.Store({
spuList: [], //spu列表
skuList: [], //sku列表
bannerList: [], //banner列表
shopCon: {}, //商铺信息
shopCon: {}, //单位信息
cartList: [], //购物车列表 结构:[{"spu_id":"id","skuG":[sku_id,sku_id],"conutG":[数量,数量],"priceG":[单价,单价]},{.....}]
tabbarCurrent: 0, //tabbar的当前激活项
@ -46,7 +46,7 @@ const store = new Vuex.Store({
},
//修改状态
mutations: {
//设置 二维码获取商铺id
//设置 二维码获取单位id
setShopId(state, shop_id) {
state.shop_id = shop_id;
},
@ -108,7 +108,7 @@ const store = new Vuex.Store({
setBannerList(state, list) {
state.bannerList = list
},
//设置商铺信息
//设置单位信息
setShopCon(state, obj) {
state.shopCon = obj
},
@ -367,7 +367,7 @@ const store = new Vuex.Store({
})
})
},
//获取商铺信息
//获取单位信息
async fetchShopCon({
state,
commit