import apiAddr from '../../api/base'; import { setData } from '../../utils/index'; Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { nav_list:[ { url:"/pages/water_filter/water_filter", nav_name:"设备", photo:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/deviceIcon.png" }, { url:"/pages/info/info", nav_name:"我的", photo:"https://zhsq.hshuishang.com/attachs/navigation/2024/12/23/6768c0b16ce89.png" }, ], foot_width:'50%', }, /** * 组件的方法列表 */ methods: { jump(e){ console.log(e); wx.redirectTo({ url: e.currentTarget.dataset.url, }) }, }, lifetimes: { attached: function () { // 组件被添加到页面节点树时执行 }, }, })