学术贡献

This commit is contained in:
liqianyouyou
2024-03-18 00:38:16 +08:00
parent 804d40335d
commit 8b3ed35c55
4 changed files with 930 additions and 6 deletions

View File

@@ -48,6 +48,20 @@
</u-grid>
<u-divider v-else text="暂无数据哦~"></u-divider>
</view>
<!-- 学术贡献-学术思想和学术平台 -->
<view class="titleList" v-else-if="curOneCateIndex == 0&&(curTwoCateIndex == 0||curTwoCateIndex == 2)">
<u-grid :col="1" v-if="titleList.length > 0">
<u-grid-item v-for="(item, index) in titleList" :key="item.id" @click="gotoDetail(item)"
style="align-items: flex-start;border-bottom: 2px solid #fff;">
<view :class="['titleItem']">{{item.title}}</view>
</u-grid-item>
</u-grid>
<u-divider v-else text="暂无数据哦~"></u-divider>
</view>
<!-- 学术贡献-出版专著 -->
<view class="titleList" v-else-if="curOneCateIndex == 0&&(curTwoCateIndex == 1)">
<u-divider text="点击标签进入出版专著"></u-divider>
</view>
<!-- 其他 -->
<view class="titleList" v-else>
<u-grid :col="1" v-if="titleList.length > 0&&(curOneCateIndex==0||curOneCateIndex==2)">
@@ -115,7 +129,7 @@
playData: {},
searchValue: '',
oneCateList: [{
title: "专著出版",
title: "学术贡献",
type: 'medicaldesBookType'
}, {
title: "学术传承",
@@ -193,7 +207,7 @@
if (this.curOneCateIndex == 0) {
uni.navigateTo({
// url: '../bookShop/commodityDetail?id=' + item.id
url: '../eBook/bookContent?Id=' + item.id
url: './xueshugongxianDetail?id=' + item.id
})
return
}
@@ -222,21 +236,28 @@
getTitles(dictType) {
console.log('dictType', dictType)
if (this.curOneCateIndex == 0) {
if(dictType == 2){
uni.navigateTo({
url: './zhuanzhuchuban'
})
return
}
$http.request({
url: "book/medicaldes/bookListByType?type=" + dictType,
url: "book/generalArticle/articleByPage",
method: "POST",
data: {
// loadAnimate: 'none', // 请求加载动画
"type": dictType==1?'1':'2',
"limit": 1000,
"page": 1,
"current": 1,
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
},
}).then(res => {
console.log(res, '内容获取成功')
if (res.code == 0 && res.result.length > 0) {
this.titleList = res.result
if (res.code == 0 && res.result && res.result.records.length > 0) {
this.titleList = res.result.records
} else {
this.titleList = []
}
@@ -377,6 +398,18 @@
console.log(res, '二级分类获取成功')
if (res.code == 0 && res.result.length >= 0) {
this.twoCateList = res.result
if (this.curOneCateIndex == 0) {
this.twoCateList = [{
'dictType': "1",
"dictValue": "学术思想"
}, {
'dictType': "2",
"dictValue": "出版专著"
}, {
'dictType': "3",
"dictValue": "学术平台"
}]
}
if (this.curOneCateIndex == 2) {
this.twoCateList = [{
'dictType': "1",