Commit e4312bc5 by 张晓玮

Merge branch 'zhangxw_dev_3.0' into 'v3.0'

Zhangxw dev 3.0

See merge request !93
2 parents 4f5f9b13 bf4ef0e4
...@@ -21,7 +21,7 @@ Page({ ...@@ -21,7 +21,7 @@ Page({
ActivityApi.getOpenSceneList({merchantId: USERINFO.merchantId}).then(res => { ActivityApi.getOpenSceneList({merchantId: USERINFO.merchantId}).then(res => {
let arr = [] let arr = []
res && res.forEach(val => { 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) if (arr[0] && arr[0].sceneCode) this.getProducts(arr[0].sceneCode)
this.setData({ this.setData({
...@@ -39,7 +39,8 @@ Page({ ...@@ -39,7 +39,8 @@ Page({
ActivityApi.getNotOpenProductsList({merchantId: USERINFO.merchantId, sceneCode: code}).then(res => { // 默认选中第一个业务场景 获取可用产品/活动 ActivityApi.getNotOpenProductsList({merchantId: USERINFO.merchantId, sceneCode: code}).then(res => { // 默认选中第一个业务场景 获取可用产品/活动
res.forEach(item => { res.forEach(item => {
item.isSelect = false 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({ this.setData({
product: arr product: arr
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!