From d88d0b938a3feb83171f3c08e32b080062540a84 Mon Sep 17 00:00:00 2001
From: xpz2018 <107107461@qq.com>
Date: Mon, 22 Feb 2021 19:37:06 +0800
Subject: [PATCH] no message
---
api/saas.js | 6 +-
app.json | 2 +
components/action-sheet/index.wxml | 61 ++++----------
components/tabbar/index.wxml | 2 +-
pages/formate.wxs | 5 ++
pages/index/index.js | 15 +++-
pages/index/index.wxml | 2 +-
pages/process/index/index.js | 64 +++++++++++++--
pages/process/index/index.json | 3 +-
pages/process/index/index.wxml | 19 +++--
pages/process/order-info/index.js | 1 -
pages/process/order-list/index.js | 23 ++----
pages/process/payment-list/index.js | 114 ++++++++++++++++++++++++++
pages/process/payment-list/index.json | 11 +++
pages/process/payment-list/index.wxml | 41 +++++++++
pages/process/payment-list/index.wxss | 7 ++
pages/process/payment/index.js | 72 ++++++++++++++++
pages/process/payment/index.json | 9 ++
pages/process/payment/index.wxml | 50 +++++++++++
pages/process/payment/index.wxss | 10 +++
20 files changed, 433 insertions(+), 84 deletions(-)
create mode 100644 pages/process/payment-list/index.js
create mode 100644 pages/process/payment-list/index.json
create mode 100644 pages/process/payment-list/index.wxml
create mode 100644 pages/process/payment-list/index.wxss
create mode 100644 pages/process/payment/index.js
create mode 100644 pages/process/payment/index.json
create mode 100644 pages/process/payment/index.wxml
create mode 100644 pages/process/payment/index.wxss
diff --git a/api/saas.js b/api/saas.js
index 4c0384b..48baa38 100644
--- a/api/saas.js
+++ b/api/saas.js
@@ -12,9 +12,11 @@ const sconfig = {
const loginToken = (params) => mPost(`/recycle-user-center/authorize/get/product-line-token/by/login-token`, params, sconfig)
const getUserInfo = () => mGet(`/recycle-user-center/user/get/user-info`, null, sconfig)
const getBaseInfo = () => mGet(`/ztb-factory/get/self-enterprise-profile-detail`, null, sconfig)
+const getStatisticsInfo = (params) => mGet(`/ztb-factory/get/my-workbench-statistics-info`, params, sconfig)
const bindingAdmin = (params) => mPost(`/recycle-user-center/bind/factory-admin`, params, sconfig)
const getOrderList = (params) => mGet(`/ztb-factory/factory-customer/get/order-list`, params, sconfig)
const getReceiptList = (params) => mGet(`/ztb-factory/factory/get/order-receipt-proof-audit-list`, params, sconfig)
+const getPeymentList = (params) => mGet(`/ztb-factory/get/order-pay-list`, params, sconfig)
const getOrderInfo = (id) => mGet(`/ztb-factory/factory-customer/get/order-detail/${id}`, null, sconfig)
const pricingOrder = (params) => mPost(`/ztb-factory/factory/submit/order-price`, params, sconfig)
const cancelOrder = (id) => mPost(`/ztb-factory/factory/cancel/order/${id}`, null, sconfig)
@@ -42,6 +44,7 @@ export {
getFactoryOrderInfo,
getOrderList,
getReceiptList,
+ getPeymentList,
getOrderInfo,
createOrder,
checkingOrder,
@@ -55,5 +58,6 @@ export {
deleteCustomer,
getCustomerInfo,
getPaperList,
- repeatOrder
+ repeatOrder,
+ getStatisticsInfo
}
\ No newline at end of file
diff --git a/app.json b/app.json
index 9c80688..433fdf2 100644
--- a/app.json
+++ b/app.json
@@ -9,6 +9,8 @@
"pages/process/order-list/index",
"pages/process/order-price/index",
"pages/process/order-info/index",
+ "pages/process/payment-list/index",
+ "pages/process/payment/index",
"pages/htmls/agreement/index",
"pages/message/detail/index"
],
diff --git a/components/action-sheet/index.wxml b/components/action-sheet/index.wxml
index 7ed2819..51718be 100644
--- a/components/action-sheet/index.wxml
+++ b/components/action-sheet/index.wxml
@@ -1,67 +1,36 @@
-
+
{{ description }}
-
-
+
{{ cancelText }}
-
+
\ No newline at end of file
diff --git a/components/tabbar/index.wxml b/components/tabbar/index.wxml
index 9239d21..df9a07b 100644
--- a/components/tabbar/index.wxml
+++ b/components/tabbar/index.wxml
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/pages/formate.wxs b/pages/formate.wxs
index 1e03ef7..495409c 100644
--- a/pages/formate.wxs
+++ b/pages/formate.wxs
@@ -56,8 +56,13 @@ function formateAmount(amount) {
return Number(amount).toFixed(2)
}
+function formateWeight(weight) {
+ return Number(weight).toFixed(3)
+}
+
module.exports = {
formateAmount: formateAmount,
+ formateWeight: formateWeight,
formatTime: formatTime,
formateDate: formateDate
}
\ No newline at end of file
diff --git a/pages/index/index.js b/pages/index/index.js
index eefaeab..bb3e939 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -1,4 +1,5 @@
// pages/administ/index.js
+const event = require('../../utils/event')
const app = getApp()
Page({
@@ -13,7 +14,8 @@ Page({
{ index: 1, value: 'work', badge: 0, name: '工作台', blue: '/assets/image/tabbar/process-blue.png', gray: '/assets/image/tabbar/process-gray.png' },
{ index: 2, value: 'home', badge: 0, name: '我的', blue: '/assets/image/tabbar/home-blue.png', gray: '/assets/image/tabbar/home-gray.png' }
],
- tabIndex: 1
+ tabIndex: 1,
+ visiable: true
},
/************************************** 初始化流程 ********************************************/
onLoad: function (options) {
@@ -23,7 +25,8 @@ Page({
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager.applyUpdate()
})
- this.setData({fragment: (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight) - 100, safeBottom: app.globalData.safeBottom })
+ event.on('TabMessage', this, this.onEvent)
+ this.setData({fragment: (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight), safeBottom: app.globalData.safeBottom })
},
/************************************** 生命周期函数--监听页面初次渲染完成 ********************************************/
onShow: function () {
@@ -38,5 +41,13 @@ Page({
},
stopTouchMove: function(e){
return false
+ },
+ onEvent: function (message) {
+ if (message.what == 99) {
+ this.setData({ visiable: message.visiable })
+ }
+ },
+ onUnload: function(){
+ event.remove('TabMessage', this)
}
})
\ No newline at end of file
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index 14d3689..63c90cd 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -5,7 +5,7 @@
-