This commit is contained in:
Putoo
2026-07-08 19:13:55 +08:00
parent 5d0ebe5077
commit fe2696074b
59 changed files with 1448 additions and 112 deletions

View File

@@ -22,7 +22,7 @@
坐骑:<br>
成就:<br>
个性签名:{{ userData.sign }}<br>
罪恶值:0<br>
罪恶值:{{ accData.enemy }}<br>
师德:{{ accData.teach }}<br>
</div>
<div class="content">
@@ -98,6 +98,9 @@
<div class="content" v-if="team.state == 1">
队伍:<Abar :href='"/user/team/info?id=" + team.team.teamId'>{{ team.team.name }}</Abar>
</div>
<div class="content" v-if="isPk">
<Abutton @click="FightAtk">攻击</Abutton>
</div>
</template>
<script setup lang="ts">
@@ -112,6 +115,7 @@ const online = ref(0);
const onMap = ref('');
const isFriend = ref(false);
const isEnemy = ref(false);
const isPk = ref(false);
const team = ref<any>({});
/**装备定义 */
const equ = ref<Array<any>>([]);
@@ -150,7 +154,7 @@ const BindData = async (): Promise<void> => {
isFriend.value = result.data.isFriend;
isEnemy.value = result.data.isEnemy;
team.value = result.data.team;
isPk.value = result.data.isPk;
equ.value = result.data.equ;
suit.value = result.data.suit;
Hold.value = equ.value.filter(it => it.code == 'Hold');
@@ -163,6 +167,7 @@ const BindData = async (): Promise<void> => {
Fashion.value = equ.value.filter(it => it.code == 'Fashion');
Wing.value = equ.value.filter(it => it.code == 'Wing');
Decorate.value = equ.value.filter(it => it.code == 'Decorate');
console.log(result);
}
else if (result.code == 101) {
@@ -210,4 +215,17 @@ const AddEnemy = async (): Promise<void> => {
});
}
const FightAtk = async () => {
let no = PageExtend.QueryString("no");
MessageExtend.LoadingToast("战斗初始化...");
let result = await FightService.FightPerson(no);
MessageExtend.LoadingClose();
if (result.code == 0) {
return PageExtend.Redirect("/fight?f=" + result.data);
}
else {
MessageExtend.ShowDialog("提示", result.msg);
}
}
</script>