Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
c7aa2080
Commit
c7aa2080
authored
Mar 12, 2020
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
fc48b8eb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
39 deletions
+53
-39
src/app/my/my-business-detail/my-business-detail.component.html
+21
-20
src/app/my/my-business-detail/my-business-detail.component.scss
+25
-11
src/app/my/my-business-detail/my-business-detail.component.ts
+6
-4
src/app/my/my-business/my-business.component.ts
+0
-3
src/app/my/my-center-home/my-center-home.component.ts
+1
-1
No files found.
src/app/my/my-business-detail/my-business-detail.component.html
View file @
c7aa2080
...
@@ -9,18 +9,18 @@
...
@@ -9,18 +9,18 @@
</li>
</li>
</ul>
</ul>
<div
class=
"content"
*
ngIf=
"selectedId===1"
>
<div
class=
"content"
*
ngIf=
"selectedId===1"
>
<i
class=
"iconfont icon-
xiugaiziliao
"
*
ngIf=
"readonlyFlag"
(
click
)="
editInfo
()"
></i>
<i
class=
"iconfont icon-
bianji
"
*
ngIf=
"readonlyFlag"
(
click
)="
editInfo
()"
></i>
<i
class=
"iconfont icon-save"
*
ngIf=
"!readonlyFlag"
(
click
)="
saveInfo
()"
></i>
<i
class=
"iconfont icon-save"
*
ngIf=
"!readonlyFlag"
(
click
)="
saveInfo
()"
></i>
<div
class=
"contentDetail"
>
<div
class=
"contentDetail"
>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
姓名
</span>
<span>
姓名
</span>
<input
class=
"form-control"
type=
"text"
placeholder=
"
姓名"
[(
ngModel
)]="
editBusiness
.
name
"
<input
class=
"form-control"
type=
"text"
placeholder=
"
{{readonlyFlag ?'暂无姓名':'请输入姓名'}}
"
[
disabled
]="
readonlyFlag
"
/>
[
(
ngModel
)]="
editBusiness
.
name
"
[
disabled
]="
readonlyFlag
"
/>
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
年龄
</span>
<span>
年龄
</span>
<input
class=
"form-control"
type=
"text"
placeholder=
"
年龄"
[(
ngModel
)]="
editBusiness
.
age
"
<input
class=
"form-control"
type=
"text"
placeholder=
"
{{readonlyFlag ?'暂无年龄信息':'请输入年龄'}}
"
[
disabled
]="
readonlyFlag
"
/>
[
(
ngModel
)]="
editBusiness
.
age
"
[
disabled
]="
readonlyFlag
"
/>
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
性别
</span>
<span>
性别
</span>
...
@@ -35,30 +35,27 @@
...
@@ -35,30 +35,27 @@
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
手机
</span>
<span>
手机
</span>
<input
class=
"form-control"
type=
"text"
placeholder=
"手机"
[(
ngModel
)]="
editBusiness
.
mobileNo
"
disabled
/>
<input
class=
"form-control"
type=
"text"
[(
ngModel
)]="
editBusiness
.
mobileNo
"
disabled
/>
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
微信
</span>
<span>
微信
</span>
<input
class=
"form-control"
type=
"text"
placeholder=
"
微信"
[(
ngModel
)]="
editBusiness
.
weChat
"
<input
class=
"form-control"
type=
"text"
placeholder=
"
{{readonlyFlag ?'暂无微信':'请输入微信'}}
"
[
disabled
]="
readonlyFlag
"
/>
[
(
ngModel
)]="
editBusiness
.
weChat
"
[
disabled
]="
readonlyFlag
"
/>
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
其他联系
</span>
<span>
其他联系
</span>
<input
class=
"form-control"
type=
"text"
placeholder=
"
其他联系"
[(
ngModel
)]="
editBusiness
.
otherContacts
"
<input
class=
"form-control"
type=
"text"
placeholder=
"
{{readonlyFlag ?'暂无其他联系方式':'请输入其他联系方式'}}
"
[
disabled
]="
readonlyFlag
"
/>
[
(
ngModel
)]="
editBusiness
.
otherContacts
"
[
disabled
]="
readonlyFlag
"
/>
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
商机来源
</span>
<span>
商机来源
</span>
<input
class=
"form-control"
type=
"text"
placeholder=
"商机来源"
[(
ngModel
)]="
editBusiness
.
sourceChannel
"
<input
class=
"form-control"
type=
"text"
[(
ngModel
)]="
editBusiness
.
sourceChannel
"
disabled
/>
[
disabled
]="
readonlyFlag
"
/>
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
城市
</span>
<span>
城市
</span>
<input
class=
"form-control"
type=
"text"
placeholder=
"
城市"
[(
ngModel
)]="
editBusiness
.
address
"
<input
class=
"form-control"
type=
"text"
placeholder=
"
{{readonlyFlag ?'暂无城市信息':'请输入城市'}}
"
[
disabled
]="
readonlyFlag
"
/>
[
(
ngModel
)]="
editBusiness
.
address
"
[
disabled
]="
readonlyFlag
"
/>
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
...
@@ -68,7 +65,8 @@
...
@@ -68,7 +65,8 @@
</div>
</div>
<div
class=
"contentItem"
>
<div
class=
"contentItem"
>
<span>
商机状态
</span>
<span>
商机状态
</span>
<div>
{{lifeCommonService.checkStr(editBusiness.mdDropOptionId)}}
</div>
<div
style=
"padding: 6px 15px;padding: 6px 15px;color: #e10d0d;font-weight: bold;"
>
{{lifeCommonService.checkStr(editBusiness.mdDropOptionId)}}
</div>
</div>
</div>
<!-- <div class="contentItem">
<!-- <div class="contentItem">
<span>标签</span>
<span>标签</span>
...
@@ -77,10 +75,13 @@
...
@@ -77,10 +75,13 @@
</div> -->
</div> -->
</div>
</div>
<div
class=
"tagWrapper"
>
<div
class=
"tagWrapper"
>
<div
style=
"width: 100%;"
>
标签
</div>
<div
style=
"width: 100%;
height: 34px;line-height: 34px;
"
>
标签
</div>
<div
class=
"tagContent"
*
ngFor=
"let tagItem of tagList"
(
click
)="
selectTag
(
tagItem
)"
<
!-- <
div class="tagContent" *ngFor="let tagItem of tagList" (click)="selectTag(tagItem)"
[ngClass]="{selected:tagItem.selected}">
[ngClass]="{selected:tagItem.selected}">
{{tagItem.tagName}}
{{tagItem.tagName}}
</div> -->
<div
class=
"tagContent selected"
*
ngFor=
"let tagItem of opportunityCustomerTags"
>
{{tagItem.tagName}}
</div>
</div>
</div>
</div>
...
@@ -115,7 +116,7 @@
...
@@ -115,7 +116,7 @@
</div>
</div>
<div>
<div>
<div>
跟进时间
</div>
<div>
跟进时间
</div>
<div><input
type=
"text"
id=
"time"
class=
"form-control"
[(
ngModel
)]="
opportunityRecordNoticeDate
"
></div>
<div><input
id=
"time"
class=
"form-control"
[(
ngModel
)]="
opportunityRecordNoticeDate
"
></div>
</div>
</div>
<div
class=
"add"
>
<div
class=
"add"
>
<i
class=
"iconfont icon-jia"
(
click
)="
ownOpportunityRecordSave
()"
></i>
<i
class=
"iconfont icon-jia"
(
click
)="
ownOpportunityRecordSave
()"
></i>
...
...
src/app/my/my-business-detail/my-business-detail.component.scss
View file @
c7aa2080
.wrapper
{
.wrapper
{
select
{
-webkit-appearance
:
none
;
}
.tab
{
.tab
{
display
:
flex
;
display
:
flex
;
list-style
:
none
;
list-style
:
none
;
...
@@ -27,10 +30,17 @@
...
@@ -27,10 +30,17 @@
padding
:
10px
5px
;
padding
:
10px
5px
;
position
:
relative
;
position
:
relative
;
>
.iconfont
{
>
.iconfont
{
width
:
45px
;
height
:
45px
;
line-height
:
45px
;
border-radius
:
50%
;
position
:
absolute
;
position
:
absolute
;
right
:
10px
;
right
:
10px
;
font-size
:
24px
;
font-size
:
24px
;
top
:
-5px
;
color
:
#fff
;
background
:
#1890ff
;
text-align
:
center
;
bottom
:
30px
;
}
}
.contentDetail
{
.contentDetail
{
margin-top
:
15px
;
margin-top
:
15px
;
...
@@ -40,7 +50,7 @@
...
@@ -40,7 +50,7 @@
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
// border-bottom: 1px #ddd solid;
// border-bottom: 1px #ddd solid;
margin
:
0
8px
8
px
8px
;
margin
:
0
8px
5
px
8px
;
input
.form-control
{
input
.form-control
{
display
:
inline-block
;
display
:
inline-block
;
width
:
60%
;
width
:
60%
;
...
@@ -60,11 +70,16 @@
...
@@ -60,11 +70,16 @@
.form-control.sex
{
.form-control.sex
{
width
:
20%
;
width
:
20%
;
margin-left
:
5px
;
margin-left
:
5px
;
border
:
none
;
box-shadow
:
none
;
}
}
.form-control.sex.sexBtn
{
.form-control.sex.sexBtn
{
background-color
:
#5cb85c
;
border
:
1px
#e10d0d
solid
;
color
:
#fff
;
}
}
.form-control
[
disabled
]
{
background-color
:
transparent
;
opacity
:
1
;
}
}
}
}
}
.contentItem
:last-child
{
.contentItem
:last-child
{
...
@@ -76,18 +91,17 @@
...
@@ -76,18 +91,17 @@
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
padding-left
:
8px
;
padding-left
:
8px
;
div
.tagContent
{
div
.tagContent
{
width
:
25%
;
margin
:
10px
3px
0
3px
;
margin
:
10px
3px
0
3px
;
height
:
30
px
;
height
:
28
px
;
line-height
:
30
px
;
line-height
:
28
px
;
text-align
:
center
;
text-align
:
center
;
background-color
:
#e8e8e8
;
//
background-color: #e8e8e8;
border-radius
:
12px
;
border-radius
:
12px
;
cursor
:
pointer
;
font-size
:
13px
;
padding
:
0
15px
;
}
}
div
.selected
{
div
.selected
{
color
:
#5cb85c
;
border
:
1px
#e10d0d
solid
;
background
:
rgba
(
91
,
184
,
92
,
0
.1
);
}
}
}
}
...
...
src/app/my/my-business-detail/my-business-detail.component.ts
View file @
c7aa2080
...
@@ -73,8 +73,8 @@ export class MyBusinessDetailComponent implements OnInit {
...
@@ -73,8 +73,8 @@ export class MyBusinessDetailComponent implements OnInit {
this
.
selectedId
=
id
;
this
.
selectedId
=
id
;
if
(
id
===
4
)
{
if
(
id
===
4
)
{
if
(
this
.
isCompletedQuestionnaire
==
1
)
{
if
(
this
.
isCompletedQuestionnaire
==
1
)
{
// window.location.href = `https://${window.location.host}/customizedPlanList/${this.opportunityId}?orderId=${this.order
Id}`
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/customizedPlanList/3?orderId=
${
this
.
orderId
}
&customerId=
${
this
.
opportunity
Id
}
`
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/customizedPlanList/2
?orderId=8373`
// window.location.href = `https://${window.location.host}/customizedPlanList/3
?orderId=8373`
}
}
}
}
...
@@ -142,6 +142,9 @@ export class MyBusinessDetailComponent implements OnInit {
...
@@ -142,6 +142,9 @@ export class MyBusinessDetailComponent implements OnInit {
//选标签
//选标签
selectTag
(
tagItem
)
{
selectTag
(
tagItem
)
{
if
(
this
.
readonlyFlag
)
{
return
;
}
this
.
tagList
.
forEach
((
item
,
idx
)
=>
{
this
.
tagList
.
forEach
((
item
,
idx
)
=>
{
if
(
tagItem
.
id
==
item
.
id
)
{
if
(
tagItem
.
id
==
item
.
id
)
{
this
.
tagList
[
idx
].
selected
=
!
tagItem
.
selected
this
.
tagList
[
idx
].
selected
=
!
tagItem
.
selected
...
@@ -196,7 +199,7 @@ export class MyBusinessDetailComponent implements OnInit {
...
@@ -196,7 +199,7 @@ export class MyBusinessDetailComponent implements OnInit {
ownOpportunityRecordSave
()
{
ownOpportunityRecordSave
()
{
if
(
!
this
.
opportunityRecordId
&&
!
this
.
salesNotice
)
{
if
(
this
.
opportunityRecordId
==
null
&&
!
this
.
salesNotice
)
{
this
.
toastDialog
=
true
;
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
this
.
toastInfo
=
{
status
:
1
,
status
:
1
,
...
@@ -216,7 +219,6 @@ export class MyBusinessDetailComponent implements OnInit {
...
@@ -216,7 +219,6 @@ export class MyBusinessDetailComponent implements OnInit {
noticeDate
:
this
.
opportunityRecordNoticeDate
noticeDate
:
this
.
opportunityRecordNoticeDate
}
}
this
.
myService
.
ownOpportunityRecordSave
(
param
).
subscribe
(
res
=>
{
this
.
myService
.
ownOpportunityRecordSave
(
param
).
subscribe
(
res
=>
{
console
.
log
(
res
);
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
toastDialog
=
true
;
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
this
.
toastInfo
=
{
...
...
src/app/my/my-business/my-business.component.ts
View file @
c7aa2080
...
@@ -17,15 +17,12 @@ export class MyBusinessComponent implements OnInit {
...
@@ -17,15 +17,12 @@ export class MyBusinessComponent implements OnInit {
ownOpportunityQuery
()
{
ownOpportunityQuery
()
{
const
brokerCustomerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'customerId'
];
const
brokerCustomerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'customerId'
];
console
.
log
(
brokerCustomerId
)
this
.
myService
.
ownOpportunityQuery
({
customerId
:
brokerCustomerId
}).
subscribe
((
res
)
=>
{
this
.
myService
.
ownOpportunityQuery
({
customerId
:
brokerCustomerId
}).
subscribe
((
res
)
=>
{
if
(
res
[
'data'
][
'ownOpportunityInfos'
])
{
if
(
res
[
'data'
][
'ownOpportunityInfos'
])
{
this
.
businessList
=
res
[
'data'
][
'ownOpportunityInfos'
];
this
.
businessList
=
res
[
'data'
][
'ownOpportunityInfos'
];
}
else
{
}
else
{
this
.
businessList
=
[]
this
.
businessList
=
[]
}
}
console
.
log
(
this
.
businessList
)
})
})
}
}
...
...
src/app/my/my-center-home/my-center-home.component.ts
View file @
c7aa2080
...
@@ -50,8 +50,8 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
...
@@ -50,8 +50,8 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
{
no
:
2
,
subtitle
:
'AI保险医生'
,
icon
:
'icon-ai'
,
path
:
`https://
${
window
.
location
.
host
}
/questionnaire/#/index?campaign=AIRobot&task=AItask1&customerId=
${
this
.
lifeCustomerInfo
.
customerId
}
`
,
routerLink
:
''
},
{
no
:
2
,
subtitle
:
'AI保险医生'
,
icon
:
'icon-ai'
,
path
:
`https://
${
window
.
location
.
host
}
/questionnaire/#/index?campaign=AIRobot&task=AItask1&customerId=
${
this
.
lifeCustomerInfo
.
customerId
}
`
,
routerLink
:
''
},
{
no
:
1
,
subtitle
:
'獴哥保险诊所'
,
icon
:
'icon-btnconsult'
,
path
:
`https://
${
window
.
location
.
host
}
/consulting`
,
routerLink
:
''
},
{
no
:
1
,
subtitle
:
'獴哥保险诊所'
,
icon
:
'icon-btnconsult'
,
path
:
`https://
${
window
.
location
.
host
}
/consulting`
,
routerLink
:
''
},
{
no
:
4
,
subtitle
:
'银盾在线'
,
icon
:
'icon-zaixian'
,
path
:
`https://
${
window
.
location
.
host
}
/index`
,
routerLink
:
''
},
{
no
:
4
,
subtitle
:
'银盾在线'
,
icon
:
'icon-zaixian'
,
path
:
`https://
${
window
.
location
.
host
}
/index`
,
routerLink
:
''
},
{
no
:
13
,
subtitle
:
'我的商机'
,
icon
:
'icon-shangji'
,
path
:
''
,
routerLink
:
'business'
},
{
no
:
12
,
subtitle
:
'我的保单'
,
icon
:
'icon-dailishangshenqing'
,
path
:
''
,
routerLink
:
''
},
{
no
:
12
,
subtitle
:
'我的保单'
,
icon
:
'icon-dailishangshenqing'
,
path
:
''
,
routerLink
:
''
},
{
no
:
13
,
subtitle
:
'我的商机'
,
icon
:
'icon-shangji'
,
path
:
''
,
routerLink
:
'business'
}
]
]
},
{
},
{
title
:
'教育培训'
,
title
:
'教育培训'
,
...
...
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