Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
ef6bec74
Commit
ef6bec74
authored
Aug 29, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix last callback not update
parent
5d117cda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
+25
-24
index.vue
src/components/callBack/index.vue
+25
-24
No files found.
src/components/callBack/index.vue
View file @
ef6bec74
...
@@ -267,36 +267,37 @@
...
@@ -267,36 +267,37 @@
this
.
callbackEdit
.
wechat
.
value
=
this
.
user
.
info
.
wx_number
;
this
.
callbackEdit
.
wechat
.
value
=
this
.
user
.
info
.
wx_number
;
this
.
callbackEdit
.
wechat
.
origin
=
this
.
user
.
info
.
wx_number
;
this
.
callbackEdit
.
wechat
.
origin
=
this
.
user
.
info
.
wx_number
;
},
},
'callbackObj.timestamp'
()
{
'callbackObj.timestamp'
()
{
// 时间戳变化更新数据
this
.
user
.
user_id
=
this
.
callbackObj
.
user_id
;
this
.
initCallback
();
this
.
getUser
();
this
.
getTag
();
}
}
},
},
mounted
()
{
mounted
()
{
this
.
user
.
user_id
=
this
.
callbackObj
.
user_id
;
this
.
initCallback
();
if
(
!
this
.
hasUserInfo
)
{
},
this
.
getUser
();
methods
:
{
}
else
{
initCallback
()
{
this
.
user
.
info
=
this
.
callbackObj
.
info
;
this
.
user
.
user_id
=
this
.
callbackObj
.
user_id
;
}
if
(
!
this
.
hasUserInfo
)
{
this
.
getTag
();
this
.
getUser
();
this
.
getData
();
}
else
{
this
.
user
.
info
=
this
.
callbackObj
.
info
;
if
(
this
.
callbackObj
.
teacher_id
)
{
let
json
=
{
user_id
:
this
.
callbackObj
.
user_id
}
}
getCallBackPrevApi
(
json
).
then
(
res
=>
{
this
.
getTag
();
if
(
res
&&
res
[
0
]
&&
res
[
0
].
next_visit_at
&&
res
[
0
].
intention
)
{
this
.
getData
();
this
.
add
.
intention
=
res
[
0
].
intention
;
this
.
add
.
next_visit_at
=
res
[
0
].
next_visit_at
;
if
(
this
.
callbackObj
.
teacher_id
)
{
let
json
=
{
user_id
:
this
.
callbackObj
.
user_id
}
}
})
getCallBackPrevApi
(
json
).
then
(
res
=>
{
}
if
(
res
&&
res
[
0
]
&&
res
[
0
].
next_visit_at
&&
res
[
0
].
intention
)
{
this
.
add
.
intention
=
res
[
0
].
intention
;
this
.
add
.
next_visit_at
=
res
[
0
].
next_visit_at
;
}
})
}
},
},
methods
:
{
filterName
(
string
,
type
)
{
filterName
(
string
,
type
)
{
return
this
[
type
].
find
(
i
=>
{
return
this
[
type
].
find
(
i
=>
{
return
i
.
value
==
string
return
i
.
value
==
string
...
...
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