Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat_lung
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanpeng
wechat_lung
Commits
8ea9d6ef
Commit
8ea9d6ef
authored
Oct 22, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改了免费聊价格显示'
parent
b85ddf73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
freeChat.js
wechat_lung_chat/javaScript/freeChat.js
+8
-2
No files found.
wechat_lung_chat/javaScript/freeChat.js
View file @
8ea9d6ef
...
...
@@ -27,6 +27,10 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
imgUrl
:
''
,
// 价格横线
throwClass
:
''
,
// 显示的图文价格
pic_price
:
0
,
// 显示的私人医生价格
private_price
:
0
,
init
:
function
()
{
chat
.
getDoctorDetail
();
chat
.
bindEve
();
...
...
@@ -365,6 +369,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
}
else
if
(
type
==
10
)
{
var
content
=
JSON
.
parse
(
record
[
i
].
content
);
chat
.
throwClass
=
content
.
payFee
==
0
?
'service_price_throw'
:
''
;
chat
.
pic_price
=
content
.
payFee
==
0
?
content
.
totalFee
:
content
.
payFee
;
html
+=
'<div class="service_message img_consult clearfix" style="margin-bottom:0.2rem;" data-id="'
+
content
.
orderSn
+
...
...
@@ -373,7 +378,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
'<img src="../images/consult_order_twzx_png@2x.png" >'
+
'<p class="service_title">图文咨询</p>'
+
'<p class="service_price '
+
chat
.
throwClass
+
'">'
+
c
ontent
.
payFe
e
+
'元'
+
c
hat
.
pic_pric
e
+
'元'
+
'</p>'
+
'</div>'
+
'<div class="service_right_box service_message_detail">'
+
...
...
@@ -389,6 +394,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
}
else
if
(
type
==
11
)
{
var
content
=
JSON
.
parse
(
record
[
i
].
content
);
chat
.
throwClass
=
content
.
payFee
==
0
?
'service_price_throw'
:
''
;
chat
.
private_price
=
content
.
payFee
==
0
?
content
.
totalFee
:
content
.
payFee
;
html
+=
'<div class="service_message consult_box clearfix" data-id="'
+
content
.
orderSn
+
...
...
@@ -397,7 +403,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
'<img src="../images/consult_order_twzx_png@2x.png" >'
+
'<p class="service_title">私人医生</p>'
+
'<p class="service_price '
+
chat
.
throwClass
+
'">'
+
c
ontent
.
payFe
e
+
'元'
+
c
hat
.
private_pric
e
+
'元'
+
'</p>'
+
'</div>'
+
'<div class="service_right_box service_message_detail">'
+
...
...
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