guhongwei 2 gadi atpakaļ
vecāks
revīzija
8170a2cdb1
1 mainītis faili ar 4 papildinājumiem un 63 dzēšanām
  1. 4 63
      pages/index/index.vue

+ 4 - 63
pages/index/index.vue

@@ -10,51 +10,19 @@
 				<button size="mini" @click="toCommon('pages/my/index')">我的1</button>
 			</view>
 			<view class="two">
-				<tabs :tabs="tabs" @tabsChange="tabsChange">
-					<view v-show="tabs.active=='a'">1</view>
-					<view v-show="tabs.active=='b'">2</view>
-					<view v-show="tabs.active=='c'">3</view>
-					<view v-show="tabs.active=='d'">4</view>
-					<view v-show="tabs.active=='e'">5</view>
-				</tabs>
+
 			</view>
 		</view>
+
 	</mobile-frame>
 </template>
 
 <script>
-	import tabs from '@/components/tabs/index.vue';
 	export default {
-		components: {
-			tabs
-		},
+		components: {},
 		data() {
 			return {
-				tabs: {
-					active: 'a',
-					menu: [ //菜单列表
-						{
-							title: '选项卡一',
-							active: 'a'
-						},
-						{
-							title: '选项卡二',
-							active: 'b'
-						},
-						{
-							title: '选项卡三',
-							active: 'c'
-						},
-						{
-							title: '选项卡四',
-							active: 'd'
-						},
-						{
-							title: '选项卡五',
-							active: 'e'
-						}
-					]
-				}
+
 			};
 		},
 		onShow: function() {
@@ -74,10 +42,6 @@
 					url: `/pages/home/index`
 				})
 			},
-			tabsChange(e) {
-				const that = this;
-				that.$set(that.tabs, `active`, e.active)
-			}
 		}
 	}
 </script>
@@ -91,28 +55,5 @@
 				margin: 2vw;
 			}
 		}
-
-		.two {
-			padding: 2vw;
-
-			.scrollView {
-				display: flex;
-				white-space: nowrap;
-				text-align: center;
-			}
-
-			.list {
-				display: inline-block;
-				padding: 2vw;
-				margin: 0 1.5vw;
-				text-align: center;
-				border-radius: 5px;
-
-				text {
-					font-weight: bold;
-					font-size: var(--font14Size);
-				}
-			}
-		}
 	}
 </style>