Commit bfe2b744 by 施宇

111

parent 7e931ec5
...@@ -136,7 +136,14 @@ ...@@ -136,7 +136,14 @@
<div class="num fl ellipsis boxsiz">库存: <div class="num fl ellipsis boxsiz">库存:
<span>{{item.stock}}</span> <span>{{item.stock}}</span>
</div> </div>
<div class="price fl ellipsis boxsiz bold">{{item.price}}</div> <div class="price fl ellipsis boxsiz bold">
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
</div>
{{# if(item['audit_status'] == 1){ }} {{# if(item['audit_status'] == 1){ }}
{{# if(item['status'] == 1){ }} {{# if(item['status'] == 1){ }}
<div class="data_status fl boxsiz zs"> <div class="data_status fl boxsiz zs">
...@@ -156,9 +163,9 @@ ...@@ -156,9 +163,9 @@
</div> </div>
{{# if(item['status'] == 1){ }} {{# if(item['status'] == 1){ }}
{{# if(item['audit_status'] == 1){ }} {{# if(item['audit_status'] == 1){ }}
<a class="xj xj_status fr">下架</a> <a class="xj xj_status fr xj_btn">下架</a>
{{# } else { }} {{# } else { }}
<a class="xj xj_status fr disabled">下架</a> <a class="xj xj_status fr disabled xj_btn">下架</a>
{{# } }} {{# } }}
{{# } else { }} {{# } else { }}
......
...@@ -64,7 +64,14 @@ ...@@ -64,7 +64,14 @@
<div class="fl num ellipsis">{{item.goods_name}}</div> <div class="fl num ellipsis">{{item.goods_name}}</div>
</div> </div>
<div class="item_middle clr"> <div class="item_middle clr">
<div class="fl price">{{item.price}}</div> <div class="fl price">
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
</div>
<div class="fr time">{{layui.util.toDateString(item.update_time * 1000,'yyyy-MM-dd HH:mm')}}</div> <div class="fr time">{{layui.util.toDateString(item.update_time * 1000,'yyyy-MM-dd HH:mm')}}</div>
</div> </div>
<div class="item_bottom"> <div class="item_bottom">
......
...@@ -103,9 +103,9 @@ ...@@ -103,9 +103,9 @@
<a class="icon iconfont iconjuxing2 fr"></a> <a class="icon iconfont iconjuxing2 fr"></a>
{{# if(item['status'] == 1){ }} {{# if(item['status'] == 1){ }}
{{# if(item['audit_status'] == 1){ }} {{# if(item['audit_status'] == 1){ }}
<a class="xj xj_status fr">下架</a> <a class="xj xj_status fr xj_btn">下架</a>
{{# } else { }} {{# } else { }}
<a class="xj xj_status fr disabled">下架</a> <a class="xj xj_status fr disabled xj_btn">下架</a>
{{# } }} {{# } }}
{{# } else { }} {{# } else { }}
{{# if(item['audit_status'] == 1){ }} {{# if(item['audit_status'] == 1){ }}
......
...@@ -68,7 +68,14 @@ ...@@ -68,7 +68,14 @@
<div class="fl num ellipsis">{{item.goods_name}}</div> <div class="fl num ellipsis">{{item.goods_name}}</div>
</div> </div>
<div class="item_middle clr"> <div class="item_middle clr">
<div class="fl price">{{item.price}}</div> <div class="fl price">
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
</div>
<div class="fr time">{{layui.util.toDateString(item.update_time * 1000)}}</div> <div class="fr time">{{layui.util.toDateString(item.update_time * 1000)}}</div>
</div> </div>
<div class="item_bottom"> <div class="item_bottom">
......
...@@ -576,7 +576,10 @@ $(function () { ...@@ -576,7 +576,10 @@ $(function () {
params, true)); params, true));
var contentHeight = $('#' + userId).find('.notice_item_content') var contentHeight = $('#' + userId).find('.notice_item_content')
.height(); .height();
$('#' + userId).find('.notice_list').scrollTop(contentHeight); setTimeout(function(){
$('#' + userId).find('.notice_list').scrollTop(contentHeight);
},200)
}, },
fail: function () { fail: function () {
console.log("Send Cmd failed"); console.log("Send Cmd failed");
...@@ -622,7 +625,10 @@ $(function () { ...@@ -622,7 +625,10 @@ $(function () {
}, false)); }, false));
var contentHeight = $('#' + userId).find('.notice_item_content') var contentHeight = $('#' + userId).find('.notice_item_content')
.height(); .height();
$('#' + userId).find('.notice_list').scrollTop(contentHeight); // $('#' + userId).find('.notice_list').scrollTop(contentHeight);
setTimeout(function(){
$('#' + userId).find('.notice_list').scrollTop(contentHeight);
},200)
$('#img_upload').val(''); $('#img_upload').val('');
}, },
fail: function () { fail: function () {
...@@ -693,7 +699,11 @@ $(function () { ...@@ -693,7 +699,11 @@ $(function () {
} }
} else { } else {
var contentHeight = $('#' + id).find('.notice_item_content').height(); var contentHeight = $('#' + id).find('.notice_item_content').height();
$('#' + id).find('.notice_list').scrollTop(contentHeight); // $('#' + id).find('.notice_list').scrollTop(contentHeight);
setTimeout(function(){
$('#' + id).find('.notice_list').scrollTop(contentHeight);
},200)
if (newMember) { if (newMember) {
return return
} }
...@@ -778,7 +788,10 @@ $(function () { ...@@ -778,7 +788,10 @@ $(function () {
$('#' + id).find('.notice_item_content').prepend(chatCon); $('#' + id).find('.notice_item_content').prepend(chatCon);
var contentHeight = $('#' + id).find('.notice_item_content') var contentHeight = $('#' + id).find('.notice_item_content')
.height(); .height();
$('#' + id).find('.notice_list').scrollTop(contentHeight);
setTimeout(function(){
$('#' + id).find('.notice_list').scrollTop(contentHeight);
},200)
}, },
}; };
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
//下架 //下架
$('#listData').on('click', '.xj', function (e) { $('#listData').on('click', '.xj_btn', function (e) {
e.stopPropagation(); e.stopPropagation();
......
...@@ -173,7 +173,7 @@ $(function () { ...@@ -173,7 +173,7 @@ $(function () {
}); });
//下架 //下架
$('.inquiry_data').on('click', '.xj', function (e) { $('.inquiry_data').on('click', '.xj_btn', function (e) {
e.stopPropagation(); e.stopPropagation();
var userId = $(this).parent('.data_item').attr('userid'); var userId = $(this).parent('.data_item').attr('userid');
if ($(this).hasClass('disabled')) { if ($(this).hasClass('disabled')) {
......
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 sign in to comment