Commit 411698fc authored by zhangyanni's avatar zhangyanni

话题相关

parent 3a86b6b1
......@@ -739,6 +739,7 @@ i, em {
height: 1rem;
}
>div.medalFirstTitle{
width: 100%;
max-height: 1rem;
height: unset;
font-size: .28rem;
......@@ -2498,4 +2499,18 @@ i, em {
font-weight: normal;
}
}
//h5查看大图
.lookBigImg{
.el-image-viewer__close{
top: .2rem;
right: .2rem;
}
.el-image-viewer__next{
right: .2rem;
}
.el-image-viewer__prev{
left: .2rem;
}
}
}
\ No newline at end of file
src/assets/img/mobile/medal.png

268 KB | W: | H:

src/assets/img/mobile/medal.png

374 KB | W: | H:

src/assets/img/mobile/medal.png
src/assets/img/mobile/medal.png
src/assets/img/mobile/medal.png
src/assets/img/mobile/medal.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -549,29 +549,6 @@ export default {
return tmp;
},
//转义表情
analyzeEmoji(cont){//编译表情替换成图片展示出来
var pattern1 = /\[[\u4e00-\u9fa5]+\]/g;
var pattern2 = /\[[\u4e00-\u9fa5]+\]/;
var content = cont.match(pattern1);
var str = cont;
if(content){
for(var i=0;i<content.length;i++){
for(var j=0;j<this.OwOlist.length;j++){
if("["+this.OwOlist[j].title +"]" == content[i]){
var src = this.OwOlist[j].url;
break;
}
}
var s = require("../img/face/"+src)
var imoj = "<img src='"+s+"' style='margin:0 .02rem;width:22px;height:22px;'/>"
str = str.replace(pattern2, imoj);
}
}
return str;
},
//获取话题两个#之间的内容组合
getTopicTitleFunc(ele,str){
var index = str.indexOf(ele); // 字符出现的位置
......@@ -618,7 +595,12 @@ export default {
}else{
return str;
}
}
},
//数组去重
arrayDedupe(array){
return Array.from(new Set(array));
},
}
This diff is collapsed.
......@@ -11,8 +11,8 @@
v-model="textareaMap[0]"
resize="none" rows="6"
suffix-icon="iconfont icon-bianji"
maxlength="5000"
show-word-limit
:maxlength="commentType==1?5000:1000"
:showWordLimit="commentType==1?true:false"
:placeholder="commentType==1?'':(nickName?'回复@'+nickName:placeholder)"
>
</el-input>
......@@ -56,9 +56,8 @@
<span class="errorText" v-if="isShowErrorText5">{{$t("activityInfo.errorExceedCard")}}</span>
</div>
<div class="projectWrap" v-if="commentType==1">
<div @click="hansleSelectProject(1,'我的项目我的项目我的项目')" v-if="projectListData.length>0"><span>我的项目</span><i class="iconfont icon-xiala"></i></div>
<!--<div @click="hansleSelectProject(2,'可选评论项目可选评论项目可选评论项目可选评论项目')" v-if="canSearchProjectListData.length>0"><span>可选评论项目</span><i class="iconfont icon-xiala"></i></div>-->
<div @click="hansleSelectProject(2,'可选评论项目可选评论项目可选评论项目可选评论项目')"><span>可选评论项目</span><i class="iconfont icon-xiala"></i></div>
<div @click="hansleSelectProject(1)" v-if="projectListData.length>0"><span>我的项目</span><i class="iconfont icon-xiala"></i></div>
<div @click="hansleSelectProject(2)" v-if="canSearchProjectListData.length>0"><span>可选评论项目</span><i class="iconfont icon-xiala"></i></div>
</div>
</div>
......@@ -97,10 +96,12 @@
</form>
</div>
<div class="projectItemList">
<div @click.enter="handleConfirmSelect(item,index)" v-if="canSearchProjectListData.length>0" v-for="(item,index) in canSearchProjectListData"><span>{{item.projectName}}</span><span><i class="iconfont icon-gou" v-if="currentIndex==index"></i></span></div>
<span class="changeOne">
<div v-if="projectListData.length==0||canSearchProjectListData.length==0" style="display: flex;justify-content:center;border-bottom: unset">暂无数据</div>
<div @click.enter="handleConfirmSelect(1,item,index)" v-if="projectListData.length>0&&myProVisible" v-for="(item,index) in projectListData"><span>{{item.projectName}}</span><span><i class="iconfont icon-gou" v-if="currentProIndex==item.projectId"></i></span></div>
<div @click.enter="handleConfirmSelect(2,item,index)" v-if="canSearchProjectListData.length>0&&selectProVisible" v-for="(item,index) in canSearchProjectListData"><span>{{item.projectName}}</span><span><i class="iconfont icon-gou" v-if="currentIndex==item.projectId"></i></span></div>
<span class="changeOne" v-if="(canSearchProjectListData.length>0&&selectProVisible)||(projectListData.length>0&&myProVisible)">
<span @click="visible = false">取消</span>
<span @click="handleChange">换一批</span>
<span @click="handleChange" v-if="(totalPage>1&&selectProVisible)||(proPage>1&&myProVisible)">换一批</span>
</span>
</div>
......@@ -365,20 +366,27 @@
canSearchProjectListData:[],
oldProjectData:this.publicFun.getCookie("oldProjectData"),
commentTypeList:[{
id:1,
id:0,
name:"公开"
},{
id:2,
id:1,
name:"私密"
}],
isPublicComment:1,
isPublicComment:0,
currentProject:"",
page:1,
pageSize:10,
total:0,
totalPage:1,
proPage:1,
proPageSize:10,
proTotal:0,
proTotalPage:1,
isIos: navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
currentIndex:-1
currentIndex:-1,
currentProIndex:-1,
projectIds:[],
projectName:[]
}
},
......@@ -419,7 +427,6 @@
//this.showFlag = false;
},
doSend() {
//console.log("====="+this.textarea);
this.$emit("doSend", this.textareaMap[0]);
this.$set(this.textareaMap, 0, '')
},
......@@ -475,7 +482,6 @@
handleInput(val) {
this.$set(this.textareaMap, 0, val);
this.resultTitle = this.publicFun.getTopicTitleFunc("#", val);
console.log(val)
// this.$set(this.textareaMap,0,this.textareaMap[0] + val)
},
......@@ -517,9 +523,16 @@
discussObj = {
discussContent:this.textareaMap[0],
discussUrl:this.imgList.join(","),
projectName:1111
projectName:this.projectName,
projectIds:this.projectIds
};
}
if(this.isPublic){
commentObj = {
commentsContent:this.textareaMap[0],
commentsState:this.isPublicComment
}
}
if(this.disabledFlag==0){
this.disabledFlag++;
if(this.commentType==1&&!this.isPublic) this.$emit("publishComment",discussObj);
......@@ -562,7 +575,7 @@
this.textareaMap[0] = this.topicTitle;
if(!this.isPublic) {
this.getMyProjectList();
// this.getCanCommentProjectList();
this.getCanCommentProjectList();
}
}
......@@ -687,18 +700,23 @@
//换一批
handleChange(){
if(this.myProVisible){
this.proPage++;
this.getMyProjectList()
}
if(this.selectProVisible){
this.page++;
this.getCanCommentProjectList();
}
},
//确认选择项目
handleConfirmSelect(data,index){
this.currentIndex = index;
handleConfirmSelect(type,data,index){
if(type==1) this.currentProIndex = data.projectId;
else this.currentIndex = data.projectId;
this.currentProject = data;
this.visible = false;
this.projectIds.push(data.projectId);
this.projectName.push(data.projectName);
this.textareaMap[0] = this.textareaMap[0]+data.projectName;
this.resultTitle = this.publicFun.getTopicTitleFunc("#", this.textareaMap[0]);
},
......@@ -721,6 +739,14 @@
topicApi.getMyProjectAxios().then((res)=>{
if(res.code==0){
this.projectListData = res.result;
this.proTotal = res.result.totalStr;
this.proTotalPage = res.result.pages;
if(res.result.pages<this.page){
this.proPage = 1;
if(res.result.pages!=0){
this.getMyProjectList(true);
}
}
}else{
this.$toast(res.msg);
}
......@@ -730,10 +756,10 @@
},
//获取可评论的项目
getCanCommentProjectList(){
getCanCommentProjectList(flag){
let params = {
pagination:{
numberOfPages:this.page,
numberOfPages:flag?1:this.page,
number:this.pageSize
},
search:{
......@@ -744,6 +770,14 @@
topicApi.getCanCommentProjectAxios(params).then((res)=>{
if(res.code==0){
this.canSearchProjectListData = res.result.records;
this.total = res.result.totalStr;
this.totalPage = res.result.pages;
if(res.result.pages<this.page){
this.page = 1;
if(res.result.pages!=0){
this.getCanCommentProjectList(true);
}
}
}else{
this.$toast(res.msg);
}
......@@ -1698,7 +1732,7 @@
}
.selectMyProjectDialog{
position: fixed;
top: 2rem;
bottom: 1rem;
left: 5%;
display: flex;
justify-content: center;
......
......@@ -91,30 +91,30 @@
id:this.isReply||this.isDeepReply?this.commentsId:undefined,
commentsReplyId:this.isDeepReply?this.commentsDeepId:undefined,
replyBy:this.isDeepReply?this.replyCreatedBy:undefined,
projectIds:data.projectIds.join(",")
};
console.log(params)
// api.publishTopicDiscussAxios(params).then((res)=>{
// if(res.code==0){
// if(res.msgCode==0||res.msgCode==null){
// this.$emit("showCommentVisible");
// }else{
// this.$toast({
// message:res.msg,
// duration:5000,
// className:"noticeError"
// });
// }
// }else{
// this.$toast({
// message:res.msg,
// duration:5000,
// className:"noticeError"
// });
// }
// }).catch((err)=>{
// this.$toast(err);
// })
api.publishTopicDiscussAxios(params).then((res)=>{
if(res.code==0){
if(res.msgCode==0||res.msgCode==null){
this.$emit("showCommentVisible");
}else{
this.$toast({
message:res.msg,
duration:5000,
className:"noticeError"
});
}
}else{
this.$toast({
message:res.msg,
duration:5000,
className:"noticeError"
});
}
}).catch((err)=>{
this.$toast(err);
})
}else{
}
......
......@@ -1511,7 +1511,7 @@
}
&>span:last-of-type{
color: #3F3F53;
word-break: break-word;
word-break: break-all;
font-size: .24rem;
}
}
......
import api from '../../../api/api';
import Qs from 'qs';
export default {
//根据id获取勋章
getMedalInfoById(params){
return api.fetchLoadingLogin("/base/baseMedal/selectBaseMedalById?empId="+params);
},
//勋章详情
getMedalDetailById(params1,params2){
return api.fetchLoadingLogin("/base/baseMedal/selectMedalExplainInterface?empId="+params1+"&medalId="+params2)
}
}
\ No newline at end of file
This diff is collapsed.
<template>
<div class="overfolowWrapper">
<breadTop :isReturn="true" :isTop="true" :medalImg="true"></breadTop>
<div class="mineInfo">
<div class="mineInfo" v-if="detailInfo">
<div>
<div class="headerImg">
<div :style="{backgroundImage:'url('+require('../../../assets/img/defaultlogo.png')+')'}"></div>
<div :style="{backgroundImage:detailInfo.empUrl?'url('+detailInfo.empUrl+')':'url('+require('../../../assets/img/defaultlogo.png')+')'}"></div>
</div>
<span>小雨崔哥</span>
<span>{{detailInfo.nickName}}</span>
</div>
<div>
<p>4</p>
<p>{{detailInfo.medalNum}}</p>
<p>已获得</p>
</div>
</div>
<div class="medalInfo">
<div>
<div class="medal medal1"></div>
<div class="info">
<p>妙笔生花</p>
<p>发表讨论观点达到10条</p>
</div>
</div>
<div>
<div class="medal medal2"></div>
<div class="info">
<p>妙笔生花</p>
<p>发表评论(回复别人的评论)达到10个以上</p>
</div>
</div>
<div>
<div class="medal medal3"></div>
<div class="info">
<p>妙笔生花</p>
<p>点赞达到50次</p>
</div>
</div>
<div>
<div class="medal medal4"></div>
<div class="medalInfo" v-if="detailInfo">
<div v-for="item in detailInfo.baseMedalDTOList" @click="handleToDetail(item)" v-if="userInfo&&$route.query.id==userInfo.empId||item.isHaveMedal==1">
<div class="medal" :class="['medal'+item.medalId,item.isHaveMedal==0?'grayMedal':'']"></div>
<div class="info">
<p>妙笔生花</p>
<p>发表评论(回复别人的评论)达到10个以上</p>
<p>{{item.medalName}}</p>
<p>{{item.medalDescription}}</p>
</div>
</div>
<div>
<div class="medal medal5"></div>
<div class="info">
<p>妙笔生花</p>
<p>发表评论(回复别人的评论)达到10个以上</p>
</div>
</div>
<el-button type="primary">查看我的勋章成就</el-button>
<el-button type="primary" @click="handleToMyMedal" v-if="!userInfo||(userInfo&&userInfo.empId!=$route.query.id)">查看我的勋章成就</el-button>
</div>
<applyLoginCmpt v-if="isLogin" @isShowLoginDialogFunc="isShowLoginDialogFunc" :registerType="103" :visible="isLogin"></applyLoginCmpt>
</div>
</template>
......@@ -58,27 +31,69 @@
import api from './api'
import {Toast} from 'mint-ui';
import breadTop from '../../../components/mobile/breadTop'
export default {
name: "mineMedal",
components:{
components: {
breadTop
},
data(){
return{
data() {
return {
userInfo: this.publicFun.getCookie("userInfo") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("userInfo"))) : null,
detailInfo: null,
isLogin:false
}
},
methods:{
methods: {
//初始化
getInitInfo() {
api.getMedalInfoById(this.$route.query.id).then((res) => {
if (res.code == 0) {
this.detailInfo = res.result;
} else {
this.$toast(res.msg);
}
}).catch((err) => {
this.$toast(err);
})
},
//去我的成就
handleToMyMedal(){
if(this.userInfo){
this.$router.push({path:"/mineMedal",query:{id:this.userInfo.empId}})
}else{
this.isLogin = true;
}
},
handleToDetail(data){
if(data.isHaveMedal==0){
this.$router.push({path:"/medalDetail",query:{id:data.medalId}})
}
},
//登录以后
isShowLoginDialogFunc(data){
}
},
mounted() {
this.getInitInfo()
},
mounted(){
}
watch:{
//监听相同路由下参数变化的时候,从而实现异步刷新
'$route'(to,from){
this.getInitInfo();
},
},
}
</script>
<style scoped lang="scss">
.medalBg{
.medalBg {
width: 100%;
height: 3rem;
background-image: url("../../../assets/img/mobile/medalBg.png");
......@@ -88,7 +103,8 @@
left: 0;
top: 0;
}
.mineInfo{
.mineInfo {
width: 100%;
position: fixed;
top: 1.1rem;
......@@ -100,37 +116,37 @@
z-index: 100;
color: #fff;
align-items: center;
>div:first-of-type{
> div:first-of-type {
display: flex;
align-items: center;
>span{
> span {
display: inline-block;
width: 2.6rem;
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap;
white-space: nowrap;
padding-left: .3rem;
font-weight: bold;
font-size: .32rem;
}
}
>div:last-of-type{
> div:last-of-type {
text-align: center;
>p:first-of-type{
> p:first-of-type {
font-size: .56rem;
font-weight: bold;
padding-bottom: .1rem;
}
}
.headerImg{
.headerImg {
width: 1.25rem;
height: 1.25rem;
border-radius: 50%;
background-color: rgba(255,255,255,0.6);
background-color: rgba(255, 255, 255, 0.6);
display: flex;
justify-content: center;
align-items: center;
>div{
> div {
width: 1.15rem;
height: 1.15rem;
background-size: cover;
......@@ -139,9 +155,10 @@
}
}
}
.medalInfo{
.medalInfo {
width: 100%;
height: calc(100% - 3rem);
max-height: calc(100% - 3rem);
background: #fff;
position: absolute;
top: 3rem;
......@@ -149,31 +166,31 @@
display: flex;
flex-wrap: wrap;
justify-content: center;
.el-button{
.el-button {
border-radius: 1rem;
height: .9rem;
width: 100%;
margin: .5rem .3rem .3rem .1rem;
}
>div{
> div {
width: 100%;
display: flex;
align-items: center;
padding-bottom: .4rem;
.info{
>p:first-of-type{
.info {
> p:first-of-type {
font-weight: bold;
color: #1A1A1E;
font-size: .32rem;
padding-bottom: .1rem;
}
>p:last-of-type{
> p:last-of-type {
font-size: .24rem;
color: #69697A;
}
}
}
.medal{
.medal {
width: 1.5rem;
height: 1.7rem;
background-image: url("../../../assets/img/mobile/medal.png");
......@@ -182,20 +199,23 @@
background-repeat: no-repeat;
margin-right: .3rem;
}
.medal1{
background-position-y:-610px;
.medal1 {
background-position-y: -610px;
}
.medal2 {
background-position-y: -708px;
}
.medal2{
background-position-y:-708px;
.medal3 {
background-position-y: -808px;
}
.medal3{
background-position-y:-808px;
.medal4 {
background-position-y: -906px;
}
.medal4{
background-position-y:-906px;
.medal5 {
background-position-y: -1004px;
}
.medal5{
background-position-y:-1004px;
.grayMedal{
background-position-x: -75px;
}
}
</style>
\ No newline at end of file
......@@ -10,6 +10,11 @@
class="vipImg">
</div>
<span class="line-limit-length">{{empuser.nickName}}</span>
<div class="medalWrap">
<span class="medal" :class="'medal'+detailInfoMedal.id" @click="handleToMedal"
v-if="empuser.empMedalList.length>0"
v-for="detailInfoMedal in empuser.empMedalList"></span>
</div>
<div class="intersetedFlag" v-if="publicFun.getUserDetailRoleFunc()==1">
<div>
<div v-if="intersetedFlag.length>0" v-for="item in intersetedFlag"><span>{{lang==1?item.dataName:item.dataNameEn}}</span></div>
......@@ -96,14 +101,14 @@
{
id: 3,
name: "aboutUs",
icon:"icon-hezuoanli",
icon:"icon-guanyuwomen1",
routerLink:"/aboutused"
},
{
id: 4,
name: "contactUs",
icon:"icon-hezuoanli",
icon:"icon-dianhua",
routerLink:"/contactused"
},
......@@ -118,14 +123,14 @@
{
id: 1,
name: "protocol",
icon:"icon-hangyejujiao",
icon:"icon-tiaokuan",
routerLink:"/termserviceed"
},
{
id: 2,
name: "protocol2",
icon:"icon-hezuoanli",
icon:"icon-yinsizhengce",
routerLink:"/privacypolicyed"
},
......@@ -251,6 +256,11 @@
}
},
//去勋章
handleToMedal(data){
this.$router.push({path:"/mineMedal",query:{id:this.userInfo.empId}})
},
handleGo() {
this.$router.push({path: "/modifypersonal", query: {state: true}})
},
......@@ -377,6 +387,38 @@
}
}
}
>div.medalWrap{
width: 100%;
padding-left: 25%;
display: flex;
height: .4rem;
> span.medal {
margin-top: -0.5rem;
width: .26rem;
height: .28rem;
display: inline-block;
background-image: url("../../assets/img/mobile/medal.png");
background-position-x: 0;
background-size: 1.04rem;
background-repeat: no-repeat;
margin-right: .05rem;
}
> span.medal1 {
background-position-y: -106px;
}
> span.medal2 {
background-position-y: -123px;
}
> span.medal3 {
background-position-y: -140px;
}
> span.medal4 {
background-position-y: -157px;
}
> span.medal5 {
background-position-y: -175px;
}
}
>div.intersetedFlag{
width: 100%;
padding-left: 25%;
......
<template>
<div>
<div class="content_data" ref="overfolowWrapper" v-if="tableData.length>0"> <!--v-if="tableData.length!= 0"-->
<ul>
<li v-for="item in tableData" class="topicLi" v-if="commentType==1">
<div class="discussInfo">
......@@ -178,6 +179,7 @@
<script>
import api from './api/api'
import topicApi from '../topic/api'
import {Toast} from 'mint-ui';
import noData from './noDataComment'
......@@ -208,22 +210,39 @@
currentTab: null,
isShowFlag: false,
hasData:false,
flags:false,
}
},
methods: {
getInitTopicListData() {
this.tableData = [];
this.hasData = true;
this.page = 1;
getInitTopicListData(param) {
let params = {
pagination:{
numberOfPages: this.page,
number: this.pageSize
}
};
topicApi.myCommentTopic(params).then((res)=>{
if(res.code==0){
if(param) {
this.tableData = this.tableData.concat(res.result.records);
}else{
this.tableData = res.result.records;
}
this.flags = (this.page >= res.result.pages) ? false : true;
this.isHaveMore(this.flags);
}else{
this.$toast(res.msg);
}
}).catch((err)=>{
this.$toast(err);
})
this.tableData.forEach((item, index) => {
item.commentsContent = this.publicFun.getTopicTitleFunc("#", item.commentsContent);
})
},
getInitArticleListData() {
this.tableData = [];
this.page = 1;
this.hasData = true;
this.tableData.forEach((item, index) => {
item.commentsContent = this.publicFun.getTopicTitleFunc("#", item.commentsContent);
if (item.contentUrl) {
......@@ -266,7 +285,35 @@
// }).catch((err) => {
// this.$toast(err);
// })
}
},
loadTop() {
this.page = 1;
// 加载更多数据
this.getInitList();
this.$refs.loadmore.onTopLoaded();
},
loadBottom() {
// 加载更多数据
this.more(); // 上拉触发的分页查询
this.$refs.loadmore.onBottomLoaded();
},
more: function() {
// 分页查询
this.page = parseInt(this.page) + 1;
if(this.commentType==1) this.getInitTopicListData(1);
if(this.commentType==2) this.getInitArticleListData(1);
if(this.commentType==3) this.getInitSubjectListData(1);
},
isHaveMore: function(isHaveMore) {
// 是否还有下一页,如果没有就禁止上拉刷新
this.allLoaded = true; //true是禁止上拉加载
if(isHaveMore) {
this.allLoaded = false;
}
},
},
mounted() {
......@@ -275,6 +322,9 @@
watch: {
commentType(val, oldVal) {
if (val != oldVal) {
this.hasData = true;
this.tableData = [];
this.page = 1;
if (val == 1) this.getInitTopicListData();
if (val == 2) this.getInitArticleListData();
if (val == 3) this.getInitSubjectListData();
......
......@@ -252,7 +252,7 @@
//去详情
handleToDetail(data){
if(data.commentReplyNum>1) this.$router.push({path:"/discussDetail",query:{id:data.topicId,dicId:data.discussId}})
if(data.commentReplyNum>1) this.$router.push({path:"/discussDetail",query:{id:data.topicId,disId:data.discussId}})
else this.$router.push({path:"/topicDetails",query:{id:data.topicId}})
}
},
......
......@@ -26,11 +26,6 @@ export default {
return api.fetchLoadingLogin("/business/content/selectRecommendContentById",params);
},
//点赞
praiseAxios(params){
return api.fetchLogin("/business/content/addOrSubtractHot",params);
},
//收藏
collectionAxios(params){
return api.fetchLogin("/business/content/addCollection",params);
......@@ -48,7 +43,7 @@ export default {
//回复更多
commentMoreAxios(params){
return api.fetchLoadingLogin("/business/subject/selectCommentsChildList",params);
return api.fetchLoadingLogin("/business/topic/selectMoreCommentsList",params);
},
//添加话题讨论
......@@ -64,5 +59,52 @@ export default {
//查询可评论的项目
getCanCommentProjectAxios(params){
return api.fetchLoadingPost("/business/topic/selectCommentsProjectList",params)
},
//专家列表页
selectProfessorList(params){
return api.fetchLogin("/business/topic/selectProfessorListByTopicId",params);
},
//置顶讨论
topDiscussAxios(params1,params2){
return api.fetchLoadingGet("/business/topic/addTopDiscuss?id="+params1+"&topState="+params2)
},
//点赞
praiseCommentAxios(params){
return api.fetchLoadingLogin("/business/topic/addOrSubtractHot",params);
},
//删除讨论
deleteDiscussAxios(params){
return api.fetchLoadingGet("/business/topic/deleteDiscuss?id="+params);
},
//我评论的话题讨论
myCommentTopic(params){
return api.fetchLoadingPost("/business/my/selectMyCommentsTopicList",params);
},
//获取相关话题
getSameTopicAxios(params){
return api.fetchGet("/business/topic/selectRecommendedList?topicId="+params);
},
//获取讨论信息
getDiscussInfoAxios(params){
return api.fetchGet("/business/topic/selectDiscussById?id="+params);
},
//查询评论列表
getCommentListAxios(params){
return api.fetchLoadingLogin("/business/topic/selectCommentsList",params);
},
//发布评论
publishCommentAxios(params){
return api.fetchLoadingPost("/business/topic/addDiscussComments",params);
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment