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 @@
+
分享链接
+
分享图片:
@@ -21,11 +23,18 @@
+
+
+
+
+
+
+
@@ -43,11 +52,19 @@
providerList: []
}
},
+ onShareAppMessage() {
+ return {
+ title: this.shareText ? this.shareText : "欢迎体验uni-app",
+ path: '/pages/component/component',
+ imageUrl:this.image ? this.image : 'https://img-cdn-qiniu.dcloud.net.cn/uniapp/app/share-logo@3.png'
+ }
+ },
onUnload:function(){
this.shareText='uni-app可以同时发布成原生App、微信小程序,邀请你一起体验!',
this.href = "https://uniapp.dcloud.io",
this.image='';
},
+ // #ifdef APP-PLUS
onLoad: function () {
uni.getProvider({
service: "share",
@@ -100,6 +117,7 @@
}
});
},
+ // #endif
methods: {
async share(e) {
console.log("分享通道:", e.id);
@@ -211,7 +229,7 @@
.textarea {
border: 2px solid #D8D8D8;
padding: 10px;
- height: 90px;
+ height: 100px;
width: 690px;
}
.uni-input{
diff --git a/examples/hello-uniapp/pages/component/component.vue b/examples/hello-uniapp/pages/component/component.vue
index d1fd61d8e9464c5aab5c6f56ebed599dd2abdb5b..4de998394ee80a47f15384f17fc0b9048d0f8921 100644
--- a/examples/hello-uniapp/pages/component/component.vue
+++ b/examples/hello-uniapp/pages/component/component.vue
@@ -2,7 +2,9 @@
- 以下将展示uni-app官方组件能力,组件样式仅供参考,开发者可根据自身需求自定义组件样式,具体属性参数详见uni-app开发文档。
+
+ 以下将展示uni-app官方组件能力,组件样式仅供参考,开发者可根据自身需求自定义组件样式,具体属性参数详见uni-app开发文档。
+
@@ -67,7 +69,7 @@
},
onShareAppMessage() {
return {
- title: '欢迎体验uniapp',
+ title: '欢迎体验uni-app',
path: '/pages/component/component'
}
},
diff --git a/examples/hello-uniapp/pages/component/form/form.vue b/examples/hello-uniapp/pages/component/form/form.vue
index 61522fb9d7eb49eb4ab9d7330d10345dd3dea0d6..9ec787356029e2420b5574151f5ca6d75d21174c 100644
--- a/examples/hello-uniapp/pages/component/form/form.vue
+++ b/examples/hello-uniapp/pages/component/form/form.vue
@@ -2,7 +2,7 @@
-
-
+
diff --git a/examples/hello-uniapp/pages/template/list2detail-detail/list2detail-detail.vue b/examples/hello-uniapp/pages/template/list2detail-detail/list2detail-detail.vue
index 81767d39742bc770bd0392b5ede2f697e9d745bb..ac75117ba890a5eac5266fa02644e6fd534cf11a 100644
--- a/examples/hello-uniapp/pages/template/list2detail-detail/list2detail-detail.vue
+++ b/examples/hello-uniapp/pages/template/list2detail-detail/list2detail-detail.vue
@@ -39,7 +39,7 @@
url: 'https://spider.dcloud.net.cn/api/news/36kr/' + this.banner.post_id,
success: (data) => {
if (data.statusCode == 200) {
- this.htmlString = data.data.content.replace(/\\/g, "");
+ this.htmlString = data.data.content.replace(/\\/g, "").replace(/
{
diff --git a/examples/hello-uniapp/pages/template/template.vue b/examples/hello-uniapp/pages/template/template.vue
index d0f57d93a6b3a2781ca97c850676e6d92ed5a85b..e9661672bdd6cce046bbfee56d06d5302ccfa128 100644
--- a/examples/hello-uniapp/pages/template/template.vue
+++ b/examples/hello-uniapp/pages/template/template.vue
@@ -62,12 +62,10 @@
name: '选项卡',
url: 'tabbar'
},
- //
// {
// name: '问题反馈',
// url: '/platforms/app-plus/feedback/feedback'
// },
- //
{
name: '数字选择框',
url: 'number-box'
@@ -80,7 +78,7 @@
},
onShareAppMessage() {
return {
- title: '欢迎体验uniapp',
+ title: '欢迎体验uni-app',
path: '/pages/template/template'
}
},
diff --git a/examples/hello-uniapp/platforms/app-plus/feedback/feedback.vue b/examples/hello-uniapp/platforms/app-plus/feedback/feedback.vue
index cb7b99bd048e6152472ffe3352f843f1a5190e59..cdbe7170c0c6569d6527a80297f3a6cd272edc50 100644
--- a/examples/hello-uniapp/platforms/app-plus/feedback/feedback.vue
+++ b/examples/hello-uniapp/platforms/app-plus/feedback/feedback.vue
@@ -5,8 +5,7 @@
快速键入
-
+
图片(选填,提供问题截图,总大小10M以下)