Commit 45eb7d7c by 张立顺

解决冲突

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