12121
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";
|
||||
}
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
{{ index + 1 }}.<GameEqu :equ-data="item" :show-lev="1" :show-url="true"></GameEqu>
|
||||
<span>({{ item.durability }}/{{ item.maxdurability }})</span>
|
||||
<span v-if="item.durability < item.maxdurability">
|
||||
[<Abutton @click="retEqu(item.ueId)">修复({{ item.maxdurability - item.durability }}铜)</Abutton>]
|
||||
[<Abutton @click="retEqu(item.ueId)">修复({{ GameTool.FormatCopper((item.maxdurability -
|
||||
item.durability) * 500) }})</Abutton>
|
||||
]
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -24,7 +26,7 @@
|
||||
<div class="content" style="font-size: 16px;">
|
||||
说明:<br>
|
||||
1.装备仅可修复当前穿戴中的装备。<br>
|
||||
2.每修复1点耐久消耗1铜贝。
|
||||
2.每修复1点耐久消耗500铜。
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
@@ -51,7 +53,7 @@ const BindData = async (): Promise<void> => {
|
||||
allCopper.value = result.data.need;
|
||||
}
|
||||
else {
|
||||
MessageExtend.ShowDialog("强化装备", result.msg);
|
||||
MessageExtend.ShowDialog("修理装备", result.msg);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<template>
|
||||
<GameBroadcast :data="broadcast"></GameBroadcast>
|
||||
<div class="content" v-if="notice.length > 0">
|
||||
<div class="item" style="font-size:15px;" v-for="item in notice">
|
||||
<i class="broad-system"></i>
|
||||
<Abar :href='"/news/info?id=" + item.noticeId'>{{ item.title }}</Abar>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content" v-if="isHook == 1">
|
||||
<div class="item" style="font-size:15px;font-weight:bold;color:green">
|
||||
<i class="dup"></i>
|
||||
@@ -147,6 +153,7 @@ const gameTips = ref('');
|
||||
const isHook = ref(0);
|
||||
const mapGoods = ref<Array<any>>([]);
|
||||
const taskCount = ref(0);
|
||||
const notice = ref<Array<any>>([]);
|
||||
// 城内地图显示
|
||||
const showCity = ref(false);
|
||||
|
||||
@@ -183,6 +190,7 @@ const BindData = async (map: string): Promise<void> => {
|
||||
mapGoods.value = result.data.mapGoods;
|
||||
isHook.value = result.data.isHook;
|
||||
taskCount.value = result.data.taskCount;
|
||||
notice.value = result.data.notice;
|
||||
// console.log(result)
|
||||
}
|
||||
else if (result.code == 103) {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<Abutton @click="btnChoice">使用物品</Abutton>
|
||||
</div>
|
||||
<div class="common" v-if="data.isDeal == 1">
|
||||
<Abutton @click="saleState=true">寄售</Abutton>
|
||||
<Abutton @click="saleState = true">寄售</Abutton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
物品名称:{{ data.goodsName }}<br>
|
||||
物品数量:{{ count }}<br>
|
||||
</div>
|
||||
<div class="common" style="text-align: center;">
|
||||
<div class="common" style="text-align: center;">
|
||||
<span style="font-size: 16px;">使用数量:</span><input type="number" class="search-ipt" v-model="useCount"><br>
|
||||
<button class="ipt-btn" name="serch" @click="UseGoods" style="margin-top: 15px;">确认</button>
|
||||
</div>
|
||||
@@ -86,8 +86,9 @@
|
||||
<div class="common" style="margin-top: 10px;">
|
||||
物品名称:{{ data.goodsName }}<br>
|
||||
物品数量:{{ count }}<br>
|
||||
<span style="font-size: 16px;">寄售价格:</span><input type="number" class="search-ipt" v-model="salePrice" />铜贝<br>
|
||||
<span style="font-size: 16px;">寄售数量:</span><input type="number" class="search-ipt" v-model="saleCount" />
|
||||
<span style="font-size: 16px;">寄售价格:</span><input type="number" class="search-ipt"
|
||||
v-model="salePrice" />铜贝<br>
|
||||
<span style="font-size: 16px;">寄售数量:</span><input type="number" class="search-ipt" v-model="saleCount" />
|
||||
</div>
|
||||
<div class="common" style="text-align: center;">
|
||||
<button class="ipt-btn" name="serch" @click="SaleOk" style="margin-top: 15px;">寄售</button>
|
||||
@@ -162,6 +163,10 @@ const showUse = () => {
|
||||
const showUseNumView = ref(false);
|
||||
|
||||
const UseGoods = async () => {
|
||||
if (useCount.value <= 0) {
|
||||
MessageExtend.ShowToast("使用数量不能小于0!", "fail")
|
||||
return;
|
||||
}
|
||||
MessageExtend.LoadingToast("使用中...");
|
||||
let result = await GoodsService.UseGoods(Number(goodsId), useCount.value);
|
||||
MessageExtend.LoadingClose();
|
||||
@@ -203,13 +208,21 @@ const saleState = ref(false);
|
||||
const salePrice = ref(1);
|
||||
const saleCount = ref(1);
|
||||
const SaleOk = async () => {
|
||||
if (saleCount.value <= 0) {
|
||||
MessageExtend.ShowToast("寄售数量不能小于0!", "fail")
|
||||
return;
|
||||
}
|
||||
if (salePrice.value <= 0) {
|
||||
MessageExtend.ShowToast("寄售价格不能小于0!", "fail")
|
||||
return;
|
||||
}
|
||||
MessageExtend.LoadingToast("寄售中...");
|
||||
let result = await TradeService.Trade(1, goodsId, salePrice.value, saleCount.value);
|
||||
MessageExtend.LoadingClose();
|
||||
if (result.code == 0) {
|
||||
saleState.value =false;
|
||||
saleState.value = false;
|
||||
await BindData();
|
||||
MessageExtend.Notify("寄售成功!","success");
|
||||
MessageExtend.Notify("寄售成功!", "success");
|
||||
}
|
||||
else {
|
||||
MessageExtend.ShowDialog("寄售装备", result.msg);
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
<div class="content">
|
||||
<div class="common" v-if="type == '0'">
|
||||
<div class="item" v-for="(item, index) in data" :key="index">
|
||||
{{ PageExtend.GetPageIndex(currentPage, 10, index + 1) }}.
|
||||
<Abar :href='"/prop/equ?ue=" + item.ueId'>{{ item.equName }}({{ item.lev }}级)</Abar>
|
||||
{{ PageExtend.GetPageIndex(currentPage, 10, index + 1) }}.
|
||||
<Abar :href='"/prop/equ?ue=" + item.ueId'><span v-html=" EquTool.ConvertEquName(item, 0)"></span>({{ item.lev }}级)</Abar>
|
||||
[<Abutton @click="SaleView(item)">赠送</Abutton>]
|
||||
</div>
|
||||
</div>
|
||||
@@ -97,6 +97,8 @@ const BindData = async (): Promise<void> => {
|
||||
total.value = result.data.total;
|
||||
userNo.value = result.data.userNo;
|
||||
nick.value = result.data.nick;
|
||||
console.log(result);
|
||||
|
||||
}
|
||||
else {
|
||||
MessageExtend.ShowDialog("提示", result.msg);
|
||||
|
||||
Reference in New Issue
Block a user