Explorar o código

refactor:分页修改

zhanghui %!s(int64=2) %!d(string=hai) anos
pai
achega
22eca2e5de
Modificáronse 1 ficheiros con 10 adicións e 8 borrados
  1. 10 8
      pages/order/index.vue

+ 10 - 8
pages/order/index.vue

@@ -1,6 +1,7 @@
 <template>
 	<view class="content">
 
+		<u-sticky>
 <!--			<view ref="hContentWrap" class="hContentWrap h-content-wrap">-->
 <!--				<view class="tab-bar">-->
 <!--					<view class="tab-item" :class="{ active: currentTab === 0 }" @click="changeTab(0)">-->
@@ -11,16 +12,17 @@
 <!--					</view>-->
 <!--				</view>-->
 <!--			</view>-->
-			<View class=" tabs" v-if="currentTab === 0">
+			<View class=" tabs">
 				<u-tabs :list="tabList" :scrollable="false" lineWidth="30" lineColor="#FFE05C" :activeStyle="{
             					color: '#333333',
             					fontWeight: 'bold',
             					transform: 'scale(1.05)'
        							 }" :current="tabIndex" @click="clickTab"></u-tabs>
 			</View>
+		</u-sticky>
 
 		<!-- 订单列表 -->
-		<view :style="{'height':windowHeight}" v-if="currentTab === 0">
+		<view :style="{'height':windowHeight}">
 			<swiper :style="{'height':windowHeight}" :current="tabIndex" @change="swiperChange">
 				<swiper-item class="swiperItem" v-for="(item,index) in tabList" :key="index">
 					<view>
@@ -32,12 +34,12 @@
 		</view>
 
 
-		<view class="product-order" v-if="currentTab === 1">
-			<!-- Tab 2 内容 -->
-			<view class="developing">
-				<text>敬请期待...</text>
-			</view>
-		</view>
+<!--		<view class="product-order" v-if="currentTab === 1">-->
+<!--			&lt;!&ndash; Tab 2 内容 &ndash;&gt;-->
+<!--			<view class="developing">-->
+<!--				<text>敬请期待...</text>-->
+<!--			</view>-->
+<!--		</view>-->
 
 
 		<uni-popup ref="serialNumber">