Commit 85b4276d by chenwq

申请活动

1 parent 8e6d5a61
...@@ -35,9 +35,9 @@ Page({ ...@@ -35,9 +35,9 @@ Page({
} }
outputApi.getSceneProStatus(params).then(res => { outputApi.getSceneProStatus(params).then(res => {
var proList = res.find(item => item.sceneCode == sceneCode) var proList = res.find(item => item.sceneCode == sceneCode)
console.log(proList, '??????')
this.setData({ this.setData({
['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList.filter(item => item.openFlag == 0) // ['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList.filter(item => item.openFlag == 0)
['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList
}) })
this.setCurActivity() this.setCurActivity()
}) })
......
...@@ -68,11 +68,10 @@ page { ...@@ -68,11 +68,10 @@ page {
box-sizing: border-box; box-sizing: border-box;
width: calc((100% - 40rpx) / 3); width: calc((100% - 40rpx) / 3);
height: 64rpx; height: 64rpx;
line-height: 44rpx; line-height: 64rpx;
text-align: center; text-align: center;
background: #F2F3F7; background: #F2F3F7;
font-size: 28rpx; font-size: 28rpx;
padding: 10rpx;
margin: 0 20rpx 16rpx 0; margin: 0 20rpx 16rpx 0;
border-radius: 4rpx; border-radius: 4rpx;
} }
...@@ -81,11 +80,15 @@ page { ...@@ -81,11 +80,15 @@ page {
margin-right: 0; margin-right: 0;
} }
.activity-item.active { .activity-item .active {
background: #F0F7FF; background: #F0F7FF;
border: 2rpx solid #3E71FE; border: 2rpx solid #3E71FE;
color: #3666FE; color: #3666FE;
} }
.item-disabled {
color: #CCCED1;
}
} }
} }
......
...@@ -16,7 +16,10 @@ ...@@ -16,7 +16,10 @@
<view class="box"> <view class="box">
<view class="box-title">产品/活动<text class="title-tip">(可多选)</text></view> <view class="box-title">产品/活动<text class="title-tip">(可多选)</text></view>
<view class="activity-box" wx:if="{{sceneActive != 1}}"> <view class="activity-box" wx:if="{{sceneActive != 1}}">
<view class="activity-item text-hide {{ item.checked ? 'active' : '' }}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActClick" data-idx="{{index}}">{{item.productName}}</view> <view wx:for="{{activityList}}" wx:key="index" class="activity-item">
<view wx:if="{{item.openFlag == 0}}" class="text-hide {{ item.checked ? 'active' : '' }}" bindtap="handleActClick" data-idx="{{index}}">{{item.productName}}</view>
<view class="text-hide item-disabled" wx:else>{{item.productName}}</view>
</view>
</view> </view>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!