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
c5f6827b
Commit
c5f6827b
authored
Oct 02, 2020
by
spc
Browse files
Options
Browse Files
Download
Plain Diff
jip
parents
5de071a8
0e8326c9
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
30 additions
and
18 deletions
+30
-18
output.js.map
project/src/canvas/game/output.js.map
+1
-1
copyJs.js
project/src/canvas/game/scripts/copyJs.js
+2
-2
comMissionModal.js
...mini/client/components/comMissionModal/comMissionModal.js
+1
-0
goodsModal.axml
taobao_mini/client/components/goodsModal/goodsModal.axml
+2
-1
md.js
taobao_mini/client/md.js
+2
-2
goodsPage.js
taobao_mini/client/pages/goodsPage/goodsPage.js
+3
-3
homePage.axml
taobao_mini/client/pages/homePage/homePage.axml
+1
-1
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+12
-7
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+3
-0
output.js
taobao_mini/client/pages/pagecanvas/output.js
+1
-1
turnTablePage.js
taobao_mini/client/pages/turnTablePage/turnTablePage.js
+2
-0
No files found.
project/src/canvas/game/output.js.map
View file @
c5f6827b
project/src/canvas/game/scripts/copyJs.js
View file @
c5f6827b
...
...
@@ -6,8 +6,8 @@ var fs = require("fs");
// fs.readFileSync("./output.js")
// )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
var
endPath
=
"C:/Users/Duiba/Desktop/work/雅顿/new_taobao/taobao_mini/client/pages/pagecanvas/
"
//
var endPath = '/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/';
// var endPath = "C:/Users/Duiba/Desktop/work/雅顿/new_taobao/taobao_mini/client/pages/pagecanvas
"
var
endPath
=
'/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/'
;
var
version
=
Math
.
round
(
new
Date
().
getTime
()
/
1000
);
...
...
taobao_mini/client/components/comMissionModal/comMissionModal.js
View file @
c5f6827b
...
...
@@ -61,6 +61,7 @@ Component({
// if (this.data.missionsList.length !== prevData.missionsList.length) {
// this.setData({ missionsList: this.props.missionsList })
// }
if
(
this
.
props
.
refresh
)
this
.
getMissionList
()
},
methods
:
{
...
...
taobao_mini/client/components/goodsModal/goodsModal.axml
View file @
c5f6827b
...
...
@@ -22,6 +22,7 @@
</scroll-view>
</view>
<!-- 倒计时
-->
<!-- 倒计时
<count-down-modal a:if="{{isShowCountdown && task.taskType == 'browseGoods'}}" percent="{{percent}}" usePercent="{{usePercent}}" styleType="{{'01'}}" />
-->
</view>
\ No newline at end of file
taobao_mini/client/md.js
View file @
c5f6827b
...
...
@@ -5,8 +5,8 @@ export function clickStat (activityId, type) {
API
.
clickStat
({
activityId
:
activityId
,
type
:
type
})
.
then
(
res
=>
{
const
{
success
,
message
,
data
}
=
res
if
(
!
success
)
{
console
.
warn
(
res
)
;
commonToast
(
res
&&
res
.
message
)
}
if
(
!
success
)
{
console
.
warn
(
res
)
}
else
console
.
log
(
`%c打点成功--
${
type
}
`
,
'color:#e06a82;font-size:12px;font-weight:bold;text-shadow:1px 1px rgba(0,0,0,0.2)'
)
})
.
catch
(
res
=>
{
console
.
warn
(
res
)
;
commonToast
(
res
&&
res
.
message
);
})
||
{};
.
catch
(
res
=>
{
console
.
warn
(
res
)
})
||
{}
}
\ No newline at end of file
taobao_mini/client/pages/goodsPage/goodsPage.js
View file @
c5f6827b
...
...
@@ -93,8 +93,8 @@ Page({
},
//任务完成
async
onCompleteTask
(
taskType
,
itemId
)
{
console
.
log
(
taskType
,
itemId
)
async
onCompleteTask
(
taskType
,
itemId
)
{
console
.
log
(
taskType
,
itemId
)
const
{
activityId
}
=
app
switch
(
taskType
)
{
case
'collectGoods'
:
...
...
@@ -111,7 +111,7 @@ Page({
let
browsResult
=
await
API
.
doBrowseGoodsTask
({
activityId
,
itemId
}).
catch
(
res
=>
{
res
&&
commonToast
(
res
)
})
||
{}
console
.
log
(
browsResult
)
console
.
log
(
'%c--------完成浏览任务
\
n'
+
'-----yd.doBrowseGoodsTask
\
n'
,
ConsoleStyle
,
browsResult
.
data
)
if
(
browsResult
.
success
)
{
commonToast
(
'任务完成'
)
}
...
...
taobao_mini/client/pages/homePage/homePage.axml
View file @
c5f6827b
...
...
@@ -128,4 +128,4 @@
<newuser-modal a:if="{{newUserModalVisible}}" onModalClose="closeNewUserModal"></newuser-modal>
<rewards-modal a:if="{{rewardsModalVisible}}" onModalClose="closeRewardsModal"></rewards-modal>
<prizes-modal a:if="{{prizesModalVisible}}" onModalClose="closePrizesModal"></prizes-modal>
<mission-modal a:if="{{missionModalVisible}}" onModalClose="closeMissionModal" onRefreshGameInfo="getGameInfo"></mission-modal>
<mission-modal a:if="{{missionModalVisible}}"
refresh="{{missionRefresh}}"
onModalClose="closeMissionModal" onRefreshGameInfo="getGameInfo"></mission-modal>
taobao_mini/client/pages/homePage/homePage.js
View file @
c5f6827b
...
...
@@ -14,11 +14,8 @@ Page({
},
// 视频地址列表 - 存储播放时常
videoSrcArr
:
[
{
url
:
'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
},
{
url
:
'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
},
{
url
:
'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
}
],
// 'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
videoSrcArr
:
[],
// 视频记录 flag
timeStampCountFlag
:
false
,
// 视频记录 ms - 增量
...
...
@@ -172,7 +169,12 @@ Page({
data
.
videoUrlArr
.
forEach
((
item
,
index
)
=>
{
// 获取视频 视频封面 视频小封面
this
.
videoSrcArr
[
index
]
=
{
url
:
item
.
videoUrl
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
// url: item.videoUrl, timeStamp: 0, totalTime: 0, completed: false
// test - code
url
:
'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
,
timeStamp
:
0
,
totalTime
:
0
,
completed
:
false
// test - code
}
this
.
videoImgSrcSmallArr
[
index
]
=
item
.
mainImage
})
...
...
@@ -298,7 +300,10 @@ Page({
onReady
()
{
this
.
videoCtx
=
my
.
createVideoContext
(
'videoCtx'
)
},
// 页面显示
onShow
()
{
if
(
this
.
userLogin
)
this
.
getGameInfo
()
},
onShow
()
{
if
(
this
.
userLogin
)
this
.
getGameInfo
()
this
.
setData
({
missionRefresh
:
true
})
},
// 获取 游戏门票 抽奖次数 今日是否首次登陆
getGameInfo
()
{
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
c5f6827b
...
...
@@ -195,6 +195,9 @@ Page({
// }, 5000);
const
{
success
,
data
,
message
}
=
res
;
console
.
log
(
'%c--------领取实物奖品
\
n'
+
'-----yd.receiveObjectPrize
\
n'
,
ConsoleStyle
,
data
)
if
(
success
&&
data
)
{
commonToast
(
'领取成功'
)
}
else
{
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
c5f6827b
...
...
@@ -15247,7 +15247,7 @@ exports.Star = Star;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
config
=
void
0
;
exports
.
config
=
{
time
:
12
0
,
time
:
12
,
first
:
1000
,
second
:
2000
,
third
:
3000
,
...
...
taobao_mini/client/pages/turnTablePage/turnTablePage.js
View file @
c5f6827b
...
...
@@ -101,10 +101,12 @@ Page({
return
}
// const { success, data } = await API.lottery({ activityId: this.activityId }).catch(res => {
const
{
success
,
data
}
=
await
API
.
drawLotteryPrize
({
activityId
:
this
.
activityId
,
prizeDataType
:
3
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
)
return
})
||
{}
console
.
log
(
'%c--------领取实物奖品
\
n'
+
'-----yd.receiveObjectPrize
\
n'
,
ConsoleStyle
,
data
)
// test code -
// let success = true
...
...
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