Browse Source

接口修改

lilei 4 years ago
parent
commit
46ea1046eb
4 changed files with 16 additions and 13 deletions
  1. 3 3
      App.vue
  2. 1 1
      libs/axios.js
  3. 0 0
      unpackage/dist/dev/app-plus/app-service.js
  4. 12 9
      unpackage/dist/dev/app-plus/app-view.js

+ 3 - 3
App.vue

@@ -1,7 +1,7 @@
 <script>
-	// const uat_URL = 'https://aitour.test.zyucgj.com/aitour-employee/' // 预发布
-	const uat_URL = 'http://192.168.16.100:9102/at-employee/' // 本地
-	const pro_URL = 'https://aitour.zyucgj.com/aitour-employee/'  // 生产
+	const uat_URL = 'https://aitour.test.zyucgj.com/at-employee/' // 预发布
+	// const uat_URL = 'http://192.168.16.100:9102/at-employee/' // 本地
+	const pro_URL = 'https://aitour.zyucgj.com/at-employee/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url
 	const envText = ['预发布环境','生产环境']

+ 1 - 1
libs/axios.js

@@ -8,7 +8,7 @@ const request = (opts, hasToken) => {
 			'App-Type': 3
 		}
 	if(!hasToken){
-		header['access_token'] = authorization
+		header['access-token'] = authorization
 	}	
 	//此token是登录成功后后台返回保存在storage中的
 	let DefaultOpts = {

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


+ 12 - 9
unpackage/dist/dev/app-plus/app-view.js

@@ -8141,6 +8141,7 @@ var render = function() {
               _vm._$g(17, "i")
                 ? _c("u-empty", {
                     staticClass: _vm._$g(17, "sc"),
+                    staticStyle: { height: "auto", "padding-top": "10vh" },
                     attrs: { _i: 17 }
                   })
                 : _vm._e()
@@ -18261,15 +18262,17 @@ var render = function() {
             "v-uni-view",
             { staticClass: _vm._$g(3, "sc"), attrs: { _i: 3 } },
             [
-              _c("u-swiper", {
-                staticClass: _vm._$g(4, "sc"),
-                attrs: { _i: 4 },
-                on: {
-                  click: function($event) {
-                    return _vm.$handleViewEvent($event)
-                  }
-                }
-              }),
+              _vm._$g(4, "i")
+                ? _c("u-swiper", {
+                    staticClass: _vm._$g(4, "sc"),
+                    attrs: { _i: 4 },
+                    on: {
+                      click: function($event) {
+                        return _vm.$handleViewEvent($event)
+                      }
+                    }
+                  })
+                : _vm._e(),
               _c(
                 "v-uni-view",
                 { staticClass: _vm._$g(5, "sc"), attrs: { _i: 5 } },

Some files were not shown because too many files changed in this diff