Commit 7ff65c98 by 李伟康

Merge branch 'develop' of http://192.168.3.233:8090/saas_plus/business-assistant into develop

2 parents 1dc2f2d2 0940f0bb
......@@ -66,7 +66,7 @@
.active::after {
position: absolute;
left: 50%;
bottom: -18rpx;
bottom: -17rpx;
display: block;
content: "";
width: 16rpx;
......
......@@ -62,6 +62,12 @@
color: #3666FE;
line-height: 32rpx;
}
.icon-download {
width: 18px;
height: 18px;
vertical-align: middle;
}
}
.content {
......
......@@ -12,7 +12,10 @@
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<view class="text-hide head-title">{{item.activityName}}</view>
<view class="head-link" bindtap="download" data-item="{{item}}">下载海报</view>
<view class="head-link" bindtap="download" data-item="{{item}}">
<image class="icon-download" src="{{IMGURL}}output/icon-download.png?v={{img_version}}"></image>
下载活动海报
</view>
<!-- <view class="head-link" bindtap="handleCopy" data-idx="{{index}}">复制活动链接</view> -->
</view>
<view class="content">
......@@ -69,4 +72,4 @@
</view>
</view>
</view>
<crowdfund-poster item="{{posterItem}}"/>
\ No newline at end of file
<crowdfund-poster item="{{posterItem}}" />
\ No newline at end of file
......@@ -16,7 +16,7 @@ Page({
scene3: null,
scene4: null
},
sceneActive: 1,
sceneActive: 4,
scenePriceList: [{
total: 0
}, {
......@@ -115,9 +115,6 @@ Page({
sceneCode: sceneCode
}
outputApi.getSceneProStatus(params).then(res => {
// var proList = res.find(item => item.sceneCode == sceneCode)
// 删---
// proList.productList[1].productStatus = 2
this.setData({
['sceneActivityObj.scene1']: res[0].productList,
['sceneActivityObj.scene2']: res[1].productList,
......@@ -195,11 +192,11 @@ Page({
}
// 总金额
this.setData({
['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal
['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal.toFixed(2)
})
if(isChangeOtherTotal) {
this.setData({
['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal
['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal.toFixed(2)
})
}
!isFirst && this.setCurActivity()
......@@ -245,11 +242,6 @@ Page({
if (curItem) {
curItem.totalNum = curItem.activityList.length
curItem.activityList.forEach(k => {
// 删---
// var list = k.staffList
// for (var i = 0; i < 10; i++) {
// k.staffList = k.staffList.concat(list)
// }
// 时间
k.time = k.startTime.slice(5).replace(/-/g, '/') + '~' + k.endTime.slice(5).replace(/-/g, '/')
// 0-未开始;1-活动中;2-已结束
......@@ -295,7 +287,7 @@ Page({
})
}
this.setData({
['scenePriceList[3].total']: total
['scenePriceList[3].total']: total.toFixed(2)
})
!isFirst && this.setCurActivity()
}).finally(() => {
......@@ -308,17 +300,6 @@ Page({
*/
onLoad(options) {
// 删---
// this.setData({
// merchantInfo: {
// pMerchantId: 44209845,
// merchantId: 44209390,
// merchantName: '????'
// },
// sceneCodeList: ['SC001', 'SC002', 'SC003', 'SC004']
// })
// this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
wx.$router.getData(obj => {
var scene = {}
Object.keys(this.data.sceneObj).forEach(item => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!