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
abaa90e4
Commit
abaa90e4
authored
Apr 23, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mall_dev_7.11.0' into 'hotwind_dev_7.12.0'
优化刮刮卡 See merge request
!193
parents
e98463e5
cbe598e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
scratch.js
src/subPackageMarketing/page/components/scratch/scratch.js
+2
-2
scratch.js
src/subPackageMarketing/page/pages/scratch/scratch.js
+1
-1
No files found.
src/subPackageMarketing/page/components/scratch/scratch.js
View file @
abaa90e4
...
...
@@ -180,10 +180,10 @@ class Scratch {
//清除
areaIsOk
(){
const
{
canvasWidth
,
canvasHeight
,
minX
,
minY
,
maxX
,
maxY
}
=
this
if
(
maxX
-
minX
>
.
2
*
canvasWidth
&&
maxY
-
minY
>
.
2
*
canvasHeight
)
{
if
(
maxX
-
minX
>
.
3
*
canvasWidth
&&
maxY
-
minY
>
.
3
*
canvasHeight
)
{
this
.
isStart
=
false
this
.
ctx
.
draw
()
this
.
endCallBack
&&
this
.
endCallBack
()
this
.
isStart
=
false
this
.
page
.
setData
({
'isScroll'
:
true
})
...
...
src/subPackageMarketing/page/pages/scratch/scratch.js
View file @
abaa90e4
...
...
@@ -221,7 +221,7 @@ wxService.page({
this
.
scratch
.
setAwardText
(
this
.
data
.
activityInfo
.
notWinning
);
wx
.
showModal
({
title
:
'刮奖结果提示'
,
content
:
this
.
data
.
activityInfo
.
notWinning
,
content
:
this
.
data
.
activityInfo
.
notWinning
?
this
.
data
.
activityInfo
.
notWinning
:
'很遗憾,您未中奖'
,
showCancel
:
true
,
cancelText
:
'关闭'
,
confirmText
:
'再刮一次'
,
...
...
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