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
235e2bac
Commit
235e2bac
authored
Nov 11, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
440105fb
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
173102 additions
and
20 deletions
+173102
-20
app.js
taobao_jn/client/app.js
+3
-2
pagegamemain.acss
taobao_jn/client/pages/pagegamemain/pagegamemain.acss
+12
-0
pagegamemain.axml
taobao_jn/client/pages/pagegamemain/pagegamemain.axml
+4
-2
pagegamemain.js
taobao_jn/client/pages/pagegamemain/pagegamemain.js
+31
-9
pagepageindex.js
taobao_jn/client/pages/pagepageindex/pagepageindex.js
+8
-7
resList.js
taobao_jn/client/resconfig/resList.js
+12
-0
debug.log
taobao_jn/debug.log
+173032
-0
No files found.
taobao_jn/client/app.js
View file @
235e2bac
import
cloud
from
'@tbmp/mp-cloud-sdk'
;
import
cloud
from
'@tbmp/mp-cloud-sdk'
;
import
tbcc
from
'./tbcc-sdk'
;
import
tbcc
from
'./tbcc-sdk'
;
const
env
=
'online'
// 云函数环境 test 测试环境 online 线上环境
const
env
=
'online'
// 云函数环境 test 测试环境 online 线上环境
pre 预发环境
cloud
.
init
({
cloud
.
init
({
env
:
env
env
:
env
});
});
...
@@ -35,7 +35,8 @@ App({
...
@@ -35,7 +35,8 @@ App({
// this.activityId = activityId || '5f8550a3964f97be3647a635';
// this.activityId = activityId || '5f8550a3964f97be3647a635';
// this.activityId = activityId || '5f8831e67389891bfd6bb35f'; //赵然1
// this.activityId = activityId || '5f8831e67389891bfd6bb35f'; //赵然1
// this.activityId = activityId || '5f895d0f0cb733e071b4082b'; //开发者测试
// this.activityId = activityId || '5f895d0f0cb733e071b4082b'; //开发者测试
this
.
activityId
=
activityId
||
'5f8d0026114fbb9493d3f0cb'
;
//线上id
// this.activityId = activityId || '5f8d0026114fbb9493d3f0cb'; //线上id
this
.
activityId
=
activityId
||
'5f8da60c0cb7336de5166845'
;
//pre
}
}
...
...
taobao_jn/client/pages/pagegamemain/pagegamemain.acss
View file @
235e2bac
...
@@ -410,6 +410,18 @@ letter-spacing: 3rpx;
...
@@ -410,6 +410,18 @@ letter-spacing: 3rpx;
position: absolute;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
}
}
.gamemain .gamembot .gamembotNoTimes {
width: 222rpx;
height: 42rpx;
opacity: 1;
display: block;
left: 486rpx;
top: 40rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.gamemain .gamembot .gamemtool {
.gamemain .gamembot .gamemtool {
width: 146rpx;
width: 146rpx;
height: 144rpx;
height: 144rpx;
...
...
taobao_jn/client/pages/pagegamemain/pagegamemain.axml
View file @
235e2bac
...
@@ -47,12 +47,14 @@
...
@@ -47,12 +47,14 @@
</view>
</view>
<view class="gamembot" a:if="{{show_v!=1}}">
<view class="gamembot" a:if="{{show_v!=1}}">
<image class="gamembotimg" src={{resList['f3909518-193e-49eb-a1cd-357c4f83d796'].url}} />
<image class="gamembotimg" src={{resList['f3909518-193e-49eb-a1cd-357c4f83d796'].url}} />
<view class="gamemtool{{tooltime>0?' blackWhiteFilter':''}}" onTap="usetool">
<view class="gamemtool{{isCanUseTool=='true'?' ':' blackWhiteFilter'}}" onTap="usetool">
<image class="gamemtoobg1" src={{resList['6f5cdb3c-0c5b-42a0-9472-982761684dc4'].url}} />
<image class="gamemtoobg1" src={{resList['6f5cdb3c-0c5b-42a0-9472-982761684dc4'].url}} />
<image class="gamemtoobg2" src={{resList['9d6f3caf-a088-4f6d-9e0b-87967a79656c'].url}} />
<image class="gamemtoobg2" src={{resList['9d6f3caf-a088-4f6d-9e0b-87967a79656c'].url}} />
<image class="gamemtoolimg" src={{resList['e31f093d-6f42-4818-99cd-dfd3de98ef08'].url}} />
<image class="gamemtoolimg" src={{resList['e31f093d-6f42-4818-99cd-dfd3de98ef08'].url}} />
<
label class="gamemtooltime" a:if="{{tooltime>0}}">下次使用:{{'\n'+showtooltime}}</label
>
<
!-- <label class="gamemtooltime" a:if="{{tooltime>0}}">下次使用:{{'\n'+showtooltime}}</label> --
>
</view>
</view>
<image class="gamembotNoTimes " a:if="{{noTimesV}}" src={{resList['b73dc175-9ca6-43ab-aab5-b938a575edbd'].url}} />
<view class="gamemsharegro">
<view class="gamemsharegro">
<image class="gamemhrole" onTap="invitefriends" data-sidx=0 src={{invitedata[0]?resList['7b03a2af-445c-4ce6-b57b-a900e1eedfed'].url:resList['b33526ac-42e8-4f93-b8e8-dc5d44dce6aa'].url}} />
<image class="gamemhrole" onTap="invitefriends" data-sidx=0 src={{invitedata[0]?resList['7b03a2af-445c-4ce6-b57b-a900e1eedfed'].url:resList['b33526ac-42e8-4f93-b8e8-dc5d44dce6aa'].url}} />
<image class="gamenrole1" onTap="invitefriends" data-sidx=1 src={{invitedata[1]?resList['7b03a2af-445c-4ce6-b57b-a900e1eedfed'].url:resList['b33526ac-42e8-4f93-b8e8-dc5d44dce6aa'].url}} />
<image class="gamenrole1" onTap="invitefriends" data-sidx=1 src={{invitedata[1]?resList['7b03a2af-445c-4ce6-b57b-a900e1eedfed'].url:resList['b33526ac-42e8-4f93-b8e8-dc5d44dce6aa'].url}} />
...
...
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
235e2bac
...
@@ -117,6 +117,8 @@ Page({
...
@@ -117,6 +117,8 @@ Page({
overequest
:
false
,
overequest
:
false
,
laststat
:
""
,
laststat
:
""
,
firstin
:
true
,
firstin
:
true
,
isCanUseTool
:
false
,
noTimesV
:
false
},
},
onLoad
(
query
)
{
onLoad
(
query
)
{
console
.
log
(
"onLoad========>"
,
query
);
console
.
log
(
"onLoad========>"
,
query
);
...
@@ -144,7 +146,7 @@ Page({
...
@@ -144,7 +146,7 @@ Page({
let
isnew
=
false
;
let
isnew
=
false
;
let
tooltime
=
0
;
let
tooltime
=
0
;
console
.
log
(
"initGame"
,
query
,
gamestat
);
console
.
log
(
"initGame"
,
query
,
gamestat
);
let
{
end
,
gl
,
start
,
step
,
toolcd
}
=
query
;
let
{
end
,
gl
,
start
,
step
,
toolcd
,
canUseTool
}
=
query
;
gameatime
=
Math
.
floor
((
Number
(
end
)
-
Number
(
start
))
/
1000
);
gameatime
=
Math
.
floor
((
Number
(
end
)
-
Number
(
start
))
/
1000
);
if
(
gamestat
==
"normal"
)
{
if
(
gamestat
==
"normal"
)
{
let
isnewdata
=
my
.
getStorageSync
({
let
isnewdata
=
my
.
getStorageSync
({
...
@@ -248,6 +250,7 @@ Page({
...
@@ -248,6 +250,7 @@ Page({
tooltime
:
tooltime
,
tooltime
:
tooltime
,
startime
:
Number
(
start
),
startime
:
Number
(
start
),
endtime
:
Number
(
end
),
endtime
:
Number
(
end
),
isCanUseTool
:
canUseTool
});
});
my
.
__updateWarms
=
()
=>
{
my
.
__updateWarms
=
()
=>
{
...
@@ -846,7 +849,9 @@ Page({
...
@@ -846,7 +849,9 @@ Page({
//使用道具
//使用道具
async
usetool
()
{
async
usetool
()
{
let
tooltime
=
this
.
data
.
tooltime
;
let
tooltime
=
this
.
data
.
tooltime
;
if
(
tooltime
<=
0
)
{
//可使用
let
canUseTool
=
this
.
data
.
isCanUseTool
console
.
log
(
"能否使用道具"
,
canUseTool
)
if
(
canUseTool
==
'true'
)
{
//可使用
// console.log("使用道具");
// console.log("使用道具");
this
.
opentool
();
this
.
opentool
();
// return;
// return;
...
@@ -862,7 +867,18 @@ Page({
...
@@ -862,7 +867,18 @@ Page({
// this.updateActInfo();
// this.updateActInfo();
// }
// }
}
else
{
//倒计时中
}
else
{
//倒计时中
if
(
this
.
data
.
noTimesV
)
return
;
this
.
setData
({
noTimesV
:
true
})
setTimeout
(()
=>
{
if
(
this
){
this
.
setData
({
noTimesV
:
false
})
}
},
3000
)
// commonToast("今日次数已用完")
}
}
},
},
async
usetool1
()
{
async
usetool1
()
{
...
@@ -880,7 +896,8 @@ Page({
...
@@ -880,7 +896,8 @@ Page({
if
(
success
)
{
if
(
success
)
{
this
.
updateActInfo
();
this
.
updateActInfo
();
this
.
setData
({
this
.
setData
({
tooltime
:
gtoolcd
tooltime
:
gtoolcd
,
isCanUseTool
:
false
});
});
}
}
}
else
{
//倒计时中
}
else
{
//倒计时中
...
@@ -1427,13 +1444,14 @@ Page({
...
@@ -1427,13 +1444,14 @@ Page({
});
});
})
})
if
(
lgamedata
)
{
if
(
lgamedata
)
{
let
{
step
,
start
,
end
,
gl
,
toolcd
,
tooless
}
=
query
;
let
{
step
,
start
,
end
,
gl
,
toolcd
,
tooless
,
canUseTool
}
=
query
;
lgamedata
[
"step"
]
=
step
;
lgamedata
[
"step"
]
=
step
;
lgamedata
[
"startime"
]
=
start
;
lgamedata
[
"startime"
]
=
start
;
lgamedata
[
"endtime"
]
=
end
;
lgamedata
[
"endtime"
]
=
end
;
lgamedata
[
"gl"
]
=
gl
;
lgamedata
[
"gl"
]
=
gl
;
lgamedata
[
"toolcd"
]
=
toolcd
;
lgamedata
[
"toolcd"
]
=
toolcd
;
lgamedata
[
"tooltime"
]
=
tooless
;
lgamedata
[
"tooltime"
]
=
tooless
;
lgamedata
[
"canUseTool"
]
=
canUseTool
;
my
.
removeStorage
({
my
.
removeStorage
({
key
:
key
key
:
key
});
});
...
@@ -1455,8 +1473,9 @@ Page({
...
@@ -1455,8 +1473,9 @@ Page({
async
lastgameover
(
lgamedata
,
nowTime
)
{
async
lastgameover
(
lgamedata
,
nowTime
)
{
console
.
log
(
"直接结束========》"
);
console
.
log
(
"直接结束========》"
);
let
{
let
{
roomdata
,
roomnums
,
tooltime
,
canwin
,
step
,
startime
,
endtime
,
avatar2
,
avatar3
,
avatar4
,
othername
,
overequest
,
hidetime
,
linvite
,
ltool
,
lfollow
,
lsign
,
lcollect
,
lbrowseGoods
canUseTool
,
roomdata
,
roomnums
,
tooltime
,
canwin
,
step
,
startime
,
endtime
,
avatar2
,
avatar3
,
avatar4
,
othername
,
overequest
,
hidetime
,
linvite
,
ltool
,
lfollow
,
lsign
,
lcollect
,
lbrowseGoods
}
=
lgamedata
;
}
=
lgamedata
;
this
.
setData
({
this
.
setData
({
avatar1
:
app
.
avatar
,
avatar1
:
app
.
avatar
,
avatar2
:
avatar2
,
avatar2
:
avatar2
,
...
@@ -1477,7 +1496,8 @@ Page({
...
@@ -1477,7 +1496,8 @@ Page({
lfollow
:
lfollow
,
lfollow
:
lfollow
,
lsign
:
lsign
,
lsign
:
lsign
,
lcollect
:
lcollect
,
lcollect
:
lcollect
,
lbrowseGoods
:
lbrowseGoods
lbrowseGoods
:
lbrowseGoods
,
isCanUseTool
:
canUseTool
});
});
this
.
updateActInfo
(
"last"
);
this
.
updateActInfo
(
"last"
);
this
.
updateAiInfo
();
this
.
updateAiInfo
();
...
@@ -1487,11 +1507,12 @@ Page({
...
@@ -1487,11 +1507,12 @@ Page({
//恢复上局游戏
//恢复上局游戏
async
lastgamereset
(
lgamedata
,
nowTime
)
{
async
lastgamereset
(
lgamedata
,
nowTime
)
{
let
{
let
{
roomdata
,
roomnums
,
tooltime
,
canwin
,
step
,
startime
,
endtime
,
avatar2
,
avatar3
,
avatar4
,
othername
,
toolcd
,
overequest
,
hidetime
,
linvite
,
ltool
,
lfollow
,
lsign
,
lcollect
,
lbrowseGoods
canUseTool
,
roomdata
,
roomnums
,
tooltime
,
canwin
,
step
,
startime
,
endtime
,
avatar2
,
avatar3
,
avatar4
,
othername
,
toolcd
,
overequest
,
hidetime
,
linvite
,
ltool
,
lfollow
,
lsign
,
lcollect
,
lbrowseGoods
}
=
lgamedata
;
}
=
lgamedata
;
let
gameatime
=
Math
.
floor
((
Number
(
endtime
)
-
Number
(
nowTime
))
/
1000
);
let
gameatime
=
Math
.
floor
((
Number
(
endtime
)
-
Number
(
nowTime
))
/
1000
);
gtoolcd
=
Number
(
toolcd
);
gtoolcd
=
Number
(
toolcd
);
console
.
log
(
"上一次使用过道具"
,
canUseTool
)
this
.
setData
({
this
.
setData
({
avatar1
:
app
.
avatar
,
avatar1
:
app
.
avatar
,
avatar2
:
avatar2
,
avatar2
:
avatar2
,
...
@@ -1515,7 +1536,8 @@ Page({
...
@@ -1515,7 +1536,8 @@ Page({
lfollow
:
lfollow
,
lfollow
:
lfollow
,
lsign
:
lsign
,
lsign
:
lsign
,
lcollect
:
lcollect
,
lcollect
:
lcollect
,
lbrowseGoods
:
lbrowseGoods
lbrowseGoods
:
lbrowseGoods
,
isCanUseTool
:
canUseTool
});
});
this
.
updateActInfo
(
"last"
);
this
.
updateActInfo
(
"last"
);
...
...
taobao_jn/client/pages/pagepageindex/pagepageindex.js
View file @
235e2bac
...
@@ -425,7 +425,7 @@ Page({
...
@@ -425,7 +425,7 @@ Page({
my
.
redirectTo
({
my
.
redirectTo
({
url
:
'/pages/pagegamemain/pagegamemain?'
+
url
:
'/pages/pagegamemain/pagegamemain?'
+
"step="
+
this
.
data
.
curGameStep
+
"&start="
+
data
.
joinGameStartTime
+
"step="
+
this
.
data
.
curGameStep
+
"&start="
+
data
.
joinGameStartTime
+
"&end="
+
data
.
joinGameEndTime
+
"&gl="
+
winRate
+
"&toolcd="
+
propsCD
"&end="
+
data
.
joinGameEndTime
+
"&gl="
+
winRate
+
"&toolcd="
+
propsCD
+
"&canUseTool="
+
!
data
.
usedTool
})
})
my
.
hideLoading
();
my
.
hideLoading
();
}
else
{
}
else
{
...
@@ -468,10 +468,10 @@ Page({
...
@@ -468,10 +468,10 @@ Page({
const
{
const
{
item
item
}
=
e
.
target
.
dataset
;
}
=
e
.
target
.
dataset
;
if
(
!
this
.
start
&&
item
==
'pagepagerank'
)
{
//
if (!this.start && item == 'pagepagerank') {
commonToast
(
"活动已结束"
)
//
commonToast("活动已结束")
return
;
//
return;
}
//
}
my
.
navigateTo
({
my
.
navigateTo
({
url
:
`/pages/
${
item
}
/
${
item
}
`
url
:
`/pages/
${
item
}
/
${
item
}
`
...
@@ -586,7 +586,8 @@ Page({
...
@@ -586,7 +586,8 @@ Page({
toolEndTime
,
toolEndTime
,
winRate
,
winRate
,
propsCD
,
propsCD
,
step
step
,
usedTool
}
=
data
;
}
=
data
;
if
(
joinGameStartTime
&&
joinGameEndTime
)
{
if
(
joinGameStartTime
&&
joinGameEndTime
)
{
let
nowTime
=
await
getServerTime
().
catch
(()
=>
{});
let
nowTime
=
await
getServerTime
().
catch
(()
=>
{});
...
@@ -600,7 +601,7 @@ Page({
...
@@ -600,7 +601,7 @@ Page({
tooless
=
0
;
tooless
=
0
;
}
}
let
querystr
=
"step="
+
step
+
"&start="
+
joinGameStartTime
+
let
querystr
=
"step="
+
step
+
"&start="
+
joinGameStartTime
+
"&end="
+
joinGameEndTime
+
"&gl="
+
winRate
+
"&toolcd="
+
toolcd
+
"&tooless="
+
tooless
;
"&end="
+
joinGameEndTime
+
"&gl="
+
winRate
+
"&toolcd="
+
toolcd
+
"&tooless="
+
tooless
+
"&canUseTool="
+
!
usedTool
;
if
(
nowTime
&&
joinGameEndTime
>
nowTime
)
{
//上局未结束,继续游戏
if
(
nowTime
&&
joinGameEndTime
>
nowTime
)
{
//上局未结束,继续游戏
querystr
+=
"&laststat=go"
;
querystr
+=
"&laststat=go"
;
...
...
taobao_jn/client/resconfig/resList.js
View file @
235e2bac
...
@@ -752,5 +752,17 @@ const resList = {
...
@@ -752,5 +752,17 @@ const resList = {
url
:
'//yun.duiba.com.cn/spark/assets/rankPageFinal.f6c5990ccbcc0ebca410570153441448d439ff31.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/rankPageFinal.f6c5990ccbcc0ebca410570153441448d439ff31.png'
,
uuid
:
'b4d591f8-3459-49c9-9ddc-3d80afb7babd'
uuid
:
'b4d591f8-3459-49c9-9ddc-3d80afb7babd'
},
},
'c29511d4-46ef-4562-a432-4d25946750f4'
:
{
name
:
'noTimes'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/noTimes.29101840afac22f3fea6182c27c2799b88b06395.png'
,
uuid
:
'c29511d4-46ef-4562-a432-4d25946750f4'
},
'b73dc175-9ca6-43ab-aab5-b938a575edbd'
:
{
name
:
'noTimesFinal'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/noTimesFinal.ccf64248e89b0d81092851d5356486e67d5d5546.png'
,
uuid
:
'b73dc175-9ca6-43ab-aab5-b938a575edbd'
}
};
};
export
default
resList
;
export
default
resList
;
\ No newline at end of file
taobao_jn/debug.log
View file @
235e2bac
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