Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit acb342a2
authored
May 31, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户信息卡片日期选择交互调整
1 parent
1c891d01
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
16 deletions
src/assets/css/sprite.scss
src/assets/images/sprite.png
src/components/CustomerFollowPopup.vue
src/assets/css/sprite.scss
View file @
acb342a
...
@@ -9,12 +9,12 @@
...
@@ -9,12 +9,12 @@
.icon-customer-copy
{
width
:
18px
;
height
:
20px
;
background-position
:
-138px
-30px
;}
.icon-customer-copy
{
width
:
18px
;
height
:
20px
;
background-position
:
-138px
-30px
;}
.icon-customer-phone
{
width
:
20px
;
height
:
20px
;
background-position
:
-30px
-96px
;}
.icon-customer-phone
{
width
:
20px
;
height
:
20px
;
background-position
:
-30px
-96px
;}
.icon-factory
{
width
:
32px
;
height
:
32px
;
background-position
:
-42px
-54px
;}
.icon-factory
{
width
:
32px
;
height
:
32px
;
background-position
:
-42px
-54px
;}
.icon-follow
{
width
:
32px
;
height
:
32px
;
background-position
:
-96px
0px
;}
.icon-identifier
{
width
:
20px
;
height
:
20px
;
background-position
:
-60px
-96px
;}
.icon-open-arrow
{
width
:
8px
;
height
:
7px
;
background-position
:
-113px
-72px
;}
.icon-fllow
{
width
:
18px
;
height
:
18px
;
background-position
:
-138px
-88px
;}
.icon-fllow
{
width
:
18px
;
height
:
18px
;
background-position
:
-138px
-88px
;}
.icon-followRecord
{
width
:
20px
;
height
:
20px
;
background-position
:
-90px
-96px
;}
.icon-follow
{
width
:
32px
;
height
:
32px
;
background-position
:
-96px
0px
;}
.icon-followRecord
{
width
:
20px
;
height
:
20px
;
background-position
:
-60px
-96px
;}
.icon-identifier
{
width
:
20px
;
height
:
20px
;
background-position
:
-90px
-96px
;}
.icon-maintant
{
width
:
20px
;
height
:
20px
;
background-position
:
-138px
0px
;}
.icon-maintant
{
width
:
20px
;
height
:
20px
;
background-position
:
-138px
0px
;}
.icon-message
{
width
:
18px
;
height
:
18px
;
background-position
:
0px
-126px
;}
.icon-message
{
width
:
18px
;
height
:
18px
;
background-position
:
0px
-126px
;}
.icon-open-arrow
{
width
:
8px
;
height
:
7px
;
background-position
:
-113px
-72px
;}
.icon-sendwechat
{
width
:
20px
;
height
:
18px
;
background-position
:
-138px
-60px
;}
.icon-sendwechat
{
width
:
20px
;
height
:
18px
;
background-position
:
-138px
-60px
;}
.icon-tel
{
width
:
18px
;
height
:
18px
;
background-position
:
-28px
-126px
;}
.icon-tel
{
width
:
18px
;
height
:
18px
;
background-position
:
-28px
-126px
;}
\ No newline at end of file
\ No newline at end of file
src/assets/images/sprite.png
View file @
acb342a
32.8 KB
|
W:
|
H:
32.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/CustomerFollowPopup.vue
View file @
acb342a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</div>
</div>
<van-form
class=
"dialog-follow"
>
<van-form
class=
"dialog-follow"
>
<van-cell-group
inset
>
<van-cell-group
inset
>
<van-field
name=
"跟进结果"
label=
"跟进结果"
>
<van-field
name=
"跟进结果"
label=
"跟进结果"
class=
"field-bottom"
>
<template
#
input
>
<template
#
input
>
<div
class=
"follow-list"
>
<div
class=
"follow-list"
>
<div
class=
"follow-list-item"
v-for=
"item in followResultList"
:key=
"item.id"
@
click=
"selectFollow(item)"
>
<div
class=
"follow-list-item"
v-for=
"item in followResultList"
:key=
"item.id"
@
click=
"selectFollow(item)"
>
...
@@ -15,12 +15,13 @@
...
@@ -15,12 +15,13 @@
</div>
</div>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
name=
"跟进备注"
label=
"跟进备注"
v-model=
"selectFollowForm.followTips"
placeholder=
"输入备注"
maxlength=
"200"
/>
<van-field
name=
"跟进备注"
rows=
"1"
type=
"textarea"
autosize
class=
"field-bottom"
label=
"跟进备注"
v-model=
"selectFollowForm.followTips"
placeholder=
"输入备注"
maxlength=
"200"
/>
<van-field
name=
"switch"
label=
"继续跟进"
>
<van-field
name=
"switch"
label=
"继续跟进"
>
<
template
#
input
>
<
template
#
input
>
<van-switch
v-model=
"checked"
size=
"24px"
/>
<van-switch
v-model=
"checked"
size=
"24px"
/>
</
template
>
</
template
>
</van-field>
</van-field>
<div
class=
"continue-follow-text field-bottom"
>
若「打开」表示该客户暂未战败,仍需再次招揽; 若「关闭」表示该客户信息将从「待跟进」迁移至「已跟进」列表。
</div>
<van-field
<van-field
v-show=
"selectFollowForm.followResultId == 1"
v-show=
"selectFollowForm.followResultId == 1"
v-model=
"selectFollowForm.appointmentTime"
v-model=
"selectFollowForm.appointmentTime"
...
@@ -31,7 +32,7 @@
...
@@ -31,7 +32,7 @@
placeholder=
"请选择到店时间"
placeholder=
"请选择到店时间"
@
click=
"showDate"
@
click=
"showDate"
/>
/>
<div
v-show=
"showPicker"
>
<div
v-show=
"showPicker
&& selectFollowForm.followResultId == 1
"
>
<div
class=
"datetime-box"
>
<div
class=
"datetime-box"
>
<div
class=
"datetime-picker"
>
<div
class=
"datetime-picker"
>
<div
v-for=
"item in datePickList"
:key=
"item.index"
:class=
"['item', tabIndex == item.index ? 'active' : '']"
>
<div
v-for=
"item in datePickList"
:key=
"item.index"
:class=
"['item', tabIndex == item.index ? 'active' : '']"
>
...
@@ -44,16 +45,17 @@
...
@@ -44,16 +45,17 @@
<van-datetime-picker
v-show=
"tabIndex"
type=
"time"
@
confirm=
"confirmTime"
:min-hour=
"minHour"
/>
<van-datetime-picker
v-show=
"tabIndex"
type=
"time"
@
confirm=
"confirmTime"
:min-hour=
"minHour"
/>
</div>
</div>
</van-cell-group>
</van-cell-group>
</van-form>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<van-button
block
native-type=
"cancel"
@
click=
"cancel"
>
取消
</van-button>
<van-button
block
native-type=
"cancel"
@
click=
"cancel"
>
取消
</van-button>
<van-button
block
type=
"primary"
>
提交
</van-button>
<van-button
block
type=
"primary"
>
提交
</van-button>
</div>
</div>
</van-form>
</van-popup>
</van-popup>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
Toast
}
from
'vant'
export
default
{
export
default
{
name
:
'CustomerFollowPopup'
,
name
:
'CustomerFollowPopup'
,
data
()
{
data
()
{
...
@@ -122,6 +124,8 @@ export default {
...
@@ -122,6 +124,8 @@ export default {
checked
:
true
,
checked
:
true
,
// 当前日期
// 当前日期
dayNow
:
''
,
dayNow
:
''
,
// 当前时间
timeNow
:
''
,
// 时间标签可选最小时间
// 时间标签可选最小时间
minHour
:
''
minHour
:
''
}
}
...
@@ -144,17 +148,14 @@ export default {
...
@@ -144,17 +148,14 @@ export default {
},
},
// 时间选择tab切换
// 时间选择tab切换
selectDatetime
(
item
)
{
selectDatetime
(
item
)
{
console
.
log
(
item
)
this
.
tabIndex
=
item
.
index
this
.
tabIndex
=
item
.
index
},
},
// 选择日期
// 选择日期
selectDate
(
val
)
{
selectDate
(
val
)
{
console
.
log
(
val
)
this
.
formatterDate
(
val
,
2
)
this
.
formatterDate
(
val
,
2
)
},
},
// 选择时间
// 选择时间
confirmTime
(
val
)
{
confirmTime
(
val
)
{
console
.
log
(
val
)
this
.
datePickList
[
1
].
date
=
val
this
.
datePickList
[
1
].
date
=
val
},
},
// 确定选择的日期和时间
// 确定选择的日期和时间
...
@@ -169,6 +170,11 @@ export default {
...
@@ -169,6 +170,11 @@ export default {
// 提交按钮
// 提交按钮
primary
()
{
primary
()
{
// 如果选择标签为预约到店,判断日期和时间是否填了
// 如果选择标签为预约到店,判断日期和时间是否填了
if
(
this
.
selectFollowForm
.
followResultId
==
1
)
{
if
(
!
this
.
selectFollowForm
.
appointmentTime
)
{
Toast
.
fail
(
'请选择预约时间'
)
}
}
},
},
// 日期格式转化
// 日期格式转化
formatterDate
(
val
,
type
)
{
formatterDate
(
val
,
type
)
{
...
@@ -177,17 +183,18 @@ export default {
...
@@ -177,17 +183,18 @@ export default {
let
m
=
date
.
getMonth
()
+
1
let
m
=
date
.
getMonth
()
+
1
m
=
m
<
10
?
'0'
+
m
:
m
m
=
m
<
10
?
'0'
+
m
:
m
let
h
=
date
.
getHours
()
let
h
=
date
.
getHours
()
h
=
h
<
10
?
'0'
+
h
:
h
let
h1
=
h
<
10
?
'0'
+
h
:
h
let
d
=
date
.
getDate
()
let
d
=
date
.
getDate
()
d
=
d
<
10
?
'0'
+
d
:
d
d
=
d
<
10
?
'0'
+
d
:
d
const
time
=
y
+
'-'
+
m
+
'-'
+
d
const
time
=
y
+
'-'
+
m
+
'-'
+
d
this
.
datePickList
[
0
].
date
=
time
if
(
!
type
)
{
if
(
!
type
)
{
this
.
dayNow
=
time
this
.
dayNow
=
time
this
.
timeNow
=
h1
+
1
}
}
this
.
datePickList
[
0
].
date
=
time
if
(
this
.
dayNow
==
time
)
{
if
(
this
.
dayNow
==
time
)
{
this
.
datePickList
[
1
].
date
=
h
+
1
+
':00'
this
.
datePickList
[
1
].
date
=
this
.
timeNow
+
':00'
this
.
minHour
=
h
+
1
this
.
minHour
=
this
.
timeNow
return
return
}
}
this
.
datePickList
[
1
].
date
=
'09:00'
this
.
datePickList
[
1
].
date
=
'09:00'
...
@@ -253,7 +260,7 @@ export default {
...
@@ -253,7 +260,7 @@ export default {
}
}
.datetime-box
{
.datetime-box
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-
around
;
justify-content
:
space-
between
;
}
}
.datetime-picker
{
.datetime-picker
{
height
:
28px
;
height
:
28px
;
...
@@ -263,15 +270,40 @@ export default {
...
@@ -263,15 +270,40 @@ export default {
border-radius
:
6px
;
border-radius
:
6px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.continue-follow-text
{
width
:
287px
;
height
:
54px
;
font-size
:
12px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
18px
;
padding
:
0
90px
16px
0
;
}
.field-bottom
{
border-bottom
:
1px
solid
#ebedf0
;
}
.dialog-follow
{
padding
:
0
16px
;
}
.btn-group
{
}
.dialog-follow
/
deep
/
.van-field__label
{
.dialog-follow
/
deep
/
.van-field__label
{
width
:
60px
!important
;
width
:
60px
!important
;
}
}
.dialog-follow
/
deep
/
.van-field__control
{
.dialog-follow
/
deep
/
.van-field__control
{
text-align
:
right
;
text-align
:
right
;
max-width
:
271px
;
}
}
.dialog-follow
/
deep
/
.van-cell-group--inset
{
.dialog-follow
/
deep
/
.van-cell-group--inset
{
margin
:
0
;
margin
:
0
;
}
}
.dialog-follow
/
deep
/
.van-cell
{
padding
:
16px
0
;
}
.dialog-follow
/
deep
/
.van-cell
::after
{
border-bottom
:
none
;
}
.btn-group
/
deep
/
.van-button--block
{
.btn-group
/
deep
/
.van-button--block
{
width
:
50%
;
width
:
50%
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment