Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 e252c373
authored
May 08, 2021
by
王玉曼
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
48e7232e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
24 deletions
linkwe-mobile/src/api/common.js
linkwe-mobile/src/components/StepList.vue
linkwe-mobile/src/views/portrait/community.vue
linkwe-mobile/src/views/portrait/customerDetail.vue
linkwe-mobile/src/views/portrait/index.vue
linkwe-mobile/src/api/common.js
View file @
e252c37
...
...
@@ -41,4 +41,4 @@ export function getUserInfo(code, agentId) {
agentId
,
},
})
}
}
\ No newline at end of file
linkwe-mobile/src/components/StepList.vue
View file @
e252c37
...
...
@@ -30,7 +30,7 @@
<span
class=
"finish-box"
>
<span
class=
"finish"
v-if=
"item1.trajectoryType == 4"
v-if=
"item1.trajectoryType == 4
&& item1.status !=3
"
@
click=
"finDynamic(item1.id)"
>
完成
</span
>
...
...
@@ -213,7 +213,7 @@ export default {
handleWait
(
id
)
.
then
((
data
)
=>
{
if
(
data
.
code
==
200
)
{
this
.
delDynamic
(
id
);
//
this.delDynamic(id);
this
.
reload
();
}
})
...
...
@@ -250,6 +250,7 @@ export default {
color
:
#9c9c9c
;
font-size
:
12px
;
font-weight
:
600
;
margin-right
:
16px
;
}
.con
{
left
:
51px
;
...
...
@@ -258,20 +259,15 @@ export default {
.finish-box
{
display
:
inline-block
;
position
:
relative
;
color
:
#2c8cf0
;
font-size
:
12px
;
font-weight
:
600
;
left
:
140px
;
top
:
0px
;
width
:
65px
;
left
:
100px
;
width
:
25%
;
}
.finish
{
position
:
absolute
;
color
:
#2c8cf0
;
font-size
:
12px
;
font-weight
:
600
;
//
right
:
-138
px
;
top
:
0px
;
//
right
:
30
px
;
//
top
:
0px
;
}
</
style
>
linkwe-mobile/src/views/portrait/community.vue
View file @
e252c37
...
...
@@ -102,7 +102,6 @@ export default {
},
created
()
{
this
.
externalUserid
=
this
.
$route
.
query
.
customerId
this
.
findAddaddEmployes
()
this
.
findAddGroupNum
()
},
...
...
linkwe-mobile/src/views/portrait/customerDetail.vue
View file @
e252c37
...
...
@@ -58,6 +58,7 @@
label=
"年龄"
placeholder=
"年龄"
input-align=
"right"
disabled
/>
<van-field
v-model=
"form.birthday"
...
...
@@ -67,14 +68,16 @@
input-align=
"right"
@
click=
"!flage ? (show = true) : ''"
/>
<van-popup
v-model=
"show"
>
内容
</van-popup>
<!--
<van-datetime-picker
v-model=
"currentDate"
type=
"date"
title=
"选择年月日"
:min-date=
"minDate"
:max-date=
"maxDate"
/>
-->
<van-popup
v-model=
"show"
position=
"bottom"
round
:style=
"
{ height: '60%' }">
<van-datetime-picker
v-model=
"currentDate"
type=
"date"
title=
"选择年月日"
:min-date=
"minDate"
:max-date=
"maxDate"
@
confirm=
"confirm"
@
cancel =
"cancel"
/></van-popup>
<!-- -------------------------- -->
<van-field
v-model=
"form.email"
...
...
@@ -134,6 +137,7 @@ export default {
show
:
false
,
minDate
:
new
Date
(
1940
,
0
,
1
),
maxDate
:
new
Date
(),
currentDate
:
new
Date
(
2000
,
0
,
17
),
// 接口开始
// 表单数据
form
:
{
...
...
@@ -156,6 +160,7 @@ export default {
// 获取客户年龄
},
created
()
{
this
.
form
.
externalUserid
=
this
.
$route
.
query
.
customerId
;
// 获取客户详细信息
getCustomerInfo
({
...
...
@@ -163,9 +168,9 @@ export default {
userId
:
this
.
form
.
userId
,
})
.
then
(({
data
})
=>
{
console
.
log
(
data
);
//
console.log(data);
this
.
form
=
data
;
console
.
log
(
this
.
form
);
//
console.log(this.form);
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
...
...
@@ -173,13 +178,37 @@ export default {
},
methods
:
{
// 选择生日
confirm
(
val
)
{
this
.
show
=
false
this
.
form
.
birthday
=
this
.
getTime
(
val
)
console
.
log
(
val
);
},
cancel
()
{
this
.
show
=
false
},
edit
()
{
this
.
flage
=
!
this
.
flage
;
},
// 时间处理器
getTime
(
data
)
{
const
date
=
new
Date
(
data
)
// console.log(timer.getFullYear());
var
Y
=
date
.
getFullYear
()
+
'-'
var
M
=
(
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
)
+
'-'
var
D
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
()
+
' '
// var h =
// (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
// var m =
// date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
return
Y
+
M
+
D
},
// 点击保存按钮提交表单
saveUserInformation
()
{
this
.
flage
=
!
this
.
flage
;
getWeCustomerInfo
(
this
.
form
)
.
then
((
data
)
=>
{
console
.
log
(
data
);
...
...
linkwe-mobile/src/views/portrait/index.vue
View file @
e252c37
This diff is collapsed.
Click to expand it.
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