Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
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
wildfirecode13
new_taobao
Commits
fa33a7d5
Commit
fa33a7d5
authored
Oct 15, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邀请,结束发奖
parent
eea9bccf
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
14072 additions
and
48 deletions
+14072
-48
cominvitemodal.js
taobao_jn/client/components/cominvitemodal/cominvitemodal.js
+42
-31
compkfailnoprizemodal.acss
...mponents/compkfailnoprizemodal/compkfailnoprizemodal.acss
+2
-2
compkfailnoprizemodal.axml
...mponents/compkfailnoprizemodal/compkfailnoprizemodal.axml
+2
-2
compkprizemodal.js
...o_jn/client/components/compkprizemodal/compkprizemodal.js
+1
-1
compksuccessnoprizemodal.acss
...ts/compksuccessnoprizemodal/compksuccessnoprizemodal.acss
+2
-2
compksuccessnoprizemodal.axml
...ts/compksuccessnoprizemodal/compksuccessnoprizemodal.axml
+2
-2
compksuccessnoprizemodal.js
...ents/compksuccessnoprizemodal/compksuccessnoprizemodal.js
+1
-1
comunlockstepmodal.js
...lient/components/comunlockstepmodal/comunlockstepmodal.js
+1
-1
pagegamemain.js
taobao_jn/client/pages/pagegamemain/pagegamemain.js
+1
-1
pagepageindex.axml
taobao_jn/client/pages/pagepageindex/pagepageindex.axml
+2
-2
pagepageindex.js
taobao_jn/client/pages/pagepageindex/pagepageindex.js
+4
-3
debug.log
taobao_jn/debug.log
+14012
-0
No files found.
taobao_jn/client/components/cominvitemodal/cominvitemodal.js
View file @
fa33a7d5
...
...
@@ -13,40 +13,51 @@ const {
getSystemInfo
}
=
tbcc
.
tb
Component
({
props
:
{},
data
:
{
resList
:
resList
},
methods
:
{
openInviteFailedModal
(){
my
.
_showIndexModal
(
"invitefail"
);
props
:
{},
data
:
{
resList
:
resList
},
openInviteSuccessModal
(){
my
.
_showIndexModal
(
"invitesuccess"
);
},
onCloseModal
(){
const
{
onCloseModal
}
=
this
.
props
;
onCloseModal
&&
onCloseModal
();
commonToast
(
"助力失败"
)
},
/**助力 */
async
doHelp
(){
const
{
success
,
data
,
message
}
=
await
API
.
doHelp
({
inviteId
:
app
.
openId
,
inviteStep
:
app
.
step
});
console
.
log
(
"hhahahha"
)
if
(
!
success
){
if
(
data
&&!
data
.
isVip
){
commonToast
(
"3s入会,即可为好友助力"
,
1500
,()
=>
{
app
.
isGoVip
=
true
;
navigateToOutside
(
data
.
url
);
})
}
else
if
(
data
&&
data
.
isVip
){
this
.
openInviteFailedModal
();
}
else
{
commonToast
(
message
);
methods
:
{
openInviteFailedModal
()
{
my
.
_showIndexModal
(
"invitefail"
);
},
openInviteSuccessModal
()
{
my
.
_showIndexModal
(
"invitesuccess"
);
},
onCloseModal
()
{
const
{
onCloseModal
}
=
this
.
props
;
onCloseModal
&&
onCloseModal
();
commonToast
(
"助力失败"
)
},
/**助力 */
async
doHelp
()
{
const
{
success
,
data
,
message
}
=
await
API
.
doHelp
({
inviteId
:
app
.
inviteId
,
inviteStep
:
app
.
step
}).
catch
(
r
=>
{
if
(
r
.
data
&&
!
r
.
data
.
isVip
)
{
commonToast
(
"3s入会,即可为好友助力"
,
1500
,
()
=>
{
app
.
isGoVip
=
true
;
navigateToOutside
(
r
.
data
.
url
);
})
}
else
if
(
r
.
data
&&
r
.
data
.
isVip
)
{
this
.
openInviteFailedModal
();
}
else
{
commonToast
(
r
&&
r
.
message
);
}
})
||
{};
console
.
log
(
"hhahahha"
)
if
(
success
)
{
this
.
openInviteSuccessModal
();
}
}
else
{
this
.
openInviteSuccessModal
();
}
}
},
},
...
...
taobao_jn/client/components/compkfailnoprizemodal/compkfailnoprizemodal.acss
View file @
fa33a7d5
...
...
@@ -21,7 +21,7 @@
left: 82rpx;
top: 345rpx;
position: absolute;
transform-origin:
0rpx 0rpx
0rpx;
transform-origin:
50% 50%
0rpx;
}
.pkfailnoprizemodal .pkfailnoprizeclose {
width: 72rpx;
...
...
@@ -30,5 +30,5 @@
left: 227rpx;
top: 507rpx;
position: absolute;
transform-origin:
0rpx 0rpx
0rpx;
transform-origin:
50% 50%
0rpx;
}
taobao_jn/client/components/compkfailnoprizemodal/compkfailnoprizemodal.axml
View file @
fa33a7d5
<view class="pkfailnoprizemodal modal-animate-zoom-in">
<image class="pkfailnoprizebg " src={{resList['d968742a-852e-4f47-9657-a18b3ea15e04'].url}} />
<image class="pkfailnoprizebtn " onTap="redirectToIndex" src={{resList['9a1b9fb4-4087-4082-9160-e0085ba2b12d'].url}} />
<image class="pkfailnoprizeclose " onTap="redirectToIndex" src={{resList['78ed2fc7-6125-47e5-8120-15fd90f36c0d'].url}} />
<image class="pkfailnoprizebtn
btn
" onTap="redirectToIndex" src={{resList['9a1b9fb4-4087-4082-9160-e0085ba2b12d'].url}} />
<image class="pkfailnoprizeclose
btn
" onTap="redirectToIndex" src={{resList['78ed2fc7-6125-47e5-8120-15fd90f36c0d'].url}} />
</view>
\ No newline at end of file
taobao_jn/client/components/compkprizemodal/compkprizemodal.js
View file @
fa33a7d5
...
...
@@ -33,7 +33,7 @@ Component({
methods
:
{
redirectToIndex
(){
const
{
isWin
,
unLockStep
}
=
this
.
props
.
gameOverData
;
if
(
isWin
&&
unLockStep
&&
unLockStep
>
1
){
if
(
isWin
&&
unLockStep
&&
unLockStep
>
1
&&
unLockStep
<
4
){
const
{
onLockStep
}
=
this
.
props
;
onLockStep
&&
onLockStep
(
this
.
props
.
gameOverData
)
}
else
{
...
...
taobao_jn/client/components/compksuccessnoprizemodal/compksuccessnoprizemodal.acss
View file @
fa33a7d5
...
...
@@ -21,7 +21,7 @@
left: 82rpx;
top: 232rpx;
position: absolute;
transform-origin:
0rpx 0rpx
0rpx;
transform-origin:
50% 50%
0rpx;
}
.pksuccessnoprizemodal .pksuccessnoprizeclose {
width: 72rpx;
...
...
@@ -30,7 +30,7 @@
left: 227rpx;
top: 398rpx;
position: absolute;
transform-origin:
0rpx 0rpx
0rpx;
transform-origin:
50% 50%
0rpx;
}
.pksuccessnoprizemodal .sevenPrize {
width: 527rpx;
...
...
taobao_jn/client/components/compksuccessnoprizemodal/compksuccessnoprizemodal.axml
View file @
fa33a7d5
<view class="pksuccessnoprizemodal modal-animate-zoom-in">
<image class="pksuccessnoprizebg " src={{resList['9db83ecb-f8c3-4392-9d92-7c5ce5572b8b'].url}} />
<label class="sevenPrize " a:if="{{unLockStep>3}}">恭喜您!7系赛段累计获胜7场,获得70点温暖值</label>
<image class="pksuccessnoprizebtn " onTap="redirectToIndex" src={{resList['ede003f5-0f75-4175-8113-d8492f58fbd0'].url}} />
<image class="pksuccessnoprizeclose " onTap="redirectToIndex" src={{resList['01587dc4-48e2-4a53-ba37-14a5c2026791'].url}} />
<image class="pksuccessnoprizebtn
btn
" onTap="redirectToIndex" src={{resList['ede003f5-0f75-4175-8113-d8492f58fbd0'].url}} />
<image class="pksuccessnoprizeclose
btn
" onTap="redirectToIndex" src={{resList['01587dc4-48e2-4a53-ba37-14a5c2026791'].url}} />
</view>
\ No newline at end of file
taobao_jn/client/components/compksuccessnoprizemodal/compksuccessnoprizemodal.js
View file @
fa33a7d5
...
...
@@ -13,7 +13,7 @@ Component({
redirectToIndex
(){
const
{
isWin
,
unLockStep
}
=
this
.
props
.
gameOverData
;
console
.
log
(
"获胜没有奖品"
,
this
.
props
.
gameOverData
)
if
(
isWin
&&
unLockStep
&&
unLockStep
>
1
){
if
(
isWin
&&
unLockStep
&&
unLockStep
>
1
&&
unLockStep
<
4
){
const
{
onLockStep
}
=
this
.
props
;
onLockStep
&&
onLockStep
(
this
.
props
.
gameOverData
)
}
else
{
...
...
taobao_jn/client/components/comunlockstepmodal/comunlockstepmodal.js
View file @
fa33a7d5
...
...
@@ -31,7 +31,7 @@ Component({
didMount
(){
const
{
unLockStep
,
warms
}
=
this
.
props
.
gameOverData
;
let
str
=
unLockStep
==
2
?
'恭喜您解锁5系赛段'
:
'恭喜您解锁7系赛段'
;
let
str1
=
unLockStep
==
3
?
'进入三人场'
:
'进入四人场'
;
let
str1
=
unLockStep
==
2
?
'进入三人场'
:
'进入四人场'
;
this
.
setData
({
unLockStep
:
unLockStep
,
title1
:
str
,
...
...
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
fa33a7d5
...
...
@@ -417,7 +417,7 @@ Page({
});
let
step
=
this
.
data
.
step
;
app
.
curGameWars
=
this
.
data
.
myidx
;
app
.
curGameWars
=
this
.
data
.
roomdata
[
this
.
data
.
myidx
-
1
].
wd
;
const
overdata
=
await
API
.
gameOver
({
isWin
:
iswin
,
step
:
step
...
...
taobao_jn/client/pages/pagepageindex/pagepageindex.axml
View file @
fa33a7d5
<
view class="pageindex "
>
<
scroll-view class="pageindex " scroll-y={{true}} disable-scroll={{false}}
>
<image class="bg " src={{resList['3ee62d6c-3e44-470b-b2a5-fb805ec6a6c3'].url}} />
<image class="jbLogo " src={{resList['23b7797e-e924-48b1-8afa-7412722a0bc9'].url}} />
<view disable-scroll="true" class="page-game">
...
...
@@ -42,7 +42,7 @@
<label class="indexPrizeNameLabel ">{{item.name}}</label>
</view>
</view>
</view>
</
scroll-
view>
...
...
taobao_jn/client/pages/pagepageindex/pagepageindex.js
View file @
fa33a7d5
...
...
@@ -244,7 +244,7 @@ Page({
if
(
success
)
{
// my.hideLoading();
app
.
openId
=
data
.
openId
;
app
.
step
=
data
.
inviteStep
;
//
app.step = data.inviteStep;
this
.
getActivityBaseInfoById
();
}
},
...
...
@@ -270,7 +270,8 @@ Page({
},
/**判断是否是助力 */
judgeDoHelp
()
{
if
(
app
.
inviteId
)
{
console
.
log
(
"啦啦啦"
,
typeof
(
app
.
inviteId
),
app
.
inviteId
,
typeof
(
app
.
openId
),
app
.
openId
)
if
(
app
.
inviteId
&&
app
.
inviteId
!=
app
.
openId
)
{
this
.
setData
({
modalStatus
:
modalType
[
'invite'
]
})
...
...
@@ -380,7 +381,7 @@ Page({
}
=
SHARE_CONFIG
;
console
.
log
(
'app.openId'
,
app
.
openId
);
if
(
app
.
openId
)
{
path
=
'/pages/pagepageindex/pagepageindex'
+
'?openId='
+
app
.
openId
+
'&inviteStep='
+
app
.
s
tep
;
path
=
'/pages/pagepageindex/pagepageindex'
+
'?openId='
+
app
.
openId
+
'&inviteStep='
+
this
.
data
.
curGameS
tep
;
}
console
.
log
(
'path'
,
path
)
...
...
taobao_jn/debug.log
View file @
fa33a7d5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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