Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
f0acad79
Commit
f0acad79
authored
Jun 04, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
bb38e656
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
project.config.json
src/project.config.json
+8
-1
activityPoster.js
...kageMarketing/page/pages/activityPoster/activityPoster.js
+0
-5
No files found.
src/project.config.json
View file @
f0acad79
...
@@ -734,7 +734,14 @@
...
@@ -734,7 +734,14 @@
"id"
:
99
,
"id"
:
99
,
"name"
:
"活动预约"
,
"name"
:
"活动预约"
,
"pathName"
:
"subPackageMarketing/page/pages/activityOrder/activityOrder"
,
"pathName"
:
"subPackageMarketing/page/pages/activityOrder/activityOrder"
,
"query"
:
"id=717762562237927424"
,
"query"
:
"id=718064396915576832"
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"活动预约生产海报"
,
"pathName"
:
"subPackageMarketing/page/pages/activityPoster/activityPoster"
,
"query"
:
""
,
"scene"
:
null
"scene"
:
null
}
}
]
]
...
...
src/subPackageMarketing/page/pages/activityPoster/activityPoster.js
View file @
f0acad79
...
@@ -81,7 +81,6 @@ wxService.page({
...
@@ -81,7 +81,6 @@ wxService.page({
});
});
//调用处理信息
//调用处理信息
this
.
data
.
activityInfo
=
activityInfo
;
this
.
data
.
activityInfo
=
activityInfo
;
console
.
log
(
this
.
data
.
activityInfo
)
this
.
downloadSharePosterImg
();
this
.
downloadSharePosterImg
();
}
}
},
},
...
@@ -153,8 +152,6 @@ wxService.page({
...
@@ -153,8 +152,6 @@ wxService.page({
//画canvas
//画canvas
drawCanvas
(){
drawCanvas
(){
let
self
=
this
;
let
self
=
this
;
console
.
log
(
this
.
data
)
console
.
log
(
ratio
,
deviceWidth
,
deviceHeight
)
const
ctx
=
wx
.
createCanvasContext
(
'myCanvas'
,
this
)
const
ctx
=
wx
.
createCanvasContext
(
'myCanvas'
,
this
)
const
canvasWidth
=
deviceWidth
const
canvasWidth
=
deviceWidth
const
canvasHeight
=
deviceHeight
const
canvasHeight
=
deviceHeight
...
@@ -169,11 +166,9 @@ wxService.page({
...
@@ -169,11 +166,9 @@ wxService.page({
//计算剩下的高度
//计算剩下的高度
let
leftHeight
=
deviceHeight
-
ratioImgHeight
;
let
leftHeight
=
deviceHeight
-
ratioImgHeight
;
console
.
log
(
'leftHeight---'
,
leftHeight
)
//设置二维码的宽高
//设置二维码的宽高
let
qrcodeWidth
=
parseInt
(
leftHeight
/
3
)
*
2
,
qrcodeHeight
=
qrcodeWidth
;
let
qrcodeWidth
=
parseInt
(
leftHeight
/
3
)
*
2
,
qrcodeHeight
=
qrcodeWidth
;
let
qrcodeX
=
deviceWidth
-
qrcodeWidth
-
25
,
qrcodeY
=
ratioImgHeight
+
(
qrcodeWidth
/
3
);
let
qrcodeX
=
deviceWidth
-
qrcodeWidth
-
25
,
qrcodeY
=
ratioImgHeight
+
(
qrcodeWidth
/
3
);
console
.
log
(
qrcodeX
,
qrcodeY
,
qrcodeWidth
,
qrcodeHeight
)
ctx
.
drawImage
(
this
.
data
.
qrcodeImgInfo
.
path
,
qrcodeX
,
qrcodeY
,
qrcodeWidth
,
qrcodeHeight
);
ctx
.
drawImage
(
this
.
data
.
qrcodeImgInfo
.
path
,
qrcodeX
,
qrcodeY
,
qrcodeWidth
,
qrcodeHeight
);
//画文案
//画文案
//第一行文案 邀请您参与
//第一行文案 邀请您参与
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment