Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3966f9bb
authored
2019-12-04 15:35:50 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
18509492
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
227 additions
and
117 deletions
src/components/home/dropdown/dropdown.js
src/components/home/header/header.js
src/components/home/header/header.vue
src/components/home/m-dropdown/m-dropdown.js
src/components/home/m-dropdown/m-dropdown.vue
src/pages/custom-service/components/common-form.scss
src/pages/custom-service/components/common-form.vue
src/pages/custom-service/components/insurance-query.scss
src/pages/custom-service/components/insurance-query.vue
src/pages/custom-service/components/payment-type.scss
src/pages/custom-service/components/policy-change-contact.scss
src/pages/custom-service/components/policy-change-contact.vue
src/pages/custom-service/components/policy-change-guide.scss
src/pages/custom-service/components/policy-change-guide.vue
src/pages/custom-service/components/policy-change-information.scss
src/pages/infomation-improve/infomation-improve.scss
src/pages/login/login.scss
src/pages/password-find/password-find.scss
src/pages/password-reset/password-reset.scss
src/pages/register/register.scss
src/components/home/dropdown/dropdown.js
View file @
3966f9b
...
...
@@ -3,7 +3,9 @@ import {
}
from
'vuex'
import
api
from
'@/api/api'
import
{
httpPost
}
from
'@/api/fetch-api.js'
import
{
httpPost
}
from
'@/api/fetch-api.js'
export
default
{
name
:
"DropDownList"
,
...
...
@@ -16,25 +18,25 @@ export default {
props
:
{
type
:
{
type
:
String
,
default
()
{
default
()
{
return
"nav"
;
}
},
dataObj
:
{
type
:
Object
,
default
()
{
default
()
{
return
{};
}
},
dataList
:
{
type
:
Array
,
default
()
{
default
()
{
return
[];
}
},
labelProperty
:
{
type
:
String
,
default
()
{
default
()
{
return
"name"
;
}
}
...
...
@@ -94,14 +96,11 @@ export default {
})
}
}
// console.log("name:", this.dataList[index].name);
// this.$emit("change", {
// index: index,
// value: this.dataList[index]
// });
},
loginHandler
()
{
httpPost
({
url
:
api
.
logout
}).
then
(()
=>
{
httpPost
({
url
:
api
.
logout
}).
then
(()
=>
{
this
.
$store
.
commit
(
"SET_USER_INFO"
,
null
);
this
.
showLogoutTip
();
});
...
...
@@ -116,6 +115,5 @@ export default {
return
this
.
dataList
[
this
.
activeIndex
][
this
.
labelProperty
];
}
},
created
()
{
},
created
()
{},
};
...
...
src/components/home/header/header.js
View file @
3966f9b
...
...
@@ -22,6 +22,7 @@ export default {
data
()
{
return
{
dropdownMVisible
:
false
,
loginMVisible
:
false
,
maxClientWidth
:
1200
,
navList
:
[],
loginData
:
{},
...
...
@@ -59,29 +60,16 @@ export default {
path
:
"/"
})
},
onShowDropdown
(
boo
=
true
)
{
this
.
dropdownMVisible
=
boo
;
// if (this.dropdownMVisible) {
// this.stop();
// } else {
// this.move();
// }
onShowDropdown
(
evtStr
)
{
console
.
log
(
"evtStr:"
,
evtStr
);
this
.
dropdownMVisible
=
false
;
this
.
loginMVisible
=
false
;
if
(
evtStr
==
'nav'
)
{
this
.
dropdownMVisible
=
true
;
}
else
if
(
evtStr
==
'login'
)
{
this
.
loginMVisible
=
true
;
}
else
{}
},
// stop() {
// var mo = function (e) {
// e.preventDefault();
// };
// document.body.style.overflow = 'hidden';
// document.addEventListener("touchmove", mo, false); //禁止页面滑动
// },
// /***取消滑动限制***/
// move() {
// var mo = function (e) {
// e.preventDefault();
// };
// document.body.style.overflow = ''; //出现滚动条
// document.removeEventListener("touchmove", mo, false);
// },
checkIsSmallScreen
()
{
const
self
=
this
;
if
(
document
.
body
.
clientWidth
>
self
.
maxClientWidth
)
{
...
...
src/components/home/header/header.vue
View file @
3966f9b
...
...
@@ -8,11 +8,13 @@
<!-- mobile -->
<div
class=
"nav-list-m mobile"
>
<div
class=
"mobile-nav-list"
>
<img
src=
"@/assets/images/home/mobile-user.png"
alt=
""
>
<img
@
click=
"onShowDropdown(true)"
v-if=
"!dropdownMVisible"
src=
"@/assets/images/home/mobile-nav.png"
alt=
""
>
<img
@
click=
"onShowDropdown(false)"
v-else
src=
"@/assets/images/home/mobile-nav-close.png"
alt=
""
>
<img
@
click=
"onShowDropdown('login')"
v-if=
"!loginMVisible"
src=
"@/assets/images/home/mobile-user.png"
alt=
""
>
<img
@
click=
"onShowDropdown('')"
v-else
src=
"@/assets/images/home/mobile-user.png"
alt=
""
>
<img
@
click=
"onShowDropdown('nav')"
v-if=
"!dropdownMVisible"
src=
"@/assets/images/home/mobile-nav.png"
alt=
""
>
<img
@
click=
"onShowDropdown('')"
v-else
src=
"@/assets/images/home/mobile-nav-close.png"
alt=
""
>
</div>
<m-dropdown
class=
"lang"
:lang-list=
"langData.list"
:visible=
"dropdownMVisible"
:show-dropdown-m=
"onShowDropdown"
></m-dropdown>
<m-dropdown
class=
"lang"
:type=
"'nav'"
:visible=
"dropdownMVisible"
:show-dropdown-m=
"onShowDropdown"
:lang-list=
"langData.list"
></m-dropdown>
<m-dropdown
class=
"lang"
:type=
"'login'"
:visible=
"loginMVisible"
:show-dropdown-m=
"onShowDropdown"
></m-dropdown>
</div>
<!-- pc -->
...
...
src/components/home/m-dropdown/m-dropdown.js
View file @
3966f9b
...
...
@@ -25,6 +25,12 @@ export default {
return
false
;
}
},
type
:
{
type
:
String
,
default
()
{
return
"nav"
;
}
},
langList
:
{
type
:
Array
,
default
()
{
...
...
@@ -46,10 +52,11 @@ export default {
},
},
methods
:
{
// 跳转菜单
onClickHandler
(
item
)
{
let
path
=
item
&&
item
.
path
||
""
;
if
(
path
)
{
this
.
showDropdownM
(
false
);
this
.
showDropdownM
(
''
);
this
.
$router
.
push
({
path
:
path
})
...
...
@@ -63,7 +70,7 @@ export default {
* 设置语言
*/
setLangHandler
(
curData
)
{
this
.
showDropdownM
(
false
);
this
.
showDropdownM
(
''
);
// 如果是语言设置,则设置语言
let
lang
=
curData
.
value
;
this
.
$i18n
.
locale
=
lang
;
...
...
@@ -72,13 +79,39 @@ export default {
window
.
location
.
reload
();
},
initData
()
{
let
navList
=
this
.
i18n
.
nav
.
navList
;
navList
.
forEach
(
element
=>
{
this
.
activeNames
.
push
(
[]
)
});
let
navList
=
[];
if
(
this
.
type
==
"nav"
)
{
navList
=
this
.
i18n
.
nav
.
navList
;
navList
.
forEach
(
element
=>
{
this
.
activeNames
.
push
(
[]
)
});
}
else
if
(
this
.
type
==
"login"
)
{
// 构建登陆页面
let
i18n
=
this
.
$i18n
.
messages
[
this
.
$i18n
.
locale
]
||
{};
let
menuData
=
JSON
.
parse
(
JSON
.
stringify
(
i18n
.
nav
.
loginData
));
let
list
=
[];
if
(
this
.
userInfo
&&
this
.
userInfo
.
name
)
{
menuData
.
name
=
this
.
userInfo
.
name
;
menuData
.
list
.
forEach
(
element
=>
{
if
(
element
.
type
==
"auth"
)
{
list
.
push
(
element
);
}
});
}
else
{
menuData
.
list
.
forEach
(
element
=>
{
if
(
element
.
type
==
"noAuth"
)
{
list
.
push
(
element
);
}
});
}
// menuData.list = list;
navList
=
list
;
console
.
log
(
"navList:"
,
navList
);
}
this
.
navList
=
navList
;
}
},
created
()
{
...
...
src/components/home/m-dropdown/m-dropdown.vue
View file @
3966f9b
<
template
>
<div>
<div
ref=
"panel"
class=
"panel"
:class=
"
{'hide':!visible}">
<div
class=
"mask"
@
click=
"showDropdownM(
false
)"
></div>
<div
class=
"mask"
@
click=
"showDropdownM(
''
)"
></div>
<!-- 列表 -->
<div
class=
"list"
>
<div
v-for=
"(item,index) in navList"
:key=
"item.id"
:index=
"index"
>
...
...
src/pages/custom-service/components/common-form.scss
View file @
3966f9b
@import
'@/styles/_support'
;
.common-form-container
{
// @extend .bb;
// border-radius: .666667rem;
// border: solid .083333rem #f2f2f2;
// background-color: #ffffff;
// padding: 2.666667rem 2.833333rem 2.833333rem 2rem;
}
.common-form-container
{}
.table
{
$girdHei
:
4
.333333rem
;
...
...
@@ -119,7 +113,19 @@
}
}
.orange
{
background-color
:
$cOrange
;
}
@media
(
max-width
:
1200px
)
{
.container
{
display
:
-
webkit-box
;
overflow-x
:
scroll
;
-webkit-overflow-scrolling
:
touch
;
width
:
92vw
;
}
}
.
container
:
:-
webkit-scrollbar
{
display
:
none
;
}
...
...
src/pages/custom-service/components/common-form.vue
View file @
3966f9b
<
template
>
<div
class=
"common-form-container"
>
<div
class=
"co
ntainer co
mmon-form-container"
>
<div
class=
"table"
>
<div
class=
"table-header orange"
>
<div
class=
"table-header-item w1"
>
{{
$t
(
'commonForm.head1'
)
}}
</div>
...
...
src/pages/custom-service/components/insurance-query.scss
View file @
3966f9b
...
...
@@ -160,3 +160,17 @@
height
:
1
.4rem
;
margin
:
0
1rem
;
}
@media
(
max-width
:
1200px
)
{
.container
{
width
:
1200px
;
display
:
-
webkit-box
;
overflow-x
:
scroll
;
-webkit-overflow-scrolling
:
touch
;
width
:
92vw
;
}
}
.
container
:
:-
webkit-scrollbar
{
display
:
none
;
}
...
...
src/pages/custom-service/components/insurance-query.vue
View file @
3966f9b
This diff is collapsed.
Click to expand it.
src/pages/custom-service/components/payment-type.scss
View file @
3966f9b
...
...
@@ -43,7 +43,6 @@
background-image
:
linear-gradient
(
to
bottom
,
#f05f28
,
#f05021
);
}
}
&
-line
{
...
...
@@ -53,7 +52,7 @@
&
-cont
{
@extend
.bb
;
padding
:
4
.25rem
2rem
0
2
.5rem
;
padding
:
4
.25rem
2rem
$marginMedium-M
2
.5rem
;
border
:
solid
1px
#f2f2f2
;
background-color
:
#ffffff
;
min-height
:
43
.75rem
;
...
...
@@ -90,11 +89,6 @@
}
}
/* 隐藏下方的滚动条 */
// .payment-nav::-webkit-scrollbar {
// background-color: transparent;
// }
.
payment-nav
:
:-
webkit-scrollbar
{
display
:
none
;
}
...
...
src/pages/custom-service/components/policy-change-contact.scss
View file @
3966f9b
...
...
@@ -52,10 +52,7 @@
flex
:
1
;
}
.agree
{
// @extend .bb;
// padding-left: 80px;
}
.agree
{}
.name-ipt
{
width
:
13
.666667rem
;
...
...
@@ -132,3 +129,24 @@
background-blend-mode
:
soft-light
,
;
background-image
:
linear-gradient
(
to
top
,
#000000
,
#ffffff
)
,
linear-gradient
(
to
bottom
,
#ec6429
,
#ec6429
);
}
@media
(
max-width
:
768px
)
{
.form
{
&
-item
{
.ipt-wrap
{
display
:
block
;
}
.agree
{
margin-top
:
$marginSmall-M
;
.check-icon
{
margin-left
:
0
;
}
}
}
}
}
...
...
src/pages/custom-service/components/policy-change-contact.vue
View file @
3966f9b
...
...
@@ -8,7 +8,7 @@
</div>
<div
class=
"ipt-wrap"
>
<input
class=
"ipt mail-ipt"
:class=
"
{err : errorTips.e1.length > 0}" type="text" v-model="data.mobile">
<div
class=
"agree
pointer
"
@
click=
"checked1 = !checked1"
>
<div
class=
"agree"
@
click=
"checked1 = !checked1"
>
<img
v-if=
"!checked1"
class=
"check-icon pointer"
src=
"@/assets/images/reservation/un-check.png"
>
<img
v-else
class=
"check-icon pointer"
src=
"@/assets/images/reservation/check.png"
>
<span>
{{
$t
(
"policyChangeContact.checkTips"
)
}}
</span>
...
...
@@ -25,7 +25,7 @@
</div>
<div
class=
"ipt-wrap"
>
<input
class=
"ipt mail-ipt"
type=
"text"
:class=
"
{err : errorTips.e2.length > 0}" v-model="data.address">
<div
class=
"
pointer
"
@
click=
"checked2 = !checked2"
>
<div
class=
"
agree
"
@
click=
"checked2 = !checked2"
>
<img
v-if=
"!checked2"
class=
"check-icon pointer"
src=
"@/assets/images/reservation/un-check.png"
>
<img
v-else
class=
"check-icon pointer"
src=
"@/assets/images/reservation/check.png"
>
<span>
{{
$t
(
"policyChangeContact.checkTips"
)
}}
</span>
...
...
@@ -41,7 +41,7 @@
</div>
<div
class=
"ipt-wrap"
>
<input
class=
"ipt mail-ipt"
type=
"text"
:class=
"
{err : errorTips.e3.length > 0}" v-model="data.email">
<div
class=
"
pointer
"
@
click=
"checked3 = !checked3"
>
<div
class=
"
agree
"
@
click=
"checked3 = !checked3"
>
<img
v-if=
"!checked3"
class=
"check-icon pointer"
src=
"@/assets/images/reservation/un-check.png"
>
<img
v-else
class=
"check-icon pointer"
src=
"@/assets/images/reservation/check.png"
>
<span>
{{
$t
(
"policyChangeContact.checkTips"
)
}}
</span>
...
...
src/pages/custom-service/components/policy-change-guide.scss
View file @
3966f9b
...
...
@@ -121,8 +121,8 @@
}
.w5
{
flex
:
1
;
//
width: 212px;
//
flex: 1;
width
:
212px
;
}
}
...
...
@@ -146,9 +146,22 @@
.icon
{
display
:
inline-block
;
width
:
1rem
;
;
margin-right
:
.5rem
;
}
margin-top
:
1
.25rem
;
}
@media
(
max-width
:
1200px
)
{
.container
{
display
:
-
webkit-box
;
overflow-x
:
scroll
;
-webkit-overflow-scrolling
:
touch
;
width
:
92vw
;
}
}
.
container
:
:-
webkit-scrollbar
{
display
:
none
;
}
...
...
src/pages/custom-service/components/policy-change-guide.vue
View file @
3966f9b
<
template
>
<div
class=
"policy-change-guide-container"
>
<div
class=
"table"
>
<div
class=
"table-header orange"
>
<div
class=
"table-header-item w1"
>
{{
$t
(
'policyChangeGuide.head1'
)
}}
</div>
<div
class=
"table-header-item w2"
>
{{
$t
(
'policyChangeGuide.head2'
)
}}
</div>
<div
class=
"table-header-item w3"
>
{{
$t
(
'policyChangeGuide.head3'
)
}}
</div>
<div
class=
"table-header-item w4"
>
{{
$t
(
'policyChangeGuide.head4'
)
}}
</div>
<div
class=
"table-header-item w5"
>
{{
$t
(
'policyChangeGuide.head5'
)
}}
</div>
</div>
<div
class=
"table-content"
>
<div
v-for=
"(item,index) in i18n.policyChangeGuide.form"
:key=
"index"
class=
"table-content-item"
>
<div
v-if=
"index
< i18n
.
policyChangeGuide
.
form
.
length-1
"
class=
"hl"
></div>
<div
class=
"ww w1"
>
<div
class=
"grid"
>
<div
class=
"v-line"
></div>
<span
:class=
"
{'act':item.projectType == 1}" @click="onProjectHandler(item)" v-html="item.project">
{{
item
.
project
}}
</span>
<div>
<div
class=
"container policy-change-guide-container"
>
<div
class=
"table"
>
<div
class=
"table-header orange"
>
<div
class=
"table-header-item w1"
>
{{
$t
(
'policyChangeGuide.head1'
)
}}
</div>
<div
class=
"table-header-item w2"
>
{{
$t
(
'policyChangeGuide.head2'
)
}}
</div>
<div
class=
"table-header-item w3"
>
{{
$t
(
'policyChangeGuide.head3'
)
}}
</div>
<div
class=
"table-header-item w4"
>
{{
$t
(
'policyChangeGuide.head4'
)
}}
</div>
<div
class=
"table-header-item w5"
>
{{
$t
(
'policyChangeGuide.head5'
)
}}
</div>
</div>
<div
class=
"table-content"
>
<div
v-for=
"(item,index) in i18n.policyChangeGuide.form"
:key=
"index"
class=
"table-content-item"
>
<div
v-if=
"index
< i18n
.
policyChangeGuide
.
form
.
length-1
"
class=
"hl"
></div>
<div
class=
"ww w1"
>
<div
class=
"grid"
>
<div
class=
"v-line"
></div>
<span
:class=
"
{'act':item.projectType == 1}" @click="onProjectHandler(item)" v-html="item.project">
{{
item
.
project
}}
</span>
</div>
</div>
</div
>
<div
class=
"ww w2
"
>
<div
class=
"grid"
>
<div
class=
"v-line"
></div
>
<
span
v-html=
"item.content"
>
{{
item
.
content
}}
</span
>
<div
class=
"ww w2"
>
<div
class=
"grid
"
>
<div
class=
"v-line"
></div
>
<span
v-html=
"item.content"
>
{{
item
.
content
}}
</span
>
<
/div
>
</div>
</div
>
<div
class=
"ww w3
"
>
<div
class=
"grid"
>
<div
class=
"v-line"
></div
>
<
span
v-html=
"item.applicant"
>
{{
item
.
applicant
}}
</span
>
<div
class=
"ww w3"
>
<div
class=
"grid
"
>
<div
class=
"v-line"
></div
>
<span
v-html=
"item.applicant"
>
{{
item
.
applicant
}}
</span
>
<
/div
>
</div>
</div
>
<div
class=
"ww w4
"
>
<div
class=
"grid"
>
<div
class=
"v-line"
></div
>
<
span
v-html=
"item.receptionTime"
>
{{
item
.
receptionTime
}}
</span
>
<div
class=
"ww w4"
>
<div
class=
"grid
"
>
<div
class=
"v-line"
></div
>
<span
v-html=
"item.receptionTime"
>
{{
item
.
receptionTime
}}
</span
>
<
/div
>
</div>
</div
>
<div
class=
"ww w5
"
>
<div
class=
"grid
"
>
<div
class=
"material"
:class=
"
{'pointer':item2.type == 1}" v-for="(item2,index2) in item.materialList" :key="index2
">
<img
v-if=
"item2.type == 1"
class=
"icon"
src=
"@/assets/images/common-form/icon-cf-download.png"
alt=
""
>
<
span
:class=
"
{'act':item2.type == 1}" v-html="item2.name">
{{
item2
.
name
}}
</span
>
<div
class=
"ww w5"
>
<div
class=
"grid
"
>
<div
class=
"material"
:class=
"
{'pointer':item2.type == 1}" v-for="(item2,index2) in item.materialList" :key="index2
">
<img
v-if=
"item2.type == 1"
class=
"icon"
src=
"@/assets/images/common-form/icon-cf-download.png"
alt=
"
"
>
<span
:class=
"
{'act':item2.type == 1}" v-html="item2.name">
{{
item2
.
name
}}
</span
>
<
/div
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"notice"
>
<img
class=
"icon"
src=
"@/assets/images/policy-change-guide/icon-pcg-notice.png"
alt=
""
>
{{
$t
(
"policyChangeGuide.notice"
)
}}
</div>
</div>
</
template
>
<
script
src=
"./policy-change-guide.js"
></
script
>
...
...
src/pages/custom-service/components/policy-change-information.scss
View file @
3966f9b
...
...
@@ -167,3 +167,12 @@
background-blend-mode
:
soft-light
,
;
background-image
:
linear-gradient
(
to
top
,
#000000
,
#ffffff
)
,
linear-gradient
(
to
bottom
,
#ec6429
,
#ec6429
);
}
@media
(
max-width
:
768px
)
{
.form
{
&
-item2
{
display
:
block
;
}
}
}
...
...
src/pages/infomation-improve/infomation-improve.scss
View file @
3966f9b
...
...
@@ -302,3 +302,27 @@
// color: $cFontGray;
color
:
#4c4948
;
}
.box-shadow
{
box-shadow
:
0
0
1
.5rem
0
rgba
(
255
,
87
,
0
,
0
.15
);
}
@media
(
max-width
:
1200px
)
{
.content
{
@include
content-percent
();
min-height
:
0
;
padding-bottom
:
0
;
}
.top-space
{
height
:
0
;
}
.box-shadow
{
box-shadow
:
none
;
}
.ebg
{
display
:
none
;
}
}
...
...
src/pages/login/login.scss
View file @
3966f9b
...
...
@@ -239,10 +239,6 @@
padding-bottom
:
0
;
}
.box
{
width
:
96%
;
}
.top-space
{
height
:
0
;
}
...
...
src/pages/password-find/password-find.scss
View file @
3966f9b
...
...
@@ -242,6 +242,10 @@
}
}
.box-shadow
{
box-shadow
:
0
0
1
.5rem
0
rgba
(
255
,
87
,
0
,
0
.15
);
}
@media
(
max-width
:
1200px
)
{
.content
{
@include
content-percent
();
...
...
@@ -267,7 +271,6 @@
height
:
1rem
;
}
&
-nav
{
margin
:
1
.75rem
auto
1rem
;
}
...
...
src/pages/password-reset/password-reset.scss
View file @
3966f9b
...
...
@@ -242,6 +242,10 @@
}
}
.box-shadow
{
box-shadow
:
0
0
1
.5rem
0
rgba
(
255
,
87
,
0
,
0
.15
);
}
@media
(
max-width
:
1200px
)
{
.content
{
@include
content-percent
();
...
...
src/pages/register/register.scss
View file @
3966f9b
...
...
@@ -30,7 +30,7 @@
.step
{
@extend
.fcc
;
margin
-bottom
:
4
.25rem
;
margin
:
.5rem
auto
4
.25rem
;
img
{
height
:
4
.25rem
;
...
...
@@ -250,6 +250,10 @@
}
}
.box-shadow
{
box-shadow
:
0
0
1
.5rem
0
rgba
(
255
,
87
,
0
,
0
.15
);
}
@media
(
max-width
:
1200px
)
{
.content
{
@include
content-percent
();
...
...
Please
register
or
sign in
to post a comment