dever 4 years ago
parent
commit
53ce1ccad1
2 changed files with 8 additions and 3 deletions
  1. 2 1
      pages.json
  2. 6 2
      pages/index/list.vue

+ 2 - 1
pages.json

@@ -16,7 +16,8 @@
 				"app-plus": {
 					"titleNView": false,
 					"bounce": "none",
-					"navigationStyle": "custom"
+					"navigationStyle": "custom",
+					"scrollIndicator":"none"
 				}
 			}
 		},

+ 6 - 2
pages/index/list.vue

@@ -1,7 +1,8 @@
 <template>
-	<view class="container" v-if="!loading">
+	<gracePage :customHeader="false">
+	<view class="container" slot="gBody" v-if="!loading">
 		<view class="main" v-if="goods.length">
-			<view class="content">
+			<view class="content" :style="goods_height">
 				<scroll-view class="menus" :scroll-into-view="menuScrollIntoView" scroll-with-animation scroll-y>
 					<view class="wrapper">
 						<view class="menu" :id="`menu-${item.id}`" :class="{'current': item.id === currentCateId}" v-for="(item, index) in goods" 
@@ -71,6 +72,7 @@
 	<view class="loading" v-else>
 		<image src="/static/images/loading.gif"></image>
 	</view>
+	</gracePage>
 </template>
 
 <script>
@@ -82,6 +84,7 @@ export default {
 	},
 	data() {
 		return {
+			goods_height : 'height:100%',
 			goods: [{
 	"sort": 1,
 	"icon": "",
@@ -6812,6 +6815,7 @@ export default {
 	},
 	onLoad() {
 		//this.init()
+		this.goods_height = 'height:800px';
 	},
 	computed: {
 		goodCartNum() {	//计算单个饮品添加到购物车的数量