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
391de7d4
Commit
391de7d4
authored
Mar 13, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
79ddc586
Pipeline
#5166
canceled with stages
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
18 deletions
+75
-18
dev.env.js
config/dev.env.js
+2
-2
home-page.vue
src/pages/home/home-page.vue
+40
-11
login.vue
src/pages/login.vue
+17
-3
tab.vue
src/pages/tab.vue
+16
-2
No files found.
config/dev.env.js
View file @
391de7d4
...
...
@@ -8,9 +8,9 @@ module.exports = merge(prodEnv, {
debug
:
true
,
isMobilePlatform
:
false
,
loginPath
:
'"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" '
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
DEV
&apiName="'
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
UAT
&apiName="'
,
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
DEV
&apiName=file_view&"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
UAT
&apiName=file_view&"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_DEV&apiName="'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
appId
:
'"com.xcmg.app.uat"'
,
...
...
src/pages/home/home-page.vue
View file @
391de7d4
...
...
@@ -76,6 +76,7 @@ export default {
user_bp_status
:
''
,
user_bp_class
:
''
,
bp_id
:
''
,
isVisitor
:
false
,
moduleSeparateList
:
[],
guessingList
:
[],
}
...
...
@@ -90,7 +91,7 @@ export default {
vm
.
moduleSeparateList
=
[...
functionState
.
moduleSeparateList
]
vm
.
userQuery
()
vm
.
guessingQuery
()
// 猜你喜欢查询
vm
.
isVisitor
=
!
window
.
localStorage
.
getItem
(
'password'
)
// }
})
},
...
...
@@ -135,9 +136,23 @@ export default {
})
},
goModuleFunction
(
data
)
{
let
vm
=
this
if
(
this
.
isVisitor
&&
data
.
moduleState
!==
'FinancingTrial'
)
{
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
`请先登录!`
,
onConfirm
:
data
=>
{
if
(
data
)
{
vm
.
$router
.
push
(
'/login'
)
}
else
{
}
},
})
}
else
{
this
.
$router
.
push
({
name
:
data
.
moduleState
,
})
}
},
location
()
{
this
.
$router
.
push
({
...
...
@@ -191,6 +206,19 @@ export default {
},
// 进入产品明细
goProductDetail
(
list
)
{
let
vm
=
this
if
(
!
window
.
localStorage
.
getItem
(
'password'
))
{
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
`请先登录!`
,
onConfirm
:
data
=>
{
if
(
data
)
{
vm
.
$router
.
push
(
'/login'
)
}
else
{
}
},
})
}
else
{
this
.
$router
.
push
({
name
:
'ProDetailed'
,
params
:
{
...
...
@@ -198,6 +226,7 @@ export default {
bp_id
:
list
.
bp_id
,
},
})
}
},
},
}
...
...
src/pages/login.vue
View file @
391de7d4
...
...
@@ -38,7 +38,11 @@
<div
class=
"register"
@
click=
"registerNew"
>
注册
</div>
<div
class=
"pwd-forgotten"
@
click=
"pwdForgotten"
>
忘记密码?
</div>
</div>
<div
class=
"both-button"
>
<div
class=
"button submit"
@
click=
"access"
>
登录
</div>
<div
class=
"button submit"
@
click=
"goHome"
>
游客体验
</div>
</div>
</div>
</scroll>
</
template
>
...
...
@@ -98,6 +102,12 @@ export default {
}
},
methods
:
{
async
goHome
()
{
let
flag
=
await
this
.
getAccessToken
()
if
(
flag
)
{
this
.
$router
.
push
(
'tab'
)
}
},
changeType
()
{
this
.
pwdType
=
this
.
pwdType
===
'password'
?
'text'
:
'password'
this
.
openEye
=
...
...
@@ -476,12 +486,16 @@ export default {
justify-content: space-between;
-webkit-justify-content: space-between;
}
.both-button{
display: flex;
justify-content: space-around;
}
.submit {
background: #1d3fff;
border-radius: 4px;
width:
279
px;
width:
130
px;
margin-top: 32px;
height: 4
9
px;
height: 4
5
px;
font-size: 16px;
color: #fff;
display: flex;
...
...
src/pages/tab.vue
View file @
391de7d4
...
...
@@ -26,7 +26,7 @@
<img
slot=
"icon"
src=
"../assets/image/tab/n_message@2x.png"
>
<span
slot=
"label"
>
消息
</span>
</tabbar-item>
<tabbar-item
:link=
"
{path:'/tab/my-info'}" :selected="$route.path === '/tab/my-info'
">
<tabbar-item
@
click
.
native=
"tabClick
"
>
<img
slot=
"icon-active"
src=
"../assets/image/tab/my@2x.png"
>
<img
slot=
"icon"
src=
"../assets/image/tab/n_my@2x.png"
>
<span
slot=
"label"
>
我的
</span>
...
...
@@ -74,7 +74,21 @@ export default {
},
methods
:
{
tabClick
()
{
// console.log('click');
let
vm
=
this
if
(
!
window
.
localStorage
.
getItem
(
'password'
))
{
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
`请先登录!`
,
onConfirm
:
data
=>
{
if
(
data
)
{
vm
.
$router
.
push
(
'/login'
)
}
else
{
}
},
})
}
else
{
vm
.
$router
.
push
(
'/tab/my-info'
)
}
},
},
...
...
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