Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_page
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_page
Commits
06be6dce
提交
06be6dce
authored
9月 01, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改文物详情接口
上级
d1322763
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
12 行删除
+22
-12
culturalRelic.js
src/api/culturalRelic.js
+13
-3
main.js
src/main.js
+3
-3
Detail.vue
src/views/culturalRelic/Detail.vue
+6
-6
没有找到文件。
src/api/culturalRelic.js
浏览文件 @
06be6dce
...
@@ -14,7 +14,17 @@ export function getRCDetailById(params) {
...
@@ -14,7 +14,17 @@ export function getRCDetailById(params) {
method
:
'get'
,
method
:
'get'
,
params
params
})
})
}
}
// 根据文物id查询详情(包含关联文物)
export
function
getRCDetailByIdV2
(
params
)
{
return
request
({
url
:
'/bizCulturalRelic/v2/listById'
,
method
:
'get'
,
params
})
}
// 文物详情页关联文物
// 文物详情页关联文物
export
function
crRecommendByPage
(
data
)
{
export
function
crRecommendByPage
(
data
)
{
return
request
({
return
request
({
...
@@ -22,9 +32,9 @@ export function crRecommendByPage(data) {
...
@@ -22,9 +32,9 @@ export function crRecommendByPage(data) {
method
:
'post'
,
method
:
'post'
,
data
data
})
})
}
}
export
function
getRecommendCr
(
params
){
export
function
getRecommendCr
(
params
)
{
return
request
({
return
request
({
url
:
'/bizCrRecommend/list'
,
url
:
'/bizCrRecommend/list'
,
method
:
'get'
,
method
:
'get'
,
...
...
src/main.js
浏览文件 @
06be6dce
...
@@ -11,9 +11,9 @@ import './icons'
...
@@ -11,9 +11,9 @@ import './icons'
import
animated
from
'animate.css'
;
import
animated
from
'animate.css'
;
// 滚动动画 wow.js
// 滚动动画 wow.js
import
{
//
import {
WOW
//
WOW
}
from
'../public/static/js/wow'
//
} from '../public/static/js/wow'
import
{
import
{
getFullUrl
getFullUrl
}
from
'@/utils/index'
}
from
'@/utils/index'
...
...
src/views/culturalRelic/Detail.vue
浏览文件 @
06be6dce
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
</div>
</div>
</div>
</div>
<div
class=
"cr-detail_relate_cr"
v-if=
"relateRelics.length
>
0"
>
<div
class=
"cr-detail_relate_cr"
v-if=
"relateRelics.length
>
0"
>
<CustomTitle
text=
"关联文物"
/>
<CustomTitle
text=
"关联文物"
/>
<el-row
:gutter=
"40"
class=
"cr-list"
>
<el-row
:gutter=
"40"
class=
"cr-list"
>
<el-col
<el-col
...
@@ -229,7 +229,7 @@ import Video from "@/components/Video";
...
@@ -229,7 +229,7 @@ import Video from "@/components/Video";
import
CustomTitle
from
"@/components/CustomTitle"
;
import
CustomTitle
from
"@/components/CustomTitle"
;
import
ReaderOperations
from
"@/components/ReaderOperations"
;
import
ReaderOperations
from
"@/components/ReaderOperations"
;
import
QRCode
from
"qrcodejs2"
;
import
QRCode
from
"qrcodejs2"
;
import
{
getRCDetailById
,
crRecommendByPage
}
from
"@/api/culturalRelic"
;
import
{
getRCDetailById
V2
,
crRecommendByPage
}
from
"@/api/culturalRelic"
;
import
{
previewFile
}
from
"@/utils/index"
;
import
{
previewFile
}
from
"@/utils/index"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -280,12 +280,12 @@ export default {
...
@@ -280,12 +280,12 @@ export default {
async
loadDetail
()
{
async
loadDetail
()
{
let
crId
=
this
.
$route
.
params
.
crId
;
let
crId
=
this
.
$route
.
params
.
crId
;
if
(
crId
)
{
if
(
crId
)
{
let
res
=
await
getRCDetailById
({
crId
});
let
res
=
await
getRCDetailById
V2
({
crId
});
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
CRDetail
=
res
.
data
;
this
.
CRDetail
=
res
.
data
.
culturalRelicVo
;
// debugger
this
.
relateRelics
=
res
.
data
.
recommendList
.
records
;
// 获取关联文物
// 获取关联文物
this
.
loadCrRecommend
();
//
this.loadCrRecommend();
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
this
.
CRDetail
.
audiosVo
&&
this
.
CRDetail
.
audiosVo
.
length
>
0
)
{
if
(
this
.
CRDetail
.
audiosVo
&&
this
.
CRDetail
.
audiosVo
.
length
>
0
)
{
this
.
$message
.
info
(
"正在播放当前文物讲解音频,点击按钮可关闭"
);
this
.
$message
.
info
(
"正在播放当前文物讲解音频,点击按钮可关闭"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论