Commit c5f6827b authored by spc's avatar spc

jip

parents 5de071a8 0e8326c9
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,8 +6,8 @@ var fs = require("fs"); ...@@ -6,8 +6,8 @@ var fs = require("fs");
// fs.readFileSync("./output.js") // fs.readFileSync("./output.js")
// ) // )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/'; // 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 = "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 = '/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/';
var version = Math.round(new Date().getTime() / 1000); var version = Math.round(new Date().getTime() / 1000);
......
...@@ -61,6 +61,7 @@ Component({ ...@@ -61,6 +61,7 @@ Component({
// if (this.data.missionsList.length !== prevData.missionsList.length) { // if (this.data.missionsList.length !== prevData.missionsList.length) {
// this.setData({ missionsList: this.props.missionsList }) // this.setData({ missionsList: this.props.missionsList })
// } // }
if (this.props.refresh) this.getMissionList()
}, },
methods: { methods: {
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
</scroll-view> </scroll-view>
</view> </view>
<!-- 倒计时 --> <!-- 倒计时
<count-down-modal a:if="{{isShowCountdown && task.taskType == 'browseGoods'}}" percent="{{percent}}" usePercent="{{usePercent}}" styleType="{{'01'}}" /> <count-down-modal a:if="{{isShowCountdown && task.taskType == 'browseGoods'}}" percent="{{percent}}" usePercent="{{usePercent}}" styleType="{{'01'}}" />
-->
</view> </view>
\ No newline at end of file
...@@ -5,8 +5,8 @@ export function clickStat (activityId, type) { ...@@ -5,8 +5,8 @@ export function clickStat (activityId, type) {
API.clickStat({activityId: activityId, type: type}) API.clickStat({activityId: activityId, type: type})
.then(res => { .then(res => {
const { success, message, data } = 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)') 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
...@@ -93,8 +93,8 @@ Page({ ...@@ -93,8 +93,8 @@ Page({
}, },
//任务完成 //任务完成
async onCompleteTask(taskType,itemId) { async onCompleteTask(taskType, itemId) {
console.log(taskType,itemId) console.log(taskType, itemId)
const { activityId } = app const { activityId } = app
switch(taskType) { switch(taskType) {
case 'collectGoods': case 'collectGoods':
...@@ -111,7 +111,7 @@ Page({ ...@@ -111,7 +111,7 @@ Page({
let browsResult = await API.doBrowseGoodsTask({ activityId, itemId }).catch(res => { let browsResult = await API.doBrowseGoodsTask({ activityId, itemId }).catch(res => {
res && commonToast(res) res && commonToast(res)
}) || {} }) || {}
console.log(browsResult) console.log('%c--------完成浏览任务\n' + '-----yd.doBrowseGoodsTask\n', ConsoleStyle, browsResult.data)
if(browsResult.success) { if(browsResult.success) {
commonToast('任务完成') commonToast('任务完成')
} }
......
...@@ -128,4 +128,4 @@ ...@@ -128,4 +128,4 @@
<newuser-modal a:if="{{newUserModalVisible}}" onModalClose="closeNewUserModal"></newuser-modal> <newuser-modal a:if="{{newUserModalVisible}}" onModalClose="closeNewUserModal"></newuser-modal>
<rewards-modal a:if="{{rewardsModalVisible}}" onModalClose="closeRewardsModal"></rewards-modal> <rewards-modal a:if="{{rewardsModalVisible}}" onModalClose="closeRewardsModal"></rewards-modal>
<prizes-modal a:if="{{prizesModalVisible}}" onModalClose="closePrizesModal"></prizes-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>
...@@ -14,11 +14,8 @@ Page({ ...@@ -14,11 +14,8 @@ Page({
}, },
// 视频地址列表 - 存储播放时常 // 视频地址列表 - 存储播放时常
videoSrcArr: [ // 'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4'
{ url: 'https://cloud.video.taobao.com/play/u/20446068/p/1/e/6/t/1/239271757987.mp4', timeStamp: 0, totalTime: 0, completed: false }, 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 }
],
// 视频记录 flag // 视频记录 flag
timeStampCountFlag: false, timeStampCountFlag: false,
// 视频记录 ms - 增量 // 视频记录 ms - 增量
...@@ -172,7 +169,12 @@ Page({ ...@@ -172,7 +169,12 @@ Page({
data.videoUrlArr.forEach((item, index) => { data.videoUrlArr.forEach((item, index) => {
// 获取视频 视频封面 视频小封面 // 获取视频 视频封面 视频小封面
this.videoSrcArr[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 this.videoImgSrcSmallArr[index] = item.mainImage
}) })
...@@ -298,7 +300,10 @@ Page({ ...@@ -298,7 +300,10 @@ Page({
onReady() { this.videoCtx = my.createVideoContext('videoCtx') }, onReady() { this.videoCtx = my.createVideoContext('videoCtx') },
// 页面显示 // 页面显示
onShow() { if (this.userLogin) this.getGameInfo() }, onShow() {
if (this.userLogin) this.getGameInfo()
this.setData({ missionRefresh: true })
},
// 获取 游戏门票 抽奖次数 今日是否首次登陆 // 获取 游戏门票 抽奖次数 今日是否首次登陆
getGameInfo () { getGameInfo () {
......
...@@ -195,6 +195,9 @@ Page({ ...@@ -195,6 +195,9 @@ Page({
// }, 5000); // }, 5000);
const { success, data, message } = res; const { success, data, message } = res;
console.log('%c--------领取实物奖品\n' + '-----yd.receiveObjectPrize\n', ConsoleStyle, data)
if (success && data) { if (success && data) {
commonToast('领取成功') commonToast('领取成功')
} else { } else {
......
...@@ -15247,7 +15247,7 @@ exports.Star = Star; ...@@ -15247,7 +15247,7 @@ exports.Star = Star;
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.config = void 0; exports.config = void 0;
exports.config = { exports.config = {
time: 120, time: 12,
first: 1000, first: 1000,
second: 2000, second: 2000,
third: 3000, third: 3000,
......
...@@ -101,10 +101,12 @@ Page({ ...@@ -101,10 +101,12 @@ Page({
return 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 => { const { success, data } = await API.drawLotteryPrize({ activityId: this.activityId, prizeDataType: 3 }).catch(res => {
commonToast(res && res.message) commonToast(res && res.message)
return return
}) || {} }) || {}
console.log('%c--------领取实物奖品\n' + '-----yd.receiveObjectPrize\n', ConsoleStyle, data)
// test code - // test code -
// let success = true // let success = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment