From bbeb3d7fc41ae9ea16d91d7d81ee235bbd765d50 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Mon, 10 Jan 2022 18:48:59 +0800 Subject: [PATCH] no message --- pages/fragments/chant-station/index.js | 66 ++++++++++++++++++++++++ pages/fragments/chant-station/index.json | 14 +++++ pages/fragments/chant-station/index.wxml | 45 ++++++++++++++++ pages/fragments/chant-station/index.wxss | 12 +++++ pages/merchant/index.json | 2 +- 5 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 pages/fragments/chant-station/index.js create mode 100644 pages/fragments/chant-station/index.json create mode 100644 pages/fragments/chant-station/index.wxml create mode 100644 pages/fragments/chant-station/index.wxss diff --git a/pages/fragments/chant-station/index.js b/pages/fragments/chant-station/index.js new file mode 100644 index 0000000..5951e69 --- /dev/null +++ b/pages/fragments/chant-station/index.js @@ -0,0 +1,66 @@ +const math = require('../../../utils/math') +const event = require('../../../utils/event') +const app = getApp() + +Component({ + options: { + addGlobalClass: true, + multipleSlots: true + }, + /** 页面的初始数据 */ + data: { + firstShow: false, + userInfo: null, + menuList: [ + {url: '/pages/home/factory-list/index', text: '客户管理', icon: '/assets/image/reconciliation-icon.png'}, + {url: '/pages/home/factory-list/index', text: '电子合同', icon: '/assets/image/reconciliation-icon.png'} + ], + tabIndex: 0, + tabList: [ + {id: 1, name: '待预约', badge: 0, status: 1 , icon: '/assets/image/reconciliation-icon.png'}, + {id: 2, name: '待上传', badge: 0, status: 2 , icon: '/assets/image/reconciliation-icon.png'}, + {id: 3, name: '待审核', badge: 0, status: 3 , icon: '/assets/image/reconciliation-icon.png'}, + {id: 3, name: '待结算', badge: 0, status: 3 , icon: '/assets/image/reconciliation-icon.png'}, + {id: 3, name: '已完成', badge: 0, status: 3 , icon: '/assets/image/reconciliation-icon.png'} + ] + }, + lifetimes: { + attached: function () { + event.on('EventMessage', this, this.onEvent) + }, + detached: function () { + event.remove('EventMessage', this) + } + }, + methods: { + onRestart: function () { + if(!this.data.firstShow) { + this.setData({height: app.globalData.windowHeight - app.globalData.safeBottom - 100, userInfo: app.userInfo }) + } + // this.fetchStatisticsInfo() + this.data.firstShow = true + }, + onEvent: function (message) { + if (message.what == 888) { + } + }, + fetchStatisticsInfo: function(loading){ + getBalanceInfo().then(result => { + if(result.data){ + result.data.accountMoney = math.minus(result.data.accountMoney, result.data.frozenMoney) + this.setData({ banlanceInfo: result.data }) + } + if(loading){ + wx.hideLoading() + } + }).catch(err => { + if(loading){ + wx.hideLoading() + } + }) + }, + menuClick: function(e){ + + } + } +}) \ No newline at end of file diff --git a/pages/fragments/chant-station/index.json b/pages/fragments/chant-station/index.json new file mode 100644 index 0000000..5d53620 --- /dev/null +++ b/pages/fragments/chant-station/index.json @@ -0,0 +1,14 @@ +{ + "component": true, + "usingComponents": { + "van-image": "/components/image/index", + "van-grid": "/components/grid/index", + "van-grid-item": "/components/grid-item/index", + "van-cell": "/components/cell/index", + "van-cell-group": "/components/cell-group/index", + "van-info": "/components/info/index", + "van-tabs": "/components/tabs/index", + "van-tab": "/components/tab/index", + "van-icon": "/components/icon/index" + } +} \ No newline at end of file diff --git a/pages/fragments/chant-station/index.wxml b/pages/fragments/chant-station/index.wxml new file mode 100644 index 0000000..743d77b --- /dev/null +++ b/pages/fragments/chant-station/index.wxml @@ -0,0 +1,45 @@ + + + + + + + + {{userInfo.storeBaseInfo.name || ''}} + + + {{userInfo.nickname || userInfo.realName}} + {{userInfo.mobile}} + + + + + + 代卖订单 + + 查看全部订单 + + + + + + + + + + + + + 其他工具 + + + + + + + + + + \ No newline at end of file diff --git a/pages/fragments/chant-station/index.wxss b/pages/fragments/chant-station/index.wxss new file mode 100644 index 0000000..0e998ca --- /dev/null +++ b/pages/fragments/chant-station/index.wxss @@ -0,0 +1,12 @@ +/* pages/index/index.wxss */ +.menu:active { + opacity: .5 +} + +.name{ + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; + color:white; + margin-left:32rpx; +} \ No newline at end of file diff --git a/pages/merchant/index.json b/pages/merchant/index.json index 16b03d1..57f03f3 100644 --- a/pages/merchant/index.json +++ b/pages/merchant/index.json @@ -2,7 +2,7 @@ "usingComponents": { "source": "/pages/fragments/source-list/index", "manager": "/pages/fragments/manager/index", - "package": "/pages/fragments/package-station/index", + "package": "/pages/fragments/chant-station/index", "van-icon": "/components/icon/index", "van-tabbar": "/components/tabbar/index", "van-tabbar-item": "/components/tabbar-item/index"