Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8639da57
authored
Oct 27, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
海报接口
1 parent
f9d717ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
12 deletions
api/outputApi/output.js
packageOutput/pages/summary/components/CrowdfundPoster/CrowdfundPoster.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/summary.js
api/outputApi/output.js
View file @
8639da5
...
...
@@ -76,5 +76,13 @@ class outputApi {
...
data
})
}
/** 店面汇总-下载海报 */
getPosterUrl
(
data
)
{
return
api
.
post
({
method
:
'scrm.api.busassistant.crowdFunding.poster'
,
...
data
})
}
}
export
default
outputApi
packageOutput/pages/summary/components/CrowdfundPoster/CrowdfundPoster.js
View file @
8639da5
...
...
@@ -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
View file @
8639da5
// 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
})
})
}
}
})
packageOutput/pages/summary/summary.js
View file @
8639da5
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment