diff --git a/pages/template/share/share.uvue b/pages/template/share/share.uvue
index 7a003f65a75e6c9b48110b478b58032005bdc048..ffb6b14ccdd57a1fc106df716ae78f1cbf9c0d5d 100644
--- a/pages/template/share/share.uvue
+++ b/pages/template/share/share.uvue
@@ -3,12 +3,15 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -64,6 +67,25 @@
}
})
},
+ shareErrorLink() {
+ uni.hideToast()
+ uni.shareWithSystem({
+ href: 'htp:11',
+ success(res) {
+ console.log('Shared----------------------------success')
+ },
+ fail(res) {
+ console.log('Share failed, ' + "res.errCode =" + res.errCode + '---res.errMsg= ' + res.errMsg)
+ uni.showToast({
+ icon: "error",
+ title: "errorCode=" + res.errCode
+ })
+ },
+ complete(res) {
+
+ }
+ })
+ },
sharePrivateImg() {
uni.hideToast()
const imageSrc : string = "/static/test-image/logo.gif";
@@ -164,13 +186,9 @@
},
shareAll() {
uni.hideToast()
- const errorImageSrc1 : string = "/static/test-image/logo.jpg1";
- const errorImageSrc2 : string = "/static/test-image/logo.jpg1";
- const imageSrc : string = "/static/test-image/logo.jpg";
+ const imageSrc : string = "/static/test-video/fast-forward.png";
let imageUrlList : string[] = Array()
imageUrlList.push(imageSrc)
- imageUrlList.push(errorImageSrc1)
- imageUrlList.push(errorImageSrc2)
uni.shareWithSystem({
summary: this.summary,
href: 'https://uniapp.dcloud.io',
@@ -227,7 +245,7 @@
uni.getElementById("viewshot")?.takeSnapshot(
{
success: function (res) {
- // #ifdef APP-ANDROIDn
+ // #ifdef APP-ANDROID
// 打印截图文件临时路径
console.log(res.tempFilePath)
const context = UTSAndroid.getUniActivity()!;
@@ -280,6 +298,7 @@