...
|
...
|
@@ -12,10 +12,14 @@ |
|
|
<view class="cellectedbtn" @click="qxcellectScool" v-else>
|
|
|
<view class="text" style="text-align: center;">已收藏</view>
|
|
|
</view>
|
|
|
<view class="msg" @click="tomsgpage">
|
|
|
<text v-if="university.des_content!=undefined">{{university.des_content==''?'暂无简介':university.des_content}}</text>
|
|
|
<view class="msg" @click="tomsgpage" style="display:flex">
|
|
|
|
|
|
<text v-if="university.des_content==''">暂无简介</text>
|
|
|
|
|
|
<rich-text :nodes="university.des_content" v-else></rich-text>
|
|
|
|
|
|
|
|
|
<text style="color:#81C3BF">[更多]</text>
|
|
|
<text style="color:#81C3BF" v-if="university.des_content!=''">[更多]</text>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
...
|
...
|
@@ -37,7 +41,7 @@ |
|
|
<view class="num">{{university.same_city_total_num}}</view>
|
|
|
<view class="title">同城学长</view>
|
|
|
</view>
|
|
|
<view class="colum" @click="popupShow">
|
|
|
<view class="colum" @click="popupShow" style="border-right:none">
|
|
|
<view class="num">{{university.same_province_total_num}}</view>
|
|
|
<view class="title">同省学长</view>
|
|
|
</view>
|
...
|
...
|
@@ -72,9 +76,9 @@ |
|
|
<view class="articl" v-else>
|
|
|
|
|
|
|
|
|
<block v-for="(item,index) in articleList" :key="index" @click="toarticle(item)">
|
|
|
<view v-for="(item,index) in articleList" :key="index" @click="toarticlemsg(item)">
|
|
|
<view class="articltitle">
|
|
|
<image class="photo" :src="baceurl+item.head_image"></image>
|
|
|
<image class="photo" :src="item.head_image" style="border-radius: 50%;"></image>
|
|
|
<view class="msg">
|
|
|
<view class="name">{{item.nickname}}</view>
|
|
|
<view class="tips">{{item.article_type_name}}</view>
|
...
|
...
|
@@ -83,9 +87,9 @@ |
|
|
<view class="articleBox">
|
|
|
<view class="title">{{item.title}}</view>
|
|
|
<view class="txt">{{item.des_content}}</view>
|
|
|
<image :src="baceurl+item.des_images"></image>
|
|
|
<image :src="item" v-for="(item,indexk) in item.des_images" :kry="index" @click.stop="preimg(index,indexk)"></image>
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
|
...
|
...
|
@@ -230,6 +234,22 @@ export default { |
|
|
console.log(err)
|
|
|
})
|
|
|
},
|
|
|
preimg(index,indexk){
|
|
|
let that=this;
|
|
|
uni.previewImage({
|
|
|
current: that.articleList[index].des_images[indexk],
|
|
|
urls: that.articleList[index].des_images,
|
|
|
success: function (res) { },
|
|
|
fail: function (res) { },
|
|
|
complete: function (res) { },
|
|
|
})
|
|
|
},
|
|
|
toarticlemsg(item){
|
|
|
console.log('文章详情',item)
|
|
|
uni.navigateTo({
|
|
|
url:'../school/article?article_id='+item.id
|
|
|
})
|
|
|
},
|
|
|
selecttype(item,index){
|
|
|
this.sel=index
|
|
|
this.type_id=item.id
|
...
|
...
|
@@ -421,8 +441,10 @@ export default { |
|
|
font-size: 32rpx;
|
|
|
text-align: center;
|
|
|
color:rgba(45,85,117,1);
|
|
|
border-right: 1rpx solid rgba(213,234,227,1);
|
|
|
|
|
|
border-right: 1rpx solid rgba(213,234,227,1);
|
|
|
.colum:last-child{
|
|
|
border-right:none
|
|
|
}
|
|
|
|
|
|
.title{
|
|
|
font-size: 22rpx;
|
...
|
...
|
|