diff --git a/pages/guarantee/detail/detail.js b/pages/guarantee/detail/detail.js index b97f62c..9d5c010 100644 --- a/pages/guarantee/detail/detail.js +++ b/pages/guarantee/detail/detail.js @@ -196,14 +196,6 @@ Page({ load(that, ID) }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function() {}, - - /** - * 生命周期函数--监听页面显示 - */ onShow: function() { var tmpData = app.globalData.billInfo var oldData = this.data.array diff --git a/pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail.js b/pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail.js index b6fa052..8506bb8 100644 --- a/pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail.js +++ b/pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail.js @@ -394,13 +394,26 @@ Page({ }, onLoad: function (options) { - var that = this; - let ID = Number(options.ID); + //正常登录流程进入值为0,分享页面直接进入值为1 + if (app.globalData.shareInState == 1) { + return; + } + if (app.globalData.shareInParameter.id) { + var detailItemID = parseInt(app.globalData.shareInParameter.id); + // wx.showModal({ + // title: '看下ID值', + // content: '+++' + detailItemID + '+++', + // }) + // detailItemType = app.globalData.shareInParameter.detailItemType; + } else { + var detailItemID = parseInt(options.ID); + } + var that = this; var method ='/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/MarketingActivityRpc/Load'; - let params = [ID]; + let params = [detailItemID]; network.transfer_request(method, params, function (res) { - console.log(res.result); + app.globalData.shareInParameter = {}; // 获取数据加载页面 let goodsDetailsArray = []; var goodsNameArray = res.result.GoodsDetails; diff --git a/project.config.json b/project.config.json index 7aa231e..7be88d8 100644 --- a/project.config.json +++ b/project.config.json @@ -48,8 +48,8 @@ { "id": 1, "name": "模版消息进入", - "pathName": "pages/outStore/outStoreDetail/outStoreDetail", - "query": "id=60", + "pathName": "pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail", + "query": "id=11", "scene": "1043", "referrerInfo": { "appId": "wx1a89a89a80318160"