Commit 957ee5a2 by 施宇

111

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