From c88e2e899b4d982d2d7af72bc0b5a37c95845994 Mon Sep 17 00:00:00 2001 From: chenxuhui Date: Tue, 4 Dec 2018 13:36:41 +0800 Subject: [PATCH] 1 --- pages/login/login.json | 2 +- pages/orderList/orderList.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/login/login.json b/pages/login/login.json index fc754d6..c7e83ed 100644 --- a/pages/login/login.json +++ b/pages/login/login.json @@ -1,5 +1,5 @@ { "navigationBarBackgroundColor": "white", "navigationBarTextStyle": "black", - "navigationBarTitleText": "业务员登录" + "navigationBarTitleText": "畜司机登录" } \ No newline at end of file diff --git a/pages/orderList/orderList.js b/pages/orderList/orderList.js index 10d545a..7b24cfd 100644 --- a/pages/orderList/orderList.js +++ b/pages/orderList/orderList.js @@ -13,6 +13,11 @@ Page({ var that = this; var method = getOrderList; network.transfer_request(method, [], function (res) { + if(res.result.length <= 0){ + wx:wx.showToast({ + title: '暂无订单数据', + }) + } that.setData({ orderList: res.result, })