|
|
@ -92,7 +92,7 @@ |
|
|
id="guide-adventure" |
|
|
id="guide-adventure" |
|
|
class="guide-anchor-wrap" |
|
|
class="guide-anchor-wrap" |
|
|
:class="{'guide-focus-target': guideFocus.key === 'adventure'}"> |
|
|
:class="{'guide-focus-target': guideFocus.key === 'adventure'}"> |
|
|
<planet-adventure-entry :social-mode="isSocialArea" @start="goAdventure" @arena="goArena"></planet-adventure-entry> |
|
|
<planet-adventure-entry :social-mode="useSocialText" @start="goAdventure" @arena="goArena"></planet-adventure-entry> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view |
|
|
<view |
|
|
@ -316,6 +316,7 @@ |
|
|
import planetAdventureEntry from '@/package5/components/planet/planet-adventure-entry.vue' |
|
|
import planetAdventureEntry from '@/package5/components/planet/planet-adventure-entry.vue' |
|
|
import { buildHomeSharePath } from '@/utils/sharePath.js' |
|
|
import { buildHomeSharePath } from '@/utils/sharePath.js' |
|
|
import { requireLoginToCurrentPage } from '@/utils/authRedirect.js' |
|
|
import { requireLoginToCurrentPage } from '@/utils/authRedirect.js' |
|
|
|
|
|
import { resolveCampusTextEnabled, shouldUseSocialText } from '@/utils/areaTextMode.js' |
|
|
|
|
|
|
|
|
const SHARE_TARGET_PATH = '/package5/planet/index' |
|
|
const SHARE_TARGET_PATH = '/package5/planet/index' |
|
|
|
|
|
|
|
|
@ -376,6 +377,7 @@ |
|
|
taskDrawerVisible: false, |
|
|
taskDrawerVisible: false, |
|
|
guidePausedStep: null, |
|
|
guidePausedStep: null, |
|
|
areaKind: 1, |
|
|
areaKind: 1, |
|
|
|
|
|
campusTextEnabled: 0, |
|
|
guideFocus: { |
|
|
guideFocus: { |
|
|
show: false, |
|
|
show: false, |
|
|
key: '', |
|
|
key: '', |
|
|
@ -402,11 +404,14 @@ |
|
|
isSocialArea() { |
|
|
isSocialArea() { |
|
|
return Number(this.areaKind) === 2 |
|
|
return Number(this.areaKind) === 2 |
|
|
}, |
|
|
}, |
|
|
|
|
|
useSocialText() { |
|
|
|
|
|
return shouldUseSocialText(this.areaKind, this.campusTextEnabled) |
|
|
|
|
|
}, |
|
|
rankEventName() { |
|
|
rankEventName() { |
|
|
return this.isSocialArea ? '同城排位赛' : '学院排位赛' |
|
|
return this.useSocialText ? '同城排位赛' : '学院排位赛' |
|
|
}, |
|
|
}, |
|
|
teamLabel() { |
|
|
teamLabel() { |
|
|
return this.isSocialArea ? '战队' : '学院' |
|
|
return this.useSocialText ? '战队' : '学院' |
|
|
}, |
|
|
}, |
|
|
stars() { |
|
|
stars() { |
|
|
const arr = [] |
|
|
const arr = [] |
|
|
@ -450,7 +455,7 @@ |
|
|
key: 'adventure', |
|
|
key: 'adventure', |
|
|
icon: '赛', |
|
|
icon: '赛', |
|
|
name: this.rankEventName + '赢现金', |
|
|
name: this.rankEventName + '赢现金', |
|
|
desc: this.isSocialArea ? '为战队冲榜,个人排名也有奖励' : '为学院冲榜,个人排名也有奖励' |
|
|
desc: this.useSocialText ? '为战队冲榜,个人排名也有奖励' : '为学院冲榜,个人排名也有奖励' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
key: 'pk', |
|
|
key: 'pk', |
|
|
@ -1220,10 +1225,11 @@ |
|
|
} |
|
|
} |
|
|
const kind = area ? Number(area.areaKind) : 1 |
|
|
const kind = area ? Number(area.areaKind) : 1 |
|
|
this.areaKind = kind === 2 ? 2 : 1 |
|
|
this.areaKind = kind === 2 ? 2 : 1 |
|
|
|
|
|
this.campusTextEnabled = resolveCampusTextEnabled(area) |
|
|
}, |
|
|
}, |
|
|
onRandomSearch() { |
|
|
onRandomSearch() { |
|
|
this.startSearch('/app/planet/search/random', {}, { |
|
|
this.startSearch('/app/planet/search/random', {}, { |
|
|
nickname: this.isSocialArea ? '随机同城玩家' : '随机同校区玩家' |
|
|
nickname: this.useSocialText ? '随机同城玩家' : '随机同校区玩家' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
onDailyCollect() { |
|
|
onDailyCollect() { |
|
|
@ -1250,7 +1256,7 @@ |
|
|
this.huntModal.phase = 'searching' |
|
|
this.huntModal.phase = 'searching' |
|
|
this.huntModal.result = null |
|
|
this.huntModal.result = null |
|
|
this.huntModal.target = target || { |
|
|
this.huntModal.target = target || { |
|
|
nickname: this.isSocialArea ? '同城玩家' : '同校区玩家' |
|
|
nickname: this.useSocialText ? '同城玩家' : '同校区玩家' |
|
|
} |
|
|
} |
|
|
setTimeout(() => { this.huntModal.phase = 'locking' }, 900) |
|
|
setTimeout(() => { this.huntModal.phase = 'locking' }, 900) |
|
|
setTimeout(() => { this.huntModal.phase = 'chasing' }, 1800) |
|
|
setTimeout(() => { this.huntModal.phase = 'chasing' }, 1800) |
|
|
|