Browse Source

Merge branch 'dev' of yuanyuan/nanjing_nft_front into master

yuanyuan 3 years ago
parent
commit
956da2b7cf
1 changed files with 39 additions and 4 deletions
  1. 39 4
      src/views/Home.vue

+ 39 - 4
src/views/Home.vue

@@ -12,7 +12,13 @@
                 <van-swipe class="swipe_banner" :autoplay="3000" indicator-color="#ffffff">
                     <van-swipe-item v-for="(item, index) in banners" :key="index">
                         <!-- <img :src="item.pic" alt="" class="swipe_banner_img" /> -->
-                        <van-image width="100%" height="140px" :src="getImg(item.pic)" fit="cover" @click="goNext(item)"/>
+                        <van-image
+                            width="100%"
+                            height="140px"
+                            :src="getImg(item.pic)"
+                            fit="cover"
+                            @click="goNext(item)"
+                        />
                     </van-swipe-item>
                 </van-swipe>
                 <!-- <swiper
@@ -38,6 +44,10 @@
                         :type="item.type"
                     ></product-large>
                     <!-- </van-list> -->
+                    <div class="tip_title">
+                        <van-divider class="tip_title_one">南京数藏文化科技有限公司</van-divider>
+                        <div class="tip_title_two" @click="keepRecord">苏ICP备2022016578号-1</div>
+                    </div>
                 </div>
             </div>
             <!-- <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
@@ -123,7 +133,7 @@ export default {
             isLoading: true
         };
     },
-    mixins: [product,banner],
+    mixins: [product, banner],
     components: {
         ProductLarge
         // ProductSmall
@@ -169,9 +179,12 @@ export default {
             this.$http.post('user/my').then(res => {});
         },
         onRefresh() {
-            Promise.all([this.getBanner(),this.getList()]).then(res => {
+            Promise.all([this.getBanner(), this.getList()]).then(res => {
                 this.isLoading = false;
             });
+        },
+        keepRecord() {
+            document.location.replace('https://beian.miit.gov.cn');
         }
     },
     mounted() {
@@ -374,7 +387,7 @@ export default {
 </script>
 
 <style lang="less" scoped>
-.home_refresh{
+.home_refresh {
     background: #0f0f27;
 }
 .home {
@@ -395,6 +408,28 @@ export default {
         }
         .collection_list {
             margin-bottom: 50px;
+            .tip_title {
+                text-align: center;
+                font-size: 12px;
+                font-family: PingFangSC-Regular, PingFang SC;
+                font-weight: 400;
+                color: #939599;
+            }
+            .tip_title_one {
+                font-size: 14px;
+                color: #939599;
+                // background: rgba(147, 149, 153, 0.3);
+            }
+            .tip_title_one::before {
+                height: 1px;
+                background: #5f646f;
+                opacity: 0.3;
+            }
+            .tip_title_one::after {
+                height: 1px;
+                background: #5f646f;
+                opacity: 0.3;
+            }
         }
     }
     .shop_list_one {