This commit is contained in:
huangjinming 2023-01-09 11:53:41 +08:00
parent 98dbcfdc45
commit d5b994054a
3 changed files with 10 additions and 7 deletions

View File

@ -275,14 +275,18 @@
></Transition>
<div class="buy-price">
<div class="mynft" v-if="isType === 'mynft'">
<div class="for-rent-btn" v-if="hero.selling > 0">
<!-- <div class="for-rent-btn" v-if="hero.selling > 0">
<div class="adjust" @click="handPutShow(hero)"></div>
<div class="remove" @click="handremove"></div>
</div>
<div v-else>
<div class="rent"></div>
<div class="sell" @click="handPutShow">Sell</div>
</div>
</div> -->
<div >
<div class="rent"></div>
<div class="sell" @click="handPutShow">Sell</div>
</div>
</div>
<div class="maeket" v-else>
<div class="price">

View File

@ -59,10 +59,10 @@
<div>Owner :</div>
<div>{{ owner }}</div>
</div>
<div class="owner-mint">
<!-- <div class="owner-mint">
<div>Mint Time :</div>
<div>{{ time }} UTC</div>
</div>
</div> -->
<div class="owner-history">
<div>History :</div>
<div>#3006985843100103 (NFTLink)</div>

View File

@ -89,7 +89,6 @@ import HeroSellTop from "./HeroSellTop.vue";
import ChipSellTop from "./ChipSellTop.vue";
import MessageBox from "./MessageBox.vue";
import { AppModule } from "@/store/modules/app";
import { sellMyNft } from "@/api/Market";
import { CONTRACT_ADDRESS } from "@/configs/config_chain";
import ChainManager from "@/chain/ChainManager";
@ -134,11 +133,11 @@ export default {
this.$emit("handPutHide");
},
async handMessage() {
console.log(this.data.o_link.slice(0, 1), "o_link");
if (this.data.selling ? this.data.selling > 0 : this.piece.selling > 0) {
try {
const nftres = await this.chainManager.bc.beginUpdatePrice(
this.orderId,
this.data.o_link.slice(0, 1),
this.price,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
);