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'],
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
src: { src: {
type: String, type: String,
value: '' value: ''
}, },
mode: { mode: {
type: String, type: String,
value: 'scaleToFill' value: 'scaleToFill'
} }
}, },
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
imagePath: '' imagePath: ''
}, },
// 组件生命周期 // 组件生命周期
lifetimes: { lifetimes: {
// 在组件实例进入页面节点树时执行 // 在组件实例进入页面节点树时执行
attached: function () { attached: function () {
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()
}) })
}, },
// 在组件实例被从页面节点树移除时执行 // 在组件实例被从页面节点树移除时执行
detached: function () { detached: function () {
} }
}, },
/** /**
......
...@@ -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;
} }
......
<!-- packageOutput/pages/summary/summary.wxml --> <!-- packageOutput/pages/summary/summary.wxml -->
<view class="summary"> <view class="summary">
<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 class="scene-box bg-white"> 选产品/活动
<scene-box <view>
formData="{{sceneObj}}" <image class="icon-open" webp src="{{IMGURL}}output/icon-open.png?v={{img_version}}"></image>
scenePriceList="{{scenePriceList}}" 开通活动
sceneActive="{{sceneActive}}" </view>
bindhandleSceneChange="handleSceneChange" /> </view>
</view> <view class="scene-box bg-white">
</view> <scene-box formData="{{sceneObj}}" scenePriceList="{{scenePriceList}}" sceneActive="{{sceneActive}}" bindhandleSceneChange="handleSceneChange" />
</view> </view>
<!-- 活动 --> </view>
<view class="p-rl-20 bg-white"> </view>
<scroll-view <!-- 活动 -->
scroll-x="{{true}}" <view class="p-rl-20 bg-white">
enable-flex <scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
class="activity-box" <view class="flex">
scroll-with-animation <view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">
scroll-left="{{scrollLeft}}"> {{item.productName}}
<view class="flex"> </view>
<view </view>
class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}" </scroll-view>
wx:for="{{activityList}}" </view>
wx:key="index" <!-- 活动内容 -->
bindtap="handleActChange" <view class="activity-content {{ (sceneActive != 1 && activityList[activityActive].productStatus == 2) ? '' : 'p-rl-20'}}">
data-idx="{{index}}"> <view wx:if="{{activityList[activityActive].productStatus == 2 && sceneActive != 1}}">
{{item.productName}} <view class="activity-title title bg-white p-l-20 no-border">
</view> <view>看产值</view>
</view> <view class="select" bindtap="handleSearch">
</scroll-view> <view wx:if="{{sceneActive == 2 || sceneActive == 3}}" class="select-txt">
</view> {{baseData.timeList[sceneActive == 2 ? searchForm.scene2Idx : searchForm.scene3Idx]}}
<!-- 活动内容 --> </view>
<view class="activity-content {{ (sceneActive != 1 && activityList[activityActive].productStatus == 2) ? '' : 'p-rl-20'}}"> <view wx:if="{{sceneActive == 4}}" class="select-txt">
<view wx:if="{{activityList[activityActive].productStatus == 2 && sceneActive != 1}}"> {{baseData.actStatusList[searchForm.scene4Idx]}}
<view class="activity-title title bg-white p-l-20 no-border"> </view>
<view>看产值</view> <image class="icon-arrow" src="{{IMGURL}}output/arrow.png?v={{img_version}}" />
<view class="select" bindtap="handleSearch"> </view>
<view wx:if="{{sceneActive == 2 || sceneActive == 3}}" class="select-txt"> </view>
{{baseData.timeList[sceneActive == 2 ? searchForm.scene2Idx : searchForm.scene3Idx]}} <output-transform wx:if="{{sceneActive == 2 || sceneActive == 3}}" formData="{{activityList[activityActive].orderTotal}}" />
</view> <output-crowdfund wx:if="{{sceneActive == 4}}" orderObj="{{activityList[activityActive].outputData}}" />
<view wx:if="{{sceneActive == 4}}" class="select-txt"> </view>
{{baseData.actStatusList[searchForm.scene4Idx]}} <view wx:else class="content-empty bg-white">
</view> <image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
<image class="icon-arrow" src="{{IMGURL}}output/arrow.png?v={{img_version}}" /> </view>
</view> </view>
</view> </view>
<output-transform wx:if="{{sceneActive == 2 || sceneActive == 3}}" formData="{{activityList[activityActive].orderTotal}}" /> <view wx:if="{{sceneActive != 1}}">
<output-crowdfund wx:if="{{sceneActive == 4}}" orderObj="{{activityList[activityActive].outputData}}" /> <view class="isFullSucreen btn" wx:if="{{ activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}">
</view> <view class="btn-blue" bindtap="handleJump">点击开通</view>
<view wx:else class="content-empty bg-white"> </view>
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" /> </view>
</view> <view class="isFullSucreen btn" wx:if="{{sceneActive == 1}}">
</view> <view class="btn-disabled">点击开通</view>
</view> </view>
<view wx:if="{{sceneActive != 1}}"> </view>
<view class="isFullSucreen btn" wx:if="{{ activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}">
<view class="btn-blue" bindtap="handleJump">点击开通</view>
</view>
</view>
<view class="isFullSucreen btn" wx:if="{{sceneActive == 1}}">
<view class="btn-disabled">点击开通</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!