lalala пре 6 година
родитељ
комит
88016635f8
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      mobile-code/src/pages/chat/index.vue

+ 5 - 2
mobile-code/src/pages/chat/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<div class="app-content">
 		<div class="chat-top-wrap">
-			<scroll-view class="chat-list-wrap" scroll-y :style="{height: '642px'}">
+			<scroll-view class="chat-list-wrap" scroll-y :style="{height: scrollHei}">
 				<div class="chat-list" :class="[index == 2 ? 'chat-list-l' : 'chat-list-r' ]" v-for="(item, index) in 4" :key="index">
 					<div class="list-time">15:20</div>
 					<div class="list-blo">
@@ -64,7 +64,7 @@ export default {
 
 <style lang="scss" scoped>
 	.chat-top-wrap {
-        height: calc(100% - 170px);
+		height: calc(100% - 170px);
 		.chat-list {
 			width: calc(100% - 52px);
 			padding: 0 26px;
@@ -117,6 +117,9 @@ export default {
 					}
 				}
 			}
+			&:last-child {
+				margin-bottom: 20px;
+			}
 		}
 		// 左边的消息
 		.chat-list-l {