图片基础url
This commit is contained in:
@@ -4,7 +4,7 @@ export default {
|
|||||||
|
|
||||||
LCBaseUrl:'http://10.110.145.145:9100',//招聘、培训、帮扶
|
LCBaseUrl:'http://10.110.145.145:9100',//招聘、培训、帮扶
|
||||||
LCBaseUrlInner:'http://10.110.145.145:10100',//内网端口
|
LCBaseUrlInner:'http://10.110.145.145:10100',//内网端口
|
||||||
imgBaseUrl:'http://10.110.145.145/images/train/', //图片
|
imgBaseUrl:'http://10.110.145.145/images', //图片基础url
|
||||||
// sseAI+
|
// sseAI+
|
||||||
// StreamBaseURl: 'http://39.98.44.136:8000',
|
// StreamBaseURl: 'http://39.98.44.136:8000',
|
||||||
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ const pageState = reactive({
|
|||||||
});
|
});
|
||||||
const baseUrl = config.imgBaseUrl
|
const baseUrl = config.imgBaseUrl
|
||||||
const getItemBackgroundStyle = (imageName) => ({
|
const getItemBackgroundStyle = (imageName) => ({
|
||||||
backgroundImage: `url(${baseUrl + imageName})`,
|
backgroundImage: `url(${baseUrl}/train/${imageName})`,
|
||||||
backgroundSize: 'cover', // 覆盖整个容器
|
backgroundSize: 'cover', // 覆盖整个容器
|
||||||
backgroundPosition: 'center', // 居中
|
backgroundPosition: 'center', // 居中
|
||||||
backgroundRepeat: 'no-repeat'
|
backgroundRepeat: 'no-repeat'
|
||||||
@@ -180,7 +180,7 @@ function playVideo(video) {
|
|||||||
// 在实际项目中,这里应该导航到视频播放页面
|
// 在实际项目中,这里应该导航到视频播放页面
|
||||||
// 或者调用视频播放组件
|
// 或者调用视频播放组件
|
||||||
console.log('播放视频:', video);
|
console.log('播放视频:', video);
|
||||||
// navTo(`/packageB/train/video/videoDetail?id=${video.id}`);
|
navTo(`/packageB/train/video/videoDetail?id=${video.id}`);
|
||||||
// $api.msg(`准备播放: ${video.title}`);
|
// $api.msg(`准备播放: ${video.title}`);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user