Commit 97f6932b by 李伟康

修复线上BUG

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