sys 2 anos atrás
pai
commit
aa14538f1f

+ 4 - 11
components/dgex-tantan/dgex-tantan.vue

@@ -21,15 +21,7 @@
 					<template v-if="currentIndex + visible >= index && currentIndex <= index">
 
 						<image class="tantan-slide-img" mode="aspectFill" :src="item.image" ></image>
-						<view class="tantan-slide-box-item-bg">
-							<view class="tantan-slide-box-info">
-								<view class="title" v-if="item.title" v-text="item.title"></view>
-								<view class="desc" v-if="item.desc" v-text="item.desc"></view>
-								<view class="tags" v-if="item.tags && item.tags.length > 0" >
-									<text class="tag" v-for="(item1, index1) in item.tags" :key="index1" v-text="item1"></text>
-								</view>
-							</view>
-						</view>
+					
 						<view v-if="index === currentIndex">
 							<view class="tantan-slide-box-icon tantan-slide-box-dislike"
 								:style="{
@@ -89,8 +81,9 @@
 		},
 		mounted() {
 			const res = uni.getSystemInfoSync()
+      console.log(res)
 			this.winWidth = res.windowWidth
-			this.winHeigh = res.windowHeight
+			this.winHeigh = res.windowHeight-46
 		},
 		methods: {
 			cardTransform(item, index) {
@@ -221,7 +214,7 @@
 
 	.tantan-slide-box {
 		position: relative;
-		width: 95%;
+		width: calc(100vw - 32rpx);
 		height: 100%;
 		perspective: 2100rpx;
 		perspective-origin: 50% -30%;

+ 1 - 1
pages/index/model/index-nav.vue

@@ -73,7 +73,7 @@
           this.customBarH = custom.height
           //#endif
           //#ifdef H5
-          this.customBarH = 44
+          this.customBarH = 34
           this.left=0
           //#endif
           console.log('self.customBarH---------'+this.customBarH)

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

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

+ 1 - 1
pages/text/tantan.vue

@@ -1,5 +1,5 @@
 <template>
-  <view>
+  <view >
     <tantan :list="list" @onChange="change" @onClickImage="clickImage"></tantan>
   </view>
 </template>