Commit 397fe907 by 高淑倩

kpi 查看详情

parent 2996062b
...@@ -7,7 +7,7 @@ wxService.page({ ...@@ -7,7 +7,7 @@ wxService.page({
*/ */
data: { data: {
navBar: [{ name: '线上订单', type: 1, isActive: true }, { name: '线下订单', type: 2, isActive: false }], navBar: [{ name: '线上订单', type: 1, isActive: true }, { name: '线下订单', type: 2, isActive: false }],
current: 1, current: 1
}, },
/** /**
...@@ -21,9 +21,29 @@ wxService.page({ ...@@ -21,9 +21,29 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
console.log('ddddd', this.options)
let id = this.options && this.options.id || 0
this.getTaskDetail(id)
},
getTaskDetail(id) {
wx.showLoading({
title: '加载中'
})
wxService.get(`/marketing//kpiTask/detail?id=${id}`).then(res => {
if (res) {
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
// data && data.skuVOList.forEach(item=>{
// item.checked = false
// })
// this.setData({
// cartList: data && data.skuVOList || []
// })
}
}
})
}, },
// 点击事件 // 点击事件
onTopBarTap(e){ onTopBarTap(e){
let index = e.currentTarget.dataset.index, let index = e.currentTarget.dataset.index,
......
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