开始做工作台,调整用电查询分页
This commit is contained in:
24
pages/workBench/components/approve/index.js
Normal file
24
pages/workBench/components/approve/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// pages/workBench/components/approve/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
4
pages/workBench/components/approve/index.json
Normal file
4
pages/workBench/components/approve/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
2
pages/workBench/components/approve/index.wxml
Normal file
2
pages/workBench/components/approve/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
||||
<!--pages/workBench/components/approve/index.wxml-->
|
||||
<text>pages/workBench/components/approve/index.wxml</text>
|
1
pages/workBench/components/approve/index.wxss
Normal file
1
pages/workBench/components/approve/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/workBench/components/approve/index.wxss */
|
24
pages/workBench/components/recharge/index.js
Normal file
24
pages/workBench/components/recharge/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// pages/workBench/components/recharge/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
6
pages/workBench/components/recharge/index.json
Normal file
6
pages/workBench/components/recharge/index.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-popup": "@vant/weapp/popup/index"
|
||||
}
|
||||
}
|
3
pages/workBench/components/recharge/index.wxml
Normal file
3
pages/workBench/components/recharge/index.wxml
Normal file
@@ -0,0 +1,3 @@
|
||||
<!--pages/workBench/components/recharge/index.wxml-->
|
||||
充值
|
||||
<searchSelect />
|
1
pages/workBench/components/recharge/index.wxss
Normal file
1
pages/workBench/components/recharge/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/workBench/components/recharge/index.wxss */
|
24
pages/workBench/components/record/index.js
Normal file
24
pages/workBench/components/record/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// pages/workBench/components/record/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
4
pages/workBench/components/record/index.json
Normal file
4
pages/workBench/components/record/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
2
pages/workBench/components/record/index.wxml
Normal file
2
pages/workBench/components/record/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
||||
<!--pages/workBench/components/record/index.wxml-->
|
||||
<text>pages/workBench/components/record/index.wxml</text>
|
1
pages/workBench/components/record/index.wxss
Normal file
1
pages/workBench/components/record/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/workBench/components/record/index.wxss */
|
68
pages/workBench/index.js
Normal file
68
pages/workBench/index.js
Normal file
@@ -0,0 +1,68 @@
|
||||
// pages/workBench/index.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
active: 0
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
onTabChange(e) {
|
||||
this.setData({ active: e.detail.index })
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
11
pages/workBench/index.json
Normal file
11
pages/workBench/index.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"van-tab": "@vant/weapp/tab/index",
|
||||
"van-tabs": "@vant/weapp/tabs/index",
|
||||
"navigator": "/components/navigator/index",
|
||||
"approve": "./components/approve/index",
|
||||
"recharge": "./components/recharge/index",
|
||||
"record": "./components/record/index"
|
||||
},
|
||||
"navigationStyle": "custom"
|
||||
}
|
13
pages/workBench/index.wxml
Normal file
13
pages/workBench/index.wxml
Normal file
@@ -0,0 +1,13 @@
|
||||
<!--pages/workBench/index.wxml-->
|
||||
<navigator title="工作台" canBack="true" />
|
||||
<van-tabs active="{{ active }}" bind:change="onTabChange">
|
||||
<van-tab title="充值">
|
||||
<recharge />
|
||||
</van-tab>
|
||||
<van-tab title="查询">
|
||||
<record />
|
||||
</van-tab>
|
||||
<van-tab title="审核">
|
||||
<approve />
|
||||
</van-tab>
|
||||
</van-tabs>
|
1
pages/workBench/index.wxss
Normal file
1
pages/workBench/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/workBench/index.wxss */
|
Reference in New Issue
Block a user