diff --git a/xtends/client/index/index.js b/xtends/client/index/index.js
index c4cef31..ab58b71 100644
--- a/xtends/client/index/index.js
+++ b/xtends/client/index/index.js
@@ -9,38 +9,19 @@ Page({
data: {
safeBottom: app.globalData.safeBottom,
fragment: app.globalData.safeFragmentHeight,
- tabList: [
- { index: 0, value: 'message', badge: 0, name: '消息', blue: '/assets/tabbar/mall-blue.png', gray: '/assets/tabbar/mall-gray.png' },
- { index: 1, value: 'work', badge: 0, name: '工作台', blue: '/assets/tabbar/storage-blue.png', gray: '/assets/tabbar/storage-gray.png' },
- { index: 2, value: 'home', badge: 0, name: '我的', blue: '/assets/tabbar/home-blue.png', gray: '/assets/tabbar/home-gray.png' }
- ],
- tabIndex: 1,
+ show: false,
visiable: true
},
/************************************** 初始化流程 ********************************************/
onLoad: function (options) {
- const updateManager = wx.getUpdateManager()
- updateManager.onCheckForUpdate()
- updateManager.onUpdateReady(function () {
- // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
- updateManager.applyUpdate()
- })
- event.on('TabMessage', this, this.onEvent)
- this.setData({fragment: (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight), safeBottom: app.globalData.safeBottom })
+ this.setData({ safeBottom: app.globalData.safeBottom })
},
/************************************** 生命周期函数--监听页面初次渲染完成 ********************************************/
- onShow: function () {
- var pageView = this.selectComponent('#' + this.data.tabList[this.data.tabIndex].value)
- if (pageView) {
- pageView.onRestart()
- }
- },
- onChange: function ({detail}) {
- this.setData({ tabIndex: detail })
- this.onShow()
+ showMenu: function () {
+ this.setData({show: !this.data.show})
},
- stopTouchMove: function(e){
- return false
+ onClose: function(){
+ this.setData({show: false})
},
onEvent: function (message) {
if (message.what == 99) {
diff --git a/xtends/client/index/index.json b/xtends/client/index/index.json
index 3952be8..12d8c16 100644
--- a/xtends/client/index/index.json
+++ b/xtends/client/index/index.json
@@ -1,11 +1,7 @@
{
"usingComponents": {
- "van-icon": "/components/icon/index",
- "van-tabbar": "/components/tabbar/index",
- "van-tabbar-item": "/components/tabbar-item/index",
- "message": "/xtends/client/message/index/index",
- "workbench": "/xtends/client/workbench/index",
- "home": "/xtends/client/home/index",
+ "van-popup": "/components/popup/index",
+ "van-submit-bar": "/components/submit-bar/index",
"van-dialog": "/components/dialog/index"
}
}
\ No newline at end of file
diff --git a/xtends/client/index/index.wxml b/xtends/client/index/index.wxml
index 63c90cd..3005b31 100644
--- a/xtends/client/index/index.wxml
+++ b/xtends/client/index/index.wxml
@@ -1,18 +1,42 @@
-
-
-
-
-
+
+
+ premeal
+
-