Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
marubi-wish-list-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e6632755
authored
2019-08-26 12:22:36 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
17e83707
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
src/pages/coop/coop.js
src/pages/create-wish/create-wish.js
src/pages/coop/coop.js
View file @
e663275
...
...
@@ -88,8 +88,8 @@ Page({
if
(
!
_this
.
data
.
canShake
||
_this
.
data
.
tipsCommonVisible
)
{
return
}
if
(
res
.
x
>
1
)
{
//偏移量为2时触发,有的使用1
let
shakeValue
=
2
;
if
(
res
.
x
>
shakeValue
||
res
.
y
>
shakeValue
||
res
.
z
>
shakeValue
)
{
//偏移量为2时触发,有的使用1
// 触发摇一摇
_this
.
queryWishbillAssist
();
}
...
...
@@ -187,10 +187,10 @@ Page({
},
2000
);
}
else
if
(
status
==
2
)
{
// 助力失败
// 助力失败
已经为别人助力过
this
.
setData
({
tipsCommonVisible
:
true
,
tipsInnerText
:
`亲爱的女神,您已为
${
wishInfo
.
member
.
n
ickname
}
好友助力过,每人只能为一位好友助力噢!`
tipsInnerText
:
`亲爱的女神,您已为
${
result
.
assistN
ickname
}
好友助力过,每人只能为一位好友助力噢!`
})
}
else
if
(
status
==
3
)
{
this
.
setData
({
...
...
@@ -202,6 +202,11 @@ Page({
this
.
setData
({
groupMemberCoopVisible
:
true
})
}
else
if
(
status
==
5
)
{
this
.
setData
({
tipsCommonVisible
:
true
,
tipsInnerText
:
"亲爱的女神,TA的心愿已达成,您可为其它好友心愿充值~"
})
}
else
{
// 助力失败
this
.
setData
({
...
...
src/pages/create-wish/create-wish.js
View file @
e663275
...
...
@@ -83,7 +83,8 @@ Page({
if
(
!
_this
.
data
.
tipsShakeVisible
)
{
return
}
if
(
res
.
x
>
1
)
{
//偏移量为2时触发,有的使用1
let
shakeValue
=
2
;
if
(
res
.
x
>
shakeValue
||
res
.
y
>
shakeValue
||
res
.
z
>
shakeValue
)
{
//偏移量为2时触发,有的使用1
_this
.
setData
({
tipsShakeVisible
:
false
,
tipsCreateCompleteVisible
:
true
...
...
Please
register
or
sign in
to post a comment