1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- // pages/tabber/home/index.js
- const api = require('../../utils/api');
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- menuList:[
- {
- icon:'/image/home/wuliugailan@3x.png',
- tit:'物流概览',
- url:"/pages/logistics/index"
- },
- {
- icon:'/image/home/icon_qujianxiangqing@3x.png',
- tit:'柜前取送',
- url:"/pages/take/index"
- },
- {
- icon:'/image/home/icon_qianshou@3x.png',
- tit:'物流签收',
- url:"/pages/signFor/index"
- },
- {
- icon:'/image/home/icon_daishoudian@3x.png',
- tit:'代收点',
- url:"/pages/servicePoint/index"
- },
- {
- icon:'/image/home/icon_guiziguanli@3x.png',
- url:"/pages/cabinet/index",
- tit:'柜子管理'
- },
- {
- icon:'/image/home/icon_sousuoyundan@3x.png',
- url:"/pages/serah/index",
- tit:'搜索运单'
- },
- ]
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- // api.getBanner().then(res=>{
- // console.log(res);
- // })
-
- },
- toUrl(e){
- let {url} = e.currentTarget.dataset
- wx.navigateTo({
- url,
- })
- },
- loginOut(){
- wx.removeStorageSync('token')
- wx.reLaunch({
- url: '/pages/login/login',
- })
- }
- })
|