From 98d91dc0e863a853c2b5de8c4fdd7992f8539cc3 Mon Sep 17 00:00:00 2001 From: chenxuhui Date: Wed, 21 Nov 2018 16:48:58 +0800 Subject: [PATCH] ../ --- app.js | 6 +- app.json | 3 +- .../goodaNameChooseTemplate.js | 90 +++++++++++++++++++ .../goodaNameChooseTemplate.json | 5 ++ .../goodaNameChooseTemplate.wxml | 62 +++++++++++++ .../goodaNameChooseTemplate.wxss | 65 ++++++++++++++ pages/login/login.js | 33 ++++--- pages/saleForecastList/newBill/newBill.js | 6 ++ pages/saleForecastList/newBill/newBill.wxml | 6 +- pages/saleForecastList/saleForecastList.js | 12 +-- 10 files changed, 260 insertions(+), 28 deletions(-) create mode 100644 pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js create mode 100644 pages/goodaNameChooseTemplate/goodaNameChooseTemplate.json create mode 100644 pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxml create mode 100644 pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxss diff --git a/app.js b/app.js index 1659c3f..bbd4a73 100644 --- a/app.js +++ b/app.js @@ -13,14 +13,14 @@ App({ DecryptCookie: '', UserInfo: null, BaseUrl: "https://miniprogram.food988.com/Rest.aspx", - LoginPath: "/MainSystem/MainSystem/Auth/WeixinLogin", TransferUrl: 'https://miniprogram.food988.com/RequestTransfer.aspx', - CustomerId: 0, + globalCustomerID: 0, SelectCustomer_ID: null, SelectStartDate: null, SelectEndDate: null, SelectBillState: null, billInfo: [], - billInfoUp: [] + billInfoUp: [], + shareInState:1, } }) \ No newline at end of file diff --git a/app.json b/app.json index 75a3d4e..d213c60 100644 --- a/app.json +++ b/app.json @@ -16,7 +16,8 @@ "pages/guarantee/detail/detail", "pages/guarantee/newbill/newbill", "pages/guarantee/selectbill/selectbill", - "pages/guarantee/detailshow/detailshow" + "pages/guarantee/detailshow/detailshow", + "pages/goodaNameChooseTemplate/goodaNameChooseTemplate" ], "window": { "backgroundTextStyle": "light", diff --git a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js new file mode 100644 index 0000000..74e5255 --- /dev/null +++ b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js @@ -0,0 +1,90 @@ +// pages/goodaNameChooseTemplate/goodaNameChooseTemplate.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + currentTab: 0, + winHeight: 0, + winWidth: 0, + }, + /** + * 滑动切换tab + */ + bindChange: function (e) { + var that = this; + that.setData({ + currentTab: e.detail.current + }); + + }, + /** + * 点击tab切换 + */ + swichNav: function (e) { + var that = this; + if (this.data.currentTab === e.target.dataset.current) { + return false; + } else { + that.setData({ + currentTab: e.target.dataset.current + }) + } + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.json b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.json new file mode 100644 index 0000000..5db69ff --- /dev/null +++ b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.json @@ -0,0 +1,5 @@ +{ + "navigationBarBackgroundColor": "white", + "navigationBarTextStyle": "black", + "navigationBarTitleText": "存货列表" +} \ No newline at end of file diff --git a/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxml b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxml new file mode 100644 index 0000000..ffc4a84 --- /dev/null +++ b/pages/goodaNameChooseTemplate/goodaNameChooseTemplate.wxml @@ -0,0 +1,62 @@ + + + + 全部 + 收藏夹 + + + + + 收藏 + + + + + + + + +