Browse Source

no message

sys 2 years ago
parent
commit
487caa5069
4 changed files with 33 additions and 23 deletions
  1. 13 7
      components/dgex-tantan/dgex-tantan.vue
  2. 15 15
      pages.json
  3. 3 0
      pages/index/index.vue
  4. 2 1
      pages/index/model/slide-item.vue

+ 13 - 7
components/dgex-tantan/dgex-tantan.vue

@@ -25,7 +25,7 @@
             <view  :animation="animationData" class="tantan-slide-img-box"   :style="{height: winHeigh + 'px'}">
               <scroll-view class="tantan-slide-img-scroll-box" :bindscroll="endScroll"  :scroll-y="!ifLongTap" :style="{height: winHeigh + 'px'}">
               <view class="img-list">
-                <image  class="tantan-slide-img" v-show="imgIndex===imgKey" v-for="(img,imgIndex) in item.images"   :style="{height: winHeigh + 'px'}"  mode="aspectFill" :src="img" ></image>
+                <image  class="tantan-slide-img" v-show="imgIndex===imgKey" v-for="(img,imgIndex) in item.images"   :style="{height: (winHeigh+1) + 'px'}"  mode="aspectFill" :src="img" ></image>
               </view>
               <view class="user-authentication">
                 <image  class="authentication-img"     mode="aspectFill" src="/static/img/index/authentication.png" ></image>
@@ -145,7 +145,7 @@
 			const res = uni.getSystemInfoSync()
       console.log(res)
 			this.winWidth = res.windowWidth
-			this.winHeigh = res.windowHeight-46
+			this.winHeigh = res.windowHeight-54
 
 
     },
@@ -360,22 +360,24 @@
 		justify-content: center;
 		align-items: center;
 		overflow: hidden;
+    border-radius: 20rpx;
 	}
 	.tantan-slide-box {
 		position: relative;
-		width: calc(100vw - 32rpx);
+		width: calc(100vw - 34rpx);
 		height: 100%;
 		perspective: 2100rpx;
 		perspective-origin: 50% -30%;
 		transform-style: preserve-3d;
 		margin: auto;
+    border-radius: 20rpx;
 	}
 	.tantan-slide-box-item {
 		transform-style: preserve-3d;
 		display: flex;
 		width: 100%;
 		height: 100%;
-		border-radius: 24rpx;
+		border-radius: 20rpx;
 		position: absolute;
 		opacity: 0;
 		transform: translate3d(0px, 0px, 0px) rotate(0deg);
@@ -408,19 +410,23 @@
     will-change: transform;
     width: 100%;
     height: 100%;
-    border-radius: 40rpx;
+    border-radius: 20rpx;
+    //border-radius: 40rpx;
     //background-repeat: no-repeat;//不平铺
     //background-position: center center;//居中
     //background-size: cover;//随容器大小
     //overflow-y: scroll;
     .tantan-slide-img-scroll-box{
-      border-radius: 40rpx;
+      -webkit-backface-visibility: hidden;
+      overflow: hidden;
+      border-radius: 20rpx !important;
       width: 100%;
       height: 100%;
     }
     .tantan-slide-img{
       z-index: 10;
-      border-radius: 40rpx;
+      border-radius: 20rpx 20rpx 0 0;
+      //border-radius: 40rpx;
       width: 100%;
       height: 100%;
       position: absolute;

+ 15 - 15
pages.json

@@ -1,42 +1,42 @@
 {
   "tabBar": {
     "backgroundColor": "#fff",
-    "selectedColor": "#ED301D",
-    "color": "#707070",
-    "borderStyle": "black",
-    "fontSize": "11px",
-    "iconWidth": "24px",
+    "selectedColor": "#000000",
+    "color": "#999999",
+    "borderStyle": "white",
+    "fontSize": "12px",
+    "iconWidth": "22px",
     "height": "50px",
     "list": [
       {
         "text": "icoco",
         "pagePath": "pages/index/index",
-        "iconPath": "static/tabBar/index-no.png",
-        "selectedIconPath": "static/tabBar/index.png"
+        "iconPath": "/static/img/tabBar/index-no.png",
+        "selectedIconPath": "/static/img/tabBar/index.png"
       },
       {
         "text": "圈子",
         "pagePath": "pages/circle/index",
-        "iconPath": "static/tabBar/circle-no.png",
-        "selectedIconPath": "static/tabBar/circle.png"
+        "iconPath": "/static/img/tabBar/circle-no.png",
+        "selectedIconPath": "/static/img/tabBar/circle.png"
       },
       {
         "text": "消息",
         "pagePath": "pages/msg/index",
-        "iconPath": "static/tabBar/msg-no.png",
-        "selectedIconPath": "static/tabBar/msg.png"
+        "iconPath": "/static/img/tabBar/msg-no.png",
+        "selectedIconPath": "/static/img/tabBar/msg.png"
       },
       //      {
       //        "text": "排行榜",
       //        "pagePath": "pages/ranking/index",
-      //        "iconPath": "static/tabBar/ranking-no.png",
-      //        "selectedIconPath": "static/tabBar/ranking.png"
+      //        "iconPath": "/static/img/tabBar/ranking-no.png",
+      //        "selectedIconPath": "/static/img/tabBar/ranking.png"
       //      },
       {
         "text": "我的",
         "pagePath": "pages/my/index",
-        "iconPath": "static/tabBar/my-no.png",
-        "selectedIconPath": "static/tabBar/my.png"
+        "iconPath": "/static/img/tabBar/my-no.png",
+        "selectedIconPath": "/static/img/tabBar/my.png"
       }
     ]
   },

+ 3 - 0
pages/index/index.vue

@@ -36,6 +36,9 @@ export default {
 
 <style scoped lang="scss">
 .index-box{
+  .box-one{
+    border-radius: 20rpx;
+  }
 
 }
 

+ 2 - 1
pages/index/model/slide-item.vue

@@ -88,8 +88,9 @@ export default {
 
 <style scoped lang="scss">
 .slide-box{
-margin-top: 4rpx;
+  margin-top: 10rpx;
   box-sizing: border-box;
+  border-radius: 20rpx;
 }
 
 </style>