Commit 9299fc02 authored by AU-Pro-mac's avatar AU-Pro-mac

add new code --03

parent 4bfd7253
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -5,6 +5,18 @@ const resCanvasListCsd = { ...@@ -5,6 +5,18 @@ const resCanvasListCsd = {
url: '//yun.duiba.com.cn/spark/assets/openTexture.4558fad0aadb7003efd6b71716816a93ad181283.png', url: '//yun.duiba.com.cn/spark/assets/openTexture.4558fad0aadb7003efd6b71716816a93ad181283.png',
uuid: '63cb446e-1158-4a94-bf0c-c19ecc7d2cc6' uuid: '63cb446e-1158-4a94-bf0c-c19ecc7d2cc6'
}, },
'bdb3cbec-1af5-49e9-89ba-2c2ecd90f760': {
name: 'guangTexture',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/guangTexture.dadeebd0dd913c91d75a6bdab7810fa6a77b8b37.png',
uuid: 'bdb3cbec-1af5-49e9-89ba-2c2ecd90f760'
},
'e2adae2c-ac89-49cc-a200-8daec42da146': {
name: 'lightTexture',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/lightTexture.dae8dbc3cb6445863531557ca3b90b1b185eb995.png',
uuid: 'e2adae2c-ac89-49cc-a200-8daec42da146'
},
'334aff33-1a9e-4277-aafe-3d9f22eab3d5': { '334aff33-1a9e-4277-aafe-3d9f22eab3d5': {
name: '传送带返回', name: '传送带返回',
ext: '.png', ext: '.png',
......
...@@ -9,6 +9,8 @@ import { destroyNetData, sendTbNet, TbNetName } from "./TaoBaoNet"; ...@@ -9,6 +9,8 @@ import { destroyNetData, sendTbNet, TbNetName } from "./TaoBaoNet";
import resCanvasList_ from '../resCanvasList'; import resCanvasList_ from '../resCanvasList';
import resCanvasListCsd from '../resCanvasListCsd' import resCanvasListCsd from '../resCanvasListCsd'
const lottieTexture = require('./openAnimation/Texture.json') const lottieTexture = require('./openAnimation/Texture.json')
const lottieTextureCsd_smoke = require('./chuansongdai/lottie/smoke/smokeTexture.json')
const lottieTextureCsd_light = require('./chuansongdai/lottie/light/lightTexture.json')
import resloadingList from '../resloadingList'; import resloadingList from '../resloadingList';
import resLottieList from '../resLottieList'; import resLottieList from '../resLottieList';
// import { setStage } from "./scenes/stage"; // import { setStage } from "./scenes/stage";
...@@ -93,16 +95,45 @@ export class Main { ...@@ -93,16 +95,45 @@ export class Main {
loadImageTextures(resCanvasList) { loadImageTextures(resCanvasList) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
FYGE.GlobalLoader.loadImage((s, image) => { FYGE.GlobalLoader.loadImage(
(s, image) => {
if (s) { if (s) {
console.log('loadImageTextures')
FYGE.createTextureSheet(new FYGE.BaseTexture(image), lottieTexture); FYGE.createTextureSheet(new FYGE.BaseTexture(image), lottieTexture);
resolve('complete') resolve('complete')
} }
}, resCanvasList['63cb446e-1158-4a94-bf0c-c19ecc7d2cc6'].url) }, resCanvasList['63cb446e-1158-4a94-bf0c-c19ecc7d2cc6'].url)
// [
// resCanvasList['bdb3cbec-1af5-49e9-89ba-2c2ecd90f760'].url,
// resCanvasList['e2adae2c-ac89-49cc-a200-8daec42da146'].url
// ]
}) })
} }
loadImageTexturesCsd01(resCanvasList) {
return new Promise((resolve, reject) => {
FYGE.GlobalLoader.loadImage(
(s, image) => {
if (s) {
FYGE.createTextureSheet(new FYGE.BaseTexture(image), lottieTextureCsd_light);
resolve('complete')
}
}, resCanvasList['bdb3cbec-1af5-49e9-89ba-2c2ecd90f760'].url)
})
}
loadImageTexturesCsd02(resCanvasList) {
return new Promise((resolve, reject) => {
FYGE.GlobalLoader.loadImage(
(s, image) => {
if (s) {
FYGE.createTextureSheet(new FYGE.BaseTexture(image), lottieTextureCsd_smoke);
resolve('complete')
}
}, resCanvasList['e2adae2c-ac89-49cc-a200-8daec42da146'].url)
})
}
private async onAddToStage() { private async onAddToStage() {
//初始化层级 //初始化层级
layers.init(this.stage); layers.init(this.stage);
...@@ -122,10 +153,12 @@ export class Main { ...@@ -122,10 +153,12 @@ export class Main {
await RES.loadSparkAssets(resCanvasList) await RES.loadSparkAssets(resCanvasList)
console.log('resloadingList 加载完毕') console.log('resloadingList 加载完毕')
this.loadImageTextures(resCanvasList).then(async res => {
await this.loadImageTexturesCsd01(resCanvasList)
await this.loadImageTexturesCsd02(resCanvasList)
this.loadImageTextures(resCanvasList).then(res => { changeScene(CsdScene)
// changeScene(OpenAni) // changeScene(XxlScene)
changeScene(XxlScene)
}) })
await InitLottie.initLottieList(resLottieList); await InitLottie.initLottieList(resLottieList);
......
...@@ -2,6 +2,8 @@ import { RES } from "../../module/RES" ...@@ -2,6 +2,8 @@ import { RES } from "../../module/RES"
import resCanvasList from '../../resCanvasList' import resCanvasList from '../../resCanvasList'
import { GDispatcher, Main } from './../Main'; import { GDispatcher, Main } from './../Main';
import ScoreBoard from './game/ScoreBoard' import ScoreBoard from './game/ScoreBoard'
import { changeScene, showPanel } from "../../module/ctrls";
import { MatchingPanel } from "../com/MatchingPanel";
import GoodsContainer from './game/goodsContainer' import GoodsContainer from './game/goodsContainer'
import { Tools } from "../Tools" import { Tools } from "../Tools"
import { destroyNetData, sendTbNet, TbNetName } from "../TaoBaoNet"; import { destroyNetData, sendTbNet, TbNetName } from "../TaoBaoNet";
...@@ -26,35 +28,28 @@ export default class Root extends FYGE.Container { ...@@ -26,35 +28,28 @@ export default class Root extends FYGE.Container {
stageHeight: number stageHeight: number
// 计时器 // 计时器
timerNumer: number timerNumer: number
// 比拼的用户信息
userInfo
// 记录触摸先后坐标位置 // 记录触摸先后坐标位置
touchXEnd: number touchXEnd: number
touchYEnd: number touchYEnd: number
touchXStart: number touchXStart: number
touchYStart: number touchYStart: number
score: number = 0
time: number = 0 // 游戏时间 倒计时 时长 time: number = 0 // 游戏时间 倒计时 时长
// 比拼的用户信息 和 自己的信息
userInfo
constructor(options) { constructor(options) {
super() super()
// Main // Main
this.baseOption = options this.baseOption = options
this.time = options.gameParm.time this.time = options.gameParm.time
setTimeout(() => {
this.gameStart()
}, 1000)
this.once(FYGE.Event.ADDED_TO_STAGE, this.onAddToStage, this) this.once(FYGE.Event.ADDED_TO_STAGE, this.onAddToStage, this)
// 全局-游戏开始
GDispatcher.addEventListener('game-start', this.gameStart, this)
} }
initUi () { async initUi () {
this.backGround = new FYGE.Sprite() this.backGround = new FYGE.Sprite()
this.backGround.x = 0 this.backGround.x = 0
this.backGround.y = 0 this.backGround.y = 0
...@@ -63,11 +58,6 @@ export default class Root extends FYGE.Container { ...@@ -63,11 +58,6 @@ export default class Root extends FYGE.Container {
this.backGround.texture = RES.getRes(resCanvasList['217e095b-5c92-4c79-a8b2-a13730815d1d'].url) this.backGround.texture = RES.getRes(resCanvasList['217e095b-5c92-4c79-a8b2-a13730815d1d'].url)
this.addChild(this.backGround) this.addChild(this.backGround)
this.backBtn = Tools.getSprite(resCanvasList['334aff33-1a9e-4277-aafe-3d9f22eab3d5'].url, 0, 40 + 1624 / 2 - this.stage.viewRect.height / 2)
this.backBtn.mouseEnable = true
this.backBtn.addEventListener(FYGE.MouseEvent.MOUSE_DOWN, this.backToPage, this)
this.addChild(this.backBtn)
let leftCsd = Tools.getSprite(resCanvasList['01def08f-119f-463d-bc75-1c7ab44b55d5'].url, 0, 1160) let leftCsd = Tools.getSprite(resCanvasList['01def08f-119f-463d-bc75-1c7ab44b55d5'].url, 0, 1160)
leftCsd.width = 370 leftCsd.width = 370
leftCsd.height = 230 leftCsd.height = 230
...@@ -76,36 +66,74 @@ export default class Root extends FYGE.Container { ...@@ -76,36 +66,74 @@ export default class Root extends FYGE.Container {
this.goodsContainer = new GoodsContainer(this) this.goodsContainer = new GoodsContainer(this)
this.addChild(this.goodsContainer) this.addChild(this.goodsContainer)
this.scoreBoard = new ScoreBoard(this, this.userInfo)
this.addChild(this.scoreBoard) const userInfoRes = await sendTbNet(TbNetName.getUserInfo, {})
this.userInfo = userInfoRes.data
console.log('CSD-GAME this.userInfo:', userInfoRes.data)
showPanel(MatchingPanel, this.userInfo)
// this.gameStart()
GDispatcher.addEventListener('MatchCompelete', this.gameStart, this)
// -- 取消
// this.backBtn = Tools.getSprite(resCanvasList['334aff33-1a9e-4277-aafe-3d9f22eab3d5'].url, 0, 40 + 1624 / 2 - this.stage.viewRect.height / 2)
// this.backBtn.mouseEnable = true
// this.backBtn.addEventListener(FYGE.MouseEvent.MOUSE_DOWN, this.backToPage, this)
// this.addChild(this.backBtn)
// -- 取消
this.createTouchRect() this.createTouchRect()
setTimeout(() => {
this.gameStartFlag = true // const prizeInfoRes = sendTbNet(TbNetName.getPrizeInfo, {})
}, 1000) // this.gameStartFlag = true
} }
// 开始游戏 // 开始游戏
gameStart () { gameStart () {
this.scoreBoard = new ScoreBoard(this, this.userInfo)
this.addChild(this.scoreBoard)
this.scoreBoard.start(this.time) this.scoreBoard.start(this.time)
this.goodsContainer.startGoods() this.goodsContainer.startGoods()
GDispatcher.removeEventListener('MatchCompelete', this.gameStart, this)
this.gameStartFlag = true this.gameStartFlag = true
} }
// 结束游戏 // 结束游戏
gameOver () { async gameOver () {
let score = this.score
this.time = 60 this.time = 60
this.gameStartFlag = false this.gameStartFlag = false
if (!this.userInfo.win) this.scoreBoard.scoreRight += 3
this.goodsContainer.removeAllGoods() this.goodsContainer.removeAllGoods()
GDispatcher.dispatchEvent('gameOver-csd', {score: score}) this.scoreBoard.stopTime()
if (this.userInfo.win && this.scoreBoard.scoreLeft) {
console.log('user win')
// 用户出了结果,请求开奖,并展示相应弹窗
// const gamePrizeRes = await sendTbNet(TbNetName.getPrizeInfo, {})
// let res = gamePrizeRes.data
// console.log('CSD-GAME over data:', res)
// showPanel(MatchingPanel, res)
} else {
console.log('user fail')
// 用户出了结果,请求开奖,并展示相应弹窗
// const gamePrizeRes = await sendTbNet(TbNetName.getPrizeInfo, {})
// let res = gamePrizeRes.data
// console.log('CSD-GAME over data:', res)
// showPanel(MatchingPanel, res)
}
// GDispatcher.dispatchEvent('gameOver-csd', {score: score})
} }
// 分数变动 // 分数变动
gameScoreChange (score) { gameScoreChange (score) {
this.score += score
this.scoreBoard.updateScore(score) this.scoreBoard.updateScore(score)
} }
......
...@@ -5,7 +5,7 @@ import { Tools } from "../../Tools" ...@@ -5,7 +5,7 @@ import { Tools } from "../../Tools"
export default class Catecher extends FYGE.Container { export default class Catecher extends FYGE.Container {
_root; _root;
// 用户信息 // 用户信息
userInfo; dataInfo;
// 左用户分 // 左用户分
scoreLeft; scoreLeft;
// 右用户分 // 右用户分
...@@ -30,11 +30,12 @@ export default class Catecher extends FYGE.Container { ...@@ -30,11 +30,12 @@ export default class Catecher extends FYGE.Container {
// 文案 // 文案
text; text;
constructor (root, userInfo) {
constructor (root, dataInfo) {
super() super()
this.timerNumer = 60 this.timerNumer = 60
this.userInfo = userInfo this.dataInfo = dataInfo
this._root = root this._root = root
this.create() this.create()
} }
...@@ -45,15 +46,14 @@ export default class Catecher extends FYGE.Container { ...@@ -45,15 +46,14 @@ export default class Catecher extends FYGE.Container {
this.width = 750 this.width = 750
this.height = 220 this.height = 220
this.userBoard_left = Tools.getSprite(resCanvasList['9df91df7-fc44-4d31-9f52-88d1ff65c9ba'].url, 0, 16) this.userBoard_left = Tools.getSprite(resCanvasList['9df91df7-fc44-4d31-9f52-88d1ff65c9ba'].url, -326, 16)
this.userBoard_left.width = 326 this.userBoard_left.width = 326
this.userBoard_left.height = 158 this.userBoard_left.height = 158
this.userBoard_right = Tools.getSprite(resCanvasList['9606b410-5d79-4759-a3f6-026dbb6fad0b'].url, 424, 0) this.userBoard_right = Tools.getSprite(resCanvasList['9606b410-5d79-4759-a3f6-026dbb6fad0b'].url, 1076, 0)
this.userBoard_right.width = 326 this.userBoard_right.width = 326
this.userBoard_right.height = 158 this.userBoard_right.height = 158
this.addChild(this.userBoard_left)
this.addChild(this.userBoard_right)
this.userBoard_right.alpha = this.userBoard_left.alpha = 0.2
this.timeText = Tools.getText(this.timerNumer + 'S', 50, '#904f5e', FYGE.TEXT_ALIGN.CENTER) this.timeText = Tools.getText(this.timerNumer + 'S', 50, '#904f5e', FYGE.TEXT_ALIGN.CENTER)
this.timeText.textWidth = 750 this.timeText.textWidth = 750
...@@ -72,16 +72,26 @@ export default class Catecher extends FYGE.Container { ...@@ -72,16 +72,26 @@ export default class Catecher extends FYGE.Container {
this.addChild(this.text) this.addChild(this.text)
this.userAvatar_left = this.createAvatar('left', '//yun.duiba.com.cn/spark/assets/炸弹.67df66e9cf5e166c8cf6d340886ef094a84954c9.png') this.userAvatar_left = this.createAvatar('left', this.dataInfo.userImgUrl)
this.userAvatar_right = this.createAvatar('right', '//yun.duiba.com.cn/spark/assets/炸弹.67df66e9cf5e166c8cf6d340886ef094a84954c9.png') this.userAvatar_right = this.createAvatar('right', this.dataInfo.fakeUserImgUrl)
this.addChild(this.userAvatar_left) this.userBoard_left.addChild(this.userAvatar_left)
this.addChild(this.userAvatar_right) this.userBoard_right.addChild(this.userAvatar_right)
this.userScore_left = this.createScore('left') this.userScore_left = this.createScore('left')
this.userScore_right = this.createScore('right') this.userScore_right = this.createScore('right')
this.addChild(this.userScore_left) this.userBoard_left.addChild(this.userScore_left)
this.addChild(this.userScore_right) this.userBoard_right.addChild(this.userScore_right)
this.addChild(this.userBoard_left)
this.addChild(this.userBoard_right)
FYGE.Tween.get(this.userBoard_left)
.to({ x: 0, alpha: 1 }, 100)
FYGE.Tween.get(this.userBoard_right)
.to({ x: 424, alpha: 1 }, 100)
} }
// 销毁 事件和循环 // 销毁 事件和循环
...@@ -90,11 +100,66 @@ export default class Catecher extends FYGE.Container { ...@@ -90,11 +100,66 @@ export default class Catecher extends FYGE.Container {
this.timerFunc = null this.timerFunc = null
} }
// 分数更新
updateScore(score) { updateScore(score) {
this.scoreLeft += score let scoreNow = score + this.scoreLeft
// 胜
if (this.dataInfo.win) {
// 加分
if (scoreNow > this.scoreLeft) {
// 分数大于 3
if (scoreNow !== 0 && scoreNow > 3) {
console.log(scoreNow - this.scoreLeft)
// 随机 加 3分 或 1分
if (scoreNow - this.scoreLeft >= 3) {
if (scoreNow - this.scoreRight <= 30) {
if (this.sum(1, 100) >= 25) { this.scoreRight += (this.sum(1, 100) >= 30 ? 3 : 1) }
} else {
this.scoreRight += 3
}
}
}
this.scoreLeft = scoreNow
// 减分
} else {
// 用户减分
if (scoreNow <= 0) this.scoreLeft = 0
else this.scoreLeft = scoreNow
if (this.scoreRight <= 4) this.scoreRight = 0
else this.scoreRight -= 3
}
// 负
} else {
// 加分
if (scoreNow > this.scoreLeft) {
this.scoreLeft = scoreNow
if (this.scoreRight - scoreNow <= 30) this.scoreRight += (this.sum(1, 100) >= 50 ? 4 : 3)
// 减分
} else {
if (scoreNow <= 0) this.scoreLeft = 0
else this.scoreLeft = scoreNow
// 随机减分
if (this.sum(1, 100) >= 50) {
this.scoreRight -= (this.sum(1, 100) >= 10 ? 1 : 0)
}
}
}
this.userScore_left.updateScore(this.scoreLeft) this.userScore_left.updateScore(this.scoreLeft)
this.userScore_right.updateScore(this.scoreRight)
} }
stopTime () {
clearInterval(this.timerFunc)
this.timerFunc = null
}
start (time) { start (time) {
this.scoreLeft = 0 this.scoreLeft = 0
...@@ -136,9 +201,9 @@ export default class Catecher extends FYGE.Container { ...@@ -136,9 +201,9 @@ export default class Catecher extends FYGE.Container {
} }
if (type === 'left') { if (type === 'left') {
t.x = 170 t.x = 170
t.y = 108 t.y = 92
} else if (type === 'right') { } else if (type === 'right') {
t.x = 470 t.x = 30
t.y = 92 t.y = 92
} }
t.addChild(text) t.addChild(text)
...@@ -149,7 +214,7 @@ export default class Catecher extends FYGE.Container { ...@@ -149,7 +214,7 @@ export default class Catecher extends FYGE.Container {
let c = new FYGE.Container() let c = new FYGE.Container()
c.width = 120 c.width = 120
c.height = 120 c.height = 120
let a = Tools.getCircle(60, 0xffe2eb, 1, 60, 60) let a = Tools.getCircle(60, 0x000000, 1, 60, 60)
let p = Tools.getSprite(avatar, 0, 0) let p = Tools.getSprite(avatar, 0, 0)
p.width = 120 p.width = 120
p.height = 120 p.height = 120
...@@ -160,13 +225,19 @@ export default class Catecher extends FYGE.Container { ...@@ -160,13 +225,19 @@ export default class Catecher extends FYGE.Container {
if (type === 'left') { if (type === 'left') {
c.x = 26 c.x = 26
c.y = 28 c.y = 12
} else if (type === 'right') { } else if (type === 'right') {
c.x = 604 c.x = 180
c.y = 12 c.y = 12
} }
return c return c
} }
// 取 随机数
sum = (m: number, n: number) => {
var num = Math.floor(Math.random() * (m - n) + n)
return num
}
} }
\ No newline at end of file
import { RES } from "../../../module/RES" import { RES } from "../../../module/RES"
import resCanvasList from '../../../resCanvasList' import resCanvasList from '../../../resCanvasList'
import { Tools } from "../../Tools" import { Tools } from "../../Tools"
import { light } from '../lottie/light/light'
import { smoke } from '../lottie/smoke/smoke'
// import { getStage } from '../../scenes/stage' // import { getStage } from '../../scenes/stage'
export default class GoodsContainer extends FYGE.Container { export default class GoodsContainer extends FYGE.Container {
...@@ -44,12 +46,12 @@ export default class GoodsContainer extends FYGE.Container { ...@@ -44,12 +46,12 @@ export default class GoodsContainer extends FYGE.Container {
this._root = root this._root = root
this.goodsDeepIndex = 1000 this.goodsDeepIndex = 1000
this.goodsTextures = [ this.goodsTextures = [
{ texture: resCanvasList['d1379fca-f21e-40f0-b0f0-06c188d4b4dc'].url, score: 2, dir: 'left', wrong: -2, width: 92, height: 220, aX: -4 }, { texture: resCanvasList['d1379fca-f21e-40f0-b0f0-06c188d4b4dc'].url, score: 3, dir: 'left', wrong: -2, width: 92, height: 220, aX: -4, lot: 'light' },
{ texture: resCanvasList['0bd734c1-9c1a-428e-8a9c-cef373baed9d'].url, score: 5, dir: 'left', wrong: -2, width: 102, height: 224, aX: -2 }, { texture: resCanvasList['0bd734c1-9c1a-428e-8a9c-cef373baed9d'].url, score: 3, dir: 'left', wrong: -2, width: 102, height: 224, aX: -2, lot: 'light' },
{ texture: resCanvasList['f455b42a-0e67-43d8-b7c5-520760160631'].url, score: 1, dir: 'right', wrong: 'endGame', width: 122, height: 120, aX: -12 }, { texture: resCanvasList['f455b42a-0e67-43d8-b7c5-520760160631'].url, score: 1, dir: 'right', wrong: 'endGame', width: 122, height: 120, aX: -12, lot: 'smoke' },
{ texture: resCanvasList['9e512c7f-88e2-4b85-a2f0-afd2062247e1'].url, score: 4, dir: 'left', wrong: -2, width: 126, height: 141, aX: 0 }, { texture: resCanvasList['9e512c7f-88e2-4b85-a2f0-afd2062247e1'].url, score: 3, dir: 'left', wrong: -2, width: 126, height: 141, aX: 0, lot: 'light' },
{ texture: resCanvasList['30ac266d-0388-4659-9c3e-e741f3c671c7'].url, score: 3, dir: 'left', wrong: -2, width: 80, height: 206, aX: 0 }, { texture: resCanvasList['30ac266d-0388-4659-9c3e-e741f3c671c7'].url, score: 3, dir: 'left', wrong: -2, width: 80, height: 206, aX: 0, lot: 'light' },
{ texture: resCanvasList['f455b42a-0e67-43d8-b7c5-520760160631'].url, score: 1, dir: 'right', wrong: 'endGame', width: 123, height: 120, aX: -12 } { texture: resCanvasList['f455b42a-0e67-43d8-b7c5-520760160631'].url, score: 1, dir: 'right', wrong: 'endGame', width: 123, height: 120, aX: -12, lot: 'smoke' }
] ]
this.create() this.create()
} }
...@@ -118,14 +120,36 @@ export default class GoodsContainer extends FYGE.Container { ...@@ -118,14 +120,36 @@ export default class GoodsContainer extends FYGE.Container {
if (g.wrong === 'endGame') { if (g.wrong === 'endGame') {
g.turnDirection(direction, 'gameOver') g.turnDirection(direction, 'gameOver')
} else { } else {
this._root.gameScoreChange(g.score) this._root.gameScoreChange(g.wrong)
this.floatScore(direction, g.wrong)
} }
} else { } else {
this._root.gameScoreChange(g.score) this._root.gameScoreChange(g.score)
this.floatScore(direction, g.score)
} }
} }
} }
floatScore(dir, s) {
s = s > 0 ? '+' + s : s
let sc = Tools.getText(s, 80, '#904f5e', FYGE.TEXT_ALIGN.CENTER)
sc.textWidth = 140
sc.textHeight = 100
sc.y = 360
if (dir === 'left') sc.x = 40
if (dir === 'right') sc.x = 600
sc.alpha = 1
sc.verticalAlign = FYGE.VERTICAL_ALIGN.MIDDLE
this.addChild(sc)
FYGE.Tween.get(sc, null, null)
.to({alpha: .62, y: 200}, 400)
.to({alpha: 0}, 200)
.call(() => {
this.removeChild(sc)
})
}
// 销毁 事件和循环 // 销毁 事件和循环
destroy () { destroy () {
this.removeEventListener( this.removeEventListener(
...@@ -179,6 +203,7 @@ export default class GoodsContainer extends FYGE.Container { ...@@ -179,6 +203,7 @@ export default class GoodsContainer extends FYGE.Container {
g['turn'] = false g['turn'] = false
g['into'] = false g['into'] = false
g['speed'] = this.speed + 0.06 g['speed'] = this.speed + 0.06
g['lot'] = arr[idx].lot
g['turnDirection'] = (direction, cb = '') => { g['turnDirection'] = (direction, cb = '') => {
if (direction === 'left') { if (direction === 'left') {
// this.goodsArr.splice(index, 1) // this.goodsArr.splice(index, 1)
...@@ -189,9 +214,12 @@ export default class GoodsContainer extends FYGE.Container { ...@@ -189,9 +214,12 @@ export default class GoodsContainer extends FYGE.Container {
y: 620, y: 620,
alpha: .75 alpha: .75
}, 200) }, 200)
.call(() => {
g['lottiePlay']()
})
.to({ .to({
alpha: 0 alpha: 0
}, 580) }, 750)
.call(() => { .call(() => {
if (cb === 'gameOver') { if (cb === 'gameOver') {
this.removeAllGoods() this.removeAllGoods()
...@@ -208,9 +236,12 @@ export default class GoodsContainer extends FYGE.Container { ...@@ -208,9 +236,12 @@ export default class GoodsContainer extends FYGE.Container {
y: 620, y: 620,
alpha: .75 alpha: .75
}, 200) }, 200)
.call(() => {
g['lottiePlay']()
})
.to({ .to({
alpha: 0 alpha: 0
}, 580) }, 750)
.call(() => { .call(() => {
if (cb === 'gameOver') { if (cb === 'gameOver') {
this.removeAllGoods() this.removeAllGoods()
...@@ -219,6 +250,23 @@ export default class GoodsContainer extends FYGE.Container { ...@@ -219,6 +250,23 @@ export default class GoodsContainer extends FYGE.Container {
}) })
} }
} }
g['lottiePlay'] = () => {
let gl
if (g['lot'] === 'light') {
gl = new FYGE.Lottie(light)
gl.x = -144
gl.y = -150
gl.scaleX = gl.scaleY = 0.88
}
else if (g['lot'] === 'smoke') {
gl = new FYGE.Lottie(smoke)
gl.x = -115
gl.y = -145
gl.width = gl.height = 460
}
gt.addChildAt(gl, 1)
gl.play(1)
}
g['fadeOut'] = (index) => { g['fadeOut'] = (index) => {
FYGE.Tween.removeTweens(g) FYGE.Tween.removeTweens(g)
FYGE.Tween.get(g, null, null) FYGE.Tween.get(g, null, null)
......
export const light = {
"v": "5.6.10",
"fr": 30,
"ip": 0,
"op": 21,
"w": 500,
"h": 500,
"nm": "guang_1",
"layers": [
{
"ind": 1,
"ty": 2,
"nm": "光效_00020.png",
"refId": "0314ae41-70f8-4a0e-8dcd-225ea49ae56f",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 20,
"op": 21
},
{
"ind": 2,
"ty": 2,
"nm": "光效_00019.png",
"refId": "27c0770b-5433-428b-88e6-ce4582a735aa",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 19,
"op": 20
},
{
"ind": 3,
"ty": 2,
"nm": "光效_00018.png",
"refId": "22c8aa28-cb3d-4bf2-b4f4-033a30dda40e",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 18,
"op": 19
},
{
"ind": 4,
"ty": 2,
"nm": "光效_00017.png",
"refId": "bae8d555-8423-4b88-9ff4-57e229d71905",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 17,
"op": 18
},
{
"ind": 5,
"ty": 2,
"nm": "光效_00016.png",
"refId": "e983d6d6-7272-4037-bfe3-63fd3a510a67",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 16,
"op": 17
},
{
"ind": 6,
"ty": 2,
"nm": "光效_00015.png",
"refId": "9da48128-2e5c-410d-9feb-482395e1194d",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 15,
"op": 16
},
{
"ind": 7,
"ty": 2,
"nm": "光效_00014.png",
"refId": "b9c519c1-0dbb-420e-96cd-ad9b1714fbd8",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 14,
"op": 15
},
{
"ind": 8,
"ty": 2,
"nm": "光效_00013.png",
"refId": "9f2a3165-fdd9-401e-a90d-f787c305dec9",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 13,
"op": 14
},
{
"ind": 9,
"ty": 2,
"nm": "光效_00012.png",
"refId": "93686883-3e25-45ae-82a4-f1f44102e21b",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 12,
"op": 13
},
{
"ind": 10,
"ty": 2,
"nm": "光效_00011.png",
"refId": "5b12df5c-e51e-44be-b51a-596d922e9af5",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 11,
"op": 12
},
{
"ind": 11,
"ty": 2,
"nm": "光效_00010.png",
"refId": "b1f05b66-3ec0-47c9-bb11-ff42172a6197",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 10,
"op": 11
},
{
"ind": 12,
"ty": 2,
"nm": "光效_00009.png",
"refId": "2eb60cc0-aa7c-4b2d-9252-48d384e7d2ec",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 9,
"op": 10
},
{
"ind": 13,
"ty": 2,
"nm": "光效_00008.png",
"refId": "ee3e61d7-672f-494b-80c8-569f5a48acfa",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 8,
"op": 9
},
{
"ind": 14,
"ty": 2,
"nm": "光效_00007.png",
"refId": "0f1783bd-21db-458c-ba71-8c22b7f13082",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 7,
"op": 8
},
{
"ind": 15,
"ty": 2,
"nm": "光效_00006.png",
"refId": "018e019e-ea1a-47d5-b8fe-af043909cd69",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 6,
"op": 7
},
{
"ind": 16,
"ty": 2,
"nm": "光效_00005.png",
"refId": "49a3a0dd-5f6d-410b-95d2-afe3a5afc897",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 5,
"op": 6
},
{
"ind": 17,
"ty": 2,
"nm": "光效_00004.png",
"refId": "2a2620b2-db19-4dae-a5ff-ea5e2f8818be",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 4,
"op": 5
},
{
"ind": 18,
"ty": 2,
"nm": "光效_00003.png",
"refId": "e5d45b30-3bcc-46ef-b934-989d42f1203a",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 3,
"op": 4
},
{
"ind": 19,
"ty": 2,
"nm": "光效_00001.png",
"refId": "d35b7183-9dfe-4cc0-9946-2be26f9633b1",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 2,
"op": 3
},
{
"ind": 20,
"ty": 2,
"nm": "光效_00002.png",
"refId": "f9af07e5-3885-4226-aab1-fd84ff08ef97",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 1,
"op": 2
},
{
"ind": 21,
"ty": 2,
"nm": "光效_00000.png",
"refId": "450f058c-5ade-4761-91f7-69b920d16875",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 1
}
],
"markers": []
}
\ No newline at end of file
{
"5b12df5c-e51e-44be-b51a-596d922e9af5.png": {
"x": 2,
"y": 2,
"w": 333,
"h": 334,
"ox": 84,
"oy": 83,
"sw": 500,
"sh": 500,
"ro": false
},
"93686883-3e25-45ae-82a4-f1f44102e21b.png": {
"x": 337,
"y": 2,
"w": 331,
"h": 330,
"ox": 85,
"oy": 85,
"sw": 500,
"sh": 500,
"ro": true
},
"b1f05b66-3ec0-47c9-bb11-ff42172a6197.png": {
"x": 669,
"y": 2,
"w": 331,
"h": 330,
"ox": 85,
"oy": 85,
"sw": 500,
"sh": 500,
"ro": false
},
"2eb60cc0-aa7c-4b2d-9252-48d384e7d2ec.png": {
"x": 669,
"y": 334,
"w": 325,
"h": 324,
"ox": 88,
"oy": 88,
"sw": 500,
"sh": 500,
"ro": false
},
"9f2a3165-fdd9-401e-a90d-f787c305dec9.png": {
"x": 337,
"y": 335,
"w": 322,
"h": 324,
"ox": 89,
"oy": 88,
"sw": 500,
"sh": 500,
"ro": true
},
"ee3e61d7-672f-494b-80c8-569f5a48acfa.png": {
"x": 2,
"y": 338,
"w": 314,
"h": 314,
"ox": 93,
"oy": 93,
"sw": 500,
"sh": 500,
"ro": false
},
"0314ae41-70f8-4a0e-8dcd-225ea49ae56f.png": {
"x": 2,
"y": 654,
"w": 310,
"h": 310,
"ox": 95,
"oy": 95,
"sw": 500,
"sh": 500,
"ro": false
},
"27c0770b-5433-428b-88e6-ce4582a735aa.png": {
"x": 314,
"y": 659,
"w": 310,
"h": 310,
"ox": 95,
"oy": 95,
"sw": 500,
"sh": 500,
"ro": false
},
"22c8aa28-cb3d-4bf2-b4f4-033a30dda40e.png": {
"x": 626,
"y": 660,
"w": 309,
"h": 308,
"ox": 96,
"oy": 96,
"sw": 500,
"sh": 500,
"ro": true
},
"bae8d555-8423-4b88-9ff4-57e229d71905.png": {
"x": 936,
"y": 660,
"w": 309,
"h": 308,
"ox": 96,
"oy": 96,
"sw": 500,
"sh": 500,
"ro": true
},
"e983d6d6-7272-4037-bfe3-63fd3a510a67.png": {
"x": 996,
"y": 334,
"w": 305,
"h": 304,
"ox": 98,
"oy": 98,
"sw": 500,
"sh": 500,
"ro": true
},
"9da48128-2e5c-410d-9feb-482395e1194d.png": {
"x": 1002,
"y": 2,
"w": 303,
"h": 302,
"ox": 99,
"oy": 99,
"sw": 500,
"sh": 500,
"ro": true
},
"0f1783bd-21db-458c-ba71-8c22b7f13082.png": {
"x": 1246,
"y": 641,
"w": 302,
"h": 302,
"ox": 99,
"oy": 99,
"sw": 500,
"sh": 500,
"ro": false
},
"b9c519c1-0dbb-420e-96cd-ad9b1714fbd8.png": {
"x": 1302,
"y": 307,
"w": 299,
"h": 298,
"ox": 101,
"oy": 101,
"sw": 500,
"sh": 500,
"ro": true
},
"018e019e-ea1a-47d5-b8fe-af043909cd69.png": {
"x": 1306,
"y": 2,
"w": 286,
"h": 284,
"ox": 107,
"oy": 108,
"sw": 500,
"sh": 500,
"ro": true
},
"49a3a0dd-5f6d-410b-95d2-afe3a5afc897.png": {
"x": 1592,
"y": 2,
"w": 267,
"h": 264,
"ox": 117,
"oy": 118,
"sw": 500,
"sh": 500,
"ro": true
},
"2a2620b2-db19-4dae-a5ff-ea5e2f8818be.png": {
"x": 1550,
"y": 608,
"w": 243,
"h": 242,
"ox": 129,
"oy": 129,
"sw": 500,
"sh": 500,
"ro": true
},
"e5d45b30-3bcc-46ef-b934-989d42f1203a.png": {
"x": 1794,
"y": 271,
"w": 214,
"h": 214,
"ox": 143,
"oy": 143,
"sw": 500,
"sh": 500,
"ro": false
},
"f9af07e5-3885-4226-aab1-fd84ff08ef97.png": {
"x": 1858,
"y": 2,
"w": 180,
"h": 178,
"ox": 160,
"oy": 161,
"sw": 500,
"sh": 500,
"ro": false
},
"d35b7183-9dfe-4cc0-9946-2be26f9633b1.png": {
"x": 1550,
"y": 853,
"w": 127,
"h": 124,
"ox": 187,
"oy": 188,
"sw": 500,
"sh": 500,
"ro": true
},
"450f058c-5ade-4761-91f7-69b920d16875.png": {
"x": 314,
"y": 654,
"w": 1,
"h": 1,
"ox": 0,
"oy": 0,
"sw": 500,
"sh": 500,
"ro": false
}
}
\ No newline at end of file
export const smoke = {
"v": "5.6.10",
"fr": 30,
"ip": 0,
"op": 17,
"w": 500,
"h": 500,
"nm": "光效",
"layers": [
{
"ind": 1,
"ty": 2,
"nm": "光效_00000.png",
"refId": "7909f194-4ba2-452c-9402-aeca2df585ce",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 1
},
{
"ind": 2,
"ty": 2,
"nm": "光效_00001.png",
"refId": "9e59d392-9c37-4355-b00e-3568010c3add",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 1,
"op": 2
},
{
"ind": 3,
"ty": 2,
"nm": "光效_00002.png",
"refId": "8488d536-9e46-44da-919e-e89a5af1eb7a",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 2,
"op": 3
},
{
"ind": 4,
"ty": 2,
"nm": "光效_00003.png",
"refId": "953374da-816d-4ed6-8bac-1c04567db072",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 3,
"op": 4
},
{
"ind": 5,
"ty": 2,
"nm": "光效_00004.png",
"refId": "053667d9-2ed2-4904-b301-b2f5de0efdae",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 4,
"op": 5
},
{
"ind": 6,
"ty": 2,
"nm": "光效_00005.png",
"refId": "162c3be4-336c-49ca-8379-7fdf4a10e23e",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 5,
"op": 6
},
{
"ind": 7,
"ty": 2,
"nm": "光效_00006.png",
"refId": "b1e882e1-f38e-4763-a57c-46391416f424",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 6,
"op": 7
},
{
"ind": 8,
"ty": 2,
"nm": "光效_00007.png",
"refId": "9f286912-00c4-4223-bc30-cfbe5b71ca34",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 7,
"op": 8
},
{
"ind": 9,
"ty": 2,
"nm": "光效_00008.png",
"refId": "b6183a46-9d87-4cff-9a23-835afd98c530",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 8,
"op": 9
},
{
"ind": 10,
"ty": 2,
"nm": "光效_00009.png",
"refId": "2e47ed27-0a53-4e63-93f0-21240e564dd3",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 9,
"op": 10
},
{
"ind": 11,
"ty": 2,
"nm": "光效_00010.png",
"refId": "29261a22-d781-49c8-b831-84778bcdb16d",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 10,
"op": 11
},
{
"ind": 12,
"ty": 2,
"nm": "光效_00011.png",
"refId": "473d3eba-50a8-44ae-a077-9869f42d2c4c",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 11,
"op": 12
},
{
"ind": 13,
"ty": 2,
"nm": "光效_00012.png",
"refId": "6b15e867-5f62-4263-b614-6ca0f212afb6",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 12,
"op": 13
},
{
"ind": 14,
"ty": 2,
"nm": "光效_00013.png",
"refId": "4ddeed91-efcc-4e9f-9535-b47bf9cc8cc7",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 13,
"op": 14
},
{
"ind": 15,
"ty": 2,
"nm": "光效_00014.png",
"refId": "815ec047-0668-48fc-9299-5330683cebe8",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 14,
"op": 15
},
{
"ind": 16,
"ty": 2,
"nm": "光效_00015.png",
"refId": "80ce130d-d032-49b7-b5ad-f7bdb675fbb4",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 15,
"op": 16
},
{
"ind": 17,
"ty": 2,
"nm": "光效_00016.png",
"refId": "3aa8de78-0759-4c6d-b73c-50960aaff81b",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
250,
250,
0
]
},
"a": {
"a": 0,
"k": [
250,
250,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 16,
"op": 17
}
],
"markers": []
}
\ No newline at end of file
{
"3aa8de78-0759-4c6d-b73c-50960aaff81b.png": {
"x": 2,
"y": 2,
"w": 271,
"h": 247,
"ox": 106,
"oy": 134,
"sw": 500,
"sh": 500,
"ro": false
},
"4ddeed91-efcc-4e9f-9535-b47bf9cc8cc7.png": {
"x": 2,
"y": 251,
"w": 270,
"h": 262,
"ox": 107,
"oy": 125,
"sw": 500,
"sh": 500,
"ro": false
},
"80ce130d-d032-49b7-b5ad-f7bdb675fbb4.png": {
"x": 2,
"y": 515,
"w": 270,
"h": 260,
"ox": 106,
"oy": 128,
"sw": 500,
"sh": 500,
"ro": true
},
"815ec047-0668-48fc-9299-5330683cebe8.png": {
"x": 264,
"y": 515,
"w": 270,
"h": 263,
"ox": 106,
"oy": 124,
"sw": 500,
"sh": 500,
"ro": true
},
"473d3eba-50a8-44ae-a077-9869f42d2c4c.png": {
"x": 274,
"y": 251,
"w": 269,
"h": 259,
"ox": 108,
"oy": 127,
"sw": 500,
"sh": 500,
"ro": false
},
"6b15e867-5f62-4263-b614-6ca0f212afb6.png": {
"x": 545,
"y": 2,
"w": 269,
"h": 260,
"ox": 108,
"oy": 126,
"sw": 500,
"sh": 500,
"ro": false
},
"29261a22-d781-49c8-b831-84778bcdb16d.png": {
"x": 545,
"y": 264,
"w": 266,
"h": 257,
"ox": 109,
"oy": 128,
"sw": 500,
"sh": 500,
"ro": false
},
"2e47ed27-0a53-4e63-93f0-21240e564dd3.png": {
"x": 529,
"y": 523,
"w": 262,
"h": 253,
"ox": 111,
"oy": 130,
"sw": 500,
"sh": 500,
"ro": false
},
"b6183a46-9d87-4cff-9a23-835afd98c530.png": {
"x": 793,
"y": 523,
"w": 259,
"h": 251,
"ox": 112,
"oy": 131,
"sw": 500,
"sh": 500,
"ro": true
},
"9f286912-00c4-4223-bc30-cfbe5b71ca34.png": {
"x": 275,
"y": 2,
"w": 254,
"h": 246,
"ox": 115,
"oy": 134,
"sw": 500,
"sh": 500,
"ro": false
},
"b1e882e1-f38e-4763-a57c-46391416f424.png": {
"x": 529,
"y": 778,
"w": 251,
"h": 242,
"ox": 117,
"oy": 136,
"sw": 500,
"sh": 500,
"ro": false
},
"162c3be4-336c-49ca-8379-7fdf4a10e23e.png": {
"x": 2,
"y": 787,
"w": 231,
"h": 220,
"ox": 125,
"oy": 146,
"sw": 500,
"sh": 500,
"ro": true
},
"053667d9-2ed2-4904-b301-b2f5de0efdae.png": {
"x": 224,
"y": 787,
"w": 209,
"h": 198,
"ox": 133,
"oy": 161,
"sw": 500,
"sh": 500,
"ro": true
},
"953374da-816d-4ed6-8bac-1c04567db072.png": {
"x": 782,
"y": 784,
"w": 191,
"h": 178,
"ox": 140,
"oy": 171,
"sw": 500,
"sh": 500,
"ro": true
},
"8488d536-9e46-44da-919e-e89a5af1eb7a.png": {
"x": 424,
"y": 787,
"w": 117,
"h": 95,
"ox": 171,
"oy": 210,
"sw": 500,
"sh": 500,
"ro": true
},
"9e59d392-9c37-4355-b00e-3568010c3add.png": {
"x": 424,
"y": 906,
"w": 67,
"h": 52,
"ox": 203,
"oy": 234,
"sw": 500,
"sh": 500,
"ro": false
},
"7909f194-4ba2-452c-9402-aeca2df585ce.png": {
"x": 224,
"y": 998,
"w": 24,
"h": 22,
"ox": 224,
"oy": 249,
"sw": 500,
"sh": 500,
"ro": true
}
}
\ No newline at end of file
...@@ -41,7 +41,7 @@ App({ ...@@ -41,7 +41,7 @@ App({
*/ */
handleQuery(query) { handleQuery(query) {
const { activityId } = query; const { activityId } = query;
this.activityId = activityId || '5f7294e28e6a08456786b14e'; this.activityId = activityId || '5f73f1b09da6718132be23d1';
} }
}); });
...@@ -14,7 +14,13 @@ ...@@ -14,7 +14,13 @@
<image class="mission_icon" src="{{item.iconUrl}}" /> <image class="mission_icon" src="{{item.iconUrl}}" />
<view class="mission_content"> <view class="mission_content">
<view class="mission_title">{{item.taskNameActiv}}</view> <view class="mission_title">{{item.taskNameActiv}}</view>
<view class="mission_describe">乐园门票 <text class="mission_describe_hightlight">+{{item.rewards}}</text></view>
<view a:if="{{item.type === 'moneyGoods'}}" class="">每支付1笔定金乐园门票<text class="mission_describe_hightlight">+{{item.rewards}}</text></view>
<view a:if="{{item.type === 'invites'}}" class="">每邀请1名好友入会乐园门票<text class="mission_describe_hightlight">+{{item.rewards}}</text></view>
<view a:if="{{item.type === 'orderGoods'}}" class="">每完成1笔下单乐园门票<text class="mission_describe_hightlight">+{{item.rewards}}</text></view>
<view a:if="{{item.type === 'moneyGoods' && item.type !== 'invites' && item.type !== 'orderGoods'}}"
class="mission_describe">乐园门票<text class="mission_describe_hightlight">+{{item.rewards}}</text></view>
</view> </view>
<view class="mission_btn {{ item.status === 1 ? 'mission_btn_active' : '' }}" <view class="mission_btn {{ item.status === 1 ? 'mission_btn_active' : '' }}"
data-type="{{item.taskType}}" data-status="{{item.status}}" data-itemIds="{{item.itemIds}}" data-info="{{item}}" onTap="doTaskByType"> data-type="{{item.taskType}}" data-status="{{item.status}}" data-itemIds="{{item.itemIds}}" data-info="{{item}}" onTap="doTaskByType">
......
.commonT1-modal { .commonT1-modal_T1 {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
z-index: 20; z-index: 20;
} }
.commonT1-modal__shade { .commonT1-modal__shade_T1 {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
background-color: rgba(0, 0, 0, 0.75); background-color: rgba(0, 0, 0, 0.75);
} }
.jiang_li_dan_chuang { .jiang_li_dan_chuang_T1 {
width: 500rpx; width: 500rpx;
height: 523rpx; height: 523rpx;
opacity: 1; opacity: 1;
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
position: absolute; position: absolute;
} }
.dan_chuang_bei_jing2 { .dan_chuang_bei_jing2_T1 {
width: 100%; width: 100%;
height: 100%; height: 100%;
opacity: 1; opacity: 1;
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
left: 0; left: 0;
position: absolute; position: absolute;
} }
.qu_chou_jiang { .qu_chou_jiang_T1 {
width: 209rpx; width: 209rpx;
height: 88rpx; height: 88rpx;
opacity: 1; opacity: 1;
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
bottom: 36rpx; bottom: 36rpx;
position: absolute; position: absolute;
} }
.ji_xu_guan_kan { .ji_xu_guan_kan_T1 {
width: 209rpx; width: 209rpx;
height: 88rpx; height: 88rpx;
opacity: 1; opacity: 1;
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
bottom: 36rpx; bottom: 36rpx;
position: absolute; position: absolute;
} }
.kan_shi_pin_jiang_li { .kan_shi_pin_jiang_li_T1 {
width: 100%; width: 100%;
height: 56rpx; height: 56rpx;
line-height: 56rpx; line-height: 56rpx;
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
-webkit-background-clip: text; -webkit-background-clip: text;
font-weight: 700; font-weight: 700;
} }
.huo_de_ya_dun_bi { .huo_de_ya_dun_bi_T1 {
width: 100%; width: 100%;
height: 32rpx; height: 32rpx;
line-height: 42rpx; line-height: 42rpx;
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
color: rgba(200, 82, 73, 1); color: rgba(200, 82, 73, 1);
font-weight: 500; font-weight: 500;
} }
.tu_ceng40 { .tu_ceng40_T1 {
width: 100%; width: 100%;
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
font-weight: 500; font-weight: 500;
} }
.commonT1_btn { .commonT1_btn_T1 {
width: 300rpx; width: 300rpx;
height: 88rpx; height: 88rpx;
position: absolute; position: absolute;
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
left: 100rpx; left: 100rpx;
} }
.an_niu_guan_bi_dan_chuang_kao_bei23 { .an_niu_guan_bi_dan_chuang_kao_bei23_T1 {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
opacity: 0.5; opacity: 0.5;
......
<view class="commonT1-modal"> <view class="commonT1-modal_T1">
<view class="commonT1-modal__shade modal-animate-fade-in"> <view class="commonT1-modal__shade_T1 modal-animate-fade-in_T1">
<view class="jiang_li_dan_chuang"> <view class="jiang_li_dan_chuang_T1">
<image class="dan_chuang_bei_jing2" src="{{resList['7203516e-8791-4974-955e-c8a044e16c80'].url}}"/> <image class="dan_chuang_bei_jing2_T1" src="{{resList['7203516e-8791-4974-955e-c8a044e16c80'].url}}"/>
<text class="kan_shi_pin_jiang_li">{{title}}</text> <text class="kan_shi_pin_jiang_li_T1">{{title}}</text>
<view class="flex_content"> <view class="flex_content_T1">
<view class="huo_de_ya_dun_bi"> <view class="huo_de_ya_dun_bi_T1">
<text decode="{{true}}">{{content}}</text> <text decode="{{true}}">{{content}}</text>
</view> </view>
</view> </view>
<image class="commonT1_btn" src="{{btnImg}}" mode="aspectFill" onTap="onModalConfirm"/> <image class="commonT1_btn_T1" src="{{btnImg}}" mode="aspectFill" onTap="onModalConfirm"/>
<image <image
class="an_niu_guan_bi_dan_chuang_kao_bei23" onTap="onModalClose" class="an_niu_guan_bi_dan_chuang_kao_bei23_T1" onTap="onModalClose"
src="{{resList['4abc8bb6-5779-49ad-84b4-b4ade4f51fcb'].url}}" src="{{resList['4abc8bb6-5779-49ad-84b4-b4ade4f51fcb'].url}}"
/> />
</view> </view>
......
.homepage_wrapper { .transMask-end {
width: 100%;
height: 100%;
top: 0; top: 0;
left: 0rpx; left: 0;
right: 0;
bottom: 0;
position: fixed;
z-index: 98;
}
.transMask-noStart {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: fixed;
z-index: 100;
}
.noStartToast {
width: 300rpx;
height: 68rpx;
line-height: 68rpx;
text-align: center;
font-size: 28rpx;
color: white;
position: absolute; position: absolute;
top: calc(50% - 34rpx);
left: calc(50% - 150rpx);
z-index: 101;
background-color: rgba(0,0,0,5);
border-radius: 6rpx;
}
.homepage_wrapper {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: fixed;
z-index: 2; z-index: 2;
background: white; background: pink;
} }
.homepage_animation { .homepage_animation {
...@@ -66,6 +99,7 @@ ...@@ -66,6 +99,7 @@
justify-content: space-between; justify-content: space-between;
display: flex; display: flex;
position: absolute; position: absolute;
z-index: 99;
} }
.head_ruler { .head_ruler {
width: 141rpx; width: 141rpx;
...@@ -211,7 +245,7 @@ ...@@ -211,7 +245,7 @@
.video_wrapper{ .video_wrapper{
position: absolute; position: absolute;
z-index: 30; z-index: 119;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
...@@ -238,18 +272,18 @@ ...@@ -238,18 +272,18 @@
} }
.video_hide { .video_hide {
position: absolute; position: fixed;
z-index: 40; z-index: 40;
width: 140rpx; width: 48rpx;
height: 100rpx; height: 48rpx;
top: 0; top: 60rpx;
left: 100rpx; right: 30rpx;
background: rgba(255, 255, 255, .9);
color: rgb(0, 0, 0);
font-size: 22rpx;
overflow: hidden; overflow: hidden;
text-align: center; }
line-height: 100rpx;
.video_hide_img {
width: 100%;
height: 100%;
} }
.video_block { .video_block {
...@@ -281,12 +315,21 @@ ...@@ -281,12 +315,21 @@
} }
.video_block_wrapper_postersmall { .video_block_wrapper_postersmall {
width: 400rpx; width: 400rpx;
height: 180rpx; height: 230rpx;
left: 15rpx; left: 15rpx;
top: 15rpx; top: 15rpx;
position: absolute; position: absolute;
z-index: 8; z-index: 8;
} }
.video_block_wrapper_postersmall_mask {
width: 400rpx;
height: 230rpx;
left: 15rpx;
top: 15rpx;
position: absolute;
z-index: 9;
background-color: rgba(0,0,0,.45);
}
.video_block_text { .video_block_text {
width: 100%; width: 100%;
height: 64rpx; height: 64rpx;
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
</view> </view>
<view class="noStartToast" a:if="{{noStartToast}}">活动未开始</view>
<view class="transMask-noStart" a:if="{{noStart}}"></view>
<view class="transMask-end" a:if="{{end}}"></view>
<!-- 头部 规则-奖品 按钮 --> <!-- 头部 规则-奖品 按钮 -->
<view class="head"> <view class="head">
<image class="head_ruler" onTap="showRuleModal" src="{{resList['ee8882be-4b1d-43eb-bad7-8d96318c5022'].url}}" /> <image class="head_ruler" onTap="showRuleModal" src="{{resList['ee8882be-4b1d-43eb-bad7-8d96318c5022'].url}}" />
...@@ -16,14 +19,15 @@ ...@@ -16,14 +19,15 @@
</view> </view>
<view class="video_wrapper" a:if="{{videoShow}}"> <view class="video_wrapper" a:if="{{videoShow}}">
<view class="video_wrapper_mask"></view> <view class="video_wrapper_mask"></view>
<!--
poster="{{resList[''].url}}"
-->
<video <video
id="videoCtx" id="videoCtx"
class="video" class="video"
src="{{videoSrc}}" src="{{videoSrc}}"
poster="{{posterSrc}}"
controls="{{false}}" controls="{{false}}"
loop="{{isLooping}}" loop="{{isLooping}}"
muted="{{muteWhenPlaying}}" muted="{{muteWhenPlaying}}"
...@@ -43,13 +47,16 @@ ...@@ -43,13 +47,16 @@
/> />
</view> </view>
<view class="video_hide" onTap="videoHideFunc"> 缩小视频 </view> <view a:if="{{videoShow}}" class="video_hide" onTap="videoHideFunc">
<image class="video_hide_img" src="{{resList['70d07de0-4fc3-4802-bc56-c5cb57a28b91'].url}}" mode="aspectFill" />
</view>
<!-- 视频部分 --> <!-- 视频部分 -->
<view hidden="{{videoBottom_timeout}}" class="video_block {{ videoBottom ? 'block_opciaty0' : ''}}"> <view hidden="{{videoBottom_timeout}}" class="video_block {{ videoBottom ? 'block_opciaty0' : ''}}">
<view class="video_block_wrapper" onTap="videoShowFunc" > <view class="video_block_wrapper" onTap="videoShowFunc" >
<!-- 视频播放按钮 --> <!-- 视频播放按钮 -->
<image class="video_block_wrapper_playicon" src="" mode="aspectFill" /> <image class="video_block_wrapper_playicon" src="{{resList['1a37baca-db9c-4e06-8bd3-e8bd78c72b1d'].url}}" mode="aspectFill" />
<view class="video_block_wrapper_postersmall_mask"></view>
<image class="video_block_wrapper_postersmall" src="{{videoImgSrcSmall}}" mode="aspectFill" /> <image class="video_block_wrapper_postersmall" src="{{videoImgSrcSmall}}" mode="aspectFill" />
<view class="video_block_text"> <view class="video_block_text">
<view>观看XXXXX视频</view> <view>观看XXXXX视频</view>
...@@ -61,8 +68,8 @@ ...@@ -61,8 +68,8 @@
</view> </view>
<!-- 按钮组 左-右 --> <!-- 按钮组 左-右 -->
<image class="video_btn_left" onTap="videoTurnLeft" src="{{resList['70006ad9-e7aa-4121-8493-c3c0afa94608'].url}}" /> <image a:if="{{videoActiveIndex > 0}}" class="video_btn_left" onTap="videoTurnLeft" src="{{resList['70006ad9-e7aa-4121-8493-c3c0afa94608'].url}}" />
<image class="video_btn_right" onTap="videoTurnRight" src="{{resList['cf73af84-5751-4aee-a754-9106162786d9'].url}}" /> <image a:if="{{videoActiveIndex < videoSrcArrLength - 2}}" class="video_btn_right" onTap="videoTurnRight" src="{{resList['cf73af84-5751-4aee-a754-9106162786d9'].url}}" />
</view> </view>
<!-- <!--
......
...@@ -25,12 +25,6 @@ Page({ ...@@ -25,12 +25,6 @@ Page({
timeStamp: 0, timeStamp: 0,
// 视频记录 ms - 现量 // 视频记录 ms - 现量
timeStampRecord: 0, timeStampRecord: 0,
// 视频预览图列表
posterSrcArr: [
'https://yun.duiba.com.cn/spark/assets/bg1.d818f787351875b0982937d8bb68b0655febec3c.png',
'https://yun.duiba.com.cn/spark/assets/弹窗背景_奖品.dce4e3dd9a3fcae166dfbd934b714ce1bc7fa5c9.png',
'https://yun.duiba.com.cn/spark/assets/7191ae57140b4937ae42500e76aa533693326ef9.png',
],
// 小封面图 // 小封面图
videoImgSrcSmallArr: [], videoImgSrcSmallArr: [],
// 是否是会员 // 是否是会员
...@@ -41,7 +35,12 @@ Page({ ...@@ -41,7 +35,12 @@ Page({
inviteId: '', inviteId: '',
// 用户是否登陆 // 用户是否登陆
userLogin: false, userLogin: false,
startTime: 0,
endTime: 0,
data: { data: {
noStartToast: false,
noStart: true,
end: true,
resList: resList, resList: resList,
title: '', title: '',
content: '', content: '',
...@@ -50,8 +49,6 @@ Page({ ...@@ -50,8 +49,6 @@ Page({
videoBottom: false, videoBottom: false,
// 具有延迟的 视频收起 - flag // 具有延迟的 视频收起 - flag
videoBottom_timeout: false, videoBottom_timeout: false,
// 封面图地址
posterSrc: '',
// 视频变大 // 视频变大
videoShow: false, videoShow: false,
// ------ 视频 配置 ------ // // ------ 视频 配置 ------ //
...@@ -67,6 +64,7 @@ Page({ ...@@ -67,6 +64,7 @@ Page({
mobilenetHintType: 1, mobilenetHintType: 1,
videoActiveIndex: 0, videoActiveIndex: 0,
videoImgSrcSmall: '', // 视频小封面图 videoImgSrcSmall: '', // 视频小封面图
videoSrcArrLength: 2,
// ------ 视频 配置 ------ // // ------ 视频 配置 ------ //
// 出现 选择游戏弹窗 // 出现 选择游戏弹窗
...@@ -95,6 +93,7 @@ Page({ ...@@ -95,6 +93,7 @@ Page({
async onLoad (query) { async onLoad (query) {
console.info(`%cPage onLoad with query: ${JSON.stringify(query)}`, ConsoleStyle) console.info(`%cPage onLoad with query: ${JSON.stringify(query)}`, ConsoleStyle)
this.query = query this.query = query
if (this.query && this.query.inviteId) this.inviteId = this.query.inviteId
// 页面加载 // 页面加载
// 开场动画 // 开场动画
...@@ -105,7 +104,6 @@ Page({ ...@@ -105,7 +104,6 @@ Page({
// test - 打点 // test - 打点
// clickStat(1, '2') // clickStat(1, '2')
}, },
// 获取用户授权信息 // 获取用户授权信息
...@@ -129,7 +127,7 @@ Page({ ...@@ -129,7 +127,7 @@ Page({
if (this.isFollow === undefined) this.isFollow = false if (this.isFollow === undefined) this.isFollow = false
console.log(`%c-----是否关注店铺:${this.isFollow}`, ConsoleStyle) console.log(`%c-----是否关注店铺:${this.isFollow}`, ConsoleStyle)
let param = { activityId: app.activityId, avatar: app.avatar, userNick: nickName, avatar, isFollow: this.isFollow, } let param = { activityId: app.activityId, avatar: app.avatar, userNick: nickName, avatar, isFollow: this.isFollow, }
if (this.inviteId) param.inviteId = this.inviteId if (this.query.inviteId) param.inviteId = this.query.inviteId
const { success, message, data } = await API.login(param) const { success, message, data } = await API.login(param)
.catch(res => { commonToast(res && res.message); }) || {}; .catch(res => { commonToast(res && res.message); }) || {};
if (success) { if (success) {
...@@ -138,7 +136,6 @@ Page({ ...@@ -138,7 +136,6 @@ Page({
app.openId = data.openId app.openId = data.openId
this.isNewUser = data.isNewUser this.isNewUser = data.isNewUser
this.hasNewUserAndInvited()
this.getGameInfo() this.getGameInfo()
this.init(data); this.init(data);
...@@ -154,50 +151,80 @@ Page({ ...@@ -154,50 +151,80 @@ Page({
else { else {
console.log('%c-----活动基本信息\n' + '-----yd.getActivityBaseInfoById\n', ConsoleStyle, data) console.log('%c-----活动基本信息\n' + '-----yd.getActivityBaseInfoById\n', ConsoleStyle, data)
app.liveUrl = data.liveUrl app.liveUrl = data.liveUrl
// 检查 活动时间
this.startTime = data.startTime
this.endTime = data.endTime
this.checkStartEndTime()
// 游戏胜率 - 消消乐 // 游戏胜率 - 消消乐
app.xxlWinRate = data.timeChangeWinRate app.xxlWinRate = data.timeChangeWinRate
// 游戏胜率 - 传送带 // 游戏胜率 - 传送带
app.csdWinRate = data.conveyBeltWinRate app.csdWinRate = data.conveyBeltWinRate
data.videoUrlArr.forEach((item, index) => { data.videoUrlArr.forEach((item, index) => {
// // 获取视频 视频封面 视频小封面 // 获取视频 视频封面 视频小封面
// this.videoSrcArr[index] = { this.videoSrcArr[index] = {
// url: item, timeStamp: 0, totalTime: 0, completed: false url: item.videoUrl, timeStamp: 0, totalTime: 0, completed: false
// } }
// this.posterSrcArr = data. this.videoImgSrcSmallArr[index] = item.mainImage
// this.videoImgSrcSmallArr = data.
}) })
this.setData({ this.setData({
rule: data.rule, rule: data.rule,
videoSrcArrLength: this.videoSrcArr.length,
videoSrc: this.videoSrcArr[0].url, videoSrc: this.videoSrcArr[0].url,
// videoImgSrcSmall: this.videoImgSrcSmallArr[0], videoImgSrcSmall: this.videoImgSrcSmallArr[0]
}) })
} }
}) })
.catch(res => { console.warn(res); commonToast(res && res.message); }) || {}; .catch(res => { console.warn(res); commonToast(res && res.message); }) || {};
// 检查是否是vip
this.checkVip()
// 助力逻辑 // 助力逻辑
if (this.checkDohelpReturnMark()) { if (this.checkDohelpReturnMark()) {
// TODO: 若是助力返回信息,直接调用 this.checkDohelp() console.log('%c该用户是 通过邀请链接 进入 且 有返回标记', 'color:blue; font-size:16px; font-weight:bold;')
// 若是助力返回信息,直接调用 this.checkDohelp()
this.checkDohelp() this.checkDohelp()
} else if (this.query.inviteId) { } else if (this.query.inviteId) {
console.log('%c该用户是 通过邀请链接 进入', 'color:green; font-size:16px; font-weight:bold;') console.log('%c该用户是 通过邀请链接 进入', 'color:green; font-size:16px; font-weight:bold;')
app.inviteId = this.query.inviteId app.inviteId = this.query.inviteId
this.inviteId = this.query.inviteId this.inviteId = this.query.inviteId
// 新用户 助力链接
if (this.isNewUser && this.query.inviteId) {
this.checkDohelp()
// //yun.duiba.com.cn/spark/assets/为他助力.bc57a24aecb04934067712c76186d800343dabd5.png
} }
// 新用户 不是助力链接
else if (this.isNewUser && !this.query.inviteId) console.log('%cisNewUser', 'color:blue;')
// 老用户 助力链接
else if (!this.isNewUser && this.query.inviteId) {
this.showCommonMoadalT1({
title: '很遗憾',
content: '新会员才能助力哦~',
confirmCallback: () => {
this.closeCommonModalT1()
}, },
btnImg: '//yun.duiba.com.cn/spark/assets/我也要赢大奖.a22bebbd5be4a6e557ee4ef611216ba73b729d10.png' })
}
}
},
// 检查助力标记 // 检查助力标记
checkDohelpReturnMark () { checkDohelpReturnMark () {
console.warn('检查助力返回标记!!', this.query) console.warn('检查助力返回标记!!', this.query)
return false if (this.query.refresh && this.query.refresh == 1) return true
else return false
}, },
// 助力 // 助力
checkDohelp(){ checkDohelp(){
if (this.inviteId) { if (this.query.inviteId) {
API.doHelp({activityId: app.activityId,inviteId:this.inviteId}).then(res=>{ API.doHelp({activityId: app.activityId, inviteId: this.query.inviteId}).then(res=>{
const { data, success } = res const { data, success } = res
console.log('%c-----助力接口\n' + '-----yd.doHelp\n', ConsoleStyle, res) console.log('%c-----助力接口\n' + '-----yd.doHelp\n', ConsoleStyle, res)
if (success) { if (success) {
...@@ -231,39 +258,19 @@ Page({ ...@@ -231,39 +258,19 @@ Page({
}, },
// 新用户/被邀请的 逻辑 // 检查是否是vip 逻辑
hasNewUserAndInvited () { checkVip () {
API.getVipInfo({ activityId: app.activityId, inviteId: app.inviteId }) API.getVipInfo({ activityId: app.activityId, inviteId: app.inviteId })
.then(res => { .then(res => {
const { success, data, message } = res const { success, data, message } = res
console.log('%c-----用户vip信息\n' + '-----yd.getVipInfo\n', ConsoleStyle, data) console.log('%c-----用户vip信息\n' + '-----yd.getVipInfo\n', ConsoleStyle, data)
if (success && data) { if (success && data) {
app.isVip = (data && data.isVip) || false; app.isVip = (data && data.isVip) || false;
app.vipUrl = (data && data.url) || '';
this.isVip = (data && data.isVip) || false; this.isVip = (data && data.isVip) || false;
} else { // app.vipUrl = (data && data.url) || '';
commonToast(message)
} }
}) })
.catch(res => { console.warn(res); commonToast(res && res.message) }) || {}; .catch(res => { console.warn(res) }) || {};
// 新用户 助力链接
if (this.isNewUser && this.inviteId) {
this.checkDohelp()
// //yun.duiba.com.cn/spark/assets/为他助力.bc57a24aecb04934067712c76186d800343dabd5.png
}
// 新用户 不是助力链接
else if (this.isNewUser && !this.inviteId) console.log('isNewUser')
// 老用户 助力链接
else if (!this.isNewUser && this.inviteId) {
this.showCommonMoadalT1({
title: '很遗憾',
content: '新会员才能助力哦~',
confirmCallback: () => {
this.closeCommonModalT1()
},
btnImg: '//yun.duiba.com.cn/spark/assets/我也要赢大奖.a22bebbd5be4a6e557ee4ef611216ba73b729d10.png' })
}
}, },
// 用户今日首次进入 // 用户今日首次进入
...@@ -276,7 +283,7 @@ Page({ ...@@ -276,7 +283,7 @@ Page({
onShareAppMessage() { onShareAppMessage() {
// 返回自定义分享信息 // 返回自定义分享信息
SHARE_CONFIG.imageUrl = '' SHARE_CONFIG.imageUrl = ''
SHARE_CONFIG.path = this.changeURLArg('/pages/homePage/homePage&', 'inviteId', app.openId) SHARE_CONFIG.path = this.changeURLArg('/pages/homePage/homePage', 'inviteId', app.openId)
return SHARE_CONFIG; return SHARE_CONFIG;
}, },
...@@ -284,26 +291,25 @@ Page({ ...@@ -284,26 +291,25 @@ Page({
onReady() { onReady() {
this.videoCtx = my.createVideoContext('videoCtx') this.videoCtx = my.createVideoContext('videoCtx')
this.videoCtx.play() this.videoCtx.play()
// this.setData({ videoSrc: this.videoSrcArr[0].url, posterSrc: this.posterSrcArr[0] })
}, },
// 页面显示 // 页面显示
onShow() { onShow() { if (this.userLogin) this.getGameInfo() },
if (this.userLogin) this.getGameInfo()
},
// 获取 游戏门票 抽奖次数 今日是否首次登陆 // 获取 游戏门票 抽奖次数 今日是否首次登陆
getGameInfo () { getGameInfo () {
return new Promise ((resolve, reject) => { return new Promise ((resolve, reject) => {
API.getGameInfo({ activityId: app.activityId }) API.getGameInfo({ activityId: app.activityId })
.then(res => { .then(res => {
console.log('%c-----获取游戏信息\n' + '-----yd.getGameInfo\n', ConsoleStyle, data)
const { success, message, data } = res const { success, message, data } = res
console.log('%c-----获取游戏信息\n' + '-----yd.getGameInfo\n', ConsoleStyle, data)
if (!success) { console.warn(res); commonToast(res && res.message) } if (!success) { console.warn(res); commonToast(res && res.message) }
else { else {
this.setData({ this.setData({
ticketNum: data.gameTimes, ticketNum: data.gameTimes,
drawNum: data.lotteryTimes, drawNum: data.lotteryTimes,
// ticketNum: 1,
// drawNum: 1,
todayFirstLogin: data.todayFirstLogin todayFirstLogin: data.todayFirstLogin
}) })
if (this.data.todayFirstLogin) this.userFirstInToday() if (this.data.todayFirstLogin) this.userFirstInToday()
...@@ -341,17 +347,16 @@ Page({ ...@@ -341,17 +347,16 @@ Page({
return return
} else { } else {
let type = Number(e.currentTarget.dataset.gameType) let type = Number(e.currentTarget.dataset.gameType)
this.setData({ this.setData({ gameShow: true, gameType: type, gameShow_timeout: true })
gameShow: true, setTimeout(() => { this.setData({ gameShow: false }) }, 350)
gameType: type
})
} }
}, },
// 从游戏 返回 到 主页 // 从游戏 返回 到 主页
backToPage () { backToPage () {
this.setData({ gameShow_timeout: false, gameType: 0 }) console.log(1)
this.getGameInfo() this.getGameInfo()
this.setData({ gameShow_timeout: false, gameType: 0 })
setTimeout(() => { this.setData({ gameShow: false }) }, 350) setTimeout(() => { this.setData({ gameShow: false }) }, 350)
}, },
...@@ -360,6 +365,7 @@ Page({ ...@@ -360,6 +365,7 @@ Page({
// video - turn left // video - turn left
videoTurnLeft () { videoTurnLeft () {
// TODO: 切换到末尾或者开头,左右按钮消失
let i = this.data.videoActiveIndex let i = this.data.videoActiveIndex
if (i > 0) { if (i > 0) {
this.videoCtx.stop() this.videoCtx.stop()
...@@ -368,12 +374,10 @@ Page({ ...@@ -368,12 +374,10 @@ Page({
setTimeout(() => { setTimeout(() => {
i -= 1 i -= 1
let vsrc = this.videoSrcArr[i].url, let vsrc = this.videoSrcArr[i].url,
psrc = this.posterSrcArr[i],
spsrc = this.videoImgSrcSmallArr[i] spsrc = this.videoImgSrcSmallArr[i]
this.setData({ this.setData({
videoImgSrcSmall: spsrc, videoImgSrcSmall: spsrc,
videoSrc: vsrc, videoSrc: vsrc,
posterSrc: psrc,
videoActiveIndex: i videoActiveIndex: i
}) })
this.videoCtx.play() this.videoCtx.play()
...@@ -383,6 +387,7 @@ Page({ ...@@ -383,6 +387,7 @@ Page({
// video - turn right // video - turn right
videoTurnRight () { videoTurnRight () {
// TODO: 切换到末尾或者开头,左右按钮消失
let i = this.data.videoActiveIndex let i = this.data.videoActiveIndex
if (i < this.videoSrcArr.length - 1) { if (i < this.videoSrcArr.length - 1) {
this.videoCtx.stop() this.videoCtx.stop()
...@@ -391,12 +396,10 @@ Page({ ...@@ -391,12 +396,10 @@ Page({
setTimeout(() => { setTimeout(() => {
i += 1 i += 1
let vsrc = this.videoSrcArr[i].url, let vsrc = this.videoSrcArr[i].url,
psrc = this.posterSrcArr[i],
spsrc = this.videoImgSrcSmallArr[i] spsrc = this.videoImgSrcSmallArr[i]
this.setData({ this.setData({
videoImgSrcSmall: spsrc, videoImgSrcSmall: spsrc,
videoSrc: vsrc, videoSrc: vsrc,
posterSrc: psrc,
videoActiveIndex: i videoActiveIndex: i
}) })
this.videoCtx.play() this.videoCtx.play()
...@@ -554,6 +557,32 @@ Page({ ...@@ -554,6 +557,32 @@ Page({
// 通用弹层 - 关闭 - T2 // 通用弹层 - 关闭 - T2
closeCommonModalT2() { this.setData({ commonModalVisibleT2: false }); }, closeCommonModalT2() { this.setData({ commonModalVisibleT2: false }); },
// 点击前 检查活动 开始结束时间
checkStartEndTime () {
let time = new Date()
if (!this.startTime || !this.endTime) return
// 活动结束
if (time.getTime() > this.endTime) {
this.setData({
end: true,
noStart: false
})
// 活动进行中
} else if (time.getTime() <= this.endTime && time.getTime() >= this.startTime) {
this.setData({
end: false,
noStart: false
})
// 活动开始
} else {
this.setData({
end: false,
noStart: true,
noStartToast: true
})
}
},
onUnload() { onUnload() {
// 页面被关闭 // 页面被关闭
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,6 +2,19 @@ ...@@ -2,6 +2,19 @@
width:100%; width:100%;
height:100%; height:100%;
} }
.page-game-cover {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width:100%;
height:100%;
z-index: 1;
background: pink;
}
.page-game { .page-game {
/* position: absolute; /* position: absolute;
top: 0; top: 0;
......
<view disable-scroll="true" class="page-game"> <view disable-scroll="true" class="page-game">
<view a:if="{{gameType === 0}}" class="page-game-cover"></view>
<canvas disable-scroll="true" id="canvas" type="2d" class="canvas" onTouchStart="onMouseEvent" onTouchMove="onMouseEvent" onTouchEnd="onMouseEvent" onReady="onCanvasReady"> <canvas disable-scroll="true" id="canvas" type="2d" class="canvas" onTouchStart="onMouseEvent" onTouchMove="onMouseEvent" onTouchEnd="onMouseEvent" onReady="onCanvasReady">
</canvas> </canvas>
</view> </view>
......
...@@ -3,6 +3,9 @@ import API from '../../api'; ...@@ -3,6 +3,9 @@ import API from '../../api';
const app = getApp(); const app = getApp();
const { tbcc } = app; const { tbcc } = app;
const { commonToast, getAuthUserInfo, navigateToOutside, getSystemInfo, ConsoleStyle } = tbcc.tb; const { commonToast, getAuthUserInfo, navigateToOutside, getSystemInfo, ConsoleStyle } = tbcc.tb;
import UnicodeFont from './unicode.js'
import resList from '../../resconfig/resList'
import resListAvatar from '../../resconfig/resListAvatar'
const checkSystem = async () => { const checkSystem = async () => {
const { version } = await getSystemInfo(); const { version } = await getSystemInfo();
...@@ -25,10 +28,9 @@ Component({ ...@@ -25,10 +28,9 @@ Component({
gameData: null, gameData: null,
didMount() { didMount() {
this.setData({ this.setData({ gameType: this.props.gameType })
gameType: this.props.gameType
})
this.init() this.init()
this.getFakeAvatar()
}, },
didUpdate(prevProps, prevData) { didUpdate(prevProps, prevData) {
...@@ -73,7 +75,7 @@ Component({ ...@@ -73,7 +75,7 @@ Component({
onCanvasReady() { onCanvasReady() {
console.log('onCanvasReady') console.log('onCanvasReady')
this.changeGameSence(this.props.gameType) // this.changeGameSence(this.props.gameType)
}, },
postMessage(netName, data) { postMessage(netName, data) {
...@@ -93,6 +95,7 @@ Component({ ...@@ -93,6 +95,7 @@ Component({
// 获取信息 // 获取信息
case "mine.getUserInfo": case "mine.getUserInfo":
// 开始游戏 // 开始游戏
console.warn('mine.getUserInfo')
this.gameStartInfo() this.gameStartInfo()
break; break;
case "mine.backToPage": case "mine.backToPage":
...@@ -106,7 +109,6 @@ Component({ ...@@ -106,7 +109,6 @@ Component({
console.warn('监听时间名 没有对应处理函数') console.warn('监听时间名 没有对应处理函数')
break; break;
} }
}, },
// 从游戏中返回 // 从游戏中返回
...@@ -114,16 +116,37 @@ Component({ ...@@ -114,16 +116,37 @@ Component({
this.props.onBackPage() this.props.onBackPage()
this.gameData = null this.gameData = null
this.gamePrize = null this.gamePrize = null
this.setData({gameType: 0})
}, },
// 游戏开始 获取用户信息 // 游戏开始 获取用户信息
gameStartInfo () { gameStartInfo () {
// -- test code --
let win = this.countWinRange(this.data.gameType)
this.isWin = win
let fname = this.getFakeUserName()
let favatar = this.getFakeAvatar()
this.gameData = {
win: win,
fakeUserName: fname,
fakeUserImgUrl: '//yun.duiba.com.cn/spark/assets/43081f4ee9aed1c4d89d9e0882b2b5210a93ef17.png',
userName: app.nickName,
userImgUrl: app.avatar,
isNewUser: this.data.gameType === 1 ? app.isNewUser_csd : app.isNewUser_xxl
}
console.log('%cgameData:', ConsoleStyle, this.gameData)
this.postMessage('mine.getUserInfo', {data: this.gameData})
return
// -- test code --
API.doJoin({activityId: app.activityId, type: this.data.gameType === 1 ? 'slide' : 'timeline'}) API.doJoin({activityId: app.activityId, type: this.data.gameType === 1 ? 'slide' : 'timeline'})
.then(res => { .then(res => {
const { data, success } = res const { data, success } = res
console.log('%c-----开始游戏\n' + '-----yd.doJoin\n', ConsoleStyle, data)
if (success) { if (success) {
// 计算胜负 // 计算胜负
let win = this.countWinRange() let win = this.countWinRange(this.data.gameType)
this.isWin = win this.isWin = win
let fname = this.getFakeUserName() let fname = this.getFakeUserName()
let favatar = this.getFakeAvatar() let favatar = this.getFakeAvatar()
...@@ -136,9 +159,8 @@ Component({ ...@@ -136,9 +159,8 @@ Component({
// 是否是新用户 // 是否是新用户
isNewUser: this.data.gameType === 1 ? app.isNewUser_csd : app.isNewUser_xxl isNewUser: this.data.gameType === 1 ? app.isNewUser_csd : app.isNewUser_xxl
} }
this.postMessage('mine.getUserInfo', this.gameData) console.log('%cgameData:', ConsoleStyle, this.gameData)
// this.postMessage('csdGameData', this.gameData) this.postMessage('mine.getUserInfo', {data:this.gameData})
} else { } else {
commonToast(res.message) commonToast(res.message)
} }
...@@ -148,23 +170,38 @@ Component({ ...@@ -148,23 +170,38 @@ Component({
// 游戏结束 获取开奖 // 游戏结束 获取开奖
getGameOverPrize () { getGameOverPrize () {
API.gameOver({activityId: app.activityId, type: this.data.gameType === 1 ? 'slide' : 'timeline', isWin: this.win}) // -- test code --
this.gamePrize = {
name: '一碗热翔',
image: '//yun.duiba.com.cn/spark/assets/43081f4ee9aed1c4d89d9e0882b2b5210a93ef17.png',
type: 2
}
console.log('%cgamePrize:', ConsoleStyle, this.gamePrize)
this.postMessage('mine.getPrizeInfo', {data:this.gamePrize})
return
// -- test code --
API.gameOver({activityId: app.activityId, type: this.data.gameType === 1 ? 'slide' : 'timeline', isWin: this.isWin})
.then(res => { .then(res => {
const { data, success} = res const { data, success} = res
console.log('%c-----游戏结束 获取开奖\n' + '-----yd.gameOver\n', ConsoleStyle, data)
if (success) { if (success) {
this.gamePrize = { this.gamePrize = {
name: data.prize.name, name: data.prize.name,
image: data.prize.image, image: data.prize.image,
type: data.prize.type type: data.prize.type
} }
this.postMessage('mine.getPrizeInfo', this.gamePrize) console.log('%cgamePrize:', ConsoleStyle, this.gamePrize)
this.postMessage('mine.getPrizeInfo', {data:this.gamePrize})
} else { } else {
this.gamePrize ={ this.gamePrize ={
name: '谢谢参与', name: '谢谢参与',
image: '', image: '',
type: 5 type: 5
} }
this.postMessage('mine.getPrizeInfo', this.gamePrize) console.log('%cgamePrize:', ConsoleStyle, this.gamePrize)
this.postMessage('mine.getPrizeInfo', {data:this.gamePrize})
} }
}) })
.catch(err => { .catch(err => {
...@@ -174,6 +211,7 @@ Component({ ...@@ -174,6 +211,7 @@ Component({
image: '', image: '',
type: 5 type: 5
} }
console.log('%cgamePrize:', ConsoleStyle, this.gamePrize)
this.postMessage('mine.getPrizeInfo', this.gamePrize) this.postMessage('mine.getPrizeInfo', this.gamePrize)
}) })
}, },
...@@ -194,17 +232,19 @@ Component({ ...@@ -194,17 +232,19 @@ Component({
// 生成假用户名 // 生成假用户名
getFakeUserName () { getFakeUserName () {
var _rsl1 = '', let str = UnicodeFont
_rsl2 = '' let str_ = str.split('/-')
var _randomUniCode = Math.floor(Math.random() * (40870 - 19968) + 19968).toString(16); // console.log(unescape(str_))
eval("_rsl1=" + '"\\u' + _randomUniCode + '"') let _rsl1 = unescape(str_[this.sum(0, str_.length - 1)])
eval("_rsl2=" + '"\\u' + _randomUniCode + '"') let _rsl2 = unescape(str_[this.sum(0, str_.length - 1)])
return _rsl1 + 'XXXXXX' + _rsl2 return _rsl1 + 'XXXXXX' + _rsl2
}, },
// 生成假用户头像 // 生成假用户头像
getFakeAvatar () { getFakeAvatar () {
return 'FakeAvatar' let avatarArr = Object.keys(resListAvatar)
let avatar = resListAvatar[avatarArr[this.sum(0, avatarArr.length - 1)]].url
return avatar
}, },
//鼠标事件 //鼠标事件
...@@ -228,34 +268,40 @@ Component({ ...@@ -228,34 +268,40 @@ Component({
} }
}, },
async getAuth() { // async getAuth() {
const userInfo = await getAuthUserInfo().catch(err => { // const userInfo = await getAuthUserInfo().catch(err => {
console.log('未授权成功', err); // console.log('未授权成功', err);
}); // });
if (userInfo) { // if (userInfo) {
console.log('userInfo', userInfo); // console.log('userInfo', userInfo);
const { nickName, avatar } = userInfo; // const { nickName, avatar } = userInfo;
app.nickName = nickName; // app.nickName = nickName;
app.avatar = avatar; // app.avatar = avatar;
this.login(); // this.login();
} // }
}, // },
async login() { // async login() {
const { nickName, avatar } = app; // const { nickName, avatar } = app;
const { success } = await API.login({ userNick: nickName, avatar }).catch(res => { // const { success } = await API.login({ userNick: nickName, avatar }).catch(res => {
commonToast(res && res.message); // commonToast(res && res.message);
}) || {}; // }) || {};
if (success) { // if (success) {
this.init(); // this.init();
} // }
}, // },
closeRuleModal() { closeRuleModal() {
this.setData({ ruleModalVisible: false }) this.setData({ ruleModalVisible: false })
}, },
// 取 随机数
sum (m, n) {
var num = Math.floor(Math.random() * (m - n) + n)
return num
}
} }
}); });
\ No newline at end of file
const UnicodeFont = "%u7684/-%u4e00/-%u4e86/-%u662f/-%u6211/-%u4e0d/-%u5728/-%u4eba/-%u4eec/-%u6709/-%u6765/-%u4ed6/-%u8fd9/-%u4e0a/-%u7740/-%u4e2a/-%u5730/-%u5230/-%u5927/-%u91cc/-%u8bf4/-%u5c31/-%u53bb/-%u5b50/-%u5f97/-%u4e5f/-%u548c/-%u90a3/-%u8981/-%u4e0b/-%u770b/-%u5929/-%u65f6/-%u8fc7/-%u51fa/-%u5c0f/-%u4e48/-%u8d77/-%u4f60/-%u90fd/-%u628a/-%u597d/-%u8fd8/-%u591a/-%u6ca1/-%u4e3a/-%u53c8/-%u53ef/-%u5bb6/-%u5b66/-%u53ea/-%u4ee5/-%u4e3b/-%u4f1a/-%u6837/-%u5e74/-%u60f3/-%u751f/-%u540c/-%u8001/-%u4e2d/-%u5341/-%u4ece/-%u81ea/-%u9762/-%u524d/-%u5934/-%u9053/-%u5b83/-%u540e/-%u7136/-%u8d70/-%u5f88/-%u50cf/-%u89c1/-%u4e24/-%u7528/-%u5979/-%u56fd/-%u52a8/-%u8fdb/-%u6210/-%u56de/-%u4ec0/-%u8fb9/-%u4f5c/-%u5bf9/-%u5f00/-%u800c/-%u5df1/-%u4e9b/-%u73b0/-%u5c71/-%u6c11/-%u5019/-%u7ecf/-%u53d1/-%u5de5/-%u5411/-%u4e8b/-%u547d/-%u7ed9/-%u957f/-%u6c34/-%u51e0/-%u4e49/-%u4e09/-%u58f0/-%u4e8e/-%u9ad8/-%u624b/-%u77e5/-%u7406/-%u773c/-%u5fd7/-%u70b9/-%u5fc3/-%u6218/-%u4e8c/-%u95ee/-%u4f46/-%u8eab/-%u65b9/-%u5b9e/-%u5403/-%u505a/-%u53eb/-%u5f53/-%u4f4f/-%u542c/-%u9769/-%u6253/-%u5462/-%u771f/-%u5168/-%u624d/-%u56db/-%u5df2/-%u6240/-%u654c/-%u4e4b/-%u6700/-%u5149/-%u4ea7/-%u60c5/-%u8def/-%u5206/-%u603b/-%u6761/-%u767d/-%u8bdd/-%u4e1c/-%u5e2d/-%u6b21/-%u4eb2/-%u5982/-%u88ab/-%u82b1/-%u53e3/-%u653e/-%u513f/-%u5e38/-%u6c14/-%u4e94/-%u7b2c/-%u4f7f/-%u5199/-%u519b/-%u5427/-%u6587/-%u8fd0/-%u518d/-%u679c/-%u600e/-%u5b9a/-%u8bb8/-%u5feb/-%u660e/-%u884c/-%u56e0/-%u522b/-%u98de/-%u5916/-%u6811/-%u7269/-%u6d3b/-%u90e8/-%u95e8/-%u65e0/-%u5f80/-%u8239/-%u671b/-%u65b0/-%u5e26/-%u961f/-%u5148/-%u529b/-%u5b8c/-%u5374/-%u7ad9/-%u4ee3/-%u5458/-%u673a/-%u66f4/-%u4e5d/-%u60a8/-%u6bcf/-%u98ce/-%u7ea7/-%u8ddf/-%u7b11/-%u554a/-%u5b69/-%u4e07/-%u5c11/-%u76f4/-%u610f/-%u591c/-%u6bd4/-%u9636/-%u8fde/-%u8f66/-%u91cd/-%u4fbf/-%u6597/-%u9a6c/-%u54ea/-%u5316/-%u592a/-%u6307/-%u53d8/-%u793e/-%u4f3c/-%u58eb/-%u8005/-%u5e72/-%u77f3/-%u6ee1/-%u65e5/-%u51b3/-%u767e/-%u539f/-%u62ff/-%u7fa4/-%u7a76/-%u5404/-%u516d/-%u672c/-%u601d/-%u89e3/-%u7acb/-%u6cb3/-%u6751/-%u516b/-%u96be/-%u65e9/-%u8bba/-%u5417/-%u6839/-%u5171/-%u8ba9/-%u76f8/-%u7814/-%u4eca/-%u5176/-%u4e66/-%u5750/-%u63a5/-%u5e94/-%u5173/-%u4fe1/-%u89c9/-%u6b65/-%u53cd/-%u5904/-%u8bb0/-%u5c06/-%u5343/-%u627e/-%u4e89/-%u9886/-%u6216/-%u5e08/-%u7ed3/-%u5757/-%u8dd1/-%u8c01/-%u8349/-%u8d8a/-%u5b57/-%u52a0/-%u811a/-%u7d27/-%u7231/-%u7b49/-%u4e60/-%u9635/-%u6015/-%u6708/-%u9752/-%u534a/-%u706b/-%u6cd5/-%u9898/-%u5efa/-%u8d76/-%u4f4d/-%u5531/-%u6d77/-%u4e03/-%u5973/-%u4efb/-%u4ef6/-%u611f/-%u51c6/-%u5f20/-%u56e2/-%u5c4b/-%u79bb/-%u8272/-%u8138/-%u7247/-%u79d1/-%u5012/-%u775b/-%u5229/-%u4e16/-%u521a/-%u4e14/-%u7531/-%u9001/-%u5207/-%u661f/-%u5bfc/-%u665a/-%u8868/-%u591f/-%u6574/-%u8ba4/-%u54cd/-%u96ea/-%u6d41/-%u672a/-%u573a/-%u8be5/-%u5e76/-%u5e95/-%u6df1/-%u523b/-%u5e73/-%u4f1f/-%u5fd9/-%u63d0/-%u786e/-%u8fd1/-%u4eae/-%u8f7b/-%u8bb2/-%u519c/-%u53e4/-%u9ed1/-%u544a/-%u754c/-%u62c9/-%u540d/-%u5440/-%u571f/-%u6e05/-%u9633/-%u7167/-%u529e/-%u53f2/-%u6539/-%u5386/-%u8f6c/-%u753b/-%u9020/-%u5634/-%u6b64/-%u6cbb/-%u5317/-%u5fc5/-%u670d/-%u96e8/-%u7a7f/-%u5185/-%u8bc6/-%u9a8c/-%u4f20/-%u4e1a/-%u83dc/-%u722c/-%u7761/-%u5174/-%u5f62/-%u91cf/-%u54b1/-%u89c2/-%u82e6/-%u4f53/-%u4f17/-%u901a/-%u51b2/-%u5408/-%u7834/-%u53cb/-%u5ea6/-%u672f/-%u996d/-%u516c/-%u65c1/-%u623f/-%u6781/-%u5357/-%u67aa/-%u8bfb/-%u6c99/-%u5c81/-%u7ebf/-%u91ce/-%u575a/-%u7a7a/-%u6536/-%u7b97/-%u81f3/-%u653f/-%u57ce/-%u52b3/-%u843d/-%u94b1/-%u7279/-%u56f4/-%u5f1f/-%u80dc/-%u6559/-%u70ed/-%u5c55/-%u5305/-%u6b4c/-%u7c7b/-%u6e10/-%u5f3a/-%u6570/-%u4e61/-%u547c/-%u6027/-%u97f3/-%u7b54/-%u54e5/-%u9645/-%u65e7/-%u795e/-%u5ea7/-%u7ae0/-%u5e2e/-%u5566/-%u53d7/-%u7cfb/-%u4ee4/-%u8df3/-%u975e/-%u4f55/-%u725b/-%u53d6/-%u5165/-%u5cb8/-%u6562/-%u6389/-%u5ffd/-%u79cd/-%u88c5/-%u9876/-%u6025/-%u6797/-%u505c/-%u606f/-%u53e5/-%u533a/-%u8863/-%u822c/-%u62a5/-%u53f6/-%u538b/-%u6162/-%u53d4/-%u80cc/-%u7ec6"
export default UnicodeFont
\ No newline at end of file
...@@ -622,6 +622,18 @@ const resList = { ...@@ -622,6 +622,18 @@ const resList = {
ext: '.png', ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/时空传送.53c4af1a66a461812b8f3a502b14cddf4daed9b3.png', url: '//yun.duiba.com.cn/spark/assets/时空传送.53c4af1a66a461812b8f3a502b14cddf4daed9b3.png',
uuid: 'b23ce750-11e2-45f9-b3af-a0a7dedddcfd' uuid: 'b23ce750-11e2-45f9-b3af-a0a7dedddcfd'
},
'70d07de0-4fc3-4802-bc56-c5cb57a28b91': {
name: '按钮关闭弹窗3',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/按钮关闭弹窗3.1e74a9322a7b04a4e57041a7a733789d2f2fc113.png',
uuid: '70d07de0-4fc3-4802-bc56-c5cb57a28b91'
},
'1a37baca-db9c-4e06-8bd3-e8bd78c72b1d': {
name: '视频暂停按钮',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/视频暂停按钮.b02345a3f9a24464df94a1f8bd4bcfe4182ad40c.png',
uuid: '1a37baca-db9c-4e06-8bd3-e8bd78c72b1d'
} }
}; };
export default resList; export default resList;
\ No newline at end of file
const resList = {
'2fa4830c-412e-409c-b3ae-11c1b0bc5e6d': {
name: '一',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/一.9573fae9678005b815ac5ec327c8efd8aba031b8.jpg',
uuid: '2fa4830c-412e-409c-b3ae-11c1b0bc5e6d'
},
'579702e5-eaa7-4125-8e22-12f6eeaebed4': {
name: '五',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/五.8beb42d01512aceb85863eae4d067aa96ca088b5.jpg',
uuid: '579702e5-eaa7-4125-8e22-12f6eeaebed4'
},
'6646bbe8-0c81-4353-bdd4-baa7257696fe': {
name: '四',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/四.0b527735a42a7d7637c80f1cd6793f644f66dc64.jpeg',
uuid: '6646bbe8-0c81-4353-bdd4-baa7257696fe'
},
'fea0165b-561b-4dae-b282-b2cf357b3cc5': {
name: '十',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/十.dc00627aece7335576e50d4e2c369b17e8d5b671.jpg',
uuid: 'fea0165b-561b-4dae-b282-b2cf357b3cc5'
},
'5cbd67f6-4728-4bb5-8429-b8e4e7e4cefe': {
name: '三',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/三.bbbb7b8c046ba894f70065b09331b9d249dca926.jpg',
uuid: '5cbd67f6-4728-4bb5-8429-b8e4e7e4cefe'
},
'7775c9ed-157b-41f4-9e88-6a1db9d6c6ab': {
name: '七',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/七.40787069079b5777d6a5104d6a68bda2f68873e9.jpg',
uuid: '7775c9ed-157b-41f4-9e88-6a1db9d6c6ab'
},
'ef4bbd9a-727e-4c14-b2aa-cafda8a7b5d8': {
name: '六',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/六.5563ebe8a4cbf88be33a4b23b183303d7c6ab1a2.jpg',
uuid: 'ef4bbd9a-727e-4c14-b2aa-cafda8a7b5d8'
},
'c758e904-e34a-4ba6-9e0c-aea2e484a91b': {
name: '九',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/九.7ea1db0eacaa8dbd934d7c402d5bd97a2b9b29e1.jpg',
uuid: 'c758e904-e34a-4ba6-9e0c-aea2e484a91b'
},
'a7339da4-8160-4828-8243-4c4ba0814d1d': {
name: '二',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/二.421983c03b847817db5b258454e73759638c8e8a.jpg',
uuid: 'a7339da4-8160-4828-8243-4c4ba0814d1d'
},
'9e64a121-e7f3-4422-bdc5-ff74e5f4c6a5': {
name: '八',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/八.5d45d52676480aa32f175cd2deafcf3976b0e910.jpg',
uuid: '9e64a121-e7f3-4422-bdc5-ff74e5f4c6a5'
},
'c1537630-e0a0-412c-803f-fdbd28a810c1': {
name: '文件1',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件1.eefab770ad71c687f3718fe8ac399d75ecb2969d.jpg',
uuid: 'c1537630-e0a0-412c-803f-fdbd28a810c1'
},
'71be8c69-4762-4f7d-ba32-aec15aa67e6e': {
name: '文件0',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件0.de83ebf7878ee0e56c41689c2baea4980f0ebc1b.jpeg',
uuid: '71be8c69-4762-4f7d-ba32-aec15aa67e6e'
},
'1f40c01b-9c88-4942-a642-ed376c10f403': {
name: '文件3',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件3.a9fbdc085a54bce9369b8d83cf68d1e5d7a8f134.jpg',
uuid: '1f40c01b-9c88-4942-a642-ed376c10f403'
},
'abc6e942-684d-4d00-9d11-651fe3e944cc': {
name: '文件2',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件2.b30b31812bf5653ff30e353c30106bcaf5b8753d.jpg',
uuid: 'abc6e942-684d-4d00-9d11-651fe3e944cc'
},
'8c94d64c-bf44-4b05-8e48-9c9cb82a38e7': {
name: '文件4',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件4.6be81c5981c29f1901ff6dee8be9e4c8e6350ce9.jpeg',
uuid: '8c94d64c-bf44-4b05-8e48-9c9cb82a38e7'
},
'd8bbd285-00c7-4053-9f48-0dcefc59ea68': {
name: '文件9',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件9.18ebe7954c0cef2ff58e0b636aaaa04ca0b2f5cc.jpeg',
uuid: 'd8bbd285-00c7-4053-9f48-0dcefc59ea68'
},
'fc2c0f65-4d57-4116-97ee-5c5ffc6c3cff': {
name: '文件10',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件10.d05e280cd0254dff944c0987747bc8a27213b53d.jpeg',
uuid: 'fc2c0f65-4d57-4116-97ee-5c5ffc6c3cff'
},
'c04ee9de-05c7-4209-86d0-e566dc89fb0a': {
name: '文件12',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件12.f957da8b352c06284566b4ab422cb2513d38b696.jpeg',
uuid: 'c04ee9de-05c7-4209-86d0-e566dc89fb0a'
},
'88ff1b0a-4c1e-40b2-9e34-4e3819eb0e14': {
name: '文件13',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件13.d37fabbd081caba181749118f9f3b13be99e6d77.jpeg',
uuid: '88ff1b0a-4c1e-40b2-9e34-4e3819eb0e14'
},
'c06f5dd4-b467-459e-8c36-a2aaa4d3a129': {
name: '文件14',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件14.a6d8d31b20a40b66b97f502dfe18f6910eb3fe82.jpeg',
uuid: 'c06f5dd4-b467-459e-8c36-a2aaa4d3a129'
},
'1f8fc58c-2e40-4721-b3d8-fb02f3e530d7': {
name: '文件15',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件15.5b20d0a8ae4dec3e7cb5963863581829655de40a.jpeg',
uuid: '1f8fc58c-2e40-4721-b3d8-fb02f3e530d7'
},
'be18b7eb-8856-41e6-a80f-b4ea8c9c640b': {
name: '文件16',
ext: '.jpeg',
url: '//yun.duiba.com.cn/spark/assets/文件16.a2388a6c3f57a012c1d40b84e3ab46d704afb328.jpeg',
uuid: 'be18b7eb-8856-41e6-a80f-b4ea8c9c640b'
},
'9cb30d22-0977-42b2-aff6-518b661e862e': {
name: '文件17',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件17.3c104e83da0fdc5fd82a4b1b5ba9a7e62a640bfc.jpg',
uuid: '9cb30d22-0977-42b2-aff6-518b661e862e'
},
'babb4399-ed91-4191-9eab-282e0aa98878': {
name: '文件18',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件18.18d216f219bdce7c57499a3fcfce4dc4de5aa09a.jpg',
uuid: 'babb4399-ed91-4191-9eab-282e0aa98878'
},
'562f644f-9fb2-4684-bd70-35db78af5baa': {
name: '文件19',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件19.01fcad128760b82c5dd405f07a403907b9f7ca46.jpg',
uuid: '562f644f-9fb2-4684-bd70-35db78af5baa'
},
'9cbf7c09-b438-4b7a-8ad5-0d298ae08628': {
name: '文件20',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件20.7073c76063b57f439dbc604a41e4f990a07bd0b8.jpg',
uuid: '9cbf7c09-b438-4b7a-8ad5-0d298ae08628'
},
'63da86bb-c94f-47f3-b47c-548fc7ecf8fc': {
name: '文件21',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件21.42ff23458257038931d7c9ae55adbbd6c00551a2.jpg',
uuid: '63da86bb-c94f-47f3-b47c-548fc7ecf8fc'
},
'a378c2aa-b1e6-4cea-a794-75f814c9eaf3': {
name: '文件22',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件22.1338be7bdc220e8fb5eb4e2907ceabafbe22cf5c.jpg',
uuid: 'a378c2aa-b1e6-4cea-a794-75f814c9eaf3'
},
'd03bfab6-39f6-45c0-8c8f-bd78bb0f8664': {
name: '文件23',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件23.79b046e3d13740bc711b7bfbafbed4753289a488.jpg',
uuid: 'd03bfab6-39f6-45c0-8c8f-bd78bb0f8664'
},
'fc2285a0-6526-4412-96a2-42bd503b4178': {
name: '文件25',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件25.2fa39202daa7688003a12cc72a88b53e7b0abb38.jpg',
uuid: 'fc2285a0-6526-4412-96a2-42bd503b4178'
},
'fdb30a4a-d294-4acc-9389-e5154e7d53cb': {
name: '文件26',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件26.8fa69a94aaabc4b9d13c9a29f00f93bac574a532.jpg',
uuid: 'fdb30a4a-d294-4acc-9389-e5154e7d53cb'
},
'e38d3022-1188-4abb-bb9f-9ececc8770d3': {
name: '文件27',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件27.ffefd69a4b24eafd97c48c27b35f91ad8bcf811f.jpg',
uuid: 'e38d3022-1188-4abb-bb9f-9ececc8770d3'
},
'6439a7a1-3779-4690-a9c6-89c7534a71da': {
name: '文件28',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件28.43368ef2c8717ac522109f970d7b560712832299.jpg',
uuid: '6439a7a1-3779-4690-a9c6-89c7534a71da'
},
'24113220-0eb0-40b7-9b72-a515fd834a48': {
name: '文件29',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件29.b6f2c2cf7bf74b7f0240c00f24b0aa3d10ef54b8.jpg',
uuid: '24113220-0eb0-40b7-9b72-a515fd834a48'
},
'cf4e96fa-23b4-431a-b743-33a0be895f44': {
name: '文件31',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件31.98978c72e2f4f3436bf5e839ad889bec375d4673.jpg',
uuid: 'cf4e96fa-23b4-431a-b743-33a0be895f44'
},
'477d6d42-9458-4ef1-90d6-1531db98109e': {
name: '文件32',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件32.d2980feca8822a0600717f4c117999ae75cd7262.jpg',
uuid: '477d6d42-9458-4ef1-90d6-1531db98109e'
},
'7b099cb3-b542-41d7-b4ba-323e19e76842': {
name: '文件33',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件33.a485379327417643de6aaee4cc9bbd41b17724cb.jpg',
uuid: '7b099cb3-b542-41d7-b4ba-323e19e76842'
},
'7fa15fd7-7d0e-486a-aaae-5ef179cd8760': {
name: '文件34',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件34.7001922bf215a20bbf909d81110da820215fa536.jpg',
uuid: '7fa15fd7-7d0e-486a-aaae-5ef179cd8760'
},
'4c5894e7-d642-45eb-b038-ff61b3617878': {
name: '文件36',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件36.85e2af44e4c28a1b98029b84a617841957350b71.jpg',
uuid: '4c5894e7-d642-45eb-b038-ff61b3617878'
},
'58036659-1179-4b21-b7dd-1ff7461e7809': {
name: '文件37',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件37.b39cb7e6e8a0725d887f540d34963f9766c83092.jpg',
uuid: '58036659-1179-4b21-b7dd-1ff7461e7809'
},
'27d53b34-f320-4622-be52-7eaf08d91bdd': {
name: '文件38',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件38.327a67ee091b9f349ec552a3df4474e7c778bf47.jpg',
uuid: '27d53b34-f320-4622-be52-7eaf08d91bdd'
},
'f2ec1135-5c97-4d6f-8f37-dc670cb617e8': {
name: '文件39',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件39.fd22f2cb718b22087ef93d2e2f6042900c1e42bd.jpg',
uuid: 'f2ec1135-5c97-4d6f-8f37-dc670cb617e8'
},
'edfe2326-b3fb-4ae8-b835-721378d9a45c': {
name: '文件40',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件40.237170b0fb8f8ffa16ad72b1b7d41186960e13f0.jpg',
uuid: 'edfe2326-b3fb-4ae8-b835-721378d9a45c'
},
'aa1a9afd-6ce5-44cb-a331-332b4c6f80b1': {
name: '文件41',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件41.cbff756bfa957994993f49cdeafe432e0a47255a.jpg',
uuid: 'aa1a9afd-6ce5-44cb-a331-332b4c6f80b1'
},
'5900ca34-a0ae-4efd-8a80-41c6ab113188': {
name: '文件42',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件42.3e5cf9a3dce8818067f9e2003bc3b5b7f21bb02b.jpg',
uuid: '5900ca34-a0ae-4efd-8a80-41c6ab113188'
},
'cf9906c7-78e8-4b66-bf87-e28a210b36db': {
name: '文件43',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件43.8ed5ee7ebf7c5143c06d7ebe7767069571c159a1.jpg',
uuid: 'cf9906c7-78e8-4b66-bf87-e28a210b36db'
},
'2bd5e06d-675f-45a0-855e-3c8925f3b0e4': {
name: '文件44',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件44.986dcc42243b42af94d5e1da8886b55588b4b33d.jpg',
uuid: '2bd5e06d-675f-45a0-855e-3c8925f3b0e4'
},
'63e520ba-6407-4c3b-9867-5959401b9efc': {
name: '文件45',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件45.8ba9a69c97cb6a551256eb1c017d81f900b784d7.jpg',
uuid: '63e520ba-6407-4c3b-9867-5959401b9efc'
},
'cb80fbdc-32f1-4be3-898e-46b8dbb3e1f1': {
name: '文件46',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件46.f78d4043a6eab6d77e269cacd9257ca9df9d635c.jpg',
uuid: 'cb80fbdc-32f1-4be3-898e-46b8dbb3e1f1'
},
'5df2670d-a02d-471b-8770-a4caa0569192': {
name: '文件47',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件47.b17ca58c5365beb463347674636ebadcef40c42a.jpg',
uuid: '5df2670d-a02d-471b-8770-a4caa0569192'
},
'e066e961-f8a4-4bdd-b141-aeadec627ea3': {
name: '文件48',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件48.494c820b1e2352e46bcc0fb399aaefb5050a9570.jpg',
uuid: 'e066e961-f8a4-4bdd-b141-aeadec627ea3'
},
'6026caa2-1f72-40ee-ab9a-544765a9fb75': {
name: '文件49',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件49.33b25d0e2e10a6e5bd80f9edbf58ab96936e8420.jpg',
uuid: '6026caa2-1f72-40ee-ab9a-544765a9fb75'
},
'cd03105b-2d1a-44d6-a543-87b2ca3d3fb7': {
name: '文件51',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件51.ae838a87b6209193b0fb09caedd97ed8bc946204.jpg',
uuid: 'cd03105b-2d1a-44d6-a543-87b2ca3d3fb7'
},
'76f17411-7b7d-434c-a332-9ce003ca7bcc': {
name: '文件52',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件52.3a0f465e1710fb6a37bf1b906a38d005392f2a13.jpg',
uuid: '76f17411-7b7d-434c-a332-9ce003ca7bcc'
},
'6b476bea-bf80-4f3f-9d2b-1a599a8336ef': {
name: '文件53',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件53.ed0e016d2fdbfb0c6b4374ef30702df2fa6de45f.jpg',
uuid: '6b476bea-bf80-4f3f-9d2b-1a599a8336ef'
},
'00d31743-6a73-4242-8133-de500ddb24cd': {
name: '文件54',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件54.56258829f8c72ff94c7ef9cdc45af1ffa8063cdb.jpg',
uuid: '00d31743-6a73-4242-8133-de500ddb24cd'
},
'0c63196e-1208-434d-8f41-87c5a61e978e': {
name: '文件55',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件55.f40287e3939b90069335da360ab5455d9476a5b6.jpg',
uuid: '0c63196e-1208-434d-8f41-87c5a61e978e'
},
'77eb4c3e-3545-4c87-9324-1bff2369ec70': {
name: '文件56',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件56.f7206b65a3a57942a6ab2a50d209b99c5acc3448.jpg',
uuid: '77eb4c3e-3545-4c87-9324-1bff2369ec70'
},
'4b848163-8fae-4119-aa7f-4a06c2db011e': {
name: '文件57',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件57.0f36be85fa3767fa6b25a1e8c5fe45c14b8ddb9f.jpg',
uuid: '4b848163-8fae-4119-aa7f-4a06c2db011e'
},
'f19ddca0-2d67-4061-a01c-720f429adfd4': {
name: '文件58',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件58.31776ce96f7d58b18acb85cc0edd2a2a66f5d854.jpg',
uuid: 'f19ddca0-2d67-4061-a01c-720f429adfd4'
},
'ec277d9f-3c2d-49b4-971c-af9ae4662259': {
name: '文件59',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件59.c94af2b9a1ea42fb7be904d15922114941617579.jpg',
uuid: 'ec277d9f-3c2d-49b4-971c-af9ae4662259'
},
'b259fdfc-0304-42c8-80ef-5477a54a4e6e': {
name: '文件60',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件60.ded02146d1f3ddc31bcb37a1f96fc839fa6df690.jpg',
uuid: 'b259fdfc-0304-42c8-80ef-5477a54a4e6e'
},
'9c3f55bc-ac52-40f7-8225-4e039a005fcb': {
name: '文件61',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件61.ace45a8828300e6748f27be823c31ac93b60e5e6.jpg',
uuid: '9c3f55bc-ac52-40f7-8225-4e039a005fcb'
},
'9c3256d7-a64d-4df0-9469-d6bdbbac47da': {
name: '文件62',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件62.7f1f9bba433e58eb327160318f1f17fd6b344dc9.jpg',
uuid: '9c3256d7-a64d-4df0-9469-d6bdbbac47da'
},
'edc54b63-878d-4237-b2e8-805fe4773eaa': {
name: '文件64',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件64.51dddd69362dec35cc67efff4f41ddcd4eb65904.jpg',
uuid: 'edc54b63-878d-4237-b2e8-805fe4773eaa'
},
'6ca489b8-c0b3-4341-b877-64a9c0c2a5d9': {
name: '文件65',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件65.737f0f695c22bcd6bff9a77de57c0334509495f4.jpg',
uuid: '6ca489b8-c0b3-4341-b877-64a9c0c2a5d9'
},
'5a2de543-dac0-4bbf-9778-d980782fd843': {
name: '文件66',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件66.3a18acb8f0ce48e0365b758fe82cca9195e66070.jpg',
uuid: '5a2de543-dac0-4bbf-9778-d980782fd843'
},
'47344cf5-f40e-458f-92f4-209b189d1a40': {
name: '文件67',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件67.b9d04006354e171bfceb9c9be16dfebd3d5b1100.jpg',
uuid: '47344cf5-f40e-458f-92f4-209b189d1a40'
},
'02648f1f-b7bb-4063-baa0-f854653d43c9': {
name: '文件68',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件68.0d55ca31df151b56642ccc2e727557de06d9c296.jpg',
uuid: '02648f1f-b7bb-4063-baa0-f854653d43c9'
},
'4a2a7319-80c1-4f81-97e0-696315333a59': {
name: '文件69',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件69.2683fa3e2150cc15e60e037adea6abca7420e616.jpg',
uuid: '4a2a7319-80c1-4f81-97e0-696315333a59'
},
'bd82d1b6-4acd-4b0a-af5f-05c41cc25631': {
name: '文件70',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件70.a877b8f6025a5919026fbeed4ff0683c1a89ac0f.jpg',
uuid: 'bd82d1b6-4acd-4b0a-af5f-05c41cc25631'
},
'ddd4a115-91ea-4cd5-95fd-d7e08447c10e': {
name: '文件71',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件71.1474da7db24cadaca84b74d11b80c9aa08d6569c.jpg',
uuid: 'ddd4a115-91ea-4cd5-95fd-d7e08447c10e'
},
'fa1a3358-005e-43d3-990d-39c75b26b935': {
name: '文件72',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件72.5d95fcb0bb596df3a62b5095ea6606869baecfd0.jpg',
uuid: 'fa1a3358-005e-43d3-990d-39c75b26b935'
},
'6d2611e3-c486-4483-8774-121c2ca2024a': {
name: '文件74',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件74.2dcbe3758e7e271d8d6a2ffaf797ca77358fce59.jpg',
uuid: '6d2611e3-c486-4483-8774-121c2ca2024a'
},
'a380691b-f8f1-4d81-b4dc-8abfd3766149': {
name: '文件76',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件76.13ddbecdad77806827cf6306e1c8da4ad7f248f4.jpg',
uuid: 'a380691b-f8f1-4d81-b4dc-8abfd3766149'
},
'ca28180b-e8fe-48ee-8c56-648508839b23': {
name: '文件77',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件77.b344126d9a9c4c832b3d2721320a9a0d51edbdb0.jpg',
uuid: 'ca28180b-e8fe-48ee-8c56-648508839b23'
},
'545c91f2-6981-4c10-838c-3478d50ee5e7': {
name: '文件78',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件78.36067d0989e49d31ba42ad989b9dea2d99cde3ee.jpg',
uuid: '545c91f2-6981-4c10-838c-3478d50ee5e7'
},
'9ed6918e-f150-4ca0-af88-bcc17d409425': {
name: '文件79',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件79.8e420ebc261b57d7674418f4cf02f082fb123dbd.jpg',
uuid: '9ed6918e-f150-4ca0-af88-bcc17d409425'
},
'048b5439-51b3-4cfe-8a28-cf0347382a48': {
name: '文件80',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件80.a478be2e544340b584ee31118a835faa25810509.jpg',
uuid: '048b5439-51b3-4cfe-8a28-cf0347382a48'
},
'ebe66c59-f422-419e-a83c-9e0da9612227': {
name: '文件81',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件81.f04c654cfcde0f2fd09ddd983ebb0e56d020b12e.jpg',
uuid: 'ebe66c59-f422-419e-a83c-9e0da9612227'
},
'5ded071f-b9fc-4fc9-9972-e9ef54daf53c': {
name: '文件82',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件82.73db6f2255fbbb7b6d02e0e1656ca2a682387599.jpg',
uuid: '5ded071f-b9fc-4fc9-9972-e9ef54daf53c'
},
'0fde2416-9f85-4bd0-b458-0a5a92cc3c09': {
name: '文件83',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件83.54d044c6b701036c85a1c4ae30c2bc877e44316c.jpg',
uuid: '0fde2416-9f85-4bd0-b458-0a5a92cc3c09'
},
'4d150712-010a-449a-82a8-76520a50976d': {
name: '文件84',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件84.02e719bf6b71ce4e680220c75d4a9e0b2252c780.jpg',
uuid: '4d150712-010a-449a-82a8-76520a50976d'
},
'56c218a6-3047-40de-aaea-9cab4a4e1299': {
name: '文件85',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件85.05a6d7e798d55a8914db454b6dee0ac2e59cbec5.jpg',
uuid: '56c218a6-3047-40de-aaea-9cab4a4e1299'
},
'43457dc5-6629-4ecd-8285-a86f0cedfe18': {
name: '文件87',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件87.c273f38db3b26c94243b4cc35ac0dab5988d0d16.jpg',
uuid: '43457dc5-6629-4ecd-8285-a86f0cedfe18'
},
'f4d80ca5-433e-456f-b49a-ad2f416526e2': {
name: '文件88',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件88.1ac745ce4e00808bb742817c77996f4f0e71f2c6.jpg',
uuid: 'f4d80ca5-433e-456f-b49a-ad2f416526e2'
},
'43871364-5149-4dc7-99e5-a5d7cb8b6ecf': {
name: '文件89',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件89.e16a029215e07c94f2e339ee048b16314222997c.jpg',
uuid: '43871364-5149-4dc7-99e5-a5d7cb8b6ecf'
},
'c071ea95-46fb-4ddd-bd43-3512105bedff': {
name: '文件90',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件90.09594fef6d4e0777be592859a916ace4b14ebb17.jpg',
uuid: 'c071ea95-46fb-4ddd-bd43-3512105bedff'
},
'3308feef-6b31-4244-9862-18c7f9bc64e0': {
name: '文件91',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark/assets/文件91.4d594d886233f57acbe2255115220a98b2e81fe1.jpg',
uuid: '3308feef-6b31-4244-9862-18c7f9bc64e0'
}
};
export default resList;
\ No newline at end of file
...@@ -69,7 +69,7 @@ const request = ({ cloud, cloudName, requestType = 'cloud' }) => { ...@@ -69,7 +69,7 @@ const request = ({ cloud, cloudName, requestType = 'cloud' }) => {
dataType: 'json' dataType: 'json'
}).then(({ data: res }) => { }).then(({ data: res }) => {
hideMyLoading(); hideMyLoading();
// console.log(`mock res,${url}=>`, res) console.log(`mock res,${url}=>`, res)
if (res && res.success) { if (res && res.success) {
resolve(res); resolve(res);
} else { } else {
...@@ -86,7 +86,7 @@ const request = ({ cloud, cloudName, requestType = 'cloud' }) => { ...@@ -86,7 +86,7 @@ const request = ({ cloud, cloudName, requestType = 'cloud' }) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// console.log('requestCloud', handle, params); // console.log('requestCloud', handle, params);
cloud.function.invoke(_cloudName, params, handle).then(res => { cloud.function.invoke(_cloudName, params, handle).then(res => {
// console.log('request Cloud callback=>', handle, res, JSON.stringify(res)); console.log('request Cloud callback=>', handle, res, JSON.stringify(res));
hideMyLoading(); hideMyLoading();
if (res && res.success) { if (res && res.success) {
resolve(res); resolve(res);
......
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