From 1e8596cc6f4a55eaccb85b4e9d645eeab5df9450 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Fri, 5 Feb 2021 17:39:39 +0800 Subject: [PATCH] no message --- api/saas.js | 2 +- pages/home/customer/index.js | 5 +++-- pages/home/customer/index.json | 2 +- pages/home/customer/index.wxml | 29 ++++++++++++++++------------ pages/login/index.js | 4 ++-- pages/process/order-price/index.wxml | 2 +- 6 files changed, 25 insertions(+), 19 deletions(-) diff --git a/api/saas.js b/api/saas.js index f35e6f1..4c0384b 100644 --- a/api/saas.js +++ b/api/saas.js @@ -27,7 +27,7 @@ const getPaperList = (params) => mGet(`/ztb-factory/factory/get/all-product`, pa const getPaperPrice = (params) => mGet(`/ztb-factory/factory/get/product-price-list`, params, sconfig) const savePaperPrice = (params) => mPost(`/ztb-factory/factory/save/product-price`, params, sconfig) const updatePaperPrice = (params) => mPost(`/ztb-factory/factory/update/product-price`, params, sconfig) -const getCustomerList = (params) => mGet(`/ztb-factory/factory/wechat-applet/get/customer-list`, params, sconfig) +const getCustomerList = (params) => mGet(`/ztb-factory/factory/get/customer-list`, params, sconfig) const editCustomer = (params) => mPost(`/ztb-factory/factory/edit/customer`, params, sconfig) const deleteCustomer = (id) => mPost(`/ztb-factory/factory/delete/customer/${id}`, null, sconfig) const getCustomerInfo = (id) => mPost(`/ztb-factory/factory/wechat-applet/get/customer-detail/${id}`, null, sconfig) diff --git a/pages/home/customer/index.js b/pages/home/customer/index.js index a08ef8f..3516c20 100644 --- a/pages/home/customer/index.js +++ b/pages/home/customer/index.js @@ -76,7 +76,8 @@ Page({ this.setData({ requesting: false, loading: false }) util.showToast(err) }) + }, + onSearch:function(){ + this.onRefreshList() } - - }) \ No newline at end of file diff --git a/pages/home/customer/index.json b/pages/home/customer/index.json index a80f24f..233680a 100644 --- a/pages/home/customer/index.json +++ b/pages/home/customer/index.json @@ -2,7 +2,7 @@ "usingComponents": { "van-search": "/components/search/index", "refresh-view": "/components/refresher/index", - "van-tabs": "/components/tabs/index", + "van-image": "/components/image/index", "van-divider": "/components/divider/index", "van-loading": "/components/loading/index", "van-cell": "/components/cell/index" diff --git a/pages/home/customer/index.wxml b/pages/home/customer/index.wxml index c73f8cb..05eb022 100644 --- a/pages/home/customer/index.wxml +++ b/pages/home/customer/index.wxml @@ -1,13 +1,14 @@ - 客户列表 + 客户列表 搜索 - + @@ -15,16 +16,20 @@ {{loading? '正在加载' : '暂无数据'}} - - - - + + + + + + {{item.name || ''}} + {{item.mobile || ('卡号:' + item.cardNo)}} + - - - - - {{finished?'到底啦~':'加载中...'}} - + + + + + {{finished?'到底啦~':'加载中...'}} + \ No newline at end of file diff --git a/pages/login/index.js b/pages/login/index.js index 57ae825..cb37f4e 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -23,8 +23,8 @@ Page({ loging: false, regist: false, metaData: null, - // code: null, - code: '?mark=ztb_saas&QrCodeRecordId=554641854092677120' + code: null + // code: '?mark=ztb_saas&QrCodeRecordId=554641854092677120' }, /************************************** 初始化登录流程 ********************************************/ onLoad: function (options) { diff --git a/pages/process/order-price/index.wxml b/pages/process/order-price/index.wxml index a0fa82f..8d479f9 100644 --- a/pages/process/order-price/index.wxml +++ b/pages/process/order-price/index.wxml @@ -57,7 +57,7 @@ - 是否无皮过磅 + 无皮过磅 {{ form.isWithoutTare ? '是' : '否'}}