Commit b85ddf73 by zujiaozhang

'修改免费聊天价格中横线'

parent fd858830
...@@ -203,9 +203,10 @@ body { ...@@ -203,9 +203,10 @@ body {
margin-top: 0.04rem; margin-top: 0.04rem;
font-size: 0.2rem; font-size: 0.2rem;
color: #fff; color: #fff;
}
.service_price_throw {
text-decoration: line-through; text-decoration: line-through;
} }
.sevice_img_consult { .sevice_img_consult {
background: #37D488; background: #37D488;
} }
......
...@@ -25,6 +25,8 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -25,6 +25,8 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
imgKey: '', imgKey: '',
// 上传图片后的url地址 // 上传图片后的url地址
imgUrl: '', imgUrl: '',
// 价格横线
throwClass:'',
init: function() { init: function() {
chat.getDoctorDetail(); chat.getDoctorDetail();
chat.bindEve(); chat.bindEve();
...@@ -285,6 +287,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -285,6 +287,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
orderSn: '' orderSn: ''
}, },
success: function(res) { success: function(res) {
console.log('消息列表',res)
medtap.loading(0); medtap.loading(0);
var record = res.content.list; var record = res.content.list;
var html = ''; var html = '';
...@@ -361,6 +364,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -361,6 +364,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':'';
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 +
...@@ -368,7 +372,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -368,7 +372,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
'<div class="service_left_box sevice_img_consult">' + '<div class="service_left_box sevice_img_consult">' +
'<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">' + '<p class="service_price '+ chat.throwClass +'">' +
content.payFee + '元' + content.payFee + '元' +
'</p>' + '</p>' +
'</div>' + '</div>' +
...@@ -384,6 +388,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -384,6 +388,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
html += '<p class="system_msg">' + content.replace(/\n/g, '<br>') + '</p>'; html += '<p class="system_msg">' + content.replace(/\n/g, '<br>') + '</p>';
} 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':'';
html += html +=
'<div class="service_message consult_box clearfix" data-id="' + '<div class="service_message consult_box clearfix" data-id="' +
content.orderSn + content.orderSn +
...@@ -391,7 +396,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -391,7 +396,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
'<div class="service_left_box sevice_consult">' + '<div class="service_left_box sevice_consult">' +
'<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">' + '<p class="service_price '+ chat.throwClass +'">' +
content.payFee + '元' + content.payFee + '元' +
'</p>' + '</p>' +
'</div>' + '</div>' +
......
...@@ -25,6 +25,8 @@ define([ 'zepto', 'medtap' ], function($, medtap) { ...@@ -25,6 +25,8 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
imgKey: '', imgKey: '',
// 上传图片后的url地址 // 上传图片后的url地址
imgUrl: '', imgUrl: '',
// 中划线类名
throwClass:'',
init: function() { init: function() {
chat.bindEve(); chat.bindEve();
chat.talkRelation(); chat.talkRelation();
......
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