Commit 0940f0bb by chenwq

bug修复

1 parent 59ef301c
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
.active::after { .active::after {
position: absolute; position: absolute;
left: 50%; left: 50%;
bottom: -18rpx; bottom: -17rpx;
display: block; display: block;
content: ""; content: "";
width: 16rpx; width: 16rpx;
......
...@@ -62,6 +62,12 @@ ...@@ -62,6 +62,12 @@
color: #3666FE; color: #3666FE;
line-height: 32rpx; line-height: 32rpx;
} }
.icon-download {
width: 18px;
height: 18px;
vertical-align: middle;
}
} }
.content { .content {
......
...@@ -12,7 +12,10 @@ ...@@ -12,7 +12,10 @@
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index"> <view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head"> <view class="head">
<view class="text-hide head-title">{{item.activityName}}</view> <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 class="head-link" bindtap="handleCopy" data-idx="{{index}}">复制活动链接</view> -->
</view> </view>
<view class="content"> <view class="content">
...@@ -69,4 +72,4 @@ ...@@ -69,4 +72,4 @@
</view> </view>
</view> </view>
</view> </view>
<crowdfund-poster item="{{posterItem}}"/>
\ No newline at end of file \ No newline at end of file
<crowdfund-poster item="{{posterItem}}" />
\ No newline at end of file \ No newline at end of file
...@@ -16,7 +16,7 @@ Page({ ...@@ -16,7 +16,7 @@ Page({
scene3: null, scene3: null,
scene4: null scene4: null
}, },
sceneActive: 1, sceneActive: 4,
scenePriceList: [{ scenePriceList: [{
total: 0 total: 0
}, { }, {
...@@ -115,9 +115,6 @@ Page({ ...@@ -115,9 +115,6 @@ Page({
sceneCode: sceneCode sceneCode: sceneCode
} }
outputApi.getSceneProStatus(params).then(res => { outputApi.getSceneProStatus(params).then(res => {
// var proList = res.find(item => item.sceneCode == sceneCode)
// 删---
// proList.productList[1].productStatus = 2
this.setData({ this.setData({
['sceneActivityObj.scene1']: res[0].productList, ['sceneActivityObj.scene1']: res[0].productList,
['sceneActivityObj.scene2']: res[1].productList, ['sceneActivityObj.scene2']: res[1].productList,
...@@ -195,11 +192,11 @@ Page({ ...@@ -195,11 +192,11 @@ Page({
} }
// 总金额 // 总金额
this.setData({ this.setData({
['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal ['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal.toFixed(2)
}) })
if(isChangeOtherTotal) { if(isChangeOtherTotal) {
this.setData({ this.setData({
['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal ['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal.toFixed(2)
}) })
} }
!isFirst && this.setCurActivity() !isFirst && this.setCurActivity()
...@@ -245,11 +242,6 @@ Page({ ...@@ -245,11 +242,6 @@ Page({
if (curItem) { if (curItem) {
curItem.totalNum = curItem.activityList.length curItem.totalNum = curItem.activityList.length
curItem.activityList.forEach(k => { 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, '/') k.time = k.startTime.slice(5).replace(/-/g, '/') + '~' + k.endTime.slice(5).replace(/-/g, '/')
// 0-未开始;1-活动中;2-已结束 // 0-未开始;1-活动中;2-已结束
...@@ -295,7 +287,7 @@ Page({ ...@@ -295,7 +287,7 @@ Page({
}) })
} }
this.setData({ this.setData({
['scenePriceList[3].total']: total ['scenePriceList[3].total']: total.toFixed(2)
}) })
!isFirst && this.setCurActivity() !isFirst && this.setCurActivity()
}).finally(() => { }).finally(() => {
...@@ -308,17 +300,6 @@ Page({ ...@@ -308,17 +300,6 @@ Page({
*/ */
onLoad(options) { 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 => { wx.$router.getData(obj => {
var scene = {} var scene = {}
Object.keys(this.data.sceneObj).forEach(item => { 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!