|
@@ -246,39 +246,55 @@ Page({
|
|
|
}],
|
|
|
treasureList: [{
|
|
|
id: 2,
|
|
|
+ num: 1,
|
|
|
+ text: '加油!继续挑战第2关',
|
|
|
+ text2: '你的成绩会被记录在排行榜上哦! 快来展示你的实力吧!',
|
|
|
close: '/static/2t.png',
|
|
|
open: '/static/2t-2.png',
|
|
|
top: 310,
|
|
|
left: -10
|
|
|
}, {
|
|
|
id: 5,
|
|
|
+ num: 2,
|
|
|
+ text: '再接再厉!通往下一关!',
|
|
|
close: '/static/5.png',
|
|
|
open: '/static/5-2.png',
|
|
|
top: 840,
|
|
|
left: 20
|
|
|
}, {
|
|
|
id: 10,
|
|
|
+ num: 3,
|
|
|
+ text: '挑战更高级难度!赢取更多奖励',
|
|
|
close: '/static/10.png',
|
|
|
open: '/static/10-2.png',
|
|
|
top: 1736,
|
|
|
left: 510
|
|
|
}, {
|
|
|
id: 15,
|
|
|
+ num: 4,
|
|
|
+ text: '保持冷静,一步一个脚印!',
|
|
|
close: '/static/15.png',
|
|
|
open: '/static/15-2.png',
|
|
|
top: 2632,
|
|
|
left: 26
|
|
|
}, {
|
|
|
id: 30,
|
|
|
+ num: 5,
|
|
|
+ text: '全力以赴,冲刺胜利!',
|
|
|
+ text2: '不要气馁,坚持到底就能成功通关!',
|
|
|
close: '/static/30.png',
|
|
|
open: '/static/30-2.png',
|
|
|
top: 4924,
|
|
|
left: 16
|
|
|
}],
|
|
|
- count: 29,
|
|
|
- state: false
|
|
|
+ count: 9,
|
|
|
+ state: false,
|
|
|
+ modelInfo: {
|
|
|
+ title: '',
|
|
|
+ text: '',
|
|
|
+ text2: ''
|
|
|
+ }
|
|
|
},
|
|
|
-
|
|
|
async onShow() {
|
|
|
if (this.data.count > 2) {
|
|
|
wx.pageScrollTo({
|
|
@@ -286,31 +302,22 @@ Page({
|
|
|
duration: 800
|
|
|
})
|
|
|
}
|
|
|
- this.setData({
|
|
|
- state: true
|
|
|
- })
|
|
|
- /* let {
|
|
|
- list
|
|
|
- } = await getInviteList({
|
|
|
- pageSize: 9999
|
|
|
- })
|
|
|
- this.setData({
|
|
|
- list,
|
|
|
- count: list.length
|
|
|
- })
|
|
|
- console.log(list); */
|
|
|
- },
|
|
|
- showTranscript() {
|
|
|
- this.selectComponent("#popUp").showModal()
|
|
|
},
|
|
|
- closeTranscript() {
|
|
|
- this.selectComponent("#popUp").hideModal()
|
|
|
- },
|
|
|
- jumpUserInfo({
|
|
|
+ openTips({
|
|
|
currentTarget
|
|
|
}) {
|
|
|
- wx.navigateTo({
|
|
|
- url: `/pages/personal/index?uid=${currentTarget.dataset.uid}&type=user`,
|
|
|
+ let info = currentTarget.dataset.info
|
|
|
+ this.setData({
|
|
|
+ state: true,
|
|
|
+ modelInfo: info.id <= this.data.count ? {
|
|
|
+ title: `恭喜,您已通关第${info.num}关`,
|
|
|
+ text: info.text,
|
|
|
+ text2: info.text2
|
|
|
+ } : {
|
|
|
+ title: '加油!冲关!',
|
|
|
+ text: '保持积极的态度和努力的精神, 相信您可以顺利完成后面的关卡',
|
|
|
+ text2: '展示您的实力吧!🏆'
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
closeMediaBox() {
|