diff --git a/examples/hello-uniapp/common/uni.css b/examples/hello-uniapp/common/uni.css index d37cd24eab25520d0e3c4000cda7c4e21ad0e5f5..67fa32ef4ac999409c5a00e6d223ecad01da65f3 100644 --- a/examples/hello-uniapp/common/uni.css +++ b/examples/hello-uniapp/common/uni.css @@ -62,9 +62,10 @@ } .uni-input { - height: 80px; - min-height: 80px; - line-height: 80px; + height: 50px; + min-height: 50px; + padding: 15px 0; + line-height: 50px; } .uni-label { @@ -78,7 +79,7 @@ -/*数字角标 */ +/*数字角标*/ .uni-badge { padding: 4px 14px; @@ -724,13 +725,18 @@ .feedback-textare { height: 200px; font-size: 34px; + line-height: 50px; + width: 100%; + box-sizing: border-box; padding: 20px 30px 0; } .feedback-input { - height: 80px; font-size: 34px; - padding-left: 20px; + height: 50px; + min-height: 50px; + padding: 15px 20px; + line-height: 50px; } .feedback-uploader { diff --git a/examples/hello-uniapp/pages.json b/examples/hello-uniapp/pages.json index cb54dead077533717e4e472575490869a11eea36..4c4a707165de5d81602a93e2cf7d2ddba8236b4c 100644 --- a/examples/hello-uniapp/pages.json +++ b/examples/hello-uniapp/pages.json @@ -161,7 +161,7 @@ "navigationBarTitleText": "发起支付" } }, { - "path": "platforms/app-plus/share/share", + "path": "pages/API/share/share", "style": { "navigationBarTitleText": "分享" } diff --git a/examples/hello-uniapp/pages/API/API.vue b/examples/hello-uniapp/pages/API/API.vue index c376779ecb171b243afc2b524c88b5201bd8e43c..db20e593f2433780950e7fc412123a7ce9866854 100644 --- a/examples/hello-uniapp/pages/API/API.vue +++ b/examples/hello-uniapp/pages/API/API.vue @@ -169,17 +169,17 @@ name: '发起支付', url: 'request-payment' }] - } - //#ifdef APP-PLUS - , { + }, { id: 'share', name: '分享', open: false, pages: [{ name: '分享', - url: '/platforms/app-plus/share/share' + url: 'share' }] - }, { + } + //#ifdef APP-PLUS + , { id: 'speech', name: '语音', open: false, @@ -204,7 +204,7 @@ }, onShareAppMessage() { return { - title: '欢迎体验uniapp', + title: '欢迎体验uni-app', path: '/pages/API/API' } }, diff --git a/examples/hello-uniapp/pages/API/action-sheet/action-sheet.vue b/examples/hello-uniapp/pages/API/action-sheet/action-sheet.vue index ac1b51649ca38a327c700a30e38ebbe87c2520b9..86609e7c2b166c64352133571df7c2003111aca4 100644 --- a/examples/hello-uniapp/pages/API/action-sheet/action-sheet.vue +++ b/examples/hello-uniapp/pages/API/action-sheet/action-sheet.vue @@ -21,7 +21,11 @@ uni.showActionSheet({ itemList: ['item1', 'item2', 'item3', 'item4'], success: (e) => { - console.log(e.tapIndex) + console.log(e.tapIndex); + uni.showToast({ + title:"点击了第" + e.tapIndex + "个选项", + icon:"none" + }) } }) } diff --git a/examples/hello-uniapp/pages/API/get-network-type/get-network-type.vue b/examples/hello-uniapp/pages/API/get-network-type/get-network-type.vue index 41b8fc821d8aa47b6fab990d383f34945a1ea01f..272e98f803ce0d298d4e92b26670a156ab8240a3 100644 --- a/examples/hello-uniapp/pages/API/get-network-type/get-network-type.vue +++ b/examples/hello-uniapp/pages/API/get-network-type/get-network-type.vue @@ -32,6 +32,9 @@ networkType: '' } }, + onUnload:function(){ + this.networkType = '',this.hasNetworkType = false; + }, methods: { getNetworkType: function () { uni.getNetworkType({ diff --git a/examples/hello-uniapp/pages/API/get-system-info/get-system-info.vue b/examples/hello-uniapp/pages/API/get-system-info/get-system-info.vue index 4633a36defc80a1e06303979f231703004d7484c..69d5c9761bcc969df62f59ce4adb4860485af421 100644 --- a/examples/hello-uniapp/pages/API/get-system-info/get-system-info.vue +++ b/examples/hello-uniapp/pages/API/get-system-info/get-system-info.vue @@ -70,6 +70,9 @@ systemInfo: {} } }, + onUnload:function(){ + this.systemInfo = {}; + }, methods: { getSystemInfo: function () { uni.getSystemInfo({ diff --git a/examples/hello-uniapp/pages/API/scan-code/scan-code.vue b/examples/hello-uniapp/pages/API/scan-code/scan-code.vue index e951790e835f7ee99469c2f97e5a7ca70979a56e..c5273907bf6d67618daf2d2ccc95b5a3f3a3c0e5 100644 --- a/examples/hello-uniapp/pages/API/scan-code/scan-code.vue +++ b/examples/hello-uniapp/pages/API/scan-code/scan-code.vue @@ -24,6 +24,9 @@ result: '' } }, + onUnload:function(){ + this.result = ''; + }, methods: { scanCode: function () { var that = this @@ -46,7 +49,7 @@ @import "../../../common/uni.css"; .uni-input { - padding: 0 30px; + padding: 15px 30px; word-break: break-all; } diff --git a/examples/hello-uniapp/platforms/app-plus/share/share.vue b/examples/hello-uniapp/pages/API/share/share.vue similarity index 91% rename from examples/hello-uniapp/platforms/app-plus/share/share.vue rename to examples/hello-uniapp/pages/API/share/share.vue index 99d9ee23787f596111334a7c749bda88c544d335..6974dd6794d73c2fe027702716c8e0b5f9863b90 100644 --- a/examples/hello-uniapp/platforms/app-plus/share/share.vue +++ b/examples/hello-uniapp/pages/API/share/share.vue @@ -8,12 +8,14 @@