Commit 8ea9d6ef by zujiaozhang

'修改了免费聊价格显示'

parent b85ddf73
...@@ -27,6 +27,10 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -27,6 +27,10 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
imgUrl: '', imgUrl: '',
// 价格横线 // 价格横线
throwClass:'', throwClass:'',
// 显示的图文价格
pic_price:0,
// 显示的私人医生价格
private_price: 0,
init: function() { init: function() {
chat.getDoctorDetail(); chat.getDoctorDetail();
chat.bindEve(); chat.bindEve();
...@@ -365,6 +369,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -365,6 +369,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
} else if (type == 10) { } else if (type == 10) {
var content = JSON.parse(record[i].content); var content = JSON.parse(record[i].content);
chat.throwClass = content.payFee==0? 'service_price_throw':''; chat.throwClass = content.payFee==0? 'service_price_throw':'';
chat.pic_price = content.payFee==0? content.totalFee : content.payFee;
html += html +=
'<div class="service_message img_consult clearfix" style="margin-bottom:0.2rem;" data-id="' + '<div class="service_message img_consult clearfix" style="margin-bottom:0.2rem;" data-id="' +
content.orderSn + content.orderSn +
...@@ -373,7 +378,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -373,7 +378,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
'<img src="../images/consult_order_twzx_png@2x.png" >' + '<img src="../images/consult_order_twzx_png@2x.png" >' +
'<p class="service_title">图文咨询</p>' + '<p class="service_title">图文咨询</p>' +
'<p class="service_price '+ chat.throwClass +'">' + '<p class="service_price '+ chat.throwClass +'">' +
content.payFee + '元' + chat.pic_price + '元' +
'</p>' + '</p>' +
'</div>' + '</div>' +
'<div class="service_right_box service_message_detail">' + '<div class="service_right_box service_message_detail">' +
...@@ -389,6 +394,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -389,6 +394,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
} else if (type == 11) { } else if (type == 11) {
var content = JSON.parse(record[i].content); var content = JSON.parse(record[i].content);
chat.throwClass = content.payFee==0? 'service_price_throw':''; chat.throwClass = content.payFee==0? 'service_price_throw':'';
chat.private_price = content.payFee==0? content.totalFee : content.payFee;
html += html +=
'<div class="service_message consult_box clearfix" data-id="' + '<div class="service_message consult_box clearfix" data-id="' +
content.orderSn + content.orderSn +
...@@ -397,7 +403,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -397,7 +403,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
'<img src="../images/consult_order_twzx_png@2x.png" >' + '<img src="../images/consult_order_twzx_png@2x.png" >' +
'<p class="service_title">私人医生</p>' + '<p class="service_title">私人医生</p>' +
'<p class="service_price '+ chat.throwClass +'">' + '<p class="service_price '+ chat.throwClass +'">' +
content.payFee + '元' + chat.private_price + '元' +
'</p>' + '</p>' +
'</div>' + '</div>' +
'<div class="service_right_box service_message_detail">' + '<div class="service_right_box service_message_detail">' +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment