Commit 8639da57 by chenwq

海报接口

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