提交 f07fbec1 编写于 作者: M mahaifeng

修改报红

上级 5e1ea75a
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
onSeekedTest: false, onSeekedTest: false,
onWaitingTest: false, onWaitingTest: false,
playbackRateChecked: true, playbackRateChecked: true,
onTimeUpdateCb: (res : any) => { }, onTimeUpdateCb: (_ : any) => { },
onWaitingCb: (res : any) => { } onWaitingCb: (_ : any) => { }
} }
}, },
computed: { computed: {
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
console.log('开始播放', this.isPaused); console.log('开始播放', this.isPaused);
}); });
this.onTimeUpdateCb = (res : any) => { this.onTimeUpdateCb = (_ : any) => {
if (this._isChanging) { return; } if (this._isChanging) { return; }
this.currentTime = this._audioContext!.currentTime; this.currentTime = this._audioContext!.currentTime;
console.log('onTimeUpdateCb', this.currentTime) console.log('onTimeUpdateCb', this.currentTime)
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
} }
}; };
this.onWaitingCb = (res : any) => { this.onWaitingCb = (_ : any) => {
console.log('音频加载中事件'); console.log('音频加载中事件');
this.onWaitingTest = true this.onWaitingTest = true
} }
......
...@@ -1324,7 +1324,7 @@ ...@@ -1324,7 +1324,7 @@
console.error(res) console.error(res)
this.done = true this.done = true
}, },
complete: (res : any) => { complete: (_ : any) => {
} }
} as WriteFileOptions) } as WriteFileOptions)
...@@ -1426,7 +1426,6 @@ ...@@ -1426,7 +1426,6 @@
float64[1] = 1.24 float64[1] = 1.24
float64[2] = 1.33 float64[2] = 1.33
let that = this
fileManager.write({ fileManager.write({
fd: this.openFileSyncTest('w+', false), fd: this.openFileSyncTest('w+', false),
length: 16, length: 16,
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
audioPaths: [path1, path2], audioPaths: [path1, path2],
type:'audio', type:'audio',
success(res) { success() {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
filePaths: [path1, path2], filePaths: [path1, path2],
type:'file', type:'file',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
filePaths: [path1], filePaths: [path1],
type:'file', type:'file',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
filePaths: [path1, path2], filePaths: [path1, path2],
type:'file', type:'file',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
audioPaths: [path1], audioPaths: [path1],
type:'audio', type:'audio',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
audioPaths: [path1, path2], audioPaths: [path1, path2],
type:'audio', type:'audio',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
videoPaths: [path1, path2], videoPaths: [path1, path2],
type:'video', type:'video',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
videoPaths: [path1], videoPaths: [path1],
type:'video', type:'video',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
videoPaths: [path1, path2], videoPaths: [path1, path2],
type:'video', type:'video',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
videoPaths: [res.tempFilePath], videoPaths: [res.tempFilePath],
type:'video', type:'video',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
summary: this.summary, summary: this.summary,
type:'text', type:'text',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
type:'text', type:'text',
href: 'https://uniapp.dcloud.io', href: 'https://uniapp.dcloud.io',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
}, },
fail(res) { fail(res) {
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
type:'image', type:'image',
imageUrl: imageSrc, imageUrl: imageSrc,
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
// 分享完成,请注意此时不一定是成功分享 // 分享完成,请注意此时不一定是成功分享
}, },
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
}) })
// 分享失败 // 分享失败
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -338,7 +338,7 @@ ...@@ -338,7 +338,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
imageUrl: imageSrc, imageUrl: imageSrc,
type:'image', type:'image',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
// 分享完成,请注意此时不一定是成功分享 // 分享完成,请注意此时不一定是成功分享
}, },
...@@ -350,7 +350,7 @@ ...@@ -350,7 +350,7 @@
}) })
// 分享失败 // 分享失败
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
const errorImageSrc1 : string = "/static/test-image/logo.gif"; const errorImageSrc1 : string = "/static/test-image/logo.gif";
const errorImageSrc2 : string = "/static/test-image/logo.png"; const errorImageSrc2 : string = "/static/test-image/logo.png";
const imageSrc : string = "/static/test-image/logo.jpg"; const imageSrc : string = "/static/test-image/logo.jpg";
let imageUrlList : string[] = Array() let imageUrlList : string[] = new Array()
imageUrlList.push(errorImageSrc2) imageUrlList.push(errorImageSrc2)
imageUrlList.push(imageSrc) imageUrlList.push(imageSrc)
// imageUrlList.push(errorImageSrc1) // imageUrlList.push(errorImageSrc1)
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
imagePaths: imageUrlList, imagePaths: imageUrlList,
type:'image', type:'image',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
// 分享完成,请注意此时不一定是成功分享 // 分享完成,请注意此时不一定是成功分享
}, },
...@@ -379,7 +379,7 @@ ...@@ -379,7 +379,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -389,14 +389,14 @@ ...@@ -389,14 +389,14 @@
const errorImageSrc1 : string = "/static/test-image/logo.jpg1"; const errorImageSrc1 : string = "/static/test-image/logo.jpg1";
const errorImageSrc2 : string = "/static/test-image/logo.jpg3"; const errorImageSrc2 : string = "/static/test-image/logo.jpg3";
const imageSrc : string = "/static/test-image/logo.jpg"; const imageSrc : string = "/static/test-image/logo.jpg";
let imageUrlList : string[] = Array() let imageUrlList : string[] =new Array()
imageUrlList.push(imageSrc) imageUrlList.push(imageSrc)
imageUrlList.push(errorImageSrc1) imageUrlList.push(errorImageSrc1)
imageUrlList.push(errorImageSrc2) imageUrlList.push(errorImageSrc2)
uni.shareWithSystem({ uni.shareWithSystem({
imagePaths: imageUrlList, imagePaths: imageUrlList,
type:'image', type:'image',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
// 分享完成,请注意此时不一定是成功分享 // 分享完成,请注意此时不一定是成功分享
}, },
...@@ -407,7 +407,7 @@ ...@@ -407,7 +407,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -415,14 +415,14 @@ ...@@ -415,14 +415,14 @@
shareAll() { shareAll() {
uni.hideToast() uni.hideToast()
const imageSrc : string = "/static/test-video/fast-forward.png"; const imageSrc : string = "/static/test-video/fast-forward.png";
let imageUrlList : string[] = Array() let imageUrlList : string[] = new Array()
imageUrlList.push(imageSrc) imageUrlList.push(imageSrc)
uni.shareWithSystem({ uni.shareWithSystem({
summary: this.summary, summary: this.summary,
href: 'https://uniapp.dcloud.io', href: 'https://uniapp.dcloud.io',
imagePaths: imageUrlList, imagePaths: imageUrlList,
type:'image', type:'image',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
// 分享完成,请注意此时不一定是成功分享 // 分享完成,请注意此时不一定是成功分享
}, },
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -451,7 +451,7 @@ ...@@ -451,7 +451,7 @@
// href: 'https://uniapp.dcloud.io', // href: 'https://uniapp.dcloud.io',
imagePaths: e.tempFilePaths, imagePaths: e.tempFilePaths,
type:'image', type:'image',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
// 分享完成,请注意此时不一定是成功分享 // 分享完成,请注意此时不一定是成功分享
}, },
...@@ -463,7 +463,7 @@ ...@@ -463,7 +463,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
...@@ -478,7 +478,7 @@ ...@@ -478,7 +478,7 @@
uni.shareWithSystem({ uni.shareWithSystem({
imageUrl: res.tempFilePath, imageUrl: res.tempFilePath,
type:'image', type:'image',
success(res) { success(_) {
console.log('Shared----------------------------success') console.log('Shared----------------------------success')
// 分享完成,请注意此时不一定是成功分享 // 分享完成,请注意此时不一定是成功分享
}, },
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
title: "errorCode=" + res.errCode title: "errorCode=" + res.errCode
}) })
}, },
complete(res) { complete(_) {
} }
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册