From 214f11a9f500da005f661ff66631eb580282c5f5 Mon Sep 17 00:00:00 2001 From: chenxuhui Date: Thu, 29 Nov 2018 21:21:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BE=E8=BD=A6=E5=8F=8A=E6=B4=BE=E8=BD=A6?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 2 +- pages/sendCargo/sendCargo.js | 80 +------ pages/sendCargo/sendCargo.wxml | 41 +++- pages/sendCargo/sendCargo.wxss | 257 +++++------------------ pages/sendTheDetails/sendTheDetails.json | 4 +- pages/sendTheDetails/sendTheDetails.wxml | 37 +--- pages/sendTheDetails/sendTheDetails.wxss | 235 ++++++++------------- 7 files changed, 191 insertions(+), 465 deletions(-) diff --git a/app.json b/app.json index 5d0154c..dfe4946 100644 --- a/app.json +++ b/app.json @@ -49,6 +49,6 @@ ] }, "navigateToMiniProgramAppIdList": [ - "wx0b897783b2588147" + "wx246fd8f3a0273f2f" ] } \ No newline at end of file diff --git a/pages/sendCargo/sendCargo.js b/pages/sendCargo/sendCargo.js index 2004577..363b42d 100644 --- a/pages/sendCargo/sendCargo.js +++ b/pages/sendCargo/sendCargo.js @@ -1,82 +1,27 @@ - const app = getApp(); var baseUrl = app.globalData.baseUrl; var network = require("../../utils/net.js"); var timechage = require("../../utils/dateTimeUtil.js"); - Page({ - /** - * 页面的初始数据 - */ data: { - currentData: 0, - dates: "请选择日期", - index: 0, - showView: false, - list:[], }, - onLoad: function (options) { - // 生命周期函数--监听页面加载 - - }, - + sendTheDetails: function (event) { let that = this var parm1 = event.currentTarget.dataset; wx.navigateTo({ url: '/pages/sendTheDetails/sendTheDetails?ID=' + parm1.id }) - console.log(parm1.id) - }, - - onChangeShowState: function () { - }, - onChangeShowState: function () { - - var that = this; - that.setData({ - showView: (!that.data.showView) - - }) - }, - - checkboxgroupBindchange: function (e) { - var temp1 = e.detail.value - var temp2 = '' - console.log(temp1) - if (temp1.length != 0) { - for (var i = 0, len = temp1.length; i < len; i++) { - temp2 = temp2 + temp1[i] + ',' - } - - } - }, - - bindDateChange: function (e) { - this.setData({ - dates: e.detail.value - }) - this.arr(); - }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - showView: (options.showView == "true" ? true : false) - - - }, onShow: function (e) { var that = this; var reslut = []; var method = '/MainSystem/B3MiniProgramRpc/XuRpcs/Customer/OrderRpc/GetNoDriverOrder'; var params = []; - network.requestLoading(method, params, function (res) { for (var i = 0; i < res.result.length; i++) { let dmo = { @@ -86,33 +31,12 @@ Page({ Money: res.result[i].Money, } reslut.push(dmo) - console.log(dmo) } - //res就是我们请求接口返回的数据 that.setData({ list: reslut, }) }) - }, - //获取当前滑块的index - bindchange: function (e) { - const that = this; - that.setData({ - currentData: e.detail.current - }) - }, - //点击切换,滑块index赋值 - checkCurrent: function (e) { - const that = this; - - if (that.data.currentData === e.target.dataset.current) { - return false; - } else { - - that.setData({ - currentData: e.target.dataset.current - }) - } } + }) \ No newline at end of file diff --git a/pages/sendCargo/sendCargo.wxml b/pages/sendCargo/sendCargo.wxml index 634ea2b..9c176da 100644 --- a/pages/sendCargo/sendCargo.wxml +++ b/pages/sendCargo/sendCargo.wxml @@ -1,14 +1,33 @@ - - - 莱西养护:{{item. -Customer_Name}} - ¥{{item.Money}} - NO:{{item. -ID}} - 出库日期:{{item. -LoadTime}} - - + + + +