resourcesUrl => ossUrl
This commit is contained in:
parent
52cfa3ff14
commit
91bdf79bef
@ -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'); } // 图片超过大小的回调
|
||||
|
@ -95,7 +95,7 @@ export default {
|
||||
resultMap: {},
|
||||
loading: false,
|
||||
audioPlayId: '',
|
||||
baseUrl:this.$store.state.user.resourcesUrl
|
||||
baseUrl:this.$store.state.user.ossUrl
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
|
@ -84,7 +84,7 @@ export default {
|
||||
recordSendingId: null,
|
||||
audioDataMap: {},
|
||||
audioPlayId: '',
|
||||
baseUrl:this.$store.state.user.resourcesUrl
|
||||
baseUrl:this.$store.state.user.ossUrl
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
|
@ -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); });
|
||||
};
|
||||
|
@ -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();
|
||||
|
@ -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() {
|
||||
|
@ -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();
|
||||
|
@ -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() {
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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:{
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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: {
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user