|
@@ -56,17 +56,12 @@
|
|
|
</n-descriptions-item>
|
|
|
<n-descriptions-item label="玩家体力">
|
|
|
<n-space>
|
|
|
- <span class="default_text_value">{{ userInfo.stamina }}</span>
|
|
|
+ <span class="default_text_value">{{ userInfo.materials['16001'] }}</span>
|
|
|
</n-space>
|
|
|
</n-descriptions-item>
|
|
|
- <!-- <n-descriptions-item label="下次增加体力时间">-->
|
|
|
- <!-- <n-space>-->
|
|
|
- <!-- <span class="default_text_value">lastStamTick</span>-->
|
|
|
- <!-- </n-space>-->
|
|
|
- <!-- </n-descriptions-item>-->
|
|
|
<n-descriptions-item label="玩家精力">
|
|
|
<n-space>
|
|
|
- <span class="default_text_value">{{ userInfo.energy ?? 0 }}</span>
|
|
|
+ <span class="default_text_value">{{ userInfo.materials['16001'] }}</span>
|
|
|
</n-space>
|
|
|
</n-descriptions-item>
|
|
|
<n-descriptions-item label="玩家经验">
|
|
@@ -74,26 +69,16 @@
|
|
|
<span class="default_text_value">{{ userInfo.userExp }}</span>
|
|
|
</n-space>
|
|
|
</n-descriptions-item>
|
|
|
- <n-descriptions-item label="天赋点">
|
|
|
- <n-space>
|
|
|
- <span class="default_text_value">{{ userInfo.talentPoint }}</span>
|
|
|
- </n-space>
|
|
|
- </n-descriptions-item>
|
|
|
<n-descriptions-item label="玩家金币">
|
|
|
<n-space>
|
|
|
- <span class="default_text_value">{{ userInfo.coin }}</span>
|
|
|
+ <span class="default_text_value">{{ userInfo.materials['3001'] }}</span>
|
|
|
</n-space>
|
|
|
</n-descriptions-item>
|
|
|
<n-descriptions-item label="玩家钻石">
|
|
|
<n-space>
|
|
|
- <span class="default_text_value">{{ userInfo.diamond }}</span>
|
|
|
+ <span class="default_text_value">{{ userInfo.materials['3002'] }}</span>
|
|
|
</n-space>
|
|
|
</n-descriptions-item>
|
|
|
- <!-- <n-descriptions-item label="VIP信息">-->
|
|
|
- <!-- <n-space>-->
|
|
|
- <!-- <span class="default_text_value">无</span>-->
|
|
|
- <!-- </n-space>-->
|
|
|
- <!-- </n-descriptions-item>-->
|
|
|
</n-descriptions>
|
|
|
|
|
|
<!-- 修改属性 -->
|
|
@@ -168,7 +153,7 @@
|
|
|
|
|
|
<n-descriptions-item label="账号ID">
|
|
|
<n-space>
|
|
|
- <span class="default_text_value">{{ attr.accId ?? '' }}</span>
|
|
|
+ <span class="default_text_value">{{ userInfo.accId ?? '' }}</span>
|
|
|
</n-space>
|
|
|
</n-descriptions-item>
|
|
|
|
|
@@ -184,30 +169,15 @@
|
|
|
</n-descriptions-item>
|
|
|
<n-descriptions-item label="昵称">
|
|
|
<n-space>
|
|
|
- <span class="default_text_value">{{ user.nickname }}</span>
|
|
|
+ <span class="default_text_value">{{ userInfo.nick }}</span>
|
|
|
</n-space>
|
|
|
</n-descriptions-item>
|
|
|
- <!-- <n-descriptions-item label="账号">-->
|
|
|
- <!-- <n-space>-->
|
|
|
- <!-- <span class="default_text_value">{{ user.account }}</span>-->
|
|
|
- <!-- </n-space>-->
|
|
|
- <!-- </n-descriptions-item>-->
|
|
|
- <!-- <n-descriptions-item label="邀请人ID">-->
|
|
|
- <!-- <n-space>-->
|
|
|
- <!-- <span class="default_text_value">570262</span>-->
|
|
|
- <!-- </n-space>-->
|
|
|
- <!-- </n-descriptions-item>-->
|
|
|
<n-descriptions-item label="注册时间(当前服)">
|
|
|
<n-space>
|
|
|
<span class="default_text_value">{{ user.createtime }}</span>
|
|
|
</n-space>
|
|
|
</n-descriptions-item>
|
|
|
|
|
|
- <!-- <n-descriptions-item label="账号状态">-->
|
|
|
- <!-- <n-space>-->
|
|
|
- <!-- <span class="default_text_value">{{ user.ban }}</span>-->
|
|
|
- <!-- </n-space>-->
|
|
|
- <!-- </n-descriptions-item>-->
|
|
|
<n-descriptions-item label="累计签到次数">
|
|
|
<n-space>
|
|
|
<span class="default_text_value">{{ attr.signinCount }}</span>
|
|
@@ -243,19 +213,6 @@
|
|
|
</n-descriptions-item>
|
|
|
</n-descriptions>
|
|
|
</template>
|
|
|
-
|
|
|
- <!-- <template #header-extra>
|
|
|
- <n-space>
|
|
|
- <n-button
|
|
|
- strong
|
|
|
- secondary
|
|
|
- type="warning"
|
|
|
- v-show="useUserStore.config.mode !== 'release'"
|
|
|
- @click="openUpdateNickname"
|
|
|
- >修改昵称
|
|
|
- </n-button>
|
|
|
- </n-space>
|
|
|
- </template>-->
|
|
|
</n-card>
|
|
|
|
|
|
<!-- <n-card
|
|
@@ -581,31 +538,30 @@
|
|
|
import { timestampToTime } from '@/utils/dateUtil';
|
|
|
import {
|
|
|
getPlayerAttr,
|
|
|
- getSigninCount,
|
|
|
+ // getSigninCount,
|
|
|
getUserAccountInfo,
|
|
|
openAccount,
|
|
|
- orderStatistics,
|
|
|
- playerAccountBan,
|
|
|
+ // orderStatistics,
|
|
|
+ // playerAccountBan,
|
|
|
updatePlayerBase,
|
|
|
- playerSingleBan,
|
|
|
+ // playerSingleBan,
|
|
|
UpdateNickname,
|
|
|
CompatibilityTestVerify,
|
|
|
CompatibilityTestMigrate,
|
|
|
- playerPaymentSwitch,
|
|
|
+ // playerPaymentSwitch,
|
|
|
addGift,
|
|
|
- playerChatBan,
|
|
|
+ // playerChatBan,
|
|
|
} from '@/api/account/list';
|
|
|
import { useModal } from '@/components/Modal';
|
|
|
import Level from '@/views/modal/Level.vue';
|
|
|
import SetDanScore from './SetDanScore.vue';
|
|
|
- import { UtilsTool } from '@/utils/macd/UtilsTool';
|
|
|
import { addPlayerRetrofit, RetrofitGroupOptions } from '@/api/echarts/rechargeList';
|
|
|
import { ArrowForwardCircleOutline as ArrowForward } from '@vicons/ionicons5';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
- import { useUserStoreWidthOut } from '@/store/modules/user';
|
|
|
+ // import { useUserStoreWidthOut } from '@/store/modules/user';
|
|
|
import { getServerName } from '@/utils/admin';
|
|
|
|
|
|
- const useUserStore = useUserStoreWidthOut();
|
|
|
+ // const useUserStore = useUserStoreWidthOut();
|
|
|
|
|
|
const serviceList = [
|
|
|
{
|
|
@@ -626,7 +582,7 @@
|
|
|
},
|
|
|
];
|
|
|
|
|
|
- const [modalRegister, { openModal, closeModal }] = useModal({
|
|
|
+ const [modalRegister, { closeModal }] = useModal({
|
|
|
title: '账号等级对照表',
|
|
|
});
|
|
|
|
|
@@ -634,10 +590,6 @@
|
|
|
closeModal();
|
|
|
}
|
|
|
|
|
|
- function showModal() {
|
|
|
- openModal();
|
|
|
- }
|
|
|
-
|
|
|
const singleBan = reactive({
|
|
|
ban: false,
|
|
|
banReason: '',
|
|
@@ -718,26 +670,29 @@
|
|
|
diamond: 0,
|
|
|
});
|
|
|
|
|
|
- let user = reactive({
|
|
|
- openid: '',
|
|
|
- nickname: '',
|
|
|
- account: '',
|
|
|
- createtime: '',
|
|
|
- ban: '',
|
|
|
- });
|
|
|
-
|
|
|
- let attr = reactive({
|
|
|
- lastlogintick: '',
|
|
|
- lastlogouttick: '',
|
|
|
- location: '',
|
|
|
- signinCount: 0,
|
|
|
- advCount: 0,
|
|
|
- onlineDuration: '',
|
|
|
- serverId: 0,
|
|
|
- accId: 0,
|
|
|
- openId: '',
|
|
|
- loginCount: 0,
|
|
|
- });
|
|
|
+ const user = ref(
|
|
|
+ reactive({
|
|
|
+ openid: '',
|
|
|
+ nickname: '',
|
|
|
+ account: '',
|
|
|
+ createtime: '',
|
|
|
+ ban: '',
|
|
|
+ })
|
|
|
+ );
|
|
|
+
|
|
|
+ const attr = ref(
|
|
|
+ reactive({
|
|
|
+ lastlogintick: '',
|
|
|
+ lastlogouttick: '',
|
|
|
+ signinCount: 0,
|
|
|
+ advCount: 0,
|
|
|
+ onlineDuration: '',
|
|
|
+ serverId: 0,
|
|
|
+ accId: 0,
|
|
|
+ openId: '',
|
|
|
+ loginCount: 0,
|
|
|
+ })
|
|
|
+ );
|
|
|
|
|
|
/*const order = reactive({
|
|
|
playerid: 0,
|
|
@@ -841,17 +796,17 @@
|
|
|
});
|
|
|
}*/
|
|
|
|
|
|
- function openUpdatePlayerBase() {
|
|
|
- formValue.value = {
|
|
|
- stamina: 0,
|
|
|
- energy: 0,
|
|
|
- userExp: 0,
|
|
|
- talentPoint: 0,
|
|
|
- coin: 0,
|
|
|
- diamond: 0,
|
|
|
- };
|
|
|
- showModifyBase.value = true;
|
|
|
- }
|
|
|
+ // function openUpdatePlayerBase() {
|
|
|
+ // formValue.value = {
|
|
|
+ // stamina: 0,
|
|
|
+ // energy: 0,
|
|
|
+ // userExp: 0,
|
|
|
+ // talentPoint: 0,
|
|
|
+ // coin: 0,
|
|
|
+ // diamond: 0,
|
|
|
+ // };
|
|
|
+ // showModifyBase.value = true;
|
|
|
+ // }
|
|
|
|
|
|
function handleValidateClick(e: MouseEvent) {
|
|
|
e.preventDefault();
|
|
@@ -879,7 +834,7 @@
|
|
|
// 用户信息
|
|
|
// user.openid = res.openid;
|
|
|
// user.nickname = res.nickname;
|
|
|
- user.account = res.account;
|
|
|
+ user.value.account = res.account;
|
|
|
// user.createtime = res.createtime > 0 ? timestampToTime(res.createtime) : '';
|
|
|
// user.ban = res.ban == 1 ? '禁用' : '正常';
|
|
|
userBan.ban = res.ban == 1;
|
|
@@ -900,23 +855,25 @@
|
|
|
new Promise((_resolve, _reject) => {
|
|
|
getPlayerAttr({ playerid: props.userId })
|
|
|
.then((res) => {
|
|
|
+ console.log('=======res:', res);
|
|
|
// 属性
|
|
|
- attr.lastlogintick = res.lastlogintick > 0 ? timestampToTime(res.lastlogintick) : '';
|
|
|
- attr.lastlogouttick = res.lastlogouttick > 0 ? timestampToTime(res.lastlogouttick) : '';
|
|
|
- if (res.location !== null && res.location !== '') {
|
|
|
- attr.location = res.location.slice(0, -2);
|
|
|
- }
|
|
|
-
|
|
|
- attr.advCount = res.advCount;
|
|
|
- attr.onlineDuration = res.onlineDuration;
|
|
|
- attr.accId = res.accId;
|
|
|
- attr.serverId = res.line;
|
|
|
- attr.openId = res.openId;
|
|
|
- user.nickname = res.nickName;
|
|
|
- user.createtime = res.create_time > 0 ? timestampToTime(res.create_time) : '';
|
|
|
+ attr.value.lastlogintick =
|
|
|
+ res.lastlogintick > 0 ? timestampToTime(res.lastlogintick) : '';
|
|
|
+ attr.value.lastlogouttick =
|
|
|
+ res.lastlogouttick > 0 ? timestampToTime(res.lastlogouttick) : '';
|
|
|
+
|
|
|
+ attr.value.advCount = res.advCount;
|
|
|
+ attr.value.onlineDuration = res.onlineDuration;
|
|
|
+ attr.value.accId = res.accId;
|
|
|
+ attr.value.serverId = res.line;
|
|
|
+ attr.value.openId = res.openId;
|
|
|
+ user.value.nickname = res.nickName;
|
|
|
+ user.value.createtime = res.create_time > 0 ? timestampToTime(res.create_time) : '';
|
|
|
|
|
|
paySwitch.pay = res.paySwitch == 1;
|
|
|
paySwitch.banReason = paySwitch.pay ? paySwitch.banReason : '';
|
|
|
+
|
|
|
+ console.log('========attr:', attr.value);
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
// message.error(error.toString());
|
|
@@ -1023,10 +980,10 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- function openUpdateNickname() {
|
|
|
- showModalUpdateNickname.value = true;
|
|
|
- formParamsUpdateNickname.value.nickname = user.nickname;
|
|
|
- }
|
|
|
+ // function openUpdateNickname() {
|
|
|
+ // showModalUpdateNickname.value = true;
|
|
|
+ // formParamsUpdateNickname.value.nickname = user.nickname;
|
|
|
+ // }
|
|
|
|
|
|
function updateNicknameConfirmForm(e) {
|
|
|
e.preventDefault();
|
|
@@ -1043,7 +1000,7 @@
|
|
|
UpdateNickname({ nickname: formParamsUpdateNickname.value.nickname, userId: props.userId })
|
|
|
.then((_res) => {
|
|
|
console.log('_res:' + JSON.stringify(_res));
|
|
|
- user.nickname = formParamsUpdateNickname.value.nickname;
|
|
|
+ user.value.nickname = formParamsUpdateNickname.value.nickname;
|
|
|
message.success('修改成功');
|
|
|
})
|
|
|
.catch((e: Error) => {
|
|
@@ -1088,13 +1045,13 @@
|
|
|
showModalOpenAccount.value = false;
|
|
|
}
|
|
|
|
|
|
- function openCompatibilityTest() {
|
|
|
- showModalCompatibilityTest.value = true;
|
|
|
- formCompatibilityTestParams.value.nickname = null;
|
|
|
- formCompatibilityTestParams.value.server = null;
|
|
|
- formCompatibilityTestParams.value.has = false;
|
|
|
- formCompatibilityTestParams.value.serverName = '';
|
|
|
- }
|
|
|
+ // function openCompatibilityTest() {
|
|
|
+ // showModalCompatibilityTest.value = true;
|
|
|
+ // formCompatibilityTestParams.value.nickname = null;
|
|
|
+ // formCompatibilityTestParams.value.server = null;
|
|
|
+ // formCompatibilityTestParams.value.has = false;
|
|
|
+ // formCompatibilityTestParams.value.serverName = '';
|
|
|
+ // }
|
|
|
|
|
|
function compatibilityTestVerify() {
|
|
|
if (
|
|
@@ -1157,9 +1114,10 @@
|
|
|
}
|
|
|
|
|
|
const showSetDanScoreModal = ref(false);
|
|
|
- function openSetDanScoreModal() {
|
|
|
- showSetDanScoreModal.value = true;
|
|
|
- }
|
|
|
+
|
|
|
+ // function openSetDanScoreModal() {
|
|
|
+ // showSetDanScoreModal.value = true;
|
|
|
+ // }
|
|
|
|
|
|
function updateSetDanScoreModal(value) {
|
|
|
showSetDanScoreModal.value = value;
|