Browse Source

销售出库添加公众号模版消息推送跳转

master
chenxuhui 7 years ago
parent
commit
8ccc896061
2 changed files with 20 additions and 4 deletions
  1. +18
    -2
      pages/outStore/outStoreDetail/outStoreDetail.js
  2. +2
    -2
      project.config.json

+ 18
- 2
pages/outStore/outStoreDetail/outStoreDetail.js View File

@ -1,5 +1,5 @@
// pages/outStore/outStoreDetail/outStoreDetail.js
var app = getApp()
var network = require("../../../utils/net.js");
Page({
@ -12,13 +12,29 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
//正常登录流程进入值为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 detailItemID = parseInt(options.ID);
let arrayLast = [];
let totalMoney = 0;
let method = '/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/SaleOutStoreRpc/GetSaleOutStoreDetail';
let params = [detailItemID];
network.transfer_request(method, params, function (res) {
app.globalData.shareInParameter = {};
var array = res.result;
for (var i = 0; i < array.length; i++) {
if (array[i].Money) {


+ 2
- 2
project.config.json View File

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


Loading…
Cancel
Save