1. There is no need to manually add scoped to the style tag

2. There is no need to manually import components as long as they are named in a standard way, such as @/components/tip/tip.vue, and other pages can be directly used

Json, the first item of the Pages array is the home page

4. The global object is called UNI, such as request data, uni.request

5. New responsive style unit, RPX, 1rpx:1px6 on 750-wide screen. Swiper has default height, need to adjust it manually otherwise the image will be covered

6. If you want the page height to be fully covered, you need to subtract the navbar height (44px) from the H5 end, such as the Tabbar page, then subtract the Tabbar height (50px), but the APP does not need to use #ifdef platform name for conditional compilation, to achieve different effects for different platforms

	height: calc(100vh - 44px -50px);
	/*  #endif  */
	/* #ifndef H5 */
	height: 100vh;
Copy the code

7. If the uni navigation bar and APP end are hidden, the content will be covered by the system status bar. You need to leave a placeholder height for the status bar, or directly encapsulate the status bar placeholder component (i.e. the component that seals an empty box) and load it conditionally by compilation

8. Conditional compilation note is annotated compilation, and annotation format requirements, not CTRL +/ line, conditional compilation can be used in HTML and CSS

9. Transfer the route parameters from onLoad to the destination page

10 Set drop-down refresh

onPullDownRefresh() {
			setTimeout(() = > {
				uni.stopPullDownRefresh()
			},500)
			this.pageIndex = 1
			this.getList()
		}
Copy the code

11. Call the show method in the subcomponent through ref. The method in the subcomponent is vue