Commit 13949b07 authored by hanfeng zhang's avatar hanfeng zhang

321

parent e3f025e1
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
" "
> >
<div class="left w-4/12 object-cover rounded-md"> <div class="left w-4/12 object-cover rounded-md">
<img src="/img/cover.png" class="rounded-md" /> <img :src="colletionData.cover?colletionData.cover:'/img/cover.png'" class="rounded-md" />
</div> </div>
<div class="right w-8/12"> <div class="right w-8/12">
<div class="w-full px-4"> <div class="w-full px-4">
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
{{colletionData.nftId}} {{colletionData.nftId}}
</p> </p>
</div> </div>
<div class="flex flex-wrap w-full text-sm mt-3"> <div class="flex flex-wrap w-full text-sm mt-3">
<div class="text-font-dark-blue">题材</div> <div class="text-font-dark-blue">题材</div>
<div class="flex-1 pl-3 flex gap-x-2" v-for='(i,index) in getThemeList' :key="index"> <div class="flex-1 pl-3 flex gap-x-2" v-for='(i,index) in getThemeList' :key="index">
......
...@@ -58,7 +58,8 @@ export class NFTService extends Service { ...@@ -58,7 +58,8 @@ export class NFTService extends Service {
applyOfficialNft:{ applyOfficialNft:{
path:'/commemorate/nft/receive', path:'/commemorate/nft/receive',
dataType: 'application/x-www-form-urlencoded' dataType: 'application/x-www-form-urlencoded'
} },
} }
constructor() { constructor() {
super() super()
...@@ -327,7 +328,13 @@ export class NFTService extends Service { ...@@ -327,7 +328,13 @@ export class NFTService extends Service {
/** /**
* 申请领取官方活动NFT * 申请领取官方活动NFT
*/ */
async applyOfficialNft(){ async applyOfficialNft(id:number){
return await this.service.post(this.router.applyOfficialNft.path,{},{
headers: {
Authorization: this.getAuth(),
'Content-Type': this.router.officialNFTDetail.dataType,
},
params:{id}
})
} }
} }
...@@ -486,7 +486,8 @@ export default Vue.extend({ ...@@ -486,7 +486,8 @@ export default Vue.extend({
synopsis: this.createNFT.value_des, synopsis: this.createNFT.value_des,
theme: this.pickedList.map((i: any) => i.text as string).toString(), theme: this.pickedList.map((i: any) => i.text as string).toString(),
} as iSaveData; } as iSaveData;
console.log(this.createNFT.archives);
if (this.createNFT.archives === 0) { if (this.createNFT.archives === 0) {
data = { data = {
...data, ...data,
...@@ -496,6 +497,7 @@ export default Vue.extend({ ...@@ -496,6 +497,7 @@ export default Vue.extend({
} else if (this.createNFT.archives === 1) { } else if (this.createNFT.archives === 1) {
//需要加密存档 //需要加密存档
const fileUrl = await this.uploadFileToOss(this.file); const fileUrl = await this.uploadFileToOss(this.file);
console.log(fileUrl,'fileUrl');
data = { data = {
...data, ...data,
isArchives: this.createNFT.archives, isArchives: this.createNFT.archives,
...@@ -513,6 +515,8 @@ export default Vue.extend({ ...@@ -513,6 +515,8 @@ export default Vue.extend({
} }
} }
console.log(data);
const { id, nftId, wallet, fileHash } = const { id, nftId, wallet, fileHash } =
await this.$service.nftService.save(data); await this.$service.nftService.save(data);
this.publish.fileHash = fileHash; this.publish.fileHash = fileHash;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment