Commit bf4ef0e4 by zhangxw

申请活动

1 parent 9aac25c3
......@@ -21,7 +21,7 @@ Page({
ActivityApi.getOpenSceneList({merchantId: USERINFO.merchantId}).then(res => {
let arr = []
res && res.forEach(val => {
if (val.status == 1) arr.push(val)
if (val.status == 1 && val.sceneCode != 'SC005') arr.push(val)
})
if (arr[0] && arr[0].sceneCode) this.getProducts(arr[0].sceneCode)
this.setData({
......@@ -39,7 +39,8 @@ Page({
ActivityApi.getNotOpenProductsList({merchantId: USERINFO.merchantId, sceneCode: code}).then(res => { // 默认选中第一个业务场景 获取可用产品/活动
res.forEach(item => {
item.isSelect = false
if (item.status == 0) arr.push(item)
console.log(this.data.currentSceneCode)
if (item.status == 0 && item.sceneCode == this.data.currentSceneCode) arr.push(item)
})
this.setData({
product: arr
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!