|
@@ -31,8 +31,8 @@ Component({
|
|
*/
|
|
*/
|
|
data: {
|
|
data: {
|
|
tempFilePath: '',
|
|
tempFilePath: '',
|
|
- uploadFlag: false,
|
|
|
|
uploadSuccess: false,
|
|
uploadSuccess: false,
|
|
|
|
+ uploadFlag: false,
|
|
// 是否上传过
|
|
// 是否上传过
|
|
uploadState: false,
|
|
uploadState: false,
|
|
percent: 0,
|
|
percent: 0,
|
|
@@ -46,8 +46,7 @@ Component({
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.setData({
|
|
this.setData({
|
|
- uploadFlag: true,
|
|
|
|
- uploadState: true
|
|
|
|
|
|
+ uploadFlag: true
|
|
})
|
|
})
|
|
const uploadTask = wx.uploadFile({
|
|
const uploadTask = wx.uploadFile({
|
|
url: 'https://reader-api.ai160.com//file/upload',
|
|
url: 'https://reader-api.ai160.com//file/upload',
|
|
@@ -61,6 +60,7 @@ Component({
|
|
let audioPath = formateRes.data;
|
|
let audioPath = formateRes.data;
|
|
this.uploadWorks(audioPath);
|
|
this.uploadWorks(audioPath);
|
|
this.setData({
|
|
this.setData({
|
|
|
|
+ uploadState: true,
|
|
uploadSuccess: true,
|
|
uploadSuccess: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -94,7 +94,6 @@ Component({
|
|
res = await publishRankWorks(data)
|
|
res = await publishRankWorks(data)
|
|
}
|
|
}
|
|
wx.setStorageSync('shareVideoId', res.id)
|
|
wx.setStorageSync('shareVideoId', res.id)
|
|
- console.log(res, 'rrrrrrrr');
|
|
|
|
let _data = this.data.readDetail
|
|
let _data = this.data.readDetail
|
|
await postWorksScore({
|
|
await postWorksScore({
|
|
"userReadId": res.id,
|
|
"userReadId": res.id,
|