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
30360ae7
Commit
30360ae7
authored
Oct 15, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jiaoneiqunuan' of gitlab2.dui88.com:wanghongyuan/new_taobao into jiaoneiqunuan
parents
bd4dfd0d
2a4204f1
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
19080 additions
and
50 deletions
+19080
-50
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
comtempitemmodal.axml
.../client/components/comtempitemmodal/comtempitemmodal.axml
+1
-1
comunlockstepmodal.js
...lient/components/comunlockstepmodal/comunlockstepmodal.js
+1
-1
myprize.js
taobao_jn/client/pages/myprize/myprize.js
+3
-0
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
+8
-4
debug.log
taobao_jn/debug.log
+19012
-0
No files found.
taobao_jn/client/components/cominvitemodal/cominvitemodal.js
View file @
30360ae7
...
...
@@ -14,35 +14,46 @@ const {
}
=
tbcc
.
tb
Component
({
props
:
{},
data
:
{
resList
:
resList
},
data
:
{
resList
:
resList
},
methods
:
{
openInviteFailedModal
()
{
openInviteFailedModal
()
{
my
.
_showIndexModal
(
"invitefail"
);
},
openInviteSuccessModal
()
{
openInviteSuccessModal
()
{
my
.
_showIndexModal
(
"invitesuccess"
);
},
onCloseModal
(){
const
{
onCloseModal
}
=
this
.
props
;
onCloseModal
&&
onCloseModal
();
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
,()
=>
{
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
(
data
.
url
);
navigateToOutside
(
r
.
data
.
url
);
})
}
else
if
(
data
&&
data
.
isVip
)
{
}
else
if
(
r
.
data
&&
r
.
data
.
isVip
)
{
this
.
openInviteFailedModal
();
}
else
{
commonToast
(
message
);
}
else
{
commonToast
(
r
&&
r
.
message
);
}
}
else
{
})
||
{};
console
.
log
(
"hhahahha"
)
if
(
success
)
{
this
.
openInviteSuccessModal
();
}
}
...
...
taobao_jn/client/components/compkfailnoprizemodal/compkfailnoprizemodal.acss
View file @
30360ae7
...
...
@@ -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 @
30360ae7
<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 @
30360ae7
...
...
@@ -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 @
30360ae7
...
...
@@ -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 @
30360ae7
<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 @
30360ae7
...
...
@@ -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/comtempitemmodal/comtempitemmodal.axml
View file @
30360ae7
...
...
@@ -6,6 +6,6 @@
<label class="tempitemprize ">双十一惊喜价:¥299</label>
</view>
<image class="tempitemImg
btn
" src={{resList['e41300b7-bee4-4224-9f12-7a8513ce8fe9'].url}} onTap="goGoodsDetail" />
<image class="tempitemImg " src={{resList['e41300b7-bee4-4224-9f12-7a8513ce8fe9'].url}} onTap="goGoodsDetail" />
<image class="tempitembtn btn" src={{resList['bb187403-c5fc-4c33-aea1-072bac77f32e'].url}} onTap="onClose" />
</view>
\ No newline at end of file
taobao_jn/client/components/comunlockstepmodal/comunlockstepmodal.js
View file @
30360ae7
...
...
@@ -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/myprize/myprize.js
View file @
30360ae7
...
...
@@ -129,6 +129,9 @@ Page({
}
// my.showLoading();
flag
=
true
;
setTimeout
(()
=>
{
flag
=
false
},
500
)
console
.
log
(
'领取实物'
)
const
{
activityId
}
=
app
;
const
{
item
}
=
e
.
target
.
dataset
;
...
...
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
30360ae7
...
...
@@ -610,7 +610,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 @
30360ae7
<
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 @
30360ae7
...
...
@@ -184,6 +184,7 @@ Page({
* 获取用户授权信息
*/
async
getAuth
()
{
console
.
log
(
my
.
getSystemInfoSync
());
my
.
showLoading
();
const
userInfo
=
await
getAuthUserInfo
().
catch
(
err
=>
{
console
.
log
(
'未授权成功'
,
err
);
...
...
@@ -244,7 +245,7 @@ Page({
if
(
success
)
{
// my.hideLoading();
app
.
openId
=
data
.
openId
;
app
.
step
=
data
.
inviteStep
;
//
app.step = data.inviteStep;
this
.
getActivityBaseInfoById
();
}
},
...
...
@@ -270,7 +271,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'
]
})
...
...
@@ -306,13 +308,15 @@ Page({
modalStatus
:
modalType
[
'rankprize'
]
})
}
this
.
canOpenGamePage
=
true
;
my
.
hideLoading
();
}
},
canOpenGamePage
:
false
,
/**进入游戏页面 */
async
openGamePage
()
{
if
(
!
this
.
canOpenGamePage
)
return
;
my
.
showLoading
();
const
{
success
,
...
...
@@ -378,7 +382,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 @
30360ae7
This diff is collapsed.
Click to expand it.
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