nieyuge 2 年之前
父节点
当前提交
7e9f704e74
共有 2 个文件被更改,包括 83 次插入2 次删除
  1. 8 2
      src/pages/nft/add.vue
  2. 75 0
      src/pages/nft/list.vue

+ 8 - 2
src/pages/nft/add.vue

@@ -74,12 +74,18 @@
         <div class="font">Feedback</div>
         <div class="font">Feedback</div>
     </div>
     </div>
 
 
-    <div class="loading">
+    <div class="loading" v-if="showLoading">
         <img src="../../static/img/icon-add-loading.svg" alt="" />
         <img src="../../static/img/icon-add-loading.svg" alt="" />
     </div>
     </div>
-
 </template>
 </template>
 
 
+<script lang="ts" setup>
+import { ref } from 'vue';
+
+const showLoading = ref(false);
+</script>
+
+
 <style lang="less" scoped>
 <style lang="less" scoped>
 .center {
 .center {
     overflow-y: auto;
     overflow-y: auto;

+ 75 - 0
src/pages/nft/list.vue

@@ -31,6 +31,27 @@
             </div>
             </div>
         </div>
         </div>
     </div>
     </div>
+
+    <!-- publish -->
+    <div class="publish" v-if="publishDialog">
+        <div class="msg">Irrevocable after publish</div>
+        <div class="buttons">
+            <button>Cancel</button>
+            <button class="confirm">Continue</button>
+        </div>
+    </div>
+    <div class="bg" v-if="publishDialog"></div>
+
+    <!-- delete -->
+    <div class="publish delete" v-if="deleteDialog">
+        <div class="msg">Once deleted, it cannot be restored</div>
+        <div class="buttons">
+            <button>Cancel</button>
+            <button class="confirm">Continue</button>
+        </div>
+    </div>
+    <div class="bg" v-if="deleteDialog"></div>
+
 </template>
 </template>
 
 
 <script lang="ts" setup>
 <script lang="ts" setup>
@@ -42,6 +63,9 @@ const userInfo: any = ref({});
 
 
 const router = useRouter()
 const router = useRouter()
 
 
+const publishDialog = ref(false)
+const deleteDialog = ref(false)
+
 const logout = () => {
 const logout = () => {
     removeStorage(storageKey.userInfo)
     removeStorage(storageKey.userInfo)
     router.push({ name: 'home' })
     router.push({ name: 'home' })
@@ -167,4 +191,55 @@ onMounted(() => {
         }
         }
     }
     }
 }
 }
+
+.publish {
+    position: absolute;
+    transform: translate(-50%, -50%);
+    padding: 16px;
+    z-index: 2;
+    top: 50%;
+    left: 50%;
+    width: 300px;
+    border-radius: 20px;
+    background-color: #FFFFFF;
+    .msg {
+        padding: 36px 0;
+        font-size: 16px;
+        font-weight: 500;
+        text-align: center;
+    }
+    .buttons {
+        display: flex;
+        justify-content: space-between;
+        button {
+            cursor: pointer;
+            width: 145px;
+            height: 45px;
+            font-size: 16px;
+            font-weight: 500;
+            border-radius: 24px;
+            border: 1px solid #D6D6D6;
+            &.confirm {
+                color: #FFFFFF;
+                background: #1D9BF0;
+                border: 1px solid #1D9BF0;
+            }
+        }
+    }
+    &.delete {
+        .confirm {
+            background: #FF0000!important;
+            border: 1px solid #FF0000!important;
+        }
+    }
+}
+
+.bg {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+    background: rgba(0, 0, 0, .8);
+}
 </style>
 </style>