caojunjie 4 년 전
부모
커밋
ae03083abf
3개의 변경된 파일80개의 추가작업 그리고 14개의 파일을 삭제
  1. 6 3
      App.vue
  2. 21 11
      pages.json
  3. 53 0
      pages/login/upgrade.vue

+ 6 - 3
App.vue

@@ -30,18 +30,21 @@
 			} else {
 				this.$u.route({
 					url: "pages/login/index",
-					type:"redirect"
+					type: "redirect"
 				})
 			}
 		},
 		onLaunch() {
+			console.log("卧槽??????")
+			this.$u.route({
+				url: 'pages/login/upgrade'
+			})
 			// 1.1.0版本之前关于http拦截器代码,已平滑移动到/common/http.interceptor.js中
 			// 注意,需要在/main.js中实例化Vue之后引入如下(详见文档说明):
 			// import httpInterceptor from '@/common/http.interceptor.js'
 			// Vue.use(httpInterceptor, app)
 		},
-		onShow() {
-		}
+		onShow() {}
 	}
 </script>
 

+ 21 - 11
pages.json

@@ -10,16 +10,14 @@
 	// 		"query": "uuid=c4bba940-f69e-11ea-a419-6bafda9d095e&__id__=1" //启动参数,在页面的onLoad函数里面得到
 	// 	}]
 	// },
-	"pages": [
-		{
-		    "path" : "pages/index",
-		    "style" :                                                                                    
-		    {
-		       "app-plus": {
-		       	"titleNView": false
-		       }
-		    }
-		    
+	"pages": [{
+			"path": "pages/index",
+			"style": {
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+
 		},
 		// 首页
 		{
@@ -59,8 +57,20 @@
 					"titleNView": false
 				}
 			}
+		},
+		{
+			"path": "pages/login/upgrade",
+			"style": {
+				"navigationStyle": "custom", // 取消本页面的导航栏
+				"app-plus": {
+					"animationType": "fade-in", // 设置fade-in淡入动画,为最合理的动画类型
+					"background": "transparent", // 背景透明
+					"backgroundColor": "rgba(0,0,0,0)", // 背景透明
+					"popGesture": "none" // 关闭IOS屏幕左边滑动关闭当前页面的功能
+				}
+			}
 		}
-    ],
+	],
 	"subPackages": [{
 		"root": "pages/home",
 		"pages": [{

+ 53 - 0
pages/login/upgrade.vue

@@ -0,0 +1,53 @@
+<template>
+	<u-modal v-model="show" :show-cancel-button="true" confirm-text="升级"
+		title="发现新版本" @cancel="cancel" @confirm="confirm"
+	>
+		<view class="u-update-content">
+			<rich-text :nodes="content"></rich-text>
+		</view>
+	</u-modal>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				show: true,
+				// 传递给uni-app"rich-text"组件的内容,可以使用"<br>"进行换行
+				content: `
+					1. 修复badge组件的size参数无效问题<br>
+					2. 新增Modal模态框组件<br>
+					3. 新增压窗屏组件,可以在APP上以弹窗的形式遮盖导航栏和底部tabbar<br>
+					4. 修复键盘组件在微信小程序上遮罩无效的问题
+				`,
+			}
+		},
+		onReady() {
+			this.show = true;
+		},
+		methods: {
+			cancel() {
+				this.closeModal();
+			},
+			confirm() {
+				this.closeModal();
+			},
+			closeModal() {
+				uni.navigateBack();
+			}
+		}
+	}
+</script>
+
+<style scoped lang="scss">
+	.u-full-content {
+		background-color: #00C777;
+	}
+	
+	.u-update-content {
+		font-size: 26rpx;
+		color: $u-content-color;
+		line-height: 1.7;
+		padding: 30rpx;
+	}
+</style>