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
20a0a23c
Commit
20a0a23c
authored
Oct 12, 2019
by
786817560
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ren' into develop
parents
779efd65
b6d0faeb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
36 deletions
+37
-36
home-page.vue
src/pages/home/home-page.vue
+30
-32
location.vue
src/pages/home/location.vue
+7
-4
No files found.
src/pages/home/home-page.vue
View file @
20a0a23c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Descrip: 主页
* @Descrip: 主页
* @Author: your name
* @Author: your name
* @Date: 2019-10-10 14:25:15
* @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
* @LastEditors: Please set LastEditors
-->
-->
<
template
>
<
template
>
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
<h-header
class=
"bar-custom"
>
<h-header
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<!--
<i
class=
"ion-ios-arrow-back"
/>
-->
<!--
<i
class=
"ion-ios-arrow-back"
/>
-->
<img
class=
"locations"
src=
"@/assets/homePage/location.png"
alt=
""
>
<img
class=
"locations"
src=
"@/assets/homePage/location.png"
alt=
""
@
click=
"location"
>
<span
@
click=
"location"
>
徐州
</span>
<span>
徐州
</span>
</div>
</div>
<div
slot=
"center"
>
徐工租赁
</div>
<div
slot=
"center"
>
徐工租赁
</div>
</h-header>
</h-header>
...
@@ -39,9 +39,7 @@
...
@@ -39,9 +39,7 @@
<img
src=
"@/assets/homePage/3 copy@2x.png"
alt=
""
>
<img
src=
"@/assets/homePage/3 copy@2x.png"
alt=
""
>
</div>
</div>
</div>
</div>
<div
class=
"guessing"
>
<div
class=
"guessing"
>
猜你喜欢
</div>
猜你喜欢
</div>
<list-item
:item-height=
"110"
>
<list-item
:item-height=
"110"
>
<item>
<item>
<div
slot=
"name"
class=
"item-pic"
>
<div
slot=
"name"
class=
"item-pic"
>
...
@@ -103,7 +101,7 @@ export default {
...
@@ -103,7 +101,7 @@ export default {
watch
:
{},
watch
:
{},
methods
:
methods
:
{
{
//
goFunctionHome (data) {
goFunctionHome
(
data
)
{
// if (data.functionState === 'NaturePersonReadOnly') {
// if (data.functionState === 'NaturePersonReadOnly') {
// if (this.user_bp_status === 'APPROVED' && this.user_bp_class === 'NP') {
// if (this.user_bp_status === 'APPROVED' && this.user_bp_class === 'NP') {
// this.$router.push({
// this.$router.push({
...
@@ -127,10 +125,10 @@ export default {
...
@@ -127,10 +125,10 @@ export default {
// name: data.functionState,
// name: data.functionState,
// })
// })
// }
// }
//
},
},
location
()
{
location
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'
l
ocation'
,
name
:
'
L
ocation'
,
})
})
},
},
},
},
...
...
src/pages/home/location.vue
View file @
20a0a23c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Descrip""/>User Settings Edit
* @Descrip""/>User Settings Edit
* @Author: your name
* @Author: your name
* @Date: 2019-10-11 09:39:51
* @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
* @LastEditors: Please set LastEditors
-->
-->
<
template
>
<
template
>
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</div>
</div>
<div
class=
"provinces"
>
<div
class=
"provinces"
>
<p
:class=
"
{styles:!flag}" @click="changeStyle(1)">
{{
province
}}
</p>
<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>
</div>
<list-item
v-if=
"province_flag"
:item-height=
"40"
>
<list-item
v-if=
"province_flag"
:item-height=
"40"
>
<item
v-for=
"(item,index) in lists"
:key=
"index"
>
<item
v-for=
"(item,index) in lists"
:key=
"index"
>
...
@@ -64,9 +64,10 @@ export default {
...
@@ -64,9 +64,10 @@ export default {
flag
:
false
,
flag
:
false
,
province_flag
:
true
,
province_flag
:
true
,
province
:
'请选择省'
,
province
:
'请选择省'
,
city
:
'请选择市'
,
places
:
'江苏省-徐州市'
,
places
:
'江苏省-徐州市'
,
lists
:
[
'北京省'
,
'浙江省'
,
'四川省'
],
lists
:
[
'北京省'
,
'浙江省'
,
'四川省'
],
cityList
:
[
'北京
'
,
'成都'
,
'上海'
,
'广州
'
],
cityList
:
[
'北京
市'
,
'成都市'
,
'上海市'
,
'广州市
'
],
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -80,6 +81,7 @@ export default {
...
@@ -80,6 +81,7 @@ export default {
console
.
log
(
val
)
console
.
log
(
val
)
if
(
val
===
1
)
{
if
(
val
===
1
)
{
this
.
flag
=
false
this
.
flag
=
false
this
.
province_flag
=
true
}
else
{
}
else
{
this
.
flag
=
true
this
.
flag
=
true
}
}
...
@@ -92,11 +94,12 @@ export default {
...
@@ -92,11 +94,12 @@ export default {
selectCity
(
val
)
{
selectCity
(
val
)
{
this
.
hlsPopup
.
showConfirm
({
this
.
hlsPopup
.
showConfirm
({
title
:
'提示'
,
title
:
'提示'
,
content
:
`是否切换到
${
val
}
城市
?`
,
content
:
`是否切换到
${
val
}
?`
,
onConfirm
:
(
data
)
=>
{
onConfirm
:
(
data
)
=>
{
console
.
log
(
data
)
console
.
log
(
data
)
if
(
data
)
{
if
(
data
)
{
this
.
places
=
this
.
province
+
'-'
+
val
this
.
places
=
this
.
province
+
'-'
+
val
this
.
city
=
val
}
}
},
},
})
})
...
...
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