xiaohaizhao пре 3 месеци
родитељ
комит
16f02c6d05

+ 2 - 1
app.json

@@ -57,7 +57,8 @@
         "activity/selectProduct/cart/index",
         "target/index",
         "favorites/index",
-        "activity/bindingProduct/index"
+        "activity/bindingProduct/index",
+        "deliveryConfirmation/index"
       ]
     },
     {

+ 66 - 0
packageA/deliveryConfirmation/index.js

@@ -0,0 +1,66 @@
+// packageA/deliveryConfirmation/index.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 3 - 0
packageA/deliveryConfirmation/index.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 1 - 0
packageA/deliveryConfirmation/index.scss

@@ -0,0 +1 @@
+/* packageA/deliveryConfirmation/index.wxss */

+ 2 - 0
packageA/deliveryConfirmation/index.wxml

@@ -0,0 +1,2 @@
+<!--packageA/deliveryConfirmation/index.wxml-->
+<text>packageA/deliveryConfirmation/index.wxml</text>

+ 5 - 0
pages/index/index.js

@@ -168,6 +168,11 @@ Page({
 					path: "/marketing/annunciate/index",
 					icon: "work-a-shouyejingangqutonggao",
 					objectname: "sat_notice"
+				}, {
+					name: "到货确认",
+					key: "WGoodsReceiptConfirmationForm",
+					path: "/packageA/deliveryConfirmation/index",
+					icon: "icon-shouhuo"
 				}];
 				let edd = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ["E-订单"], ["商品档案", "销售管理", "财务管理", "售后管理", "发货管理", "业绩查询", '消息中心']).concat(getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ["通用"], ['消息中心'])),
 					list = [];

+ 7 - 6
utils/Http.js

@@ -2,19 +2,19 @@ class HTTP {
 	constructor() {
 		this.ENV = wx.getAccountInfoSync().miniProgram.envVersion;
 		this.urls = [{
-			name: "云链E订单",
-			url: "https://www.cnyunl.com"
+			name: "美大正式",
+			url: "https://crm.meida.com:16691"
 		}, {
 			name: "楚楚",
 			url: "https://cucu.cnyunl.com:8079"
 		}, {
 			name: "开发环境",
-			url: "http://61.164.207.46:8200"
+			url: "http://61.164.207.46:8300"
 		}]
 		if (this.ENV === 'release') { // 正式版
-			this.baseUrl = "https://www.cnyunl.com";
+			this.baseUrl = "https://crm.meida.com:16691";
 		} else {
-			this.baseUrl = "http://61.164.207.46:8200";
+			this.baseUrl = "http://61.164.207.46:8300";
 		}
 		console.log("接口地址:", this.baseUrl)
 	}
@@ -23,7 +23,8 @@ class HTTP {
 		data = {},
 		method = "POST",
 		header = {
-			'content-type': 'application/json'
+			'content-type': 'application/json',
+			"accesstoken": data.accesstoken || wx.getStorageSync('userMsg').token || ''
 		},
 		showLoading = '加载中...'
 	}) {