Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
707411db
Commit
707411db
authored
Oct 12, 2019
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://hel.hand-china.com/xugong/hls-xcmg-vue-app
into develop
parents
ac994f13
20a0a23c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
43 deletions
+44
-43
dev.env.js
config/dev.env.js
+3
-3
uat.env.js
config/uat.env.js
+3
-3
home-page.vue
src/pages/home/home-page.vue
+30
-32
location.vue
src/pages/home/location.vue
+7
-4
login.vue
src/pages/login.vue
+1
-1
No files found.
config/dev.env.js
View file @
707411db
...
...
@@ -7,9 +7,9 @@ module.exports = merge(prodEnv, {
CONFIG_ENV
:
JSON
.
stringify
(
process
.
env
.
CONFIG_ENV
),
debug
:
true
,
isMobilePlatform
:
false
,
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=XCMG_DEV&apiName="'
,
rootPath
:
'"http://
hlsapp.hand-china.com/core/r/api
"'
,
loginPath
:
'"http://
180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=admin
&password=" '
,
basePath
:
'"http://
180.104.121.66:8088/r/api/interface
?sysName=XCMG_DEV&apiName="'
,
rootPath
:
'"http://
180.104.121.66:8088/r/api/interface
"'
,
file_url
:
'"http://hlsapp.hand-china.com/file/"'
,
appId
:
'"com.hls.easy.car"'
,
currentVersion
:
'"0.0.1"'
...
...
config/uat.env.js
View file @
707411db
...
...
@@ -4,9 +4,9 @@ module.exports = {
CONFIG_ENV
:
JSON
.
stringify
(
process
.
env
.
CONFIG_ENV
),
debug
:
false
,
isMobilePlatform
:
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=XCMG_DEV&apiName="'
,
rootPath
:
'"http://
hlsapp.hand-china.com/core/r/api
"'
,
loginPath
:
'"http://
180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=admin
&password=" '
,
basePath
:
'"http://
180.104.121.66:8088/r/api/interface
?sysName=XCMG_DEV&apiName="'
,
rootPath
:
'"http://
180.104.121.66:8088/r/api/interface
"'
,
file_url
:
'"http://hlsapp.hand-china.com/file/"'
,
appId
:
'"com.hls.easy.car"'
,
currentVersion
:
'"0.0.1"'
...
...
src/pages/home/home-page.vue
View file @
707411db
...
...
@@ -2,7 +2,7 @@
* @Descrip: 主页
* @Author: your name
* @Date: 2019-10-10 14:25:15
* @LastEditTime: 2019-10-11 1
4:45:17
* @LastEditTime: 2019-10-11 1
6:26:13
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -10,8 +10,8 @@
<h-header
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<!--
<i
class=
"ion-ios-arrow-back"
/>
-->
<img
class=
"locations"
src=
"@/assets/homePage/location.png"
alt=
""
>
<span
@
click=
"location"
>
徐州
</span>
<img
class=
"locations"
src=
"@/assets/homePage/location.png"
alt=
""
@
click=
"location"
>
<span>
徐州
</span>
</div>
<div
slot=
"center"
>
徐工租赁
</div>
</h-header>
...
...
@@ -39,9 +39,7 @@
<img
src=
"@/assets/homePage/3 copy@2x.png"
alt=
""
>
</div>
</div>
<div
class=
"guessing"
>
猜你喜欢
</div>
<div
class=
"guessing"
>
猜你喜欢
</div>
<list-item
:item-height=
"110"
>
<item>
<div
slot=
"name"
class=
"item-pic"
>
...
...
@@ -103,34 +101,34 @@ export default {
watch
:
{},
methods
:
{
//
goFunctionHome (data) {
//
if (data.functionState === 'NaturePersonReadOnly') {
//
if (this.user_bp_status === 'APPROVED' && this.user_bp_class === 'NP') {
//
this.$router.push({
//
name: 'NaturePersonReadOnly',
//
params: {
//
'bp_id': this.bp_id,
//
},
//
})
//
} else if (this.user_bp_status === 'APPROVED' && this.user_bp_class === 'ORG') {
//
this.$router.push({
//
name: 'EnterpriseReadOnly',
//
params: {
//
'bp_id': this.bp_id,
//
},
//
})
//
} else {
//
this.hlsPopup.showLongCenter('您的绑定申请还在流程中')
//
}
//
} else {
//
this.$router.push({
//
name: data.functionState,
//
})
//
}
//
},
goFunctionHome
(
data
)
{
//
if (data.functionState === 'NaturePersonReadOnly') {
//
if (this.user_bp_status === 'APPROVED' && this.user_bp_class === 'NP') {
//
this.$router.push({
//
name: 'NaturePersonReadOnly',
//
params: {
//
'bp_id': this.bp_id,
//
},
//
})
//
} else if (this.user_bp_status === 'APPROVED' && this.user_bp_class === 'ORG') {
//
this.$router.push({
//
name: 'EnterpriseReadOnly',
//
params: {
//
'bp_id': this.bp_id,
//
},
//
})
//
} else {
//
this.hlsPopup.showLongCenter('您的绑定申请还在流程中')
//
}
//
} else {
//
this.$router.push({
//
name: data.functionState,
//
})
//
}
},
location
()
{
this
.
$router
.
push
({
name
:
'
l
ocation'
,
name
:
'
L
ocation'
,
})
},
},
...
...
src/pages/home/location.vue
View file @
707411db
...
...
@@ -2,7 +2,7 @@
* @Descrip""/>User Settings Edit
* @Author: your name
* @Date: 2019-10-11 09:39:51
* @LastEditTime: 2019-10-11 1
4:02:18
* @LastEditTime: 2019-10-11 1
5:55:47
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -40,7 +40,7 @@
</div>
<div
class=
"provinces"
>
<p
:class=
"
{styles:!flag}" @click="changeStyle(1)">
{{
province
}}
</p>
<p
:class=
"
{styles:flag}" @click="changeStyle(2)">
请选择市
</p>
<p
:class=
"
{styles:flag}" @click="changeStyle(2)">
{{
city
}}
</p>
</div>
<list-item
v-if=
"province_flag"
:item-height=
"40"
>
<item
v-for=
"(item,index) in lists"
:key=
"index"
>
...
...
@@ -64,9 +64,10 @@ export default {
flag
:
false
,
province_flag
:
true
,
province
:
'请选择省'
,
city
:
'请选择市'
,
places
:
'江苏省-徐州市'
,
lists
:
[
'北京省'
,
'浙江省'
,
'四川省'
],
cityList
:
[
'北京
'
,
'成都'
,
'上海'
,
'广州
'
],
cityList
:
[
'北京
市'
,
'成都市'
,
'上海市'
,
'广州市
'
],
}
},
computed
:
{},
...
...
@@ -80,6 +81,7 @@ export default {
console
.
log
(
val
)
if
(
val
===
1
)
{
this
.
flag
=
false
this
.
province_flag
=
true
}
else
{
this
.
flag
=
true
}
...
...
@@ -92,11 +94,12 @@ export default {
selectCity
(
val
)
{
this
.
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
`是否切换到
${
val
}
城市
?`
,
content
:
`是否切换到
${
val
}
?`
,
onConfirm
:
(
data
)
=>
{
console
.
log
(
data
)
if
(
data
)
{
this
.
places
=
this
.
province
+
'-'
+
val
this
.
city
=
val
}
},
})
...
...
src/pages/login.vue
View file @
707411db
...
...
@@ -87,7 +87,7 @@ export default {
}
else
if
(
!
vm
.
password
||
vm
.
password
===
undefined
)
{
vm
.
hlsPopup
.
showLongCenter
(
'请输入密码'
)
}
else
{
let
url
=
process
.
env
.
loginPath
+
'a
ppa
dmin'
let
url
=
process
.
env
.
loginPath
+
'admin'
let
param
=
{}
vm
.
hlsPopup
.
showLoading
(
'请稍等'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment