Commit 45eb7d7c by 张立顺

解决冲突

1 parent 2ba0a833
// packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
import wxqrcode from '~/utils/lib/wxqrcode'
<<<<<<< HEAD:packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
import {
IMG_URL
} from '~/utils/constantData'
=======
import { IMG_URL } from '~/utils/constantData'
import { deleteSecond } from '~/utils/format'
>>>>>>> dev_v3.1:packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
import outputApi from '~/api/outputApi/index'
const IMAGES = Object.freeze({
download: `${IMG_URL}/output/download.webp`
......@@ -19,7 +13,7 @@ Component({
properties: {
orderObj: {
type: Object,
value: () => { },
value: () => {},
observer(n) {
n && this.dealStaffList()
}
......@@ -37,13 +31,9 @@ Component({
IMGURL: IMG_URL,
IMAGES,
isShowTip: true,
<<<<<<< HEAD:packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
orderFormList: [{
=======
isShowPoster: false,
orderFormList: [
{
>>>>>>> dev_v3.1:packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
label: '总场次',
name: 'totalNum'
},
......@@ -57,14 +47,9 @@ Component({
prefix: '¥'
}
],
<<<<<<< HEAD:packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
merchantFormList: [{
label: '活动时间',
=======
merchantFormList: [
{
label: '预计活动时间',
>>>>>>> dev_v3.1:packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
name: 'time'
},
{
......@@ -91,17 +76,10 @@ Component({
isNumber: true
}
],
<<<<<<< HEAD:packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
tableHeadList: [{
label: '',
width: '',
width: '28rpx'
=======
tableHeadList: [
{
label: 'rankIdx',
width: '40rpx'
>>>>>>> dev_v3.1:packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
},
{
label: '业务员',
......@@ -146,9 +124,7 @@ Component({
})
},
handleMore(e) {
var {
idx
} = e.currentTarget.dataset
var { idx } = e.currentTarget.dataset
var list = this.data.orderObj
var item = list.activityList[idx]
list.activityList[idx].showStaffList = list.activityList[idx].showStaffList.concat(item.staffList.length > 10 ? item.staffList.slice(0, 10) : item.staffList)
......@@ -158,9 +134,7 @@ Component({
})
},
handleCopy(e) {
var {
idx
} = e.currentTarget.dataset
var { idx } = e.currentTarget.dataset
var currentItem = this.data.orderObj.activityList[idx]
var qr = wxqrcode.createQrCodeImg(currentItem.activityUrl)
const base64src = function (base64data) {
......@@ -190,7 +164,7 @@ Component({
path: obj.path
})
},
fail() { }
fail() {}
})
})
},
......@@ -199,32 +173,6 @@ Component({
// wx.$router.jumpH5(item.activityUrl)
},
async download(e) {
<<<<<<< HEAD:packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
const {
item
} = e.currentTarget.dataset,
posterObj = this.selectComponent('#poster')
try {
let flag = await posterObj.check(item)
posterObj.setData({
poster: flag,
show: true
})
} catch (error) {
wx.$api.showLoading('加载中...')
outputApi.getPosterUrl({
id: item.activityId
}).then(res => {
item.posterUrl = res
this.setData({
posterItem: item,
isShowTip: false
})
}).catch(()=>{
wx.$api.showToast('下载海报失败')
})
}
=======
const { item } = e.currentTarget.dataset
// posterObj = this.selectComponent('#crowdPoster'),
// { options } = wx.$router.getPageInstance()
......@@ -265,7 +213,7 @@ Component({
this.triggerEvent('posterTrack')
},
/**长按战报/喜报 */
async handlePosterTouch(e) { },
async handlePosterTouch(e) {},
/**战报 */
handleReport(e) {
const { item, idx } = e.currentTarget.dataset
......@@ -339,7 +287,6 @@ Component({
// crowdPosterItem: posterItem,
// isShowTip: false
// })
>>>>>>> dev_v3.1:packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
}
}
})
\ 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!