Commit 515d0de8 by 张立顺

Merge branch 'dev_v3.1' of 192.168.3.233:saas_plus/business-assistant into dev_v3.1

2 parents b724a86d 973cdbc8
// components/image/index.js // components/image/index.js
import {IMG_URL,IMG_VERSION} from '~/utils/constantData' import {
IMG_URL,
IMG_VERSION
} from '~/utils/constantData'
Component({ Component({
externalClasses: ['custom-class','class'], externalClasses: ['custom-class', 'class'],
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
...@@ -30,7 +33,7 @@ Component({ ...@@ -30,7 +33,7 @@ Component({
let src = this.data.src let src = this.data.src
let prefix = IMG_URL let prefix = IMG_URL
this.setData({ this.setData({
imagePath: `${prefix}${src}` + IMG_VERSION() imagePath: `${prefix}${src}?v=` + IMG_VERSION()
}) })
}, },
// 在组件实例被从页面节点树移除时执行 // 在组件实例被从页面节点树移除时执行
......
...@@ -38,6 +38,11 @@ ...@@ -38,6 +38,11 @@
border-bottom: 1rpx dashed #CCCED1; border-bottom: 1rpx dashed #CCCED1;
} }
.icon-open {
width: 40rpx;
height: 40rpx;
}
.scene-box { .scene-box {
padding: 27rpx 0 24rpx; padding: 27rpx 0 24rpx;
} }
......
...@@ -3,31 +3,23 @@ ...@@ -3,31 +3,23 @@
<view class="layout {{ (sceneActive != 1 && activityList[activityActive].productStatus == 2) ? 'bg-grey' : 'bg-white'}}"> <view class="layout {{ (sceneActive != 1 && activityList[activityActive].productStatus == 2) ? 'bg-grey' : 'bg-white'}}">
<view class="{{ (sceneActive != 1 && activityList[activityActive].productStatus == 2) ? 'bg-white' : 'p-rl-20'}}"> <view class="{{ (sceneActive != 1 && activityList[activityActive].productStatus == 2) ? 'bg-white' : 'p-rl-20'}}">
<view class="{{ (sceneActive != 1 && activityList[activityActive].productStatus == 2) ? 'm-rl-20' : ''}}"> <view class="{{ (sceneActive != 1 && activityList[activityActive].productStatus == 2) ? 'm-rl-20' : ''}}">
<view class="title bg-white ">选产品/活动</view> <view class="title bg-white">
选产品/活动
<view>
<image class="icon-open" webp src="{{IMGURL}}output/icon-open.png?v={{img_version}}"></image>
开通活动
</view>
</view>
<view class="scene-box bg-white"> <view class="scene-box bg-white">
<scene-box <scene-box formData="{{sceneObj}}" scenePriceList="{{scenePriceList}}" sceneActive="{{sceneActive}}" bindhandleSceneChange="handleSceneChange" />
formData="{{sceneObj}}"
scenePriceList="{{scenePriceList}}"
sceneActive="{{sceneActive}}"
bindhandleSceneChange="handleSceneChange" />
</view> </view>
</view> </view>
</view> </view>
<!-- 活动 --> <!-- 活动 -->
<view class="p-rl-20 bg-white"> <view class="p-rl-20 bg-white">
<scroll-view <scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
scroll-x="{{true}}"
enable-flex
class="activity-box"
scroll-with-animation
scroll-left="{{scrollLeft}}">
<view class="flex"> <view class="flex">
<view <view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">
class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}"
wx:for="{{activityList}}"
wx:key="index"
bindtap="handleActChange"
data-idx="{{index}}">
{{item.productName}} {{item.productName}}
</view> </view>
</view> </view>
...@@ -65,4 +57,3 @@ ...@@ -65,4 +57,3 @@
<view class="btn-disabled">点击开通</view> <view class="btn-disabled">点击开通</view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!