Commit b85ddf73 by zujiaozhang

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

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