Browse Source

取消转生功能,转生点改为属性点

v1.0
许孟阳 1 week ago
parent
commit
14d781ad48
  1. BIN
      public/img/attribute/critAvoid.png
  2. BIN
      public/img/attribute/critDmgReduc.png
  3. BIN
      public/img/attribute/dmgReduc.png
  4. BIN
      public/img/attribute/破甲.png
  5. BIN
      public/img/attribute/防御降低.png
  6. 2
      src/config/assets.ts
  7. 10
      src/config/base.ts
  8. 46
      src/config/beings.ts
  9. 18
      src/config/i18n/index.ts
  10. 3
      src/config/i18n/zh/index.ts
  11. 10
      src/config/i18n/zh/point.ts
  12. 4
      src/store/action.ts
  13. 32
      src/store/mutation.ts
  14. 6
      src/store/state.ts
  15. 10
      src/tool/archive.ts
  16. 4
      src/tool/caller/attribute.ts
  17. 4
      src/views/backpack/player.vue
  18. 3
      src/views/dungeon/battle.vue
  19. 3
      src/views/menu.vue
  20. 5
      src/views/message/attribute.vue
  21. 3
      src/views/point/index.ts
  22. 158
      src/views/point/point.vue
  23. 3
      src/views/reborn/index.ts

BIN
public/img/attribute/critAvoid.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
public/img/attribute/critDmgReduc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
public/img/attribute/dmgReduc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
public/img/attribute/破甲.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
public/img/attribute/防御降低.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

2
src/config/assets.ts

@ -30,6 +30,8 @@ export const attr_icon_urls = { @@ -30,6 +30,8 @@ export const attr_icon_urls = {
def: root + '/img/attribute/icon_11.png',
eva: root + '/img/attribute/S_EVA.png',
bloc: root + '/img/attribute/S_BLOC.png',
critAvoid: root + '/img/attribute/critAvoid.png',
critDmgReduc: root + '/img/attribute/critDmgReduc.png',
recoverSpeed: root + '/img/attribute/recover.png',
moveSpeed: root + '/img/attribute/S_EVA.png',
battleSpeed: root + '/img/attribute/S_EVA.png',

10
src/config/base.ts

@ -1,16 +1,14 @@ @@ -1,16 +1,14 @@
import { Player, RebornPoints } from './beings';
import { Equip } from './equips';
export const backpack_num = 32;
export const reborn_arrts = ['hp', 'atk', 'crit', 'critDmg', 'def', 'bloc', 'recoverSpeed', 'moveSpeed', 'battleSpeed'];
export const reborn_point_coefficients = {
export const piont_arrts = ['hp', 'atk', 'crit', 'critDmg', 'def', 'bloc', 'critAvoid', 'critDmgReduc', 'moveSpeed', 'battleSpeed'];
export const point_coefficients = {
hp: 10,
atk: 3,
crit: 0.1,
critDmg: 1,
def: 2,
bloc: 2,
recoverSpeed: 4,
critAvoid: 0.1,
critDmgReduc: 1,
moveSpeed: 3,
battleSpeed: 4,
};

46
src/config/beings.ts

@ -1,4 +1,15 @@ @@ -1,4 +1,15 @@
import { initialWeapon, initialArmor, initialNeck, initialRing, initialJewelry, initialpants, initialshoes, initialbracers, Equip } from '@/config';
import {
initialWeapon,
initialArmor,
initialNeck,
initialRing,
initialJewelry,
initialpants,
initialshoes,
initialbracers,
Equip,
piont_arrts,
} from '@/config';
export const type_monster = 'monster';
export const type_boss = 'boss';
export const difficultys = ['normal', 'hard', 'pain', 'xiaomi', 'dami'];
@ -32,15 +43,13 @@ export class Attribute { @@ -32,15 +43,13 @@ export class Attribute {
dps: number = 0;
skill: string = 'Attack';
constructor(ra?: RebornAttribute) {
if (ra) {
this.hp += ra.hp;
this.atk += ra.atk;
this.def += ra.def;
this.bloc += ra.bloc;
this.crit += ra.crit;
this.critDmg += ra.critDmg;
this.moveSpeed += ra.moveSpeed;
constructor(base?: Attribute) {
if (base) {
piont_arrts.forEach((attr) => {
if (this[attr] != undefined) {
this[attr] += base[attr];
}
});
}
}
}
@ -60,21 +69,16 @@ export class Player { @@ -60,21 +69,16 @@ export class Player {
attribute: Attribute = new Attribute();
}
export class RebornAttribute {
export class BaseAttribute extends Attribute {
curHp: number = 0;
hp: number = 0;
atk: number = 0;
crit: number = 0;
critDmg: number = 0;
def: number = 0;
bloc: number = 0;
recoverSpeed: number = 0;
moveSpeed: number = 0;
battleSpeed: number = 0;
}
export class RebornPoints extends RebornAttribute {
count: number = 0;
points: number = 0;
export class Points extends BaseAttribute {
total: number = 0;
has: number = 0;
}
export class Monster extends Attribute {
@ -150,6 +154,7 @@ export class Dungeon { @@ -150,6 +154,7 @@ export class Dungeon {
right: string = '';
top: string = '';
layer: number;
points: number = 0;
constructor(lv: number, difficulty: string, layer?: number) {
this.lv = lv;
@ -166,6 +171,7 @@ export class Dungeon { @@ -166,6 +171,7 @@ export class Dungeon {
}
const boss = new BossMonster(lv, difficulty, this.layer);
this.monsters.push(boss);
this.points = Math.floor(boss.ef * boss.lf);
this.needDps = Math.ceil(lv * lv ** 1.1 * 32.5 * base_attr_factor[this.difficulty]);
}
setLayer = (layer) => {

18
src/config/i18n/index.ts

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
import { createI18n } from 'vue3-i18n';
import { createI18n, I18nInstance } from 'vue3-i18n';
import Zh from './zh';
import En from './en';
@ -11,4 +11,18 @@ const i18n = createI18n({ @@ -11,4 +11,18 @@ const i18n = createI18n({
messages,
});
export default i18n
export const createt = (sufix: string) => {
return (key: string): string => {
key = sufix + key;
return i18n.t(key);
};
};
// export class Myi18n {
// mt: (key: string) => string;
// constructor(sufix: string) {
// this.mt =
// }
// }
export default i18n;

3
src/config/i18n/zh/index.ts

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
import { weapon, armor, neck, ring, jewelry, pants, shoes, bracers, quality, extraQuality } from './euips';
import * as skills from './skills';
import * as point from './point';
export default class Zh {
title = '挂机放置游戏';
@ -29,6 +30,8 @@ export default class Zh { @@ -29,6 +30,8 @@ export default class Zh {
extraQuality = extraQuality;
skill = skills;
point = point;
lv = '等级';
reborn = ['转生次数', '玩家当前等级与转生次数', '成功挑战首领时会提升等级', '超过30级时可以转生获取更强力的初始属性'];
hp = ['生命值', '当前生命值/最大生命值', '每秒会回复2%的最大生命值'];

10
src/config/i18n/zh/point.ts

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
export const menu = '属性加点(P)';
export const desc = ['每升级获得1属性点', '满级后通关小秘境和大秘境可以获取属性点', '最多可获取2000属性点'];
export const total = '已获得属性点:';
export const has = '可用属性点:';
// canGetPoint = '现在转生可以获得转生点数:';
// rebornConfirm = '确认转生';
// rebornLvTip = '等级这么低就先别转了吧,超过lv30再来看看';
// rebornComfirm = ['你将获得${points}转生点数,同时你的金币和装备都会消失且等级变为1级。', '转了转了', '算了'];
// addPoints = '左键加+1,右键+10';
// subtractPoints = '左键-1,右键-10';

4
src/store/action.ts

@ -87,13 +87,13 @@ const loadArchive = (commit, data) => { @@ -87,13 +87,13 @@ const loadArchive = (commit, data) => {
commit('set_sys_info', { msg: t('loadError'), type: 'warning' });
} else {
commit('set_player_equips', data.equips);
commit('set_player_lv', data.lv || 1);
commit('set_player_layer', data.layer || 1);
commit('set_player_coins', data.coins || 0);
commit('set_backpack', data.grid);
commit('set_auto_sell', data.autoSell);
commit('set_shop', data.shop);
commit('set_reborn_points', data.reborn);
commit('set_points', data.points);
commit('set_player_lv', data.lv || 1);
commit('set_sys_info', { msg: t('loadSuccess'), type: 'win' });
}
commit('call_player_attribute');

32
src/store/mutation.ts

@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
import { callPlayerAttribute, conisOfsell, getArrayEmptyIdx, callEuqipTipsLocation } from '@/tool';
import { reborn_point_coefficients, reborn_arrts, i18n } from '@/config';
import { i18n, piont_arrts, point_coefficients } from '@/config';
const { t } = i18n;
export const call_player_attribute = (state) => {
callPlayerAttribute(state.playerAttribute, state.rebornAttribute);
callPlayerAttribute(state.playerAttribute, state.baseAttribute);
};
export const set_player_equips = (state, equips) => {
if (equips && equips.length > 0) {
@ -84,19 +84,35 @@ export const set_player_lv = (state, data) => { @@ -84,19 +84,35 @@ export const set_player_lv = (state, data) => {
data = data < 1 ? 1 : data;
state.playerAttribute.lv = data;
state.playerAttribute.attribute.lv = data;
const total = state.points.total;
if (total < data) {
const add = data - total;
add_point(state, add);
}
};
export const set_player_layer = (state, data) => {
data = parseInt(data);
data = data < 1 ? 1 : data;
state.playerAttribute.layer = data;
};
export const set_reborn_points = (state, rebornPoints) => {
state.rebornPoints = rebornPoints;
const rebornAttribute = {};
reborn_arrts.forEach((attr) => {
rebornAttribute[attr] = rebornPoints[attr] * reborn_point_coefficients[attr];
export const add_point = (state, add) => {
const total = state.points.total;
if (total >= 2000) {
return;
}
if (total + add > 2000) {
add = 2000 - total;
}
state.points.total += add;
state.points.has += add;
};
export const set_points = (state, points) => {
state.points = points;
const baseAttribute = {};
piont_arrts.forEach((attr) => {
baseAttribute[attr] = points[attr] * point_coefficients[attr];
});
state.rebornAttribute = rebornAttribute;
state.baseAttribute = baseAttribute;
call_player_attribute(state);
};
export const add_player_curhp = (state, hp) => {

6
src/store/state.ts

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
import { i18n, RebornAttribute, RebornPoints, Player } from '@/config';
import { i18n, Player, Points, BaseAttribute } from '@/config';
const { t } = i18n;
@ -16,8 +16,8 @@ export default { @@ -16,8 +16,8 @@ export default {
tipsStyle: {},
tipsStyle2: {},
},
rebornAttribute: new RebornAttribute(),
rebornPoints: new RebornPoints(),
points: new Points(),
baseAttribute: new BaseAttribute(),
grid: new Array(32),
autoSell: [],
playerAttribute: new Player(),

10
src/tool/archive.ts

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
import { Equip, Player, RebornPoints } from '@/config';
import { Equip, Player, Points } from '@/config';
import { getFromStore, insertToStore, store_name_archive } from './IndexedDB';
import { uuid } from './random';
const archive_version = '1.0';
@ -13,9 +13,9 @@ export class GameArchive { @@ -13,9 +13,9 @@ export class GameArchive {
grid: any[];
autoSell: string[];
shop: any[];
reborn: RebornPoints;
points: Points;
constructor(player: Player, grid: any[], autoSell: any[], shop: any[], reboren: RebornPoints) {
constructor(player: Player, grid: any[], autoSell: any[], shop: any[], points: Points) {
this.version = archive_version;
this.equips = [player.weapon, player.armor, player.ring, player.neck, player.jewelry, player.pants, player.shoes, player.bracers];
this.lv = player.lv;
@ -24,12 +24,12 @@ export class GameArchive { @@ -24,12 +24,12 @@ export class GameArchive {
this.grid = grid;
this.autoSell = autoSell;
this.shop = shop;
this.reborn = reboren;
this.points = points;
}
}
export const saveArchive = (state) => {
const archive = new GameArchive(state.playerAttribute, state.grid, state.autoSell, state.shop, state.rebornPoints);
const archive = new GameArchive(state.playerAttribute, state.grid, state.autoSell, state.shop, state.points);
getFromStore(store_name_archive, archive_version_strengthen).then((flag: any) => {
const time = new Date().getTime();
if (!flag || !flag.time || flag.time + 10 * 60 * 1000 < time) {

4
src/tool/caller/attribute.ts

@ -6,13 +6,13 @@ import { deepCopy } from '.'; @@ -6,13 +6,13 @@ import { deepCopy } from '.';
* @param player
* @param rA
*/
export const callPlayerAttribute = (player: Player, rA: any) => {
export const callPlayerAttribute = (player: Player, base: any) => {
const equips = [player.weapon, player.armor, player.neck, player.ring, player.jewelry, player.pants, player.shoes, player.bracers];
const curHp = player.attribute.curHp,
hp = player.attribute.hp;
const hpP = hp > 0 ? curHp / hp : 1;
const attribute: Attribute = new Attribute(rA);
const attribute: Attribute = new Attribute(base);
const entry = new Array();
equips.forEach((equip) => {
equip && Array.prototype.push.apply(entry, equip.extraEntry);

4
src/views/backpack/player.vue

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
<div class="player">
<div class="attributes">
<div class="label">
<div>{{ t('reborn.0') }}:</div>
<!-- <div>{{ t('reborn.0') }}:</div> -->
<div> {{ t('lv') }}: </div>
<div> {{ t('coins.0') }}: </div>
<div v-for="attr in attrs" :key="attr">
@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
</div>
</div>
<div class="value">
<div>{{ state.rebornPoints.count }}</div>
<!-- <div>{{ state.rebornPoints.count }}</div> -->
<div> {{ state.playerAttribute.lv }} </div>
<div> {{ coins }} </div>
<div v-for="attr in attrs" :key="attr">{{ attribute[attr] }}{{ attr_unitys[attr] }} </div>

3
src/views/dungeon/battle.vue

@ -69,6 +69,7 @@ const exploreDungeon = (monsterIdx) => { @@ -69,6 +69,7 @@ const exploreDungeon = (monsterIdx) => {
playerMove(idx2);
} else {
commit("set_sys_info", { msg: t('dungeonSuccess'), type: 'battle' });
commit('add_point', dungeon.points);
if (dungeon.lv > state.playerAttribute.lv) {
commit('set_player_lv', dungeon.lv)
commit('set_sys_info', { msg: t('upgrade'), type: 'win' })
@ -121,7 +122,7 @@ watch(() => state.playerAttribute.attribute, (n) => { @@ -121,7 +122,7 @@ watch(() => state.playerAttribute.attribute, (n) => {
})
const battleWithMonster = (monster) => {
return new Promise((resolve, reject) => {
const battleTime = Math.ceil(player_battle_time * 100 / (100 + state.rebornAttribute.battleSpeed))
const battleTime = Math.ceil(player_battle_time * 100 / (100 + state.baseAttribute.battleSpeed))
const getMsg = (i18nName, takeDmg, sneak) => {
return replace(t(i18nName), [monster.lv, t('difficulty.' + props.dungeon?.difficulty) + t(monster.type), takeDmg, sneak]);
};

3
src/views/menu.vue

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
<div class='menu' @contextmenu.prevent="">
<Backpack />
<Shop />
<Reborn />
<Point />
<SaveGame />
<Archive />
<Dungeon />
@ -20,6 +20,7 @@ import Backpack from "./backpack"; @@ -20,6 +20,7 @@ import Backpack from "./backpack";
import Shop from "./shop";
import Dungeon from './dungeon';
import Reborn from "./reborn";
import Point from "./point";
import SaveGame from "./save-game.vue";
import Archive from "./archive.vue";
import Music from "./music.vue";

5
src/views/message/attribute.vue

@ -72,13 +72,10 @@ let interval = 0; @@ -72,13 +72,10 @@ let interval = 0;
const attribute = computed(() => {
return state.playerAttribute.attribute;
})
const recoverSpeed = computed(() => {
return state.rebornAttribute.recoverSpeed;
})
onMounted(() => {
interval = setInterval(() => {
commit('add_player_curhp', Math.ceil(attribute.value.hp * 0.02 * (1 + recoverSpeed.value / 100)))
commit('add_player_curhp', Math.ceil(attribute.value.hp * 0.02))
}, 1000);
});
onBeforeUnmount(() => {

3
src/views/point/index.ts

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
import Point from './point.vue';
export default Point;

158
src/views/reborn/reborn.vue → src/views/point/point.vue

@ -1,32 +1,27 @@ @@ -1,32 +1,27 @@
<template>
<Tooltip :infos="[t('rebornMenu.0'), t('rebornMenu.1')]" width="12rem">
<Tooltip :infos="[t('menu')]" width="12rem">
<img class="menu-img" :src="menu_icons.reborn" @click="showMenu">
</Tooltip>
<Dialog :title="t('rebornMenu.0')" v-model="showReborn" top="4rem" :left="state.mobile ? '4%' : '8%'"
padding="0.7rem">
<Dialog :title="t('menu')" v-model="showReborn" top="4rem" :left="state.mobile ? '4%' : '8%'" padding="0.7rem">
<div class="message">
<p>{{ t('canGetPoint') + getPoints }}</p>
<div class="tips">
<p>- {{ t('rebornDesc.0') }}</p>
<p>- {{ t('rebornDesc.1') }}</p>
<p>- {{ t('rebornDesc.2') }}</p>
</div>
<div class='btn-div'>
<button class="button" @click="reborn">{{ t('rebornConfirm') }}</button>
<p>- {{ t('desc.0') }}</p>
<p>- {{ t('desc.1') }}</p>
<p>- {{ t('desc.2') }}</p>
</div>
</div>
<div class="reborn">
<div class="points">
<div class="info">
<p>{{ t('rebornNum.0') }} {{ rebornPoints.count }}</p>
<p>{{ t('rebornNum.1') }} {{ rebornPoints.points }}</p>
<p>{{ t('total') }} {{ points.total }}</p>
<p>{{ t('has') }} {{ points.has }}</p>
</div>
<div class="attributes">
<div class="attribute" v-for="attr in reborn_arrts" :key="attr">
<div class="attribute" v-for="attr in piont_arrts" :key="attr">
<p>
<img :src="attr_icon_urls[attr]">
<span>
{{ t(attr + '.0') }}+{{ rebornAttribute[attr] }}
{{ t1(attr + '.0') }}+{{ baseAttribute[attr] }}
{{ attr_unitys[attr] }}
</span>
</p>
@ -35,7 +30,7 @@ @@ -35,7 +30,7 @@
<button class="button" @mousedown="mousedown(-1, attr, $event)"
@touchstart="touchstart(-1, attr)" @touchend="touchend(-1)">-</button>
</Tooltip>
<input type="number" min="0" disabled v-model="rebornPoints[attr]">
<input type="number" min="0" disabled v-model="points[attr]">
<Tooltip :infos="[t('addPoints')]" width="10rem">
<button class="button" @mousedown="mousedown(1, attr, $event)"
@touchstart="touchstart(1, attr)" @touchend="touchend(1)">+</button>
@ -45,52 +40,29 @@ @@ -45,52 +40,29 @@
</div>
</div>
</Dialog>
<Confirm ref="confirm" width="10rem" :tip="t('rebornComfirm.0').replace('${points}', getPoints + '')"
:confirm="t('rebornComfirm.1')" :cancel="t('rebornComfirm.2')" @confirm="confirmReborn" />
</template>
<script lang="ts" setup>
import { useStore } from "vuex";
import { computed, onBeforeUnmount, onMounted, ref } from "vue";
import { reactive, onMounted, ref, computed, onBeforeUnmount } from "vue";
import { useI18n } from "vue3-i18n";
import { Tooltip, Dialog, Confirm } from "@/components"
import { getPointsOfReborn } from "@/tool";
import { menu_icons, reborn_arrts, attr_icon_urls, attr_unitys, backpack_num } from "@/config";
import { menu_icons, piont_arrts, attr_icon_urls, attr_unitys, backpack_num } from "@/config";
import { createt } from "@/config/i18n";
const { t } = useI18n();
const t = createt('point.');
const t1 = useI18n().t;
const { state, commit, dispatch } = useStore();
const showReborn = computed(() => {
return state.curMenu == 'reborn';
return state.curMenu == 'point';
});
const getPoints = computed(() => {
return getPointsOfReborn(state.playerAttribute);
const points = computed(() => {
return state.points;
})
const rebornPoints = computed(() => {
return state.rebornPoints;
const baseAttribute = computed(() => {
return state.baseAttribute;
})
const rebornAttribute = computed(() => {
return state.rebornAttribute;
})
const confirm = ref();
const reborn = (e) => {
if (state.playerAttribute.lv <= 30) {
commit("set_sys_info", { msg: t('rebornLvTip'), type: 'warning' });
return
}
confirm.value.open(0, e)
}
const confirmReborn = () => {
const points = getPoints.value;
rebornPoints.value.count++;
rebornPoints.value.points += points;
dispatch('reset_player_equi')
commit('set_player_coins', 0)
commit('set_backpack', new Array(backpack_num))
}
const arrts = ['hp', 'atk', 'crit', 'critDmg', 'def', 'bloc', 'moveSpeed', 'battleSpeed'];
let flag = false;
let curAttr = '';
@ -136,9 +108,8 @@ const mouseup = (e) => { @@ -136,9 +108,8 @@ const mouseup = (e) => {
const changeAttribute = () => {
if (flag) {
debugger
const rp = rebornPoints.value;
const point = rp.points;
const rp = points.value;
const point = rp.has;
const oldPoint = rp[curAttr];
let num = 0;
if (curNum > 0 && point > 0) {
@ -148,14 +119,15 @@ const changeAttribute = () => { @@ -148,14 +119,15 @@ const changeAttribute = () => {
}
if (num != 0) {
rp[curAttr] = oldPoint + num;
rp.points = point - num;
commit('set_reborn_points', rp)
rp.has = point - num;
commit('set_points', rp)
}
setTimeout(changeAttribute, 100);
}
}
const showMenu = () => {
state.curMenu = showReborn.value ? null : 'reborn';
state.curMenu = showReborn.value ? null : 'point';
}
const keydown = (e) => {
if (e.keyCode == 82 && !e.ctrlKey) {
@ -165,7 +137,6 @@ const keydown = (e) => { @@ -165,7 +137,6 @@ const keydown = (e) => {
onMounted(() => {
document.addEventListener('keydown', keydown)
document.addEventListener('mouseup', mouseup)
state.rebornPoints.points = 100;
});
onBeforeUnmount(() => {
document.removeEventListener('keydown', keydown)
@ -173,10 +144,6 @@ onBeforeUnmount(() => { @@ -173,10 +144,6 @@ onBeforeUnmount(() => {
})
</script>
<style lang="scss" scoped>
* {
color: white;
}
.message {
display: flex;
flex-direction: column;
@ -189,6 +156,7 @@ onBeforeUnmount(() => { @@ -189,6 +156,7 @@ onBeforeUnmount(() => {
.tips {
padding-left: 1.3rem;
text-align: left;
p {
color: #999;
@ -196,17 +164,9 @@ onBeforeUnmount(() => { @@ -196,17 +164,9 @@ onBeforeUnmount(() => {
margin: 0rem;
}
}
.btn-div {
padding: 0.1rem;
display: flex;
justify-content: flex-end;
padding-right: 2rem;
}
}
.reborn {
.points {
padding: 0.1rem;
width: 32rem;
@ -215,7 +175,6 @@ onBeforeUnmount(() => { @@ -215,7 +175,6 @@ onBeforeUnmount(() => {
display: flex;
justify-content: space-between;
}
}
.attributes {
@ -254,61 +213,4 @@ onBeforeUnmount(() => { @@ -254,61 +213,4 @@ onBeforeUnmount(() => {
}
}
@media only screen and (max-width: 768px) {
.message {
padding-bottom: 0.5rem;
p {
margin: 0.5rem;
}
.tips {
padding-left: 0.8rem;
}
.btn-div {
padding: 0rem;
padding-right: 1rem;
}
}
.reborn {
padding: 0.1rem;
width: 23.5rem;
.info {
padding: 0.2rem;
}
}
.attributes {
padding: 0.05rem 0;
}
.attribute {
padding: 0.2rem 0rem;
p {
span {
margin-left: 0.2rem;
}
}
.group {
input {
width: 4rem;
color: black;
height: 1.8rem;
font-size: 0.8rem;
}
}
}
}
</style>

3
src/views/reborn/index.ts

@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
import Reborn from './reborn.vue';
export default Reborn;
Loading…
Cancel
Save