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
a9786f01
Commit
a9786f01
authored
Oct 15, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加七系特殊胜利
parent
b34a51b4
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
34927 additions
and
96 deletions
+34927
-96
app.json
taobao_jn/client/app.json
+2
-1
compkprizemodal.acss
...jn/client/components/compkprizemodal/compkprizemodal.acss
+15
-2
compkprizemodal.axml
...jn/client/components/compkprizemodal/compkprizemodal.axml
+1
-0
compkprizemodal.js
...o_jn/client/components/compkprizemodal/compkprizemodal.js
+5
-3
compksuccessnoprizemodal.acss
...ts/compksuccessnoprizemodal/compksuccessnoprizemodal.acss
+11
-0
compksuccessnoprizemodal.axml
...ts/compksuccessnoprizemodal/compksuccessnoprizemodal.axml
+1
-0
compksuccessnoprizemodal.js
...ents/compksuccessnoprizemodal/compksuccessnoprizemodal.js
+11
-1
pagegamemain.js
taobao_jn/client/pages/pagegamemain/pagegamemain.js
+4
-4
pagepageindex.acss
taobao_jn/client/pages/pagepageindex/pagepageindex.acss
+9
-6
pagepageindex.axml
taobao_jn/client/pages/pagepageindex/pagepageindex.axml
+5
-4
pagepageindex.js
taobao_jn/client/pages/pagepageindex/pagepageindex.js
+89
-67
pagepagerank.acss
taobao_jn/client/pages/pagepagerank/pagepagerank.acss
+10
-8
debug.log
taobao_jn/debug.log
+34764
-0
No files found.
taobao_jn/client/app.json
View file @
a9786f01
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
],
],
"window"
:
{
"window"
:
{
"enableSkia"
:
"true"
,
"enableSkia"
:
"true"
,
"allowsBounceVertical"
:
"NO"
"allowsBounceVertical"
:
"NO"
,
"navigationBarForceEnable"
:
"true"
}
}
}
}
\ No newline at end of file
taobao_jn/client/components/compkprizemodal/compkprizemodal.acss
View file @
a9786f01
...
@@ -46,11 +46,24 @@
...
@@ -46,11 +46,24 @@
color: #000000;
color: #000000;
text-align: center;
text-align: center;
}
}
.pksuccessmodal .pksuccessmodaltext .pksuccesssevenPrize {
width: 527rpx;
height: 24rpx;
opacity: 1;
top: 142rpx;
left: -66rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 24rpx;
color: #000000;
text-align: center;
}
.pksuccessmodal .pksuccessmodaltext .pksuccesstemp {
.pksuccessmodal .pksuccessmodaltext .pksuccesstemp {
width: 390rpx;
width: 390rpx;
height: 24rpx;
height: 24rpx;
opacity: 1;
opacity: 1;
top: 1
6
2rpx;
top: 1
7
2rpx;
position: absolute;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 24rpx;
font-size: 24rpx;
...
@@ -62,7 +75,7 @@
...
@@ -62,7 +75,7 @@
height: 23rpx;
height: 23rpx;
opacity: 1;
opacity: 1;
left: 0rpx;
left: 0rpx;
top:
19
6rpx;
top:
20
6rpx;
position: absolute;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 24rpx;
font-size: 24rpx;
...
...
taobao_jn/client/components/compkprizemodal/compkprizemodal.axml
View file @
a9786f01
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
<view class="pksuccessmodaltext ">
<view class="pksuccessmodaltext ">
<label class="pksuccesstitle2 ">游戏已结束</label>
<label class="pksuccesstitle2 ">游戏已结束</label>
<label class="pksuccesstitle1 ">{{isWinTitle}}</label>
<label class="pksuccesstitle1 ">{{isWinTitle}}</label>
<label class="pksuccesssevenPrize " a:if="{{unLockStep>3}}">恭喜您!7系赛段累计获胜7场,获得70点温暖值</label>
<label class="pksuccesstemp " a:if="{{isWin}}">{{warmText}}</label>
<label class="pksuccesstemp " a:if="{{isWin}}">{{warmText}}</label>
<label class="pksuccesslw " a:if="{{isWin}}">蕉内送您一份小礼物</label>
<label class="pksuccesslw " a:if="{{isWin}}">蕉内送您一份小礼物</label>
<label class="pksuccessitemname ">{{prizeName}}</label>
<label class="pksuccessitemname ">{{prizeName}}</label>
...
...
taobao_jn/client/components/compkprizemodal/compkprizemodal.js
View file @
a9786f01
...
@@ -24,9 +24,10 @@ Component({
...
@@ -24,9 +24,10 @@ Component({
data
:
{
data
:
{
resList
:
resList
,
resList
:
resList
,
isWinTitle
:
''
,
isWinTitle
:
''
,
isWin
:
fals
e
,
isWin
:
tru
e
,
prizeName
:
''
,
prizeName
:
''
,
prizeImg
:
''
,
prizeImg
:
''
,
unLockStep
:
0
,
warmText
:
''
warmText
:
''
},
},
methods
:
{
methods
:
{
...
@@ -44,7 +45,7 @@ Component({
...
@@ -44,7 +45,7 @@ Component({
},
},
didMount
(){
didMount
(){
const
{
warms
,
isWin
,
prize
}
=
this
.
props
.
gameOverData
;
const
{
warms
,
isWin
,
prize
,
unLockStep
}
=
this
.
props
.
gameOverData
;
let
str
=
''
;
let
str
=
''
;
let
str1
=
''
;
let
str1
=
''
;
if
(
isWin
){
if
(
isWin
){
...
@@ -58,7 +59,8 @@ Component({
...
@@ -58,7 +59,8 @@ Component({
isWin
:
isWin
,
isWin
:
isWin
,
prizeName
:
prize
.
name
,
prizeName
:
prize
.
name
,
prizeImg
:
prize
.
image
,
prizeImg
:
prize
.
image
,
warmText
:
str1
warmText
:
str1
,
unLockStep
:
unLockStep
})
})
}
}
...
...
taobao_jn/client/components/compksuccessnoprizemodal/compksuccessnoprizemodal.acss
View file @
a9786f01
...
@@ -32,3 +32,14 @@
...
@@ -32,3 +32,14 @@
position: absolute;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
}
}
.pksuccessnoprizemodal .sevenPrize {
width: 527rpx;
height: 40rpx;
opacity: 1;
top: 184rpx;
position: absolute;
font-size: 22rpx;
color: rgba(0, 0, 0, 1);
transform-origin: 0rpx 0rpx 0rpx;
text-align: center;
}
\ No newline at end of file
taobao_jn/client/components/compksuccessnoprizemodal/compksuccessnoprizemodal.axml
View file @
a9786f01
<view class="pksuccessnoprizemodal modal-animate-zoom-in">
<view class="pksuccessnoprizemodal modal-animate-zoom-in">
<image class="pksuccessnoprizebg " src={{resList['9db83ecb-f8c3-4392-9d92-7c5ce5572b8b'].url}} />
<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="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="pksuccessnoprizeclose " onTap="redirectToIndex" src={{resList['01587dc4-48e2-4a53-ba37-14a5c2026791'].url}} />
</view>
</view>
\ No newline at end of file
taobao_jn/client/components/compksuccessnoprizemodal/compksuccessnoprizemodal.js
View file @
a9786f01
...
@@ -5,7 +5,10 @@ Component({
...
@@ -5,7 +5,10 @@ Component({
props
:
{
props
:
{
gameOverData
:{}
gameOverData
:{}
},
},
data
:
{
resList
:
resList
},
data
:
{
resList
:
resList
,
unLockStep
:
0
},
methods
:
{
methods
:
{
redirectToIndex
(){
redirectToIndex
(){
const
{
isWin
,
unLockStep
}
=
this
.
props
.
gameOverData
;
const
{
isWin
,
unLockStep
}
=
this
.
props
.
gameOverData
;
...
@@ -21,4 +24,11 @@ Component({
...
@@ -21,4 +24,11 @@ Component({
}
}
},
},
didMount
(){
const
{
unLockStep
}
=
this
.
props
.
gameOverData
;
this
.
setData
({
unLockStep
:
unLockStep
})
}
});
});
\ No newline at end of file
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
a9786f01
...
@@ -881,7 +881,7 @@ Page({
...
@@ -881,7 +881,7 @@ Page({
console
.
log
(
"svga"
+
v
);
console
.
log
(
"svga"
+
v
);
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
mv
.
x
=
383
;
mv
.
x
=
383
;
mv
.
y
=
390
;
mv
.
y
=
465
;
console
.
log
(
"svgmv"
,
mv
)
console
.
log
(
"svgmv"
,
mv
)
paples
[
0
]
=
mv
;
paples
[
0
]
=
mv
;
mv
.
gotoAndStop
(
1
);
mv
.
gotoAndStop
(
1
);
...
@@ -899,7 +899,7 @@ Page({
...
@@ -899,7 +899,7 @@ Page({
console
.
log
(
"svga"
+
v
);
console
.
log
(
"svga"
+
v
);
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
mv
.
x
=
83
;
mv
.
x
=
83
;
mv
.
y
=
4
20
;
mv
.
y
=
4
95
;
console
.
log
(
"svgmv"
,
mv
);
console
.
log
(
"svgmv"
,
mv
);
paples
[
1
]
=
mv
;
paples
[
1
]
=
mv
;
mv
.
gotoAndStop
(
1
);
mv
.
gotoAndStop
(
1
);
...
@@ -919,7 +919,7 @@ Page({
...
@@ -919,7 +919,7 @@ Page({
console
.
log
(
"svga"
+
v
);
console
.
log
(
"svga"
+
v
);
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
mv
.
x
=
232
;
mv
.
x
=
232
;
mv
.
y
=
5
10
;
mv
.
y
=
5
85
;
console
.
log
(
"svgmv"
,
mv
)
console
.
log
(
"svgmv"
,
mv
)
paples
[
2
]
=
mv
;
paples
[
2
]
=
mv
;
mv
.
gotoAndStop
(
1
);
mv
.
gotoAndStop
(
1
);
...
@@ -939,7 +939,7 @@ Page({
...
@@ -939,7 +939,7 @@ Page({
console
.
log
(
"svga"
+
v
);
console
.
log
(
"svga"
+
v
);
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
mv
.
x
=
420
;
mv
.
x
=
420
;
mv
.
y
=
560
;
mv
.
y
=
635
;
console
.
log
(
"svgmv"
,
mv
)
console
.
log
(
"svgmv"
,
mv
)
paples
[
3
]
=
mv
;
paples
[
3
]
=
mv
;
mv
.
gotoAndStop
(
1
);
mv
.
gotoAndStop
(
1
);
...
...
taobao_jn/client/pages/pagepageindex/pagepageindex.acss
View file @
a9786f01
.canvas {
.canvas {
width:
100%
;
width:
750rpx
;
height:1
00%
;
height:1
200rpx
;
z-index: 99;
/*z-index: 99;*/
pointer-events: none;
pointer-events: none;
}
}
.page-game {
.page-game {
...
@@ -11,11 +11,13 @@
...
@@ -11,11 +11,13 @@
bottom: 0;
bottom: 0;
right: 0;
right: 0;
min-height: 100vh; */
min-height: 100vh; */
width:100%;
width:750rpx;
height:100vh;
height:1200rpx;
position: absolute;
top:0rpx;
left:0rpx;
flex: 1;
flex: 1;
display: flex;
display: flex;
flex-direction: column;
pointer-events: none;
pointer-events: none;
}
}
...
@@ -250,6 +252,7 @@
...
@@ -250,6 +252,7 @@
white-space: nowrap;
white-space: nowrap;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
overflow-x: scroll;
overflow-x: scroll;
overflow-y: hidden;
}
}
.pageindex .indexPrizelist .indexPrizeitem {
.pageindex .indexPrizelist .indexPrizeitem {
position: relative;
position: relative;
...
...
taobao_jn/client/pages/pagepageindex/pagepageindex.axml
View file @
a9786f01
<view class="pageindex ">
<view class="pageindex ">
<image class="bg " src={{resList['3ee62d6c-3e44-470b-b2a5-fb805ec6a6c3'].url}} />
<image class="bg " src={{resList['3ee62d6c-3e44-470b-b2a5-fb805ec6a6c3'].url}} />
<image class="jbLogo " src={{resList['23b7797e-e924-48b1-8afa-7412722a0bc9'].url}} />
<image class="jbLogo " src={{resList['23b7797e-e924-48b1-8afa-7412722a0bc9'].url}} />
<view disable-scroll="true" class="page-game">
<canvas disable-scroll="true" id="canvas" class="canvas" onReady="canvasOnReady">
</canvas>
</view>
<view class="sai_duan ">
<view class="sai_duan ">
<image class="battle7 " a:if="{{curGameStep<3}}" src={{resList['bc577ab5-4214-43b4-93ff-e9e24c9cec62'].url}} />
<image class="battle7 " a:if="{{curGameStep<3}}" src={{resList['bc577ab5-4214-43b4-93ff-e9e24c9cec62'].url}} />
<image class="battle5 " a:if="{{curGameStep<2}}" src={{resList['64d76df1-a48b-4d97-9c94-07164242403f'].url}} />
<image class="battle5 " a:if="{{curGameStep<2}}" src={{resList['64d76df1-a48b-4d97-9c94-07164242403f'].url}} />
...
@@ -40,10 +44,7 @@
...
@@ -40,10 +44,7 @@
</view>
</view>
</view>
</view>
<view disable-scroll="true" class="page-game">
<canvas disable-scroll="true" id="canvas" class="canvas" onReady="canvasOnReady">
</canvas>
</view>
<view class="popcontainer" a:if="{{modalStatus==1}}">
<view class="popcontainer" a:if="{{modalStatus==1}}">
<rule-modal a:if="{{modalStatus==1}}" onCloseModal="closeModal"></rule-modal>
<rule-modal a:if="{{modalStatus==1}}" onCloseModal="closeModal"></rule-modal>
...
...
taobao_jn/client/pages/pagepageindex/pagepageindex.js
View file @
a9786f01
...
@@ -5,7 +5,8 @@ import API from '../../api';
...
@@ -5,7 +5,8 @@ import API from '../../api';
import
*
as
FYGE
from
"fyge-tbmini"
;
import
*
as
FYGE
from
"fyge-tbmini"
;
import
*
as
SvgaParser
from
"svga-parser"
;
import
*
as
SvgaParser
from
"svga-parser"
;
import
{
import
{
modalType
,
SHARE_CONFIG
modalType
,
SHARE_CONFIG
}
from
'../../tbcc-sdk/lib/constants'
;
}
from
'../../tbcc-sdk/lib/constants'
;
const
app
=
getApp
();
const
app
=
getApp
();
const
{
const
{
...
@@ -29,25 +30,26 @@ const checkSystem = async () => {
...
@@ -29,25 +30,26 @@ const checkSystem = async () => {
}
}
Page
({
Page
({
gameConfigList
:{},
gameConfigList
:
{},
favoredStatus
:
false
,
favoredStatus
:
false
,
goVip
:
false
,
data
:
{
data
:
{
indexPrize
:
[{
indexPrize
:
[{
id
:
1
,
id
:
1
,
name
:
'301+热皮'
,
name
:
'301+热皮'
,
url
:
"https://detail.tmall.com/item.htm?spm=a212k0.12153887.0.0.4d7c687df8mh9y&id=624231380919"
url
:
"https://detail.tmall.com/item.htm?spm=a212k0.12153887.0.0.4d7c687df8mh9y&id=624231380919"
},
{
},
{
id
:
2
,
id
:
2
,
name
:
'502++热皮'
,
name
:
'502++热皮'
,
url
:
"https://detail.tmall.com/item.htm?spm=a212k0.12153887.0.0.4e60687do2J7Y4&id=625018335779"
url
:
"https://detail.tmall.com/item.htm?spm=a212k0.12153887.0.0.4e60687do2J7Y4&id=625018335779"
},
{
},
{
id
:
3
,
id
:
3
,
name
:
'500E内裤'
,
name
:
'500E内裤'
,
url
:
"https://detail.tmall.com/item.htm?spm=a212k0.12153887.0.0.4e60687do2J7Y4&id=560474460284"
url
:
"https://detail.tmall.com/item.htm?spm=a212k0.12153887.0.0.4e60687do2J7Y4&id=560474460284"
},
{
},
{
id
:
4
,
id
:
4
,
name
:
'311S袜子'
,
name
:
'311S袜子'
,
url
:
"https://detail.tmall.com/item.htm?spm=a212k0.12153887.0.0.4e60687do2J7Y4&id=600583964263"
url
:
"https://detail.tmall.com/item.htm?spm=a212k0.12153887.0.0.4e60687do2J7Y4&id=600583964263"
}],
}],
/**弹窗状态 */
/**弹窗状态 */
modalStatus
:
0
,
modalStatus
:
0
,
...
@@ -60,11 +62,13 @@ Page({
...
@@ -60,11 +62,13 @@ Page({
/**活动结束后排行榜奖励信息 */
/**活动结束后排行榜奖励信息 */
rankPrize
:
{},
rankPrize
:
{},
/**游戏信息 */
/**游戏信息 */
gameInfo
:{}
gameInfo
:
{}
},
},
navigateToOutsideGoodsDetail
(
e
){
navigateToOutsideGoodsDetail
(
e
)
{
const
{
item
}
=
e
.
target
.
dataset
;
const
{
item
}
=
e
.
target
.
dataset
;
navigateToOutside
(
item
.
url
);
navigateToOutside
(
item
.
url
);
},
},
...
@@ -141,12 +145,12 @@ Page({
...
@@ -141,12 +145,12 @@ Page({
console
.
log
(
"svga"
+
v
);
console
.
log
(
"svga"
+
v
);
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
mv
.
x
=
275
;
mv
.
x
=
275
;
mv
.
y
=
8
35
;
mv
.
y
=
8
50
;
console
.
log
(
"svgmv"
,
mv
)
console
.
log
(
"svgmv"
,
mv
)
},
},
(
err
)
=>
{
(
err
)
=>
{
console
.
log
(
"aa"
,
err
);
console
.
log
(
"aa"
,
err
);
}
}
)
)
SvgaParser
.
loadSvga
(
SvgaParser
.
loadSvga
(
...
@@ -155,12 +159,12 @@ Page({
...
@@ -155,12 +159,12 @@ Page({
console
.
log
(
"svga"
+
v
);
console
.
log
(
"svga"
+
v
);
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
var
mv
=
stage
.
addChild
(
new
FYGE
.
MovieClip
(
v
));
mv
.
x
=
175
;
mv
.
x
=
175
;
mv
.
y
=
6
45
;
mv
.
y
=
6
60
;
console
.
log
(
"svgmv"
,
mv
)
console
.
log
(
"svgmv"
,
mv
)
},
},
(
err
)
=>
{
(
err
)
=>
{
console
.
log
(
"bb"
,
err
);
console
.
log
(
"bb"
,
err
);
}
}
)
)
...
@@ -198,19 +202,19 @@ Page({
...
@@ -198,19 +202,19 @@ Page({
// console.log('查询关注店铺状态失败', err);
// console.log('查询关注店铺状态失败', err);
// });
// });
my
.
tb
.
checkShopFavoredStatus
({
my
.
tb
.
checkShopFavoredStatus
({
id
:
3035493001
,
id
:
3035493001
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
if
(
res
.
isFavor
){
if
(
res
.
isFavor
)
{
this
.
favoredStatus
=
true
this
.
favoredStatus
=
true
}
else
{
}
else
{
this
.
favoredStatus
=
false
;
this
.
favoredStatus
=
false
;
}
}
}
})
}
})
// this.judgeDoHelp();
// this.judgeDoHelp();
console
.
log
(
"关注店铺"
,
this
.
favoredStatus
)
console
.
log
(
"关注店铺"
,
this
.
favoredStatus
)
this
.
login
();
this
.
login
();
}
}
},
},
...
@@ -229,9 +233,9 @@ Page({
...
@@ -229,9 +233,9 @@ Page({
}
=
await
API
.
login
({
}
=
await
API
.
login
({
userNick
:
nickName
,
userNick
:
nickName
,
avatar
,
avatar
,
isFollow
:
this
.
favoredStatus
,
isFollow
:
this
.
favoredStatus
,
inviteId
:
app
.
inviteId
,
inviteId
:
app
.
inviteId
,
inviteStep
:
app
.
step
inviteStep
:
app
.
step
}).
catch
(
res
=>
{
}).
catch
(
res
=>
{
// my.hideLoading();
// my.hideLoading();
commonToast
(
res
&&
res
.
message
);
commonToast
(
res
&&
res
.
message
);
...
@@ -285,7 +289,7 @@ Page({
...
@@ -285,7 +289,7 @@ Page({
commonToast
(
r
&&
r
.
message
);
commonToast
(
r
&&
r
.
message
);
})
||
{};
})
||
{};
if
(
success
)
{
if
(
success
)
{
let
str
=
data
.
rank
>
500
?
'500+'
:
data
.
rank
let
str
=
data
.
rank
>
500
?
'500+'
:
data
.
rank
this
.
setData
({
this
.
setData
({
gameInfo
:
data
,
gameInfo
:
data
,
curWarms
:
data
.
warms
+
''
,
curWarms
:
data
.
warms
+
''
,
...
@@ -293,10 +297,14 @@ Page({
...
@@ -293,10 +297,14 @@ Page({
curGameStep
:
data
.
step
curGameStep
:
data
.
step
})
})
if
(
data
.
rankPrize
&&
data
.
rankPrize
.
type
==
5
){
if
(
data
.
rankPrize
&&
data
.
rankPrize
.
type
==
5
)
{
this
.
setData
({
modalStatus
:
modalType
[
'ranknoprize'
]})
this
.
setData
({
}
else
if
(
data
.
rankPrize
&&
data
.
rankPrize
.
type
!=
5
&&
data
.
rankPrize
.
image
&&
data
.
rankPrize
.
image
.
length
>
0
){
modalStatus
:
modalType
[
'ranknoprize'
]
this
.
setData
({
modalStatus
:
modalType
[
'rankprize'
]})
})
}
else
if
(
data
.
rankPrize
&&
data
.
rankPrize
.
type
!=
5
&&
data
.
rankPrize
.
image
&&
data
.
rankPrize
.
image
.
length
>
0
)
{
this
.
setData
({
modalStatus
:
modalType
[
'rankprize'
]
})
}
}
my
.
hideLoading
();
my
.
hideLoading
();
...
@@ -312,23 +320,27 @@ Page({
...
@@ -312,23 +320,27 @@ Page({
message
message
}
=
await
API
.
doJoin
({
}
=
await
API
.
doJoin
({
step
:
this
.
data
.
curGameStep
step
:
this
.
data
.
curGameStep
});
}).
catch
(
r
=>
{
if
(
success
)
{
if
(
r
&&
r
.
data
&&
!
r
.
data
.
isVip
)
{
const
winRate
=
this
.
gameConfigList
[
this
.
data
.
curGameStep
-
1
].
winRate
*
0.01
;
const
propsCD
=
this
.
gameConfigList
[
this
.
data
.
curGameStep
-
1
].
propsCD
;
my
.
redirectTo
({
url
:
'/pages/pagegamemain/pagegamemain?'
+
"step="
+
this
.
data
.
curGameStep
+
"&start="
+
data
.
joinGameStartTime
+
"&end="
+
data
.
joinGameEndTime
+
"&gl="
+
winRate
+
"&toolcd="
+
propsCD
})
my
.
hideLoading
();
}
else
{
if
(
data
&&
!
data
.
isVip
)
{
commonToast
(
"3s入会,即可为好友助力"
,
1500
,
()
=>
{
commonToast
(
"3s入会,即可为好友助力"
,
1500
,
()
=>
{
navigateToOutside
(
data
.
url
);
navigateToOutside
(
r
.
data
.
url
);
})
})
}
else
{
}
else
{
commonToast
(
message
||
''
)
commonToast
(
r
&&
r
.
message
)
}
}
my
.
hideLoading
();
my
.
hideLoading
();
})
||
{};
if
(
success
)
{
const
winRate
=
this
.
gameConfigList
[
this
.
data
.
curGameStep
-
1
].
winRate
*
0.01
;
const
propsCD
=
this
.
gameConfigList
[
this
.
data
.
curGameStep
-
1
].
propsCD
;
my
.
redirectTo
({
url
:
'/pages/pagegamemain/pagegamemain?'
+
"step="
+
this
.
data
.
curGameStep
+
"&start="
+
data
.
joinGameStartTime
+
"&end="
+
data
.
joinGameEndTime
+
"&gl="
+
winRate
+
"&toolcd="
+
propsCD
})
my
.
hideLoading
();
}
else
{
}
}
console
.
log
(
"点击进入游戏页面"
)
console
.
log
(
"点击进入游戏页面"
)
...
@@ -366,7 +378,7 @@ Page({
...
@@ -366,7 +378,7 @@ Page({
}
=
SHARE_CONFIG
;
}
=
SHARE_CONFIG
;
console
.
log
(
'app.openId'
,
app
.
openId
);
console
.
log
(
'app.openId'
,
app
.
openId
);
if
(
app
.
openId
)
{
if
(
app
.
openId
)
{
path
=
'/pages/pagepageindex/pagepageindex'
+
'?openId='
+
app
.
openId
+
'&inviteStep='
+
app
.
step
;
path
=
'/pages/pagepageindex/pagepageindex'
+
'?openId='
+
app
.
openId
+
'&inviteStep='
+
app
.
step
;
}
}
console
.
log
(
'path'
,
path
)
console
.
log
(
'path'
,
path
)
...
@@ -375,32 +387,42 @@ Page({
...
@@ -375,32 +387,42 @@ Page({
path
path
}
}
},
},
onShow
(){
onShow
()
{
if
(
app
.
isGoVip
)
{
if
(
app
.
isGoVip
)
{
this
.
doHelp
();
this
.
doHelp
();
}
}
if
(
this
.
goVip
)
{
this
.
openGamePage
();
}
},
},
openInviteFailedModal
(){
openInviteFailedModal
()
{
my
.
_showIndexModal
(
"invitefail"
);
my
.
_showIndexModal
(
"invitefail"
);
},
},
openInviteSuccessModal
(){
openInviteSuccessModal
()
{
my
.
_showIndexModal
(
"invitesuccess"
);
my
.
_showIndexModal
(
"invitesuccess"
);
},
},
/**助力 */
/**助力 */
async
doHelp
(){
async
doHelp
()
{
const
{
success
,
data
,
message
}
=
await
API
.
doHelp
({
inviteId
:
app
.
inviteId
,
inviteStep
:
app
.
step
});
const
{
success
,
data
,
message
}
=
await
API
.
doHelp
({
inviteId
:
app
.
inviteId
,
inviteStep
:
app
.
step
});
console
.
log
(
"hhahahha"
)
console
.
log
(
"hhahahha"
)
if
(
!
success
)
{
if
(
!
success
)
{
if
(
data
&&!
data
.
isVip
)
{
if
(
data
&&
!
data
.
isVip
)
{
commonToast
(
"3s入会,即可为好友助力"
,
1500
,()
=>
{
commonToast
(
"3s入会,即可为好友助力"
,
1500
,
()
=>
{
navigateToOutside
(
data
.
url
);
navigateToOutside
(
data
.
url
);
})
})
}
else
if
(
data
&&
data
.
isVip
)
{
}
else
if
(
data
&&
data
.
isVip
)
{
this
.
openInviteFailedModal
();
this
.
openInviteFailedModal
();
}
else
{
}
else
{
commonToast
(
message
);
commonToast
(
message
);
}
}
}
else
{
}
else
{
this
.
openInviteSuccessModal
();
this
.
openInviteSuccessModal
();
}
}
}
}
...
...
taobao_jn/client/pages/pagepagerank/pagepagerank.acss
View file @
a9786f01
...
@@ -55,21 +55,22 @@
...
@@ -55,21 +55,22 @@
color: #000000;
color: #000000;
}
}
.pagerank .ranktex .myrank .ranktemp {
.pagerank .ranktex .myrank .ranktemp {
width: 1
3
rpx;
width: 1
50
rpx;
height: 19rpx;
height: 19rpx;
opacity: 0.61960784;
opacity: 0.61960784;
left:
426
rpx;
left:
343
rpx;
top: -10rpx;
top: -10rpx;
position: absolute;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 28rpx;
font-size: 28rpx;
color: #000000;
color: #000000;
text-align: center;
}
}
.pagerank .ranktex .myrank .rank {
.pagerank .ranktex .myrank .rank {
width: 38rpx;
width: 38rpx;
height: 19rpx;
height: 19rpx;
opacity: 0.61960784;
opacity: 0.61960784;
left:
5
rpx;
left:
22
rpx;
top: -11rpx;
top: -11rpx;
position: absolute;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
...
@@ -121,7 +122,7 @@
...
@@ -121,7 +122,7 @@
left: 4rpx;
left: 4rpx;
top: 268rpx;
top: 268rpx;
position: absolute;
position: absolute;
transform-origin: 0
px 0px 0
px;
transform-origin: 0
rpx 0rpx 0r
px;
overflow: scroll
overflow: scroll
}
}
.pagerank .ranktex .rankList .rankItem {
.pagerank .ranktex .rankList .rankItem {
...
@@ -131,7 +132,7 @@
...
@@ -131,7 +132,7 @@
top: 20rpx;
top: 20rpx;
margin: 0 auto 24rpx;
margin: 0 auto 24rpx;
position: relative;
position: relative;
transform-origin: 0
px 0px 0
px;
transform-origin: 0
rpx 0rpx 0r
px;
}
}
.pagerank .ranktex .rankList .rankItem .itemrank{
.pagerank .ranktex .rankList .rankItem .itemrank{
width: 98rpx;
width: 98rpx;
...
@@ -143,7 +144,7 @@
...
@@ -143,7 +144,7 @@
position: absolute;
position: absolute;
font-size: 26rpx;
font-size: 26rpx;
color: rgba(0, 0, 0, 1);
color: rgba(0, 0, 0, 1);
transform-origin: 0
px 0px 0
px;
transform-origin: 0
rpx 0rpx 0r
px;
text-align: center;
text-align: center;
}
}
.pagerank .ranktex .rankList .rankItem .itemrankid{
.pagerank .ranktex .rankList .rankItem .itemrankid{
...
@@ -156,7 +157,7 @@
...
@@ -156,7 +157,7 @@
position: absolute;
position: absolute;
font-size: 26rpx;
font-size: 26rpx;
color: rgba(0, 0, 0, 1);
color: rgba(0, 0, 0, 1);
transform-origin: 0
px 0px 0p
x;
transform-origin: 0
rpx 0rpx 0pr
x;
text-align: left;
text-align: left;
}
}
.pagerank .ranktex .rankList .rankItem .itemranktemp{
.pagerank .ranktex .rankList .rankItem .itemranktemp{
...
@@ -169,7 +170,7 @@
...
@@ -169,7 +170,7 @@
position: absolute;
position: absolute;
font-size: 26rpx;
font-size: 26rpx;
color: rgba(0, 0, 0, 1);
color: rgba(0, 0, 0, 1);
transform-origin: 0
px 0px 0
px;
transform-origin: 0
rpx 0rpx 0r
px;
text-align: center;
text-align: center;
}
}
...
@@ -227,6 +228,7 @@
...
@@ -227,6 +228,7 @@
white-space: nowrap;
white-space: nowrap;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
overflow-x: scroll;
overflow-x: scroll;
overflow-y: hidden;
}
}
.pagerank .rankprizelist .rankprizeitem {
.pagerank .rankprizelist .rankprizeitem {
position: relative;
position: relative;
...
...
taobao_jn/debug.log
View file @
a9786f01
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