// pages/tabber/home/index.js const api = require('../../../utils/api'); Page({ /** * 页面的初始数据 */ data: { menuList:[ { icon:'/image/home/icon_ruchangqianshou.png', tit:'入厂签收', url:"/pages/signIn/siginIn" }, { icon:'/image/home/icon_fenjianluru.png', tit:'分拣录入', url:"/pages/sorting/choice/choice" }, { icon:'/image/home/icon_zhijian.png', tit:'质检上挂', url:"/pages/control/choice/choice" }, { icon:'/image/home//icon_yichang.png', tit:'异常单' }, { icon:'/image/home/icon_yiwupandian.png', tit:'衣物盘点', url:'/pages/record/record' }, ] }, /** * 生命周期函数--监听页面加载 */ 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', }) } })