Browse Source

添加特价申请公众号消息推送的跳转

master
chenxuhui 7 years ago
parent
commit
6d8c1af490
3 changed files with 19 additions and 14 deletions
  1. +0
    -8
      pages/guarantee/detail/detail.js
  2. +17
    -4
      pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail.js
  3. +2
    -2
      project.config.json

+ 0
- 8
pages/guarantee/detail/detail.js View File

@ -196,14 +196,6 @@ Page({
load(that, ID) load(that, ID)
}, },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() { onShow: function() {
var tmpData = app.globalData.billInfo var tmpData = app.globalData.billInfo
var oldData = this.data.array var oldData = this.data.array


+ 17
- 4
pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail.js View File

@ -394,13 +394,26 @@ Page({
}, },
onLoad: function (options) { 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'; var method ='/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/MarketingActivityRpc/Load';
let params = [ID];
let params = [detailItemID];
network.transfer_request(method, params, function (res) { network.transfer_request(method, params, function (res) {
console.log(res.result);
app.globalData.shareInParameter = {};
// 获取数据加载页面 // 获取数据加载页面
let goodsDetailsArray = []; let goodsDetailsArray = [];
var goodsNameArray = res.result.GoodsDetails; var goodsNameArray = res.result.GoodsDetails;


+ 2
- 2
project.config.json View File

@ -48,8 +48,8 @@
{ {
"id": 1, "id": 1,
"name": "模版消息进入", "name": "模版消息进入",
"pathName": "pages/outStore/outStoreDetail/outStoreDetail",
"query": "id=60",
"pathName": "pages/specialOrderApplication/specialOrderApplyDetail/specialOrderApplyDetail",
"query": "id=11",
"scene": "1043", "scene": "1043",
"referrerInfo": { "referrerInfo": {
"appId": "wx1a89a89a80318160" "appId": "wx1a89a89a80318160"


Loading…
Cancel
Save