soft5566 1 year ago
parent
commit
78ac869bd1
3 changed files with 15 additions and 15 deletions
  1. 5 5
      App.vue
  2. 9 9
      pages.json
  3. 1 1
      pages/index/index.vue

+ 5 - 5
App.vue

@@ -2,13 +2,13 @@
 	export default {
 		onLaunch: function(options) {
 			// 系统没有开放前,请注释这段代码
-			uni.redirectTo({
-				url: '/pages/default/default'
-			})
-			return;
+			// uni.redirectTo({
+			// 	url: '/pages/default/default'
+			// })
+			// return;
 			// console.log('App Launch')
 			// 系统没有开放前,请注释下面这行
-			// this.accredit(options)
+			this.accredit(options)
 		},
 		onShow: function() {
 			// console.log('App Show')

+ 9 - 9
pages.json

@@ -2,15 +2,6 @@
 	"pages": [
 		// 系统没有开放前,作为第一个页面,开发后作为最后一个页面
 		{
-			"path": "pages/default/default",
-			"style": {
-				"navigationBarTitleText": "公告",
-				"enablePullDownRefresh": false,
-				"transparentTitle": "always",
-				"disableScroll": true
-			}
-		}, 
-		{
 			"path": "pages/index/index",
 			"style": {
 				"navigationBarTitleText": "智慧校园公寓"				
@@ -63,6 +54,15 @@
 			"style": {
 				"navigationBarTitleText": "公寓介绍"
 			}
+		},
+		{
+			"path": "pages/default/default",
+			"style": {
+				"navigationBarTitleText": "公告",
+				"enablePullDownRefresh": false,
+				"transparentTitle": "always",
+				"disableScroll": true
+			}
 		}
 	],
 	"globalStyle": {

+ 1 - 1
pages/index/index.vue

@@ -91,7 +91,7 @@
 						<image src="../../static/index/index_lock.svg" style="width: 30rpx;height: 30rpx;margin-left: 10rpx;"></image>
 					</view>
 					<view class="room-price">¥{{ item.price }}</view>
-					<view class="room-num">今剩{{ item.s_yum }}间</view>
+					<!-- <view class="room-num">今剩{{ item.s_yum }}间</view> -->
 					<view class="room-button" :class="{'room-button2': item.s_yum == 0}">
 						<text v-if="item.s_yum == 0">已满</text>
 						<text v-else @click="navigateToOrderRoom(item.s_yum, item.id, item.h_type, item.price)">订</text>