|
|
@@ -99,6 +99,7 @@ export default { |
|
|
|
backGroundIndex: "", |
|
|
|
coverImg: "", |
|
|
|
id: "", |
|
|
|
paperwork: "", |
|
|
|
timerOver: false, |
|
|
|
soundList: [ |
|
|
|
{ |
|
|
@@ -271,6 +272,46 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
getVoiceList() { |
|
|
|
const AccessToken = localStorage.getItem("AccessToken"); |
|
|
|
const data = { |
|
|
|
paperwork: this.paperwork, |
|
|
|
}; |
|
|
|
this.$axios({ |
|
|
|
method: "post", |
|
|
|
url: `${baseUrl}/api/mouldPatch/voiceList?pageNum=1&pageSize=10`, |
|
|
|
headers: { |
|
|
|
"Content-Type": "application/json;charset=UTF-8", |
|
|
|
token: AccessToken, |
|
|
|
}, |
|
|
|
data, |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
console.log(res); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
Toast.fail(err.message); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
getBackGroundList() { |
|
|
|
const AccessToken = localStorage.getItem("AccessToken"); |
|
|
|
this.$axios({ |
|
|
|
method: "get", |
|
|
|
url: `${baseUrl}/api/mouldPatch/list?type=4&pageNum=1&pageSize=10`, |
|
|
|
headers: { |
|
|
|
"Content-Type": "application/json;charset=UTF-8", |
|
|
|
token: AccessToken, |
|
|
|
}, |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
console.log(res); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
Toast.fail(err.message); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
submit() { |
|
|
|
const AccessToken = localStorage.getItem("AccessToken"); |
|
|
|
const data = { |
|
|
@@ -352,6 +393,9 @@ export default { |
|
|
|
created() { |
|
|
|
this.coverImg = this.$route.query.coverImg; |
|
|
|
this.id = this.$route.query.id; |
|
|
|
this.paperwork = this.$route.query.paperwork; |
|
|
|
this.getVoiceList(); |
|
|
|
this.getBackGroundList(); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
scrollToID("top"); |
|
|
|