소스 검색

校验合法域名https+tabbar删除

ming 1 년 전
부모
커밋
5fbc248586
5개의 변경된 파일5개의 추가작업 그리고 34개의 파일을 삭제
  1. 1 1
      src/App.vue
  2. 1 30
      src/pages.json
  3. 1 1
      src/pages/index.vue
  4. 1 1
      src/pages/serveConfig.vue
  5. 1 1
      src/pages/serveConfigSelect.vue

+ 1 - 1
src/App.vue

@@ -125,7 +125,7 @@ function setPermissions() {
 watchEffect(() => {
   //#ifdef APP-PLUS || MP-WEIXIN
   if (uni.getStorageSync("serveUrl")) {
-    config.baseUrl = "http://" + uni.getStorageSync("serveUrl") + "/prod-api";
+    config.baseUrl = "https://" + uni.getStorageSync("serveUrl") + "/prod-api";
   }
   //#endif
 });

+ 1 - 30
src/pages.json

@@ -77,36 +77,7 @@
         "navigationBarTitleText": "uni-app",
         "backgroundColor": "#F8F8F8"
     },
-    "tabBar": {
-        "fontSize": "12px",
-        "color": "#a9a9a9",
-        "selectedColor": "#000000",
-        "borderStyle": "white",
-        "backgroundColor": "#ffffff",
-        "list": [
-            {
-                "pagePath": "pages/index",
-                "iconPath": "/static/images/tabBar/tab-home.png",
-                "selectedIconPath": "/static/images/tabBar/tab-home-blue.png",
-                "text": "工作台",
-                "visible": false
-            },
-            {
-                "pagePath": "pages/info",
-                "iconPath": "/static/images/tabBar/tab-info.png",
-                "selectedIconPath": "/static/images/tabBar/tab-info-blue.png",
-                "text": "消息",
-                "visible": false
-            },
-            {
-                "pagePath": "pages/mine",
-                "iconPath": "/static/images/tabBar/tab-my.png",
-                "selectedIconPath": "/static/images/tabBar/tab-my-blue.png",
-                "text": "我的",
-                "visible": false
-            }
-        ]
-    },
+   
     "condition": {
         "current": 0,
         "list": [

+ 1 - 1
src/pages/index.vue

@@ -1,6 +1,6 @@
 <template>
   <view>登录了</view>
-  <!--       <web-view src="https://manager.usky.cn/mobile/#/">跳转</web-view> -->
+        <web-view src="https://manager.usky.cn/mobile/#/">跳转</web-view>
 </template>
 
 <script setup>

+ 1 - 1
src/pages/serveConfig.vue

@@ -125,7 +125,7 @@ function handleSubmit() {
     }
   }
 
-  config.baseUrl = "http://" + uni.getStorageSync("serveUrl") + "/prod-api";
+  config.baseUrl = "https://" + uni.getStorageSync("serveUrl") + "/prod-api";
   navigateTo();
 }
 

+ 1 - 1
src/pages/serveConfigSelect.vue

@@ -155,7 +155,7 @@ function handleSubmit() {
     serveList[0].radiolist.forEach((el) => {
       if (el.id == serveList[0].radiovalue) {
         uni.setStorageSync("serveUrl", el.linkUrl);
-        config.baseUrl = "http://" + uni.getStorageSync("serveUrl") + "/prod-api";
+        config.baseUrl = "https://" + uni.getStorageSync("serveUrl") + "/prod-api";
         navigateTo();
       }
     });