Browse Source

首页基本页面切换完成

sys 2 years ago
parent
commit
09c45c1ba9
49 changed files with 381 additions and 50 deletions
  1. 1 35
      pages.json
  2. 368 15
      pages/index/index.vue
  3. BIN
      static/img/bg/banner.png
  4. BIN
      static/img/bg/bnbg.png
  5. BIN
      static/img/bg/btnbg.png
  6. BIN
      static/img/bg/dlbg.jpg
  7. BIN
      static/img/bg/share.jpg
  8. BIN
      static/img/bg/wxbg.png
  9. BIN
      static/img/icon/V1.png
  10. BIN
      static/img/icon/V2.png
  11. BIN
      static/img/icon/V3.png
  12. BIN
      static/img/icon/android.png
  13. BIN
      static/img/icon/date.png
  14. BIN
      static/img/icon/empty.png
  15. BIN
      static/img/icon/hkbg.png
  16. BIN
      static/img/icon/hkbgred.png
  17. BIN
      static/img/icon/indexicon.png
  18. BIN
      static/img/icon/iphone.png
  19. BIN
      static/img/icon/lm.png
  20. BIN
      static/img/icon/logo.png
  21. BIN
      static/img/icon/logoimg.png
  22. BIN
      static/img/icon/logow.png
  23. BIN
      static/img/icon/notice.png
  24. BIN
      static/img/icon/phone.png
  25. BIN
      static/img/icon/picbg.png
  26. BIN
      static/img/icon/share.png
  27. BIN
      static/img/icon/sharelogo.png
  28. BIN
      static/img/icon/tj.png
  29. BIN
      static/img/icon/tp.png
  30. BIN
      static/img/index/USDT(ERC20).png
  31. BIN
      static/img/index/a.png
  32. 4 0
      static/img/index/cn.svg
  33. BIN
      static/img/index/en.png
  34. 2 0
      static/img/index/en.svg
  35. BIN
      static/img/index/index-logo.png
  36. BIN
      static/img/index/left.png
  37. 4 0
      static/img/index/name.svg
  38. BIN
      static/img/index/right.png
  39. 2 0
      static/img/index/select.svg
  40. BIN
      static/img/loading/loading_more.gif
  41. BIN
      static/img/my/jrimg.png
  42. BIN
      static/img/tab/icon-ok.png
  43. BIN
      static/img/tab/icon.png
  44. BIN
      static/img/tab/index-ok.png
  45. BIN
      static/img/tab/index.png
  46. BIN
      static/img/tab/msg-ok.png
  47. BIN
      static/img/tab/msg.png
  48. BIN
      static/img/tab/my-ok.png
  49. BIN
      static/img/tab/my.png

+ 1 - 35
pages.json

@@ -1,39 +1,5 @@
 {
-	"tabBar": {
-		"backgroundColor": "#fff",
-		"selectedColor": "#D9E4F6",
-		"color": "#D9E4F6",
-		"borderStyle": "black",
-		"fontSize": "11px",
-		"iconWidth": "24px",
-		"height": "50px",
-		"list": [
-			{
-				"text": "首页",
-				"pagePath": "pages/index/index",
-				"iconPath": "static/img/tab/index.png",
-				"selectedIconPath": "static/img/tab/index-ok.png"
-			},
-			{
-				"text": "资产",
-				"pagePath": "pages/icon/index",
-				"iconPath": "static/img/tab/icon.png",
-				"selectedIconPath": "static/img/tab/icon-ok.png"
-			},
-			{
-				"text": "留言",
-				"pagePath": "pages/msg/index",
-				"iconPath": "static/img/tab/msg.png",
-				"selectedIconPath": "static/img/tab/msg-ok.png"
-			},
-			{
-				"text": "我的",
-				"pagePath": "pages/my/index",
-				"iconPath": "static/img/tab/my.png",
-				"selectedIconPath": "static/img/tab/my-ok.png"
-			}
-		]
-	},
+
 	"pages": [
 		{
 			"path": "pages/login/index",

+ 368 - 15
pages/index/index.vue

@@ -1,20 +1,101 @@
 <template>
-	<view class="box-data">
-   <en-nav title="首页" :left-show="false"></en-nav>
-    <view class="box-but"><button @click="goToUrl(1)">投资</button> </view>
+	<view class="index-data">
+      <view class="index-top">
+        <view class="top-logo">
+          <view class="logo-img">
+            <image src="/static/img/index/index-logo.png" mode="aspectFit"></image>
+          </view>
+          <view class="logo-lang">
+            <image src="/static/img/index/en.svg" mode="aspectFit"></image>
+          </view>
+        </view>
+        <view class="top-name">
+          <image src="/static/img/index/name.svg" mode="widthFix"></image>
+        </view>
+        <view class="top-bg"></view>
+      </view>
+      <view class="index-from">
+        <view class="from-data">
+          <view class="from-tab">
+            <view class="tab-item" :class="{'option-tab':optionNum===1}" >
+              <view class="item-content">投资</view>
+              <view class="item-img img-left">
+                <image src="/static/img/index/left.png" mode="heightFix"></image>
+              </view>
+            </view>
+            <view class="tab-item" :class="{'option-tab':optionNum===2}" >
+              <view class="item-content">复投</view>
+              <view class="item-img img-right">
+                <image src="/static/img/index/right.png" mode="heightFix"></image>
+              </view>
+            </view>
+          </view>
+          <view class="from-data">
+              <view class="from-icon">
+                <view class="icon-img">
+                  <image src="/static/img/index/USDT(ERC20).png" mode="aspectFill"></image>
+                </view>
+                <view class="icon-name">USDT(TRC20)</view>
+                <view class="icon-icon">
+                  <image src="/static/img/index/select.svg" mode="aspectFill"></image>
+                </view>
+              </view>
+              <view class="from-between"></view>
+            <view class="from-input">
+              <view class="input-data">
+                <view class="data-money">余额:0</view>
+                <view class="data-input">
+                  <view>
+                    <input type="number">
+                  </view>
+
+                  <view>  <button>MAX</button></view>
+                </view>
+              </view>
+            </view>
+            <view class="from-but">
+              <button>确认</button>
+            </view>
+          </view>
+
+        </view>
+      </view>
+      <view class="index-list">
+        <view class="list-title">
+          <view class="title-data">
+            <view><image class="title-img" mode="aspectFit" src="/static/img/index/a.png"></image></view>
+            <view class="title-str">交易记录</view>
+          </view>
+          <view class="title-all">更多>></view>
+        </view>
+        <view class="list-tab">
+          <view class="tab-items">
+            <view class="tab-item" @click="setListTab(1)"  :class="{'option-tab':listTab===1}">NFT</view>
+            <view class="tab-item" @click="setListTab(2)" :class="{'option-tab':listTab===2}">我的团队</view>
+            <view class="tab-item" @click="setListTab(3)" :class="{'option-tab':listTab===3}">推荐码</view>
+          </view>
+          <view class="tab-item-bg" :class="{'bg-location-1':listTab===1,'bg-location-2':listTab===2,'bg-location-3':listTab===3}"></view>
+        </view>
+        <view class="list-data">
+          <view class="contract-list"></view>
+          <view class="team-list"></view>
+          <view class="recommend-code"></view>
+        </view>
+      </view>
 	</view>
 
 </template>
 <script>
-import EnNav from "@/components/en-utils/en-nav/en-nav";
+
   export default {
 		components: {
-      EnNav
+
 
 		},
 		data() {
 			return {
-
+        optionNum:1,
+        listTab:1
       }
 
 		},
@@ -28,6 +109,11 @@ import EnNav from "@/components/en-utils/en-nav/en-nav";
 
 		},
 		methods: {
+      setListTab(listTab){
+        if(this.listTab!==listTab){
+          this.listTab=listTab
+        }
+      },
       goToUrl(type){
         switch (type) {
           case 1:
@@ -41,17 +127,284 @@ import EnNav from "@/components/en-utils/en-nav/en-nav";
 	}
 </script>
 <style lang="scss" scoped>
-.box-data{
-min-height: calc(100vh - 100px);
-padding-bottom: 50px;
-  .box-but{
-    padding: 32rpx;
-    button{
-      background: #3169FA;
-      color: #fff;
-      font-size: 32rpx;
+.index-data{
+  min-height: 100vh;
+  .index-top{
+    height: 120px;
+    .top-logo{
+      height: 35px;
+      padding:10px 16px;
+      display: flex;
+      justify-content: space-between;
+      .logo-img{
+        width: 68px;
+        image{
+          width: 68px;
+          height: 29px;
+        }
+      }
+      .logo-lang{
+        height: 35px;
+        background: rgba(241,134,134,.04);
+        border-radius: 12px;
+        border: 1px solid hsla(0,0%,100%,.2);
+        image{
+          margin: 0 5px;
+          height: 35px;
+          width: 32px;
+        }
+      }
+    }
+    .top-name{
+      image{
+        width: 100vw;
+      }
+    }
+    .top-bg{
+      height: 270px;
+      width: 100%;
+      position: absolute;
+      left: 0;
+      top: 0;
+      overflow: hidden;
+      z-index: -99;
+      background: #277ffa!important;
     }
   }
+  .index-from{
+    padding: 6px;
+    .from-data{
+      background: #fff;
+      border-radius: 30px;
+      width: calc(100vw - 12px);
+      .from-tab{
+        position: relative;
+        width: calc(100vw - 12px);
+        border-radius: 30px 30px 0 0;
+        background: #f7f8fa;
+        height: 38px;
+        display: flex;
+        justify-content: space-between;
+        .tab-item{
+          width: 50%;
+          z-index: 1;
+          .item-content{
+            height: 38px;
+            line-height: 38px;
+            color: #9197a5;
+            font-size: 16px;
+            cursor: pointer;
+            text-align: center;
+          }
+          .item-img{
+            display: none;
+            z-index: -1;
+            position: absolute;
+            top: -2px;
+            image{
+              height: 38px;
+            }
+          }
+          .img-left{
+            left: 0;
+          }
+          .img-right{
+            right: 0;
+          }
+
+
+        }
+        .option-tab{
+          z-index: 3;
+          .item-content{
+            color: #000;
+            z-index: 5;
+          }
+          .item-img{
+            display: block;
+          }
+
+        }
+      }
+      .from-data{
+        border-radius: 0 0 30px 30px;
+        padding: 20px;
+        box-sizing: border-box;
+        .from-icon{
+          position: relative;
+          height: 46px;
+          display: flex;
+          justify-content: left;
+          .icon-img{
+            margin-right: 10px;
+            image{
+              height: 46px;
+              width: 46px;
+            }
+          }
+          .icon-name{
+            height: 46px;
+            line-height: 46px;
+            font-size: 18px;
+          }
+          .icon-icon{
+            position: absolute;
+            right: 22px;
+            top: 13px;
+            image{
+              width: 20px;
+              height: 20px;
+            }
+          }
+
+        }
+        .from-between{
+          margin: 18px 0;
+          height: 2px;
+          background: #fbfbfd;
+        }
+        .from-input{
+          box-sizing: border-box;
+          width: 100%;
+          height: 45px;
+          border-radius: 17px;
+          border: 1px solid #f2f5fa;
+          margin-bottom: 55px;
+          .input-data{
+            width: calc(100% - 20px);
+            height: 45px;
+            padding: 10px;
+            background: #f7f8fa;
+            border-radius: 16px;
+            .data-money{
+              height: 20px;
+              color: #6b6c70;
+              font-size: 12px;
+            }
+            .data-input{
+                display: flex;
+              justify-content: space-between;
+            input{
+              height: 25px;
+              width: 100%;
+              border: none;
+              font-size: 18px;
+              background: #f7f8fa;
+              padding: 1px 2px;
+            }
+              button{
+                font-size: 12px;
+                -webkit-text-size-adjust: none;
+                font-weight: 800;
+                color: #fff;
+                width: 38px;
+                height: 18px;
+                padding: 2px;
+                border-radius: 5px;
+                line-height: 15px;
+                margin-top: 4px;
+                cursor: pointer;
+                background: #277ffa;
+              }
+            }
+          }
+        }
+        .from-but{
+          margin-top: 18px;
+          height: 64px;
+          button{
+            height: 64px;
+            line-height: 64px;
+            font-size: 24px;
+            background: #277ffa;
+            border-radius: 17px;
+            color: #fff;
+          }
+        }
+      }
+
+    }
+
+  }
+  .index-list{
+    padding:6px 16px;
+    .list-title{
+      display: flex;
+      justify-content: space-between;
+      .title-data{
+        display: flex;
+        justify-content: left;
+        .title-img{
+          width: 24px;
+          height: 24px;
+        }
+        .title-str{
+          font-size: 16px;
+          line-height: 24px;
+          color: #292929;
+          margin-left: 3px;
+        }
+
+      }
+      .title-all{
+        font-size: 15px;
+        font-weight: 400;
+        color: #3184fa;
+        cursor: pointer;
+        padding: 5px 10px;
+      }
+    }
+    .list-tab{
+      height: 100%;
+      background: #eaf2ff;
+      border-radius: 36px;
+      cursor: pointer;
+      position: relative;
+      .tab-items{
+        z-index: 10;
+        display: flex;
+        justify-content: space-between;
+        border-radius: 36px;
+        .tab-item{
+          z-index: 10;
+          width: calc(100% / 3);
+          font-size: 13px;
+          color: #adbad0;
+          display: block;
+          height: 32px;
+          line-height: 32px;
+          text-align: center;
+        }
+        .option-tab{
+          color: #292929;
+        }
+      }
+      .tab-item-bg{
+        position: absolute;
+        border-radius: 36px;
+        background: #fff;
+        transition: .5s ease;
+        height: 32px;
+        width: calc(100% / 3);
+        top: 0;
+      }
+      .bg-location-1{
+        left: 0;
+        transition: .5s ease;
+      }
+      .bg-location-2{
+        left: 33.33%;
+        transition: .5s ease;
+      }
+      .bg-location-3{
+        left: 66.66%;
+        transition: .5s ease;
+      }
+
+    }
+
+  }
+
 }
 
 

BIN
static/img/bg/banner.png


BIN
static/img/bg/bnbg.png


BIN
static/img/bg/btnbg.png


BIN
static/img/bg/dlbg.jpg


BIN
static/img/bg/share.jpg


BIN
static/img/bg/wxbg.png


BIN
static/img/icon/V1.png


BIN
static/img/icon/V2.png


BIN
static/img/icon/V3.png


BIN
static/img/icon/android.png


BIN
static/img/icon/date.png


BIN
static/img/icon/empty.png


BIN
static/img/icon/hkbg.png


BIN
static/img/icon/hkbgred.png


BIN
static/img/icon/indexicon.png


BIN
static/img/icon/iphone.png


BIN
static/img/icon/lm.png


BIN
static/img/icon/logo.png


BIN
static/img/icon/logoimg.png


BIN
static/img/icon/logow.png


BIN
static/img/icon/notice.png


BIN
static/img/icon/phone.png


BIN
static/img/icon/picbg.png


BIN
static/img/icon/share.png


BIN
static/img/icon/sharelogo.png


BIN
static/img/icon/tj.png


BIN
static/img/icon/tp.png


BIN
static/img/index/USDT(ERC20).png


BIN
static/img/index/a.png


+ 4 - 0
static/img/index/cn.svg

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg  viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" class="icon">
+    <path  d="M404.0192 686.848l13.44-57.7024h-185.6l21.5808-91.9808 13.44-57.6768 20.992-89.0112h182.1184L483.4048 332.8H224.256L140.8 686.848zM555.1872 686.848l52.5312-221.2864 107.9808 221.2608h65.3824L864.512 332.8h-77.056l-51.9424 221.7728L626.9952 332.8h-65.3824l-83.456 354.048z" fill="#fff" ></path>
+</svg>

BIN
static/img/index/en.png


+ 2 - 0
static/img/index/en.svg

@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg data-v-c61c55b0=""  viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"  width="200" height="200" class="icon"><path  d="M404.0192 686.848l13.44-57.7024h-185.6l21.5808-91.9808h157.0048l13.44-57.6768h-157.0048l20.992-89.0112h182.1184L483.4048 332.8H224.256L140.8 686.848zM555.1872 686.848l52.5312-221.2864 107.9808 221.2608h65.3824L864.512 332.8h-77.056l-51.9424 221.7728L626.9952 332.8h-65.3824l-83.456 354.048z" fill="#fff" ></path></svg>

BIN
static/img/index/index-logo.png


BIN
static/img/index/left.png


File diff suppressed because it is too large
+ 4 - 0
static/img/index/name.svg


BIN
static/img/index/right.png


File diff suppressed because it is too large
+ 2 - 0
static/img/index/select.svg


BIN
static/img/loading/loading_more.gif


BIN
static/img/my/jrimg.png


BIN
static/img/tab/icon-ok.png


BIN
static/img/tab/icon.png


BIN
static/img/tab/index-ok.png


BIN
static/img/tab/index.png


BIN
static/img/tab/msg-ok.png


BIN
static/img/tab/msg.png


BIN
static/img/tab/my-ok.png


BIN
static/img/tab/my.png


Some files were not shown because too many files changed in this diff