Browse Source

feature: 处理加载图片失败的问题

Damon 8 months ago
parent
commit
0de62d1462
2 changed files with 5 additions and 5 deletions
  1. 4 4
      pages/deviceConMode/index.js
  2. 1 1
      utils/route_util.js

+ 4 - 4
pages/deviceConMode/index.js

@@ -13,24 +13,24 @@ Page({
     userFuzzyLocation: true,
     userFuzzyLocation: true,
     nvabarData: {
     nvabarData: {
       showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
       showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
-      title: '连接配网', //导航栏 中间的标题
+      title: '配网模式选择', //导航栏 中间的标题
     },
     },
     isNotruter: false,
     isNotruter: false,
     model: 0,
     model: 0,
     connectDevice: {},
     connectDevice: {},
     typeList: [
     typeList: [
       {
       {
-        "icon": "../../images/device/mode_wifi.png",
+        "icon": "../../images/device/mode_2.png",
         "text": "WiFi模式",
         "text": "WiFi模式",
         "type": 2,
         "type": 2,
       },
       },
       {
       {
-        "icon": "../../images/device/mode_ble.png",
+        "icon": "../../images/device/mode_1.png",
         "text": "蓝牙模式",
         "text": "蓝牙模式",
         "type": 1,
         "type": 1,
       },
       },
       {
       {
-        "icon": "../../images/device/mode_g4.png",
+        "icon": "../../images/device/mode_4.png",
         "text": "4G模式",
         "text": "4G模式",
         "type": 4,
         "type": 4,
       },
       },

+ 1 - 1
utils/route_util.js

@@ -96,6 +96,7 @@ function jump2Other(item) {
 };
 };
 
 
 ///返回到某个界面,不替换当前界面
 ///返回到某个界面,不替换当前界面
+///route:pages/index/index
 async function goBackRoute(route) {
 async function goBackRoute(route) {
   const pages = getCurrentPages(); // 获取当前页面栈
   const pages = getCurrentPages(); // 获取当前页面栈
   const pageCount = pages.length; // 页面栈中的页面数量
   const pageCount = pages.length; // 页面栈中的页面数量
@@ -112,7 +113,6 @@ async function goBackRoute(route) {
       delta: pageNuble,
       delta: pageNuble,
     });
     });
   }
   }
-
 };
 };
 
 
 module.exports = {
 module.exports = {