py 2 vuotta sitten
vanhempi
commit
0c85cc2298
2 muutettua tiedostoa jossa 23 lisäystä ja 10 poistoa
  1. 5 2
      components/en-utils/en-nav/en-nav.vue
  2. 18 8
      pages/me/index.vue

+ 5 - 2
components/en-utils/en-nav/en-nav.vue

@@ -9,7 +9,7 @@
           </text>
         </view>
 
-        <view v-if="!customNav" class="title-text" :style="[{'marginLeft':left +'px'}]">{{title}}</view>
+        <view v-if="!customNav" class="title-text">{{title}}</view>
 		
 		<view v-else class="">
 			<slot name="custom"></slot>
@@ -117,6 +117,7 @@
           let custom=0;
           //#ifdef MP-WEIXIN
           custom = wx.getMenuButtonBoundingClientRect()
+		  console.log(custom,'11111111111111');
           this.customBarH = custom.height
           //#endif
           //#ifdef H5
@@ -145,10 +146,12 @@
     z-index: 999999;
     .flexbox {
       display: flex;
+	  align-items: center;
       justify-content: space-between;
-      padding: 0 20px;
+      padding: 0 20px 20rpx;
       .iconfont{
         color: #333333;
+		font-size: 34rpx;
       }
       .title-text {
         font-size: 36rpx;

+ 18 - 8
pages/me/index.vue

@@ -1,17 +1,27 @@
 <template>
-	<view class="me-index-box">
-
+	<view class="flex-common-css">
+		<Nav title="我的" :leftShow='true' leftIconColor="#333" titleColor="#333"></Nav>
+		<scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
+		</scroll-view>
 	</view>
 </template>
 
 <script>
 	export default {
-		
+		components: {},
+		data() {
+			return {};
+		},
+		onLoad(data) {},
+		mounted() {},
+		methods: {
+			scrolltolower() {
+				console.log('触底');
+			},
+		},
 	}
 </script>
 
-<style scoped lang="scss">
-	.me-index-box{
-		
-	}
-</style>
+<style lang="scss" scoped>
+
+</style>