Commit 3c80252b authored by hanfeng zhang's avatar hanfeng zhang

Merge branch 'main' of gitlab.33.cn:HF_web/NFT

parents 21650c3b d44246ce
src/assets/icons/checked.png

569 Bytes | W: | H:

src/assets/icons/checked.png

1.04 KB | W: | H:

src/assets/icons/checked.png
src/assets/icons/checked.png
src/assets/icons/checked.png
src/assets/icons/checked.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
" "
> >
<div class="left flex items-center flex-row-reverse"> <div class="left flex items-center flex-row-reverse">
<div class="px-2 text-xs text-font-dark-blue"> <div class="px-2 text-sm text-font-dark-blue">
{{ text }} {{ text }}
</div> </div>
<app-icon <app-icon
...@@ -198,6 +198,7 @@ export default Vue.extend({ ...@@ -198,6 +198,7 @@ export default Vue.extend({
handleClickCopy() { handleClickCopy() {
const btn = this.$refs.btn as HTMLElement; const btn = this.$refs.btn as HTMLElement;
new Clipboard(btn); new Clipboard(btn);
this.$toast('复制成功')
}, },
onCancel() {}, onCancel() {},
onSelect(value: any) { onSelect(value: any) {
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
<div class="step-item flex flex-col content-center relative mr-5 items-center" v-for="(i,index) in data" :key="index" <div class="step-item flex flex-col content-center relative mr-5 items-center" v-for="(i,index) in data" :key="index"
:class="currentStep < index+1?'step-item':' step-item-actived'" :class="currentStep < index+1?'step-item':' step-item-actived'"
> >
<div class="cycle relative items-center rounded-full z-10" :class="currentStep < index+1?'bg-font-gray bg-opacity-20':' bg-green-300 bg-opacity-80'"> <div class="cycle relative items-center rounded-full z-10" :class="currentStep < index+1?'bg-font-gray bg-opacity-20':' bg-font-blue bg-opacity-80'">
<div class="center-child" v-if="currentStep < index+1">{{index+1}}</div> <div class="center-child" v-if="currentStep < index+1">{{index+1}}</div>
<div class="center-child" v-else-if="currentStep=== index+1">{{index+1}}</div> <div class="center-child" v-else-if="currentStep=== index+1">{{index+1}}</div>
<div class="center-child" v-else> <div class="center-child" v-else>
<app-icon name='icon-comfirm'></app-icon> <app-icon name='icon-comfirm'></app-icon>
</div> </div>
</div> </div>
<div class='text-sm mt-2'> <div class='text-sm mt-2' :class="currentStep < index+1?'text-font-gray bg-opacity-20':' text-font-blue bg-opacity-80'">
{{i.text}} {{i.text}}
</div> </div>
</div> </div>
...@@ -86,7 +86,7 @@ export default Vue.extend({ ...@@ -86,7 +86,7 @@ export default Vue.extend({
width: 24px; width: 24px;
height:2px; height:2px;
border-radius: 3px; border-radius: 3px;
background-color:rgba(110, 231, 183,0.8); background-color:#0078FF;
position: absolute; position: absolute;
top: 34%; top: 34%;
left: 120%; left: 120%;
......
...@@ -35,7 +35,7 @@ export class Service { ...@@ -35,7 +35,7 @@ export class Service {
router.push('') router.push('')
}) })
} }
Toast.fail(ret.message) Toast.fail(typeof ret.data === "string" ? ret.data : ret.message)
throw new Error(ret.message) throw new Error(ret.message)
} }
} }
......
...@@ -97,4 +97,20 @@ body{ ...@@ -97,4 +97,20 @@ body{
font-weight: 500; font-weight: 500;
color: #0078FF; color: #0078FF;
} }
} }
\ No newline at end of file
.van-popup{
.van-action-sheet__gap{
background-color: #131934;
}
.van-action-sheet__item,.van-action-sheet__cancel{
background-color: #1D2649;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #EEF1F6;
}
.van-action-sheet__cancel:active, .van-action-sheet__item:active{
background-color: #394267;
}
}
\ No newline at end of file
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
@btnClicked="handleCliCkBtn" @btnClicked="handleCliCkBtn"
border="border-0" border="border-0"
:class="[ :class="[
disabled ? 'darkBtn' : 'bg-font-blue', disabled ? 'text-font-white bg-font-blue filter grayscale' : 'bg-font-blue',
disabled ? 'darkBtn' : ' text-white ', disabled ? 'text-font-white bg-font-blue filter grayscale' : ' text-white ',
loading ? 'opacity-75': '', loading ? 'opacity-75': '',
]" ]"
> >
......
<template> <template>
<div class="px-5"> <div class="px-5">
<Login <Login
title="欢迎来到乐映" title="欢迎来到一幕"
:accountStatusCheckFunc="accountStatusCheckFunc" :accountStatusCheckFunc="accountStatusCheckFunc"
:sendSmsFunc="sendSmsFunc" :sendSmsFunc="sendSmsFunc"
:registerFunc="registerFunc" :registerFunc="registerFunc"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
v-model="createNFT.value_name" v-model="createNFT.value_name"
type="input" type="input"
text="剧本名称" text="剧本名称"
:validate='{maxLen:20}' :validate="{ maxLen: 20 }"
placeholder="请输入剧本名称" placeholder="请输入剧本名称"
class="text-font-white my-3" class="text-font-white my-3"
@cellOnChange="(v) => setCreateNFT({ value_name: v })" @cellOnChange="(v) => setCreateNFT({ value_name: v })"
...@@ -22,8 +22,9 @@ ...@@ -22,8 +22,9 @@
<app-cell <app-cell
v-model="createNFT.value_publisher" v-model="createNFT.value_publisher"
type="input" type="input"
text="发行人" text="剧本作者"
placeholder="请输入发行人名称" :validate="{ maxLen: 20 }"
placeholder="请输入剧本作者"
class="text-font-white my-3" class="text-font-white my-3"
@cellOnChange="(v) => setCreateNFT({ value_publisher: v })" @cellOnChange="(v) => setCreateNFT({ value_publisher: v })"
></app-cell> ></app-cell>
...@@ -36,18 +37,21 @@ ...@@ -36,18 +37,21 @@
@onClick="what" @onClick="what"
></app-cell> ></app-cell>
<div> <div>
<div class="text-font-white my-2">剧本简介</div> <div class="my-4 text-font-gray text-sm ml-4">剧本简介</div>
<textarea <textarea
v-model="createNFT.value_des" v-model="createNFT.value_des"
name="des" name="des"
id="nft-des" id="nft-des"
cols="30" cols="30"
maxlength="1000"
placeholder="请输入剧本简介"
rows="10" rows="10"
class=" class="
w-full w-full
bg-font-gray bg-opacity-20 bg-font-gray bg-opacity-20
text-font-white text-font-white
p-3 p-3
rounded-md
text-sm text-sm
" "
></textarea> ></textarea>
...@@ -89,6 +93,7 @@ ...@@ -89,6 +93,7 @@
@cellOnChange="(v) => (createNFT.archives = v)" @cellOnChange="(v) => (createNFT.archives = v)"
></app-cell> ></app-cell>
<app-cell <app-cell
v-if="createNFT.archives === 1"
text="授权阅读" text="授权阅读"
type="select" type="select"
:selected="createNFT.grant" :selected="createNFT.grant"
...@@ -195,8 +200,8 @@ export default Vue.extend({ ...@@ -195,8 +200,8 @@ export default Vue.extend({
count: 1, count: 1,
}, },
archivesList: [ archivesList: [
{ value: 0, name: "加密存档" }, { value: 0, name: "存档" },
{ value: 1, name: "存档" }, { value: 1, name: "加密存档" },
], ],
grantList: [ grantList: [
{ value: 0, name: "不需要授权" }, { value: 0, name: "不需要授权" },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
class="hidden" class="hidden"
@change="handleFileChange" @change="handleFileChange"
ref="inputFile" ref="inputFile"
accept=".pdf" accept="application/pdf"
/> />
<label for="upload" class="inline-block"> <label for="upload" class="inline-block">
<div <div
......
...@@ -28,10 +28,13 @@ export default Vue.extend({ ...@@ -28,10 +28,13 @@ export default Vue.extend({
}, },
methods:{ methods:{
toggleDialog(){ toggleDialog(){
console.log(111);
this.$dialog.alert({ this.$dialog.alert({
message: 'Content', message: '确定要退出登录吗',
}).then(()=>{
localStorage.clear();
this.$router.push({
name: 'Login'
})
}); });
} }
} }
......
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