resourcesUrl => ossUrl

This commit is contained in:
fan 2023-01-10 16:09:04 +08:00
parent 52cfa3ff14
commit 91bdf79bef
14 changed files with 21 additions and 21 deletions

View File

@ -77,7 +77,7 @@ export default {
size: 3,
action: `${this.$store.state.user.uploadUrl}/api/upload/PICTURE?appId=00001&appSecret=joylink00001`,
response: (res) => {
return `${this.$store.state.user.resourcesUrl}${res.data}`;
return `${this.$store.state.user.ossUrl}${res.data}`;
},
error: () => { that.$message.error('图片上传失败,请检查网络状态'); },
sizeError: () => { that.$message.error('图片上传失败图片大小限制3MB'); } //

View File

@ -95,7 +95,7 @@ export default {
resultMap: {},
loading: false,
audioPlayId: '',
baseUrl:this.$store.state.user.resourcesUrl
baseUrl:this.$store.state.user.ossUrl
};
},
watch: {

View File

@ -84,7 +84,7 @@ export default {
recordSendingId: null,
audioDataMap: {},
audioPlayId: '',
baseUrl:this.$store.state.user.resourcesUrl
baseUrl:this.$store.state.user.ossUrl
};
},
watch: {

View File

@ -56,7 +56,7 @@ export default {
});
uploadFile(action, that.formData).then(resp => {
const imgUrl = this.$store.state.user.resourcesUrl + resp.data;
const imgUrl = this.$store.state.user.ossUrl + resp.data;
insertImgFn(imgUrl);
}).catch(error => { console.log(error); });
};

View File

@ -243,7 +243,7 @@ export default {
type: 'BGM'
};
sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => {
const bgmUrl = this.$store.state.user.resourcesUrl + this.bgmResources[0].url;
const bgmUrl = this.$store.state.user.ossUrl + this.bgmResources[0].url;
const audio = document.getElementById('voice');
audio.src = bgmUrl;
audio.play();
@ -307,7 +307,7 @@ export default {
type: this.videoMode
};
sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => {
this.voiceUrl = this.$store.state.user.resourcesUrl + voice.url;
this.voiceUrl = this.$store.state.user.ossUrl + voice.url;
const audio = document.getElementById('voice');
audio.src = this.voiceUrl;
audio.play();

View File

@ -473,7 +473,7 @@ export default {
const audio = document.getElementById(position.toLowerCase() + '_voice');
if (!audio) { return; }
audio.pause();
audio.src = this.$store.state.user.resourcesUrl + info.url;
audio.src = this.$store.state.user.ossUrl + info.url;
audio.play();
const _that = this;
audio.addEventListener('ended', function() {

View File

@ -243,7 +243,7 @@ export default {
type: 'BGM'
};
sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => {
const bgmUrl = this.$store.state.user.resourcesUrl + this.bgmResources[0].url;
const bgmUrl = this.$store.state.user.ossUrl + this.bgmResources[0].url;
const audio = document.getElementById('voice');
audio.src = bgmUrl;
audio.play();
@ -307,7 +307,7 @@ export default {
type: this.videoMode
};
sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => {
this.voiceUrl = this.$store.state.user.resourcesUrl + voice.url;
this.voiceUrl = this.$store.state.user.ossUrl + voice.url;
const audio = document.getElementById('voice');
audio.src = this.voiceUrl;
audio.play();

View File

@ -479,7 +479,7 @@ export default {
const audio = document.getElementById(position.toLowerCase() + '_voice');
if (!audio) { return; }
audio.pause();
audio.src = this.$store.state.user.resourcesUrl + info.url;
audio.src = this.$store.state.user.ossUrl + info.url;
audio.play();
const _that = this;
audio.addEventListener('ended', function() {

View File

@ -204,7 +204,7 @@ export default {
},
avatarUrl(val) {
if (val && val.creatorAvatarPath) {
return this.$store.state.user.resourcesUrl + val.creatorAvatarPath;
return this.$store.state.user.ossUrl + val.creatorAvatarPath;
} else {
return 'https://joylink.club/oss/wxmicro_assistant/userhead/defaultuser.png';
}

View File

@ -87,7 +87,7 @@ export default {
// yuyin:yuyin,
currentAudioIndex:0,
isPlay:false,
baseUrl: this.$store.state.user.resourcesUrl
baseUrl: this.$store.state.user.ossUrl
};
},
watch:{

View File

@ -204,7 +204,7 @@ export default {
},
avatarUrl(val) {
if (val && val.creatorAvatarPath) {
return this.$store.state.user.resourcesUrl + val.creatorAvatarPath;
return this.$store.state.user.ossUrl + val.creatorAvatarPath;
} else {
return 'https://joylink.club/oss/wxmicro_assistant/userhead/defaultuser.png';
}

View File

@ -158,9 +158,9 @@ export default {
parking: 0,
text: '今日天气最低气温15℃最高气温22℃风向风力东北风3级空气质量良好'
},
standPisImgUrl: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/standPis.png`,
onboardPisImgUrl: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/onboardPis.png`,
prefix: `${this.$store.state.user.resourcesUrl}/PICTURE/pis/`
standPisImgUrl: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/standPis.png`,
onboardPisImgUrl: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/onboardPis.png`,
prefix: `${this.$store.state.user.ossUrl}/PICTURE/pis/`
};
},
watch: {

View File

@ -51,7 +51,7 @@ export default {
mapData: null,
imageLists: [
{
value: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/2292-98507.png`,
value: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/2292-98507.png`,
label: '电流表'
}
],
@ -74,7 +74,7 @@ export default {
name: '',
rotate: 0,
zIndex: 5,
url: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/2292-98507.png`,
url: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/2292-98507.png`,
position: {
x: 0,
y: 0

View File

@ -177,9 +177,9 @@ export default {
parking: 0,
text: '今日天气最低气温15℃最高气温22℃风向风力东北风3级空气质量良好',
},
standPisImgUrl: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/standPis.png`,
onboardPisImgUrl: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/onboardPis.png`,
prefix: `${this.$store.state.user.resourcesUrl}/PICTURE/pis/`,
standPisImgUrl: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/standPis.png`,
onboardPisImgUrl: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/onboardPis.png`,
prefix: `${this.$store.state.user.ossUrl}/PICTURE/pis/`,
}
},
mounted() {