Commit 97f6932b by 李伟康

修复线上BUG

1 parent c9df44ff
......@@ -4,7 +4,7 @@ module.exports = {
/** 分页查询商城专区的商品信息 */
getGoodsList(data) {
return api.post({
method: `scrm.api.shopmall.zoneInfo.weapp.goodsPage`,
method: `scrm.api.shopmall.zoneInfo.weapp.goodsPage.HMD`,
pageNum: 1,
pageSize: 999,
...data
......@@ -40,7 +40,7 @@ module.exports = {
},
/** 领取确认订单最大优惠券 */
getMaxCoupon(orderGoods) {
return api.fetch('scrm.api.shopmall.weapp.order.coupons.get', {
return api.fetch('scrm.api.shopmall.weapp.order.coupons.get.HMD', {
orderGoods
})
},
......@@ -91,7 +91,7 @@ module.exports = {
/** 根据商品ID获取商品 */
getGoodsDetail(id) {
return api.fetch('scrm.api.shopmall.weapp.goods.getById', {
return api.fetch('scrm.api.shopmall.weapp.goods.getById.HMD', {
id,
viewAmount: true
})
......
......@@ -54,8 +54,10 @@ class Request {
} : {
'Cache-Control': 'no-cache'
}
let {merchantId} = wx.p.storage.get('merchant_info')
header.merchantId = merchantId || wx.$merchant_id || defaultMerchantId
let {
merchantId
} = wx.p.storage.get('merchant_info')
header.merchantId = wx.$merchant_id || merchantId || defaultMerchantId
let projectName = this.getRopProject(params.method)
if (!projectName) projectName = this.getRopProject(params.method)
const path = pathEnum[projectName]
......
......@@ -96,7 +96,9 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {},
onShow: function () {
this.getServiceCode()
},
/**
* 生命周期函数--监听页面隐藏
......
......@@ -380,17 +380,17 @@ Page({
...params,
success(res) {
_this.requestSubscribeMessage()
const staffTrack = wx.p.storage.get('shareStaffTracker')
if (staffTrack) {
let tem = JSON.parse(staffTrack)
tem.item_type = tem.isActivity ? 3 : 1
tem.action_type = 3
tem.item_id = tem.id
tem.order_id = orderCode
// wx.$util.reportData(tem, false, false, true)
wx.p.storage.rm('shareStaffTracker')
}
wx.p.storage.rm('shareStaff')
// const staffTrack = wx.p.storage.get('shareStaffTracker')
// if (staffTrack) {
// let tem = JSON.parse(staffTrack)
// tem.item_type = tem.isActivity ? 3 : 1
// tem.action_type = 3
// tem.item_id = tem.id
// tem.order_id = orderCode
// // wx.$util.reportData(tem, false, false, true)
// wx.p.storage.rm('shareStaffTracker')
// }
// wx.p.storage.rm('shareStaff')
},
fail(res) {
if (res.errMsg == 'requestPayment:fail cancel') {
......
/* pages/login/login.wxss */
page {}
.login-bg {
position: fixed;
......
......@@ -25,7 +25,7 @@ Page({
this.goodsStorageList = res
this.jumpSearch(res, value)
})
}
} else this.jumpSearch(goodsList, value)
} else this.jumpSearch(goodsList, value)
},
jumpSearch(goodsList, value) {
......@@ -144,9 +144,12 @@ Page({
wx.p.wxApi.showLoading('加载中...')
try {
const {
merchantId
} = wx.p.storage.get('merchant_info'), {
goodsRefList
} = await wx.p.api.shopmallApi.getMerchantClassifyGoods({
id
id,
merchantId
})
let goodsList = []
if (goodsRefList && goodsRefList.length) {
......@@ -197,7 +200,7 @@ Page({
})
}
},
onTabItemTap(e){
onTabItemTap(e) {
this.goodsStorageList = null
},
/**
......@@ -210,8 +213,7 @@ Page({
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!