|
|
@@ -99,12 +99,12 @@ Page({ |
|
|
|
let { businessCommunicationDemandId, isOnTop } = item; |
|
|
|
this.showLoading(); |
|
|
|
$request.post(`/businessCommunicationDemand/setOnTopOrDown.action`, |
|
|
|
{ businessCommunicationDemandId, isOnTop: isOnTop ? 0 : 1 } |
|
|
|
{ businessCommunicationDemandId, isOnTop: isOnTop ? 0 : 1, customerId: "666967" } |
|
|
|
).then(res => { |
|
|
|
wx.hideLoading() |
|
|
|
if (res.status == 0) { |
|
|
|
wx.showToast({ |
|
|
|
title: isOnTop ? '取消置顶' : '置顶' + '成功', |
|
|
|
title: isOnTop ? '取消置顶成功' : '置顶成功', |
|
|
|
icon: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
@@ -117,6 +117,12 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
listData |
|
|
|
}) |
|
|
|
}else if(res.status == 106){ |
|
|
|
wx.showToast({ |
|
|
|
title: res.msg, |
|
|
|
icon: 'error', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
console.log(error, 'error appletLogin') |
|
|
@@ -153,7 +159,7 @@ Page({ |
|
|
|
wx.hideLoading() |
|
|
|
if (res.status == 0) { |
|
|
|
wx.showToast({ |
|
|
|
title: state == 0 ? '下架' : '上架' + '成功', |
|
|
|
title: state == 0 ? '下架成功' : '上架成功', |
|
|
|
icon: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
@@ -164,12 +170,12 @@ Page({ |
|
|
|
} |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
listData |
|
|
|
listData |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
console.log(error, 'error appletLogin') |
|
|
|
wx.hideLoading() |
|
|
|
wx.hideLoading() |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 删除需求 |
|
|
@@ -218,7 +224,7 @@ Page({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 修改需求 |
|
|
|
productEdit(e){ |
|
|
|
productEdit(e) { |
|
|
|
let item = e.currentTarget.dataset.item; |
|
|
|
let that = this; |
|
|
|
wx.navigateTo({ |
|
|
@@ -237,7 +243,7 @@ Page({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getListData() { |
|
|
|
let { page, size, customerId, keyword, currentTab } = this.data; |
|
|
|
$request.get('/businessCommunicationDemand/getDemandByStateAndCustomerId.action', |