1212
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
统一配置中心
|
||||
*/
|
||||
export class BaseConfig {
|
||||
public static BaseUrl: string = 'https://localhost:7198'
|
||||
public static BaseMediaUrl: string = 'https://localhost:7198/'
|
||||
// public static BaseUrl:string="http://v3.pccsh.com";
|
||||
// public static BaseMediaUrl:string="http://v3.pccsh.com";
|
||||
// public static BaseUrl: string = 'https://localhost:7198'
|
||||
// public static BaseMediaUrl: string = 'https://localhost:7198/'
|
||||
public static BaseUrl:string="http://v3.pccsh.com";
|
||||
public static BaseMediaUrl:string="http://v3.pccsh.com";
|
||||
}
|
||||
|
||||
@@ -18,10 +18,12 @@
|
||||
<div class="item border-btm" v-for="(item, index) in data" :key="index">
|
||||
{{ PageExtend.GetPageIndex(currentPage, 10, index + 1) }}.
|
||||
<span v-if="item.code == 'Equ'">
|
||||
<Abar :href='"/trade/info?id=" + item.tradeId'>{{ item.name }}({{ item.price }}铜贝)</Abar>
|
||||
<Abar :href='"/trade/info?id=" + item.tradeId'>{{ item.name }}({{ GameTool.FormatCopper(item.price) }})
|
||||
</Abar>
|
||||
</span>
|
||||
<span v-else>
|
||||
<Abar :href='"/prop/goods?id=" + item.propId'>{{ item.name }}({{ item.price }}铜贝)</Abar>
|
||||
<Abar :href='"/prop/goods?id=" + item.propId'>{{ item.name }}({{ GameTool.FormatCopper(item.price) }})
|
||||
</Abar>
|
||||
</span>
|
||||
[<Abutton @click="Buy(item)">购买</Abutton>]
|
||||
</div>
|
||||
@@ -36,7 +38,7 @@
|
||||
<!-- 自定义内容 -->
|
||||
<div class="common">
|
||||
物品名称:{{ showGoods.name }}<br>
|
||||
购买单价:{{ showGoods.price }} 铜贝<br>
|
||||
购买单价:{{ GameTool.FormatCopper(showGoods.price) }}<br>
|
||||
<span v-if="showGoods.code != 'Equ'">
|
||||
剩余数量:{{ showGoods.count }}
|
||||
</span>
|
||||
@@ -88,6 +90,7 @@ const BindData = async (): Promise<void> => {
|
||||
|
||||
const Change = async (_type: string) => {
|
||||
type.value = _type;
|
||||
currentPage.value = 1;
|
||||
await BindData();
|
||||
}
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
<div class="item border-btm" v-for="(item, index) in data" :key="index">
|
||||
{{ index + 1 }}.[{{ GetRankName(item.code) }}]
|
||||
<span v-if="item.code == 'Equ'">
|
||||
<Abar :href='"/trade/info?id=" + item.tradeId'>{{ item.name }}({{ item.price }}铜贝)</Abar>
|
||||
<Abar :href='"/trade/info?id=" + item.tradeId'>{{ item.name }}({{ GameTool.FormatCopper(item.price) }})</Abar>
|
||||
</span>
|
||||
<span v-else>
|
||||
<Abar :href='"/prop/goods?id=" + item.propId'>{{ item.name }}({{ item.price }}铜贝)</Abar>
|
||||
<Abar :href='"/prop/goods?id=" + item.propId'>{{ item.name }}({{ GameTool.FormatCopper(item.price) }})</Abar>
|
||||
</span>
|
||||
(<Abutton @click="Down(item.tradeId)">下架</Abutton>)<br>
|
||||
<span v-if="item.code != 'Equ'">
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
<div class="item border-btm" v-for="(item, index) in data" :key="index">
|
||||
{{ PageExtend.GetPageIndex(currentPage, 10, index + 1) }}.[{{ GetRankName(item.code) }}]
|
||||
<span v-if="item.code == 'Equ'">
|
||||
<Abar :href='"/trade/info?id=" + item.tradeId'>{{ item.name }}({{ item.price }}铜贝)</Abar>
|
||||
<Abar :href='"/trade/info?id=" + item.tradeId'>{{ item.name }}({{ GameTool.FormatCopper(item.price) }})</Abar>
|
||||
</span>
|
||||
<span v-else>
|
||||
<Abar :href='"/prop/goods?id=" + item.propId'>{{ item.name }}({{ item.price }}铜贝)</Abar>
|
||||
<Abar :href='"/prop/goods?id=" + item.propId'>{{ item.name }}({{ GameTool.FormatCopper(item.price) }})</Abar>
|
||||
</span>
|
||||
[<Abutton @click="Buy(item)">购买</Abutton>]
|
||||
</div>
|
||||
@@ -24,7 +24,7 @@
|
||||
<!-- 自定义内容 -->
|
||||
<div class="common">
|
||||
物品名称:{{ showGoods.name }}<br>
|
||||
购买单价:{{ showGoods.price }} 铜贝<br>
|
||||
购买单价:{{ GameTool.FormatCopper(showGoods.price) }}<br>
|
||||
<span v-if="showGoods.code != 'Equ'">
|
||||
剩余数量:{{ showGoods.count }}
|
||||
</span>
|
||||
|
||||
@@ -46,7 +46,8 @@ const BindData = async () => {
|
||||
if (result.code == 0) {
|
||||
data.value = result.data.data;
|
||||
unitExp.value = result.data.unitExp;
|
||||
dupExp.value = result.data.dupExp;
|
||||
dupExp.value = result.data.dupExp;
|
||||
console.log(result);
|
||||
}
|
||||
else {
|
||||
MessageExtend.ShowDialog("特性", result.msg);
|
||||
|
||||
Reference in New Issue
Block a user