浏览代码

内容修复及后台跳转地址调整

wangtao 1 周之前
父节点
当前提交
413f720e4a
共有 6 个文件被更改,包括 50 次插入14 次删除
  1. 5 2
      .env.development
  2. 8 3
      .env.production
  3. 6 3
      public/static/config.js
  4. 1 0
      src/views/home/components/triangleChart.vue
  5. 28 4
      src/views/home/index.vue
  6. 2 2
      src/views/login.vue

+ 5 - 2
.env.development

@@ -1,7 +1,10 @@
 #  development 开发环境
 NODE_ENV='development'
 # 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-# VUE_APP_BASE_URL='https://qhome.usky.cn/fivapi/'
-VUE_APP_BASE_URL='https://wx.ewoogi.com/api/'
+# VUE_APP_BASE_URL='https://wx.ewoogi.com/api/'
+# VUE_APP_FILE_URL='https://qhome.usky.cn/file/'
+# VUE_APP_HREF_URL='https://pcdev.ewoogi.com/adminfiv/#/login'
+
+VUE_APP_BASE_URL='https://qhome.usky.cn/uskypower/'
 VUE_APP_FILE_URL='https://qhome.usky.cn/file/'
 VUE_APP_HREF_URL='https://pcdev.ewoogi.com/adminfiv/#/login'

+ 8 - 3
.env.production

@@ -1,6 +1,11 @@
 # production 生产环境
 NODE_ENV='production'
 # 下方链接为生产环境接口地址
-VUE_APP_BASE_URL='https://wx.ewoogi.com/api/'
-VUE_APP_FILE_URL='https://wx.ewoogi.com/file/'
-VUE_APP_HREF_URL='https://wx.ewoogi.com/manage/#/'
+# VUE_APP_BASE_URL='https://wx.ewoogi.com/api/'
+# VUE_APP_FILE_URL='https://wx.ewoogi.com/file/'
+# VUE_APP_HREF_URL='https://wx.ewoogi.com/manage/#/'
+
+
+VUE_APP_BASE_URL='https://qhome.usky.cn/uskypower/'
+VUE_APP_FILE_URL='https://qhome.usky.cn/file/'
+VUE_APP_HREF_URL='https://qhome.usky.cn/manage/#/'

+ 6 - 3
public/static/config.js

@@ -7,15 +7,18 @@ var PLATFROM_CONFIG = {};
 
 
 if (window.location.host.indexOf("localhost") != -1 || window.location.host.indexOf("pcdev.ewoogi.com") != -1) {
-    PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上
+    // PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上
+    PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/uskypower/" //线上
     PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
 
-    PLATFROM_CONFIG.hrefUrl = 'https://pcdev.ewoogi.com/adminfiv/#/login'//后台管理系统访问路径
+    // PLATFROM_CONFIG.hrefUrl = 'https://pcdev.ewoogi.com/adminfiv/#/login'//后台管理系统访问路径
+    PLATFROM_CONFIG.hrefUrl = 'https://qhome.usky.cn/dist1/#/index'//后台管理系统访问路径
 } else {
     
     PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上
     PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
-    PLATFROM_CONFIG.hrefUrl = 'https://wx.ewoogi.com/manage/#/'//后台管理系统访问路径
+    // PLATFROM_CONFIG.hrefUrl = 'https://wx.ewoogi.com/manage/#/'//后台管理系统访问路径
+    PLATFROM_CONFIG.hrefUrl = 'https://qhome.usky.cn/dist1/#/index'//后台管理系统访问路径
 
 }
 

+ 1 - 0
src/views/home/components/triangleChart.vue

@@ -25,6 +25,7 @@ export default {
     //重载运行echarts锥形图
     rtAnalogData_api() {
       api.rtAnalogData_api().then((requset) => {
+        console.log(requset,123);
         this.frtAnalogData = requset.data;
         this.initChart();
       });

+ 28 - 4
src/views/home/index.vue

@@ -290,8 +290,8 @@ export default {
       this.map = await new AMap.Map("mapF", {
         mapStyle: "amap://styles/blue", //设置地图的显示样式
         resizeEnable: true,
-        zoom: 13,
-        zooms: [3, 16],
+        // zoom: 13,
+        // zooms: [3, 16],
         // features: [] //清空背景道路等
       });
 
@@ -388,7 +388,23 @@ export default {
         return marker;
       });
       this.map.add(new AMap.OverlayGroup(markers));
-      this.map.setFitView(); // 根据所有点自适应
+
+
+//         // 模拟加载标记点数据
+// //         latitude
+// // : 
+// // "31.463161"
+// // longitude
+// // : 
+// // "121.32116"
+//   const gips = []
+//   for(let i = 0; lnglats < 1; i++){
+//     gips.push([lnglats[i].longitude,lnglats[i].latitude])
+//   }
+
+
+
+      // this.map.setFitView(); // 根据所有点自适应
 
       // this.mapPolList = mapData.map((val, ind) => {
       //   // console.log(val)
@@ -527,4 +543,12 @@ export default {
 .amap-icon img {
   width: 25px;
 }
-</style>
+.amap-logo {
+    bottom:-100px;
+    display: none;
+}
+.amap-copyright {
+    bottom:-100px;
+    display: none;
+}
+</style>

+ 2 - 2
src/views/login.vue

@@ -40,11 +40,11 @@ export default {
         username: [
           // required  是否为必填项, trigger:表单验证的触发时机,失去焦点进行验证
           { required: true, message: "请输入用户名", trigger: "blur" },
-          { min: 3, max: 6, message: "用户名长度在 3 到 6 个字符", trigger: "blur" },
+          { min: 3, max: 20, message: "用户名长度在 3 到 20 个字符", trigger: "blur" },
         ],
         password: [
           { required: true, message: "请输密码", trigger: "blur" },
-          { min: 3, max: 9, message: "密码长度在 3 到 9 个字符", trigger: "blur" },
+          { min: 3, max: 20, message: "密码长度在 3 到 20 个字符", trigger: "blur" },
         ],
       },