修改ts预警错误

This commit is contained in:
lipenggao 2024-07-29 10:33:52 +08:00
parent 8f41e051cd
commit 30bbabbe22
2 changed files with 7 additions and 6 deletions

View File

@ -84,7 +84,8 @@ Page({
tt.getOrderPayment({ tt.getOrderPayment({
orderId: su.orderId, orderId: su.orderId,
imId: platform === 'ios' ? iosIm : '', imId: platform === 'ios' ? iosIm : '',
success: (payRes: any) => { success: () => {
// payRes: any
tt.hideLoading({}); tt.hideLoading({});
if (platform != 'ios') { if (platform != 'ios') {
tt.showToast({ tt.showToast({

View File

@ -95,7 +95,7 @@ Page({
const nextId = batchList[current]?.id; const nextId = batchList[current]?.id;
const context: any = tt.createVideoContext(`${id}`); const context: any = tt.createVideoContext(`${id}`);
const nextContext: any = tt.createVideoContext(`${nextId}`); const nextContext: any = tt.createVideoContext(`${nextId}`);
const selectionConList = this.data.selectionConList; // const selectionConList = this.data.selectionConList;
// const collectionItem: any = this.data.collectionItem; // const collectionItem: any = this.data.collectionItem;
const sid = this.data.sid; const sid = this.data.sid;
@ -180,7 +180,7 @@ Page({
}, },
videoPlayerEnded() { videoPlayerEnded() {
const videoPlayerCurrent = this.data.videoPlayerCurrent; const videoPlayerCurrent = this.data.videoPlayerCurrent;
const batchList = this.data.batchList; // const batchList = this.data.batchList;
// if (videoPlayerCurrent + 1 <= batchList.length) { // if (videoPlayerCurrent + 1 <= batchList.length) {
// const videoreadRes: any = await httpRequest('/videoread', 'POST', params); // const videoreadRes: any = await httpRequest('/videoread', 'POST', params);
this.setData({ this.setData({
@ -366,8 +366,8 @@ Page({
title: `广告加载中...`, title: `广告加载中...`,
icon: 'none', icon: 'none',
}); });
adBanner.show().then((res: any) => { adBanner.show().then(() => {
// console.log("视频广告展示"); // res: any console.log("视频广告展示");
}); });
}, },
adInit() { adInit() {
@ -377,7 +377,7 @@ Page({
// this.watchInfo.isvip = 0; // this.watchInfo.isvip = 0;
if (!isAdBanner) { if (!isAdBanner) {
const adBanner = tt.createRewardedVideoAd({ const adBanner: any = tt.createRewardedVideoAd({
adUnitId: "wh0y4vcxsbk7ixwktg", adUnitId: "wh0y4vcxsbk7ixwktg",
}); });