Browse Source

1、首页背景图替换

2、我的订单列表优化
master
chenxuhui 7 years ago
parent
commit
d99106d5ec
5 changed files with 25 additions and 13 deletions
  1. BIN
      imgs/backGroundImage.png
  2. +1
    -1
      pages/orderList/orderDetail/orderDetail.wxml
  3. +22
    -8
      pages/orderList/orderList.js
  4. +0
    -2
      pages/orderList/orderList.json
  5. +2
    -2
      pages/saleOutStore/saleOutStore.js

BIN
imgs/backGroundImage.png View File

Before After
Width: 1242  |  Height: 434  |  Size: 358 KiB Width: 1242  |  Height: 434  |  Size: 329 KiB

+ 1
- 1
pages/orderList/orderDetail/orderDetail.wxml View File

@ -114,7 +114,7 @@
<view class='detaileListContainer'>
<block wx:for="{{orderInfo.Details}}" wx:key="item" wx:for-index="idx">
<template is="detailInfoTemplate" data="{{item}}" data="{{idx}}" />
<template is="detailInfoTemplate" data="{{item,idx}}" />
</block>
</view>
</scroll-view>


+ 22
- 8
pages/orderList/orderList.js View File

@ -6,31 +6,45 @@ var getOrderList = '/MainSystem/B3MiniProgramRpc/XuRpcs/Driver/CarRecordRpc/GetL
Page({
data: {
orderList:[],
orderList: [],
},
onShow: function (options) {
onShow: function(options) {
var that = this;
var method = getOrderList;
network.transfer_request(method, [], function (res) {
if(res.result.length <= 0){
wx:wx.showToast({
network.transfer_request(method, [app.globalData.Phone], function(res) {
var array = res.result;
if (array.length <= 0) {
wx: wx.showToast({
title: '暂无订单数据',
})
return;
}
let getArr = [];
for (var i = 0; i < array.length; i++) {
var dmo = {
ID: array[i].ID,
Customer_Name: array[i].Customer_Name,
LoadTime: timechage.formatTimeTwo(array[i].LoadTime.substring(6, 19), 'Y/M/D'),
Employee_Name: array[i].Employee_Name,
TotalNumber: array[i].TotalNumber,
Address: array[i].Address,
}
getArr.push(dmo);
}
that.setData({
orderList: res.result,
orderList: getArr,
})
})
},
//点击进入详情页面
transToOrderDetail: function (event) {
transToOrderDetail: function(event) {
var itemID = event.currentTarget.dataset.detailitemid;
wx.navigateTo({
url: 'orderDetail/orderDetail?id=' + itemID,
})
},
})

+ 0
- 2
pages/orderList/orderList.json View File

@ -1,5 +1,3 @@
{
"navigationBarBackgroundColor": "white",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "我的订单"
}

+ 2
- 2
pages/saleOutStore/saleOutStore.js View File

@ -11,7 +11,7 @@ var getListPath = '/MainSystem/B3MiniProgramRpc/XuRpcs/Driver/SaleOutStoreRpc/Ge
function getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, successaction) {
let getArr = [];
let method = getListPath;
let params = [true, UnCheckPageIndex, PageSize];
let params = [true, app.globalData.Phone, UnCheckPageIndex, PageSize];
network.transfer_request(method, params, function (res) {
successaction();
var array = res.result;
@ -45,7 +45,7 @@ function getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, successact
function getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize) {
let getArr = [];
let method = getListPath;
let params = [true, UnCheckPageIndex, PageSize];
let params = [true, app.globalData.Phone, UnCheckPageIndex, PageSize];
network.transfer_request(method, params, function (res) {
var array = res.result;
if (array.length <= 0) {


Loading…
Cancel
Save