Commit 8639da57 by chenwq

海报接口

1 parent f9d717ba
...@@ -76,5 +76,13 @@ class outputApi { ...@@ -76,5 +76,13 @@ class outputApi {
...data ...data
}) })
} }
/** 店面汇总-下载海报 */
getPosterUrl(data) {
return api.post({
method: 'scrm.api.busassistant.crowdFunding.poster',
...data
})
}
} }
export default outputApi export default outputApi
...@@ -44,13 +44,13 @@ Component({ ...@@ -44,13 +44,13 @@ Component({
height: 66, height: 66,
url: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/poster-bg.png' url: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/poster-bg.png'
}, },
// { {
// x: 16, x: 16,
// y: 70, y: 70,
// width: 247, width: 247,
// height: 472, height: 472,
// url: n.posterUrl url: n.posterUrl
// } }
], ],
textList: [{ textList: [{
x: 12, x: 12,
......
// 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'
import { IMG_URL } from '~/utils/constantData' import { IMG_URL } from '~/utils/constantData'
import outputApi from '~/api/outputApi/index'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -133,11 +134,16 @@ Component({ ...@@ -133,11 +134,16 @@ Component({
}) })
}) })
}, },
download(e){ download(e) {
const {item} = e.currentTarget.dataset const { item } = e.currentTarget.dataset
this.setData({ wx.$api.showLoading()
posterItem: item outputApi.getPosterUrl({ id: item.activityId }).then(res => {
item.posterUrl = res
this.setData({
posterItem: item
})
}) })
} }
} }
}) })
...@@ -230,7 +230,7 @@ Page({ ...@@ -230,7 +230,7 @@ Page({
/** 查询场景4的产值 */ /** 查询场景4的产值 */
getActivityRevenue(isFirst = false) { getActivityRevenue(isFirst = false) {
!isFirst && wx.showLoading() wx.showLoading()
var params = this.dealSearchStatus() var params = this.dealSearchStatus()
outputApi.getActivityRevenue({ merchantId: this.data.merchantInfo.merchantId, ...params }).then(res => { outputApi.getActivityRevenue({ merchantId: this.data.merchantInfo.merchantId, ...params }).then(res => {
// console.log(res) // console.log(res)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!