"use strict"; const common_vendor = require("../../common/vendor.js"); if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); _easycom_uni_icons2(); } const _easycom_uni_icons = () => "../../node-modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.js"; if (!Math) { _easycom_uni_icons(); } const _sfc_main = { __name: "mine", setup(__props) { const isSeleid = common_vendor.ref(-1); const userInfo = common_vendor.ref(null); common_vendor.onMounted(() => { userInfo.value = common_vendor.index.getStorageSync("userInfo"); }); const dataList = common_vendor.ref([ { "category": "operation", "name": "运维", "chilren": [ { "customsrc": "icon-ebikeBluetooth1", "label": "蓝牙扫码", "id": 2, "bh": "yw_lysm", "path": "/pages/warehouse/bluetooth/bluetoothscan" }, { "src": "link", "label": "换二维码", "id": 3, "bh": "yw_ghewm", "path": "/pages/warehouse/qrcodereplace/qrcodereplace" }, { "customsrc": "icon-ebikedianchigenghuan", "label": "换电", "id": 4, "bh": "yw_hd", "path": "/pages/devops/changebatteries/changebatteries" }, { "customsrc": "icon-ebikedianchi1", "label": "领料", "id": 5, "bh": "yw_ll", "path": "/pages/warehouse/component/picking" } ] }, { "category": "warehouse", "name": "仓库", "chilren": [ { "src": "settings", "label": "测试中控", "id": 36, "bh": "ck_cszk", "path": "/pages/warehouse/detectionecu/detectionecu" }, { "customsrc": "icon-ebikewode-wodecheku", "label": "整车仓库", "id": 37, "bh": "ck_zcck", "path": "/pages/warehouse/ebikehouse/ebikehouse" }, { "src": "tune", "label": "解绑中控", "id": 38, "bh": "yw_jbzk", "path": "/pages/warehouse/ecuunbind/ecuunbindlist" }, { "customsrc": "icon-ebiketoukui", "label": "绑定头盔", "id": 39, "bh": "yw_bdtk", "path": "/pages/warehouse/bindhelmet/bindhelmet" }, { "customsrc": "icon-ebikebangdingcheliang-01", "label": "整车绑定", "id": 40, "bh": "yw_zcbd", "path": "/pages/warehouse/wholebind/wholebind" }, { "customsrc": "icon-ebikeguzhangshangbao", "label": "故障上报", "id": 41, "bh": "yw_gzsb", "path": "/pages/devops/faultreport/faultreport" }, { "customsrc": "icon-ebikebtn_tongyong_shebeijiancha", "label": "设备检查", "id": 42, "bh": "yw_sbjc", "path": "/pages/devops/checkDevice/checkDevice" }, { "customsrc": "icon-ebikeweixiu", "label": "维修", "id": 43, "bh": "yw_sbwx", "path": "/pages/devops/maintenancepage/maintenancepage" }, { "customsrc": "icon-ebikeqitachuku", "label": "部件出库", "id": 44, "bh": "yw_bjck", "path": "/pages/warehouse/component/outlist" }, { "customsrc": "icon-ebikeqitaruku", "label": "部件入库", "id": 45, "bh": "yw_bjrk", "path": "/pages/warehouse/component/enterlist" } ] }, { "category": "warehouse", "name": "运营", "chilren": [{ "src": "navigate", "label": "运营车辆", "id": 80, "bh": "", "path": "/pages/warehouse/ebikehouse/vehicleoperation" }] } ]); const onClikcList = (icon) => { const { id, bh, label, path } = icon; isSeleid.value = id; if (path) { setTimeout(() => { common_vendor.index.navigateTo({ url: path // }); }, 100); } setTimeout(() => { isSeleid.value = -1; }, 200); }; const onClickWorkSet = (res) => { common_vendor.index.showModal({ title: "确认退出", content: "是否确认退出并清除缓存?", success: function(res2) { if (res2.confirm) { common_vendor.index.clearStorage(); common_vendor.index.reLaunch({ url: "/pages/login/login" }); } else if (res2.cancel) ; } }); }; return (_ctx, _cache) => { return common_vendor.e({ a: userInfo.value != null }, userInfo.value != null ? { b: common_vendor.t(userInfo.value.username) } : {}, { c: common_vendor.o(($event) => onClickWorkSet()), d: common_vendor.f(dataList.value, (item, index, i0) => { return { a: common_vendor.t(item.name), b: common_vendor.f(item.chilren, (icon, i, i1) => { return common_vendor.e({ a: icon.customsrc }, icon.customsrc ? { b: "7c2ebfa5-0-" + i0 + "-" + i1, c: common_vendor.p({ ["custom-prefix"]: "iconfont", color: "#1488f5", type: icon.customsrc, size: "25" }) } : { d: "7c2ebfa5-1-" + i0 + "-" + i1, e: common_vendor.p({ color: "#1488f5", type: icon.src ? icon.src : "image", size: "25" }) }, { f: common_vendor.n(icon.id == isSeleid.value ? `classimgsm` : ``), g: common_vendor.t(icon.label), h: common_vendor.o(($event) => onClikcList(icon), index) }); }), c: index, d: index }; }) }); }; } }; const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map