Commit 957ee5a2 by 施宇

111

parent 95efa635
......@@ -21,7 +21,7 @@ $(function () {
if(type==1){
getTpl = bjTpl.innerHTML
}
if (res.errcode == 0) {
if (res.errcode === 0) {
var arr = [];
if(type == 1){
arr = res.data;
......@@ -44,6 +44,7 @@ $(function () {
var self = this;
$('.index_tab div').on('click', function () {
var i = $(this).attr('data-i');
$(".goods_data_list").empty()
self.getXbData(i);
$(this).addClass('active').siblings().removeClass('active')
});
......
......@@ -24,7 +24,7 @@ $(function () {
IcController.getData(apis.inquirycount, 'GET', {
"token": Util.getCookie('token') || ""
}, function (res) {
if (res.errcode == 0) {
if (res.errcode === 0) {
$('.xj h3').text(res.count.all || '0');
$('.wxj h3').text(res.count.reply || '0')
}
......@@ -36,7 +36,7 @@ $(function () {
params,
function (res) {
var getTpl = htmlTp.innerHTML;
if (res.errcode == 0) {
if (res.errcode === 0) {
$('#pagination').show();
layui.laytpl(getTpl).render(res.inquiry_list, function (html) {
$(".inquiry_data").empty().html(html);
......@@ -77,7 +77,7 @@ $(function () {
}, function (res) {
$(ele).parent('.data_item').find('.show_more').slideUp();
var getTpl = myxjTp.innerHTML;
if (res.errcode == 0) {
if (res.errcode === 0) {
if (res.total == 0) {
layer.msg('暂无数据')
} else {
......@@ -102,7 +102,7 @@ $(function () {
"inquiry_items_id": id,
"status": type
}, function (res) {
if (res.errcode == 0) {
if (res.errcode === 0) {
layer.msg('操作成功', {
time: 600
}, function () {
......
......@@ -24,7 +24,7 @@ $(function () {
IcController.getData(apis.offercount, 'GET', {
"token": Util.getCookie('token') || ""
}, function (res) {
if (res.errcode == 0) {
if (res.errcode === 0) {
$('.xj h3').text(res.count.reply || '0');
$('.wxj h3').text(res.count.notreply || '0')
}
......@@ -36,7 +36,7 @@ $(function () {
params,
function (res) {
var getTpl = myBj.innerHTML;
if (res.errcode == 0) {
if (res.errcode === 0) {
$('#pagination').show();
self.listData = res.data;
layui.laytpl(getTpl).render(res.data, function (html) {
......
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