Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
XDJK
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
wechatminiprogram
XDJK
Commits
41c662e9
Commit
41c662e9
authored
Apr 25, 2021
by
liuquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
ab36d678
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
38 deletions
+45
-38
packageA/chat/chat.js
+45
-38
No files found.
packageA/chat/chat.js
View file @
41c662e9
...
...
@@ -657,7 +657,6 @@ Page({
/**
* 服务提前结束 0同意 1拒绝
*/
endInquiry
:
function
(
e
)
{
var
alldata
=
wx
.
getStorageSync
(
'data'
)
let
that
=
this
;
...
...
@@ -690,42 +689,51 @@ Page({
unitid
:
that
.
data
.
doctorunitid
}
Service
.
seeBuyStaus
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
&&
res
.
data
.
status
==
'1'
)
{
that
.
setData
({
payFlag
:
true
,
payFlag1
:
false
,
sendBtns
:
true
,
end_time
:
res
.
data
.
end_time_stamp
,
status
:
false
,
serviceName
:
res
.
data
.
name
})
return
;
}
else
if
(
res
.
code
==
1
&&
res
.
data
.
status
==
"0"
)
{
that
.
setData
({
payFlag1
:
true
,
end_time
:
'待接诊'
,
sendBtns
:
true
,
status
:
true
,
serviceName
:
res
.
data
.
name
})
return
;
}
else
if
(
res
.
code
==
1
&&
res
.
data
.
status
==
"2"
)
{
that
.
setData
({
payFlag
:
false
,
payFlag1
:
false
,
end_time
:
'已结束'
,
sendBtns
:
true
,
status
:
true
,
serviceName
:
res
.
data
.
name
})
that
.
getFreeChat
(
that
.
data
.
t_unionid
,
wx
.
getStorageSync
(
'data'
).
unionid
);
}
else
{
that
.
setData
({
payFlag
:
false
,
end_time
:
''
,
serviceName
:
'未知'
,
})
that
.
getFreeChat
(
that
.
data
.
t_unionid
,
wx
.
getStorageSync
(
'data'
).
unionid
);
if
(
res
.
code
==
1
)
{
switch
(
Number
(
res
.
data
.
status
))
{
case
0
:
that
.
setData
({
payFlag1
:
true
,
end_time
:
'待接诊'
,
sendBtns
:
true
,
status
:
true
,
serviceName
:
res
.
data
.
name
})
return
;
case
1
:
that
.
setData
({
payFlag
:
true
,
payFlag1
:
false
,
sendBtns
:
true
,
end_time
:
res
.
data
.
end_time_stamp
,
status
:
false
,
serviceName
:
res
.
data
.
name
})
return
;
case
2
:
that
.
setData
({
payFlag
:
false
,
payFlag1
:
false
,
end_time
:
'已结束'
,
sendBtns
:
true
,
status
:
true
,
serviceName
:
res
.
data
.
name
})
if
(
res
.
data
.
counsel
==
"20"
){
that
.
getFreeChat
(
that
.
data
.
t_unionid
,
wx
.
getStorageSync
(
'data'
).
unionid
);
}
return
default
:
that
.
setData
({
payFlag
:
false
,
end_time
:
''
,
serviceName
:
'未知'
,
})
if
(
res
.
data
.
counsel
==
"20"
){
that
.
getFreeChat
(
that
.
data
.
t_unionid
,
wx
.
getStorageSync
(
'data'
).
unionid
);
}
break
;
}
}
}).
catch
(
error
=>
{
console
.
error
(
"返回用户支付列表"
,
error
)
...
...
@@ -1131,7 +1139,6 @@ Page({
message
.
payload
.
data
=
message
.
payload
.
data
.
type
;
}
Arr
.
push
(
message
);
that
.
setData
({
unsentMessageList
:
that
.
data
.
unsentMessageList
.
concat
(
Arr
),
msgContent
:
''
...
...
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