lybenson преди 8 години
родител
ревизия
7371c2a797

+ 1 - 1
src/components/content/BContent.vue

@@ -72,7 +72,7 @@ export default {
 				clear both
 				font-size 0
 		.container-top
-			padding 
+			padding 0
 			margin 0 auto
 			margin-bottom 20px
 			zoom 1

+ 4 - 2
src/components/contentRow/BContentRow.vue

@@ -5,7 +5,7 @@
 			<BRowBody :row="row"></BRowBody>
 		</div>
 		<div class="b-r">
-			
+			<BRowRank></BRowRank>
 		</div>
 	</div>
 </template>
@@ -13,6 +13,7 @@
 <script>
 import BRowHead from 'components/contentRow/BRowHead'
 import BRowBody from 'components/contentRow/BRowBody'
+import BRowRank from 'components/contentRow/BRowRank'
 export default {
 	props: {
 		category: {
@@ -24,7 +25,8 @@ export default {
 	},
 	components: {
 		BRowHead,
-		BRowBody
+		BRowBody,
+		BRowRank
 	}
 }
 </script>

+ 165 - 4
src/components/contentRow/BRowRank.vue

@@ -1,16 +1,177 @@
 <template>
 	<div class="rank">
-		<div class="b-head"></div>
-		<div class="b-body"></div>
+		<div class="b-head">
+			<div class="left">
+				<span class="b-head-t">
+					<h3>排行</h3>
+				</span>
+				<ul class="b-slt-tab">
+					<li class="on" type="hot">
+						<span class="b-tab-text">全部</span>
+					</li>
+					<li class="hot_original">
+						<span class="b-tab-text">原创</span>
+					</li>
+				</ul>
+			</div>
+			<div class="right">
+				<div class="b-slt">
+					<span class="txt">{{selectedTitle}}</span><div class="b-slt-arrow"></div>
+					<ul class="list">
+						<li :class="{selected: isSelected1}" data-value="3" data-source="/index/catalogy/1-3day.json" @click="selectedItem1">三日</li>
+						<li :class="{selected: isSelected2}" data-value="7" data-source="/index/catalogy/1-week.json" @click="selectedItem2">一周</li>
+					</ul>
+				</div>
+			</div>
+		</div>
+		<BRowRankBody></BRowRankBody>
 	</div>
 </template>
 
 <script>
+import BRowRankBody from 'components/contentRow/BRowRankBody'
 export default {
-
+	data() {
+		return {
+			isSelected1: true,
+			isSelected2: false,
+			selectedTitle: '三日'
+		}
+	},
+	components: {
+		BRowRankBody
+	},
+	methods: {
+		selectedItem1() {
+			this.selectedTitle = '三日'
+			this.isSelected1 = true
+			this.isSelected2 = false
+		},
+		selectedItem2() {
+			this.selectedTitle = '一周'
+			this.isSelected1 = false
+			this.isSelected2 = true
+		}
+	}
 }
 </script>
 
 <style lang="stylus" scoped>
-	
+	.rank
+		.b-head
+			position relative
+			.left
+				float left
+			.b-head-t
+				font-size 18px
+				height 24px
+				line-height 24px
+				vertical-align middle
+				display inline-block
+				color #222
+				h3
+					font-size 18px!important
+					font-weight normal
+			.b-slt-tab
+				padding-left 20px
+				position relative
+				vertical-align middle
+				display inline-block
+				li
+					position relative
+					padding 1px 0 2px
+					border-radius 0
+					border-bottom 1px solid transparent
+					float left
+					height 20px
+					line-height 20px
+					margin-left 12px
+					cursor pointer
+					text-align center
+					transition .2s
+					transition-property border, color
+					&:before
+						content ''
+						display none
+						position absolute
+						left 50%
+						margin-left -3px
+						bottom 0
+						width 0
+						height 0
+						border 3px dashed #00a1d6
+						border-top 0
+						border-left-color transparent
+						border-right-color transparent
+					&:first-child
+						margin-left 0!important
+					&.on
+						background-color transparent
+						border-color #00a1d6
+						color #00a1d6
+					&.on:before
+						display block
+			.right
+				float right
+				.b-slt
+					position relative
+					display inline-block
+					vertical-align middle
+					background-color #fff
+					cursor default
+					padding 0 7px
+					height 22px
+					line-height 22px
+					user-select none
+					border solid 1px #ccd0d7
+					transition .1s border linear
+					border-radius 4px
+					&:hover
+						border solid 1px #ccd0d7
+						border-radius 4px 4px 0 0 
+						box-shadow rgba(0,0,0,0.16) 0 2px 4px
+					.txt
+						display inline-block
+						text-align center
+						white-space nowrap
+						overflow hidden
+						text-overflow ellipsis
+						vertical-align top
+					.b-slt-arrow
+						background  url(../../assets/images/icons.png) -475px -157px no-repeat
+						display inline-block
+						vertical-align middle
+						width 12px
+						height 6px
+						margin-left 5px
+						margin-top -1px
+					.list
+						left -1px
+						right auto
+						display none
+						position absolute
+						background #fff
+						border 1px solid #ccd0d7
+						border-top 0
+						top 22px
+						max-height 540px
+						overflow-x hidden
+						overflow-y auto
+						z-index 5000
+						border-radius 0 0 4px 4px
+						min-width 100%
+						li
+							cursor pointer
+							margin 0
+							padding 3px 7px 3px 7px
+							white-space nowrap
+							overflow hidden
+							text-overflow ellipsis
+							transition .1s background-color
+							&.selected
+								display none
+							&:hover
+								background-color #e5e9ef
+				&:hover .list
+					display block
 </style>

+ 110 - 0
src/components/contentRow/BRowRankBody.vue

@@ -0,0 +1,110 @@
+<template>
+	<div class="b-body">
+		<div class="r-list-body">
+			<div class="r-list-wrapper">
+				<ul class="rlist">
+					<li >
+						<i class="number">
+							
+						</i>
+						<div class="preview">
+							<a href="/video/av9211860/" title="tttttt" target="_blank">
+								<img data-img="" src="//i1.hdslb.com/bfs/archive/96c58de8d469364c105d15357d03ecedd1c207bd.jpg@320w_200h.webp" loaded="loaded" alt="【Lex】震惊!这部讲述打飞机的漫画,竟被称为神作" style="opacity: 1;">
+								</a>
+						</div>
+						<a class="rl-info" href="/video/av9211860/" title="【Lex】震惊!这部讲述打飞机的漫画,竟被称为神作 播放:736312 11:30" target="_blank">	<div class="title t">【Lex】震惊!这部讲述打飞机的漫画,竟被称为神作</div>
+							<div class="i"><b class="pts" title="综合评分: 85.2万">综合评分:85.2万</b></div>
+						</a>
+					</li>
+				</ul>
+			</div>
+		</div>
+		<div class="more-link">
+			<a href="/ranking#!/all/1/1/7/" target="_blank">查看更多</a>
+		</div>
+	</div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style lang="stylus" scoped>
+	.b-body
+		clear both
+		.r-list-body
+			zoom 1
+			overflow hidden
+			.r-list-wrapper
+				width 200%
+				margin-left 0%
+				.rlist
+					padding-bottom 15px
+					padding-top 20px
+					min-height 278px
+					width 50%
+					float left
+					li
+						overflow hidden
+						position relative
+						padding-left 25px
+						img
+							display block
+							max-width 80px
+							height 50px
+							margin 0 auto
+						&:first
+							margin 0
+						.number
+							position absolute
+							color #fff
+							height 18px
+							line-height 17px
+							top 0
+							left 0
+							font-size 12px
+							min-width 12px
+							text-align center
+							background-color #b8c0cc
+							z-index 20
+							border-radius 4px
+							padding 0 3px 0 3px
+							font-weight bloder
+							&.n
+								background-color #f25d8e
+						.preview
+							margin-right 5px
+							width 80px
+							height 50px
+							float left
+							border-radius 4px
+							overflow hidden
+		.more-link
+			text-align right
+			height 24px
+			line-height 24px
+			a
+				display block
+				width auto
+				margin 0
+				background-color #e5e9ef
+				text-align center
+				border 1px solid #e0e6ed
+				height 22px
+				line-height 22px
+				color #222
+				border-radius 4px
+				transition .2s
+				&:after
+					content ''
+					display inline-block
+					width 6px
+					height 12px
+					background url(../../assets/images/icons.png) -478px -218px no-repeat
+					vertical-align middle
+					margin -2px 0 0 5px
+				&:hover
+					background-color #ccd0d7
+</style>

+ 1 - 1
src/components/live/BLive.vue

@@ -67,7 +67,7 @@ export default {
 }
 </script>
 
-<style lang="stylus">
+<style lang="stylus" scoped>
 	.b-live
 		.b-l
 			float left

+ 1 - 1
src/components/live/BLiveItem.vue

@@ -38,7 +38,7 @@ export default {
 }
 </script>
 
-<style lang="stylus">
+<style lang="stylus" scoped>
 	.lv-item
 		width 160px
 		.lv-preview

+ 1 - 1
src/components/live/BLiveRank.vue

@@ -122,7 +122,7 @@ export default {
 }
 </script>
 
-<style lang="stylus">
+<style lang="stylus" scoped>
 	.rank
 		.b-head
 			position relative

+ 1 - 1
src/components/live/BLiveRankItem.vue

@@ -40,7 +40,7 @@ export default {
 }
 </script>
 
-<style lang="stylus">
+<style lang="stylus" scoped>
 	.live-item
 		margin 0 0 14px 0
 		.r-item