| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- // pages/mine/mine.ts
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- // 功能菜单项
- menulists: [{id: 1, title: '资金资产', img: 'medal', path: "/mMine/pages/assets/assets"},
- {id: 2, title: "交易服务", img: 'invitation', path: "/mMine/pages/tradeserver/tradeserver"},
- {id: 3, title: '现货挂牌', img: 'underway', path: "/mTrade/pages/listing/listing"},
- {id: 4, title: '仓储服务', img: 'hot', path: "/mMine/pages/storage/storage"}],
- // 列表菜单项
- tablelists: [{id: 1, title: '实名认证', path: "/mMine/pages/realauth/realauth"},
- {id: 2, title: '签约解约管理', path: "/mMine/pages/bank/bank"},
- {id: 3, title: '我的库存', path: "/mMine/pages/myinventorys/myinventorys"},
- {id: 4, title: '单据查询', path: "/mMine/pages/ordersearch/ordersearch"},
- {id: 5, title: '我的订单', path: "/mMine/pages/myorders/myorders"},
- {id: 6, title: '我的报表', path: "/mMine/pages/myreports/myreports"},
- {id: 7, title: '我的履约', path: "/mMine/pages/myperformance/myperformance"}],
- /// 微信头像
- avatarUrl: "",
- /// 微信昵称
- nickName: ""
- },
- /**
- * 进入系统设置
- */
- goToSettings() {
- wx.navigateTo({
- url: '/mMine/pages/settings/settings'
- })
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad() {
- /// 获取微信头像
- let url = wx.getStorageSync('avatarUrl')
- if (url) {
- this.setData({
- avatarUrl: url
- })
- }
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
-
- },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
- this.getTabBar().init()
- },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
- },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
- },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
- },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
- },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
- }
- })
|