Commit 7591d7c3 authored by Nature's avatar Nature

首页适配调整

parent d2172bb1
...@@ -5,4 +5,12 @@ const prodEnv = require('./prod.env') ...@@ -5,4 +5,12 @@ const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, { module.exports = merge(prodEnv, {
NODE_ENV: '"development"', NODE_ENV: '"development"',
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV), CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: true,
isMobilePlatform: false,
appCode:'"HLS_APP"',
clearTable: true,
loginPath: '"http://hlsapp.hand-china.com/core/oauth/token?client_id=hQGCtxTItRa34PUOgxaD0r7oSPeuEaIB&client_secret=7ee8338c-4a06-44a1-87cc-afa63f8e1bc3&grant_type=password&username=app&password=" ',
basePath: '"http://hlsapp.hand-china.com/core/r/api?sysName=HLS_APP&apiName="',
rootPath: '"http://hlsapp.hand-china.com/core/r/api"',
file_url: '"http://hlsapp.hand-china.com/file/"',
}); });
...@@ -2,4 +2,12 @@ ...@@ -2,4 +2,12 @@
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV), CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: false,
isMobilePlatform: true,
appCode:'"HLS_APP"',
clearTable: true,
loginPath: '"http://hlsapp.hand-china.com/core/oauth/token?client_id=hQGCtxTItRa34PUOgxaD0r7oSPeuEaIB&client_secret=7ee8338c-4a06-44a1-87cc-afa63f8e1bc3&grant_type=password&username=app&password=" ',
basePath: '"http://hlsapp.hand-china.com/core/r/api?sysName=HLS_APP&apiName="',
rootPath: '"http://hlsapp.hand-china.com/core/r/api"',
file_url: '"http://hlsapp.hand-china.com/file/"',
} }
...@@ -2,4 +2,12 @@ ...@@ -2,4 +2,12 @@
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV), CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: false,
isMobilePlatform: true,
appCode:'"HLS_APP"',
clearTable: true,
loginPath: '"http://hlsapp.hand-china.com/core/oauth/token?client_id=hQGCtxTItRa34PUOgxaD0r7oSPeuEaIB&client_secret=7ee8338c-4a06-44a1-87cc-afa63f8e1bc3&grant_type=password&username=app&password=" ',
basePath: '"http://hlsapp.hand-china.com/core/r/api?sysName=HLS_APP&apiName="',
rootPath: '"http://hlsapp.hand-china.com/core/r/api"',
file_url: '"http://hlsapp.hand-china.com/file/"',
} }
...@@ -44,12 +44,23 @@ export default { ...@@ -44,12 +44,23 @@ export default {
this.$router.isBack = false this.$router.isBack = false
}, },
}, },
mounted () {
this.getAccessToken()
},
methods: { methods: {
// 右滑返回上一页 // 右滑返回上一页
onSwipeRight () { onSwipeRight () {
if (this.$route.name === 'Home') return if (this.$route.name === 'Home') return
this.$router.go(-1) this.$router.go(-1)
}, },
getAccessToken () {
let vm = this
let url = process.env.loginPath + 'appadmin'
let param = {}
vm.hlsHttp.post(url, param).then(function (res) {
window.localStorage.setItem('access_token', res.access_token)
})
},
}, },
} }
</script> </script>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -232,10 +232,11 @@ export default { ...@@ -232,10 +232,11 @@ export default {
.bar-footer { .bar-footer {
height: auto !important; height: auto !important;
min-height: 44px; min-height: 44px;
padding: 0; // padding: 0;
margin-top: 0; margin-top: 0;
background-color: #fafafa; background-color: #fafafa;
bottom: 0; bottom: 0;
background-image: none;
.item-input { .item-input {
border: none !important; border: none !important;
padding: 3px 0 3px 5px; padding: 3px 0 3px 5px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment