提交 f07fbec1 编写于 作者: M mahaifeng

修改报红

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