This commit is contained in:
Liwanyi 2023-06-06 09:41:27 +08:00
parent 412198358d
commit ccf30c5dca
5 changed files with 24 additions and 12 deletions

View File

@ -5,6 +5,14 @@
# CHANGE # CHANGE
## 0.9.8
2023年06月06日
### 修改
- 错误修复
## 0.9.7 ## 0.9.7
2023年06月05日 2023年06月05日

View File

@ -1,6 +1,6 @@
{ {
"name": "wuhu-torn-helper", "name": "wuhu-torn-helper",
"version": "0.9.7", "version": "0.9.8",
"description": "芜湖助手", "description": "芜湖助手",
"scripts": { "scripts": {
"release": "cross-env NODE_ENV=production rollup -c && node build.mjs", "release": "cross-env NODE_ENV=production rollup -c && node build.mjs",

File diff suppressed because one or more lines are too long

View File

@ -284,12 +284,15 @@ const bazaarControl = {
} catch (e) { } catch (e) {
logger.error(e.stack); logger.error(e.stack);
ElMessage.error(e.message); ElMessage.error(e.message);
throw e;
} }
if (response.success) { if (response.success) {
ElMessage.success({ ElMessage.success({
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
message: response.text, message: response.text,
}); });
} else {
ElMessage.error(response.text);
} }
}, },
method: async () => { method: async () => {
@ -304,10 +307,10 @@ const bazaarControl = {
await bazaarControl.doGet(false); await bazaarControl.doGet(false);
} }
}, },
} };
onMounted(() => { onMounted(() => {
if (window.outerWidth < 800) { if (document.documentElement.scrollWidth < 800) {
isMobilePhone.value = true; isMobilePhone.value = true;
} }
}); });

View File

@ -21,8 +21,6 @@
<el-table :data="itemOnList" style="width: 100%" table-layout="auto"> <el-table :data="itemOnList" style="width: 100%" table-layout="auto">
<el-table-column label="卖家"> <el-table-column label="卖家">
<template #default="scope"> <template #default="scope">
<!-- <div style="display: flex; align-items: center"-->
<!-- v-text="scope.row.playerName + `[${scope.row.playerId}]`"></div>-->
<el-link <el-link
:href="'/bazaar.php?userId=' + scope.row.playerId" :underline="false" :href="'/bazaar.php?userId=' + scope.row.playerId" :underline="false"
target="_blank" target="_blank"
@ -39,10 +37,13 @@
<el-table-column label="在售" prop="amount"/> <el-table-column label="在售" prop="amount"/>
<el-table-column label="批量购买"> <el-table-column label="批量购买">
<template #default="scope"> <template #default="scope">
<el-input v-model="scope.row.inputAmount" style="width: 60px;"/> <el-input v-model="scope.row.inputAmount" style="width: 12em">
<el-button :loading="scope.row.onBuying" <template #append>
type="primary" @click="buy(itemName, itemName2IdMap[itemName], scope.row)">购买 <el-button :loading="scope.row.onBuying"
</el-button> type="primary" @click="buy(itemName, itemName2IdMap[itemName], scope.row)">购买
</el-button>
</template>
</el-input>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>