正在显示
3 个修改的文件
包含
47 行增加
和
17 行删除
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | <!-- <view class="del">完成</view> --> | 13 | <!-- <view class="del">完成</view> --> |
14 | </view> | 14 | </view> |
15 | <view class="item" v-for="(item,index) in articlelist" :key="index"> | 15 | <view class="item" v-for="(item,index) in articlelist" :key="index"> |
16 | - <image class="icon" src="../../static/shanchu_icon@2x.png" v-if="isedit" @click="delarcial(item,index)"></image> | 16 | + <image class="icon" src="../../static/shanchu_icon@2x.png" v-if="isedit" @click.stop="delarcial(item,index)"></image> |
17 | <view class="cont" :style="{width:width}" @click="toarticl" :data-id="item.id"> | 17 | <view class="cont" :style="{width:width}" @click="toarticl" :data-id="item.id"> |
18 | <view class="rowOne">{{item.nickname}}</view> | 18 | <view class="rowOne">{{item.nickname}}</view> |
19 | <view class="rowTwo">{{item.title}}</view> | 19 | <view class="rowTwo">{{item.title}}</view> |
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | <view class="txt">{{item.des_content}}</view> | 38 | <view class="txt">{{item.des_content}}</view> |
39 | </view> | 39 | </view> |
40 | <view class="right" :class="item.is_like_user==0?'like':''"> | 40 | <view class="right" :class="item.is_like_user==0?'like':''"> |
41 | - <view class="text" @click="attention(item,index)" v-if="item.is_like_user==0" style="display:flex;justify-content: center;align-items: center;color:#81C3BF;"> | 41 | + <view class="text" @click.stop="attention(item,index)" v-if="item.is_like_user==0" style="display:flex;justify-content: center;align-items: center;color:#81C3BF;"> |
42 | <view class='xin' style="width:28rpx;height:28rpx;font-size: 0;"> | 42 | <view class='xin' style="width:28rpx;height:28rpx;font-size: 0;"> |
43 | <image src="../../static/xin.png" mode=""></image> | 43 | <image src="../../static/xin.png" mode=""></image> |
44 | </view> | 44 | </view> |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | <view class="del" @click="change" v-else>编辑</view> | 59 | <view class="del" @click="change" v-else>编辑</view> |
60 | </view> | 60 | </view> |
61 | <view class="mateitem" v-for="(item,index) in cellectlist" :key="index" @click="toarticl" :data-id="item.id"> | 61 | <view class="mateitem" v-for="(item,index) in cellectlist" :key="index" @click="toarticl" :data-id="item.id"> |
62 | - <image class="delBtn" src="../../static/shanchu_icon@2x.png" v-if="isdel"></image> | 62 | + <image class="delBtn" src="../../static/shanchu_icon@2x.png" v-if="isdel" @click.stop="delarcial(item,index)"></image> |
63 | <view class="contentBox" :style="{width:width2}"> | 63 | <view class="contentBox" :style="{width:width2}"> |
64 | <image class="photo" :src="item.head_image"></image> | 64 | <image class="photo" :src="item.head_image"></image> |
65 | <view class="cont"> | 65 | <view class="cont"> |
@@ -69,7 +69,7 @@ | @@ -69,7 +69,7 @@ | ||
69 | <view class="txt">{{item.des_content}}</view> | 69 | <view class="txt">{{item.des_content}}</view> |
70 | </view> | 70 | </view> |
71 | <view class="right"> | 71 | <view class="right"> |
72 | - <view class="text" @click="attention(item,index)" v-if="item.is_like_user==0" style="display:flex;justify-content: center;align-items: center;color:#81C3BF;"> | 72 | + <view class="text" @click.stop="attention(item,index)" v-if="item.is_like_user==0" style="display:flex;justify-content: center;align-items: center;color:#81C3BF;"> |
73 | <view class='xin' style="width:28rpx;height:28rpx;font-size: 0;"> | 73 | <view class='xin' style="width:28rpx;height:28rpx;font-size: 0;"> |
74 | <image src="../../static/xin.png" mode=""></image> | 74 | <image src="../../static/xin.png" mode=""></image> |
75 | </view> | 75 | </view> |
@@ -302,7 +302,12 @@ | @@ -302,7 +302,12 @@ | ||
302 | } | 302 | } |
303 | app.post(url, params, "post").then((res) => { | 303 | app.post(url, params, "post").then((res) => { |
304 | console.log(res) | 304 | console.log(res) |
305 | - that.articlelist.splice(index, 1) | 305 | + console.log(that.active3) |
306 | + if(that.active3==true){ | ||
307 | + that.articlelist.splice(index, 1) | ||
308 | + }else if(that.active2==true){ | ||
309 | + that.cellectlist.splice(index, 1) | ||
310 | + } | ||
306 | uni.showToast({ | 311 | uni.showToast({ |
307 | title: '删除成功', | 312 | title: '删除成功', |
308 | icon: 'none' | 313 | icon: 'none' |
@@ -12,10 +12,14 @@ | @@ -12,10 +12,14 @@ | ||
12 | <view class="cellectedbtn" @click="qxcellectScool" v-else> | 12 | <view class="cellectedbtn" @click="qxcellectScool" v-else> |
13 | <view class="text" style="text-align: center;">已收藏</view> | 13 | <view class="text" style="text-align: center;">已收藏</view> |
14 | </view> | 14 | </view> |
15 | - <view class="msg" @click="tomsgpage"> | ||
16 | - <text v-if="university.des_content!=undefined">{{university.des_content==''?'暂无简介':university.des_content}}</text> | 15 | + <view class="msg" @click="tomsgpage" style="display:flex"> |
16 | + | ||
17 | + <text v-if="university.des_content==''">暂无简介</text> | ||
18 | + | ||
19 | + <rich-text :nodes="university.des_content" v-else></rich-text> | ||
20 | + | ||
17 | 21 | ||
18 | - <text style="color:#81C3BF">[更多]</text> | 22 | + <text style="color:#81C3BF" v-if="university.des_content!=''">[更多]</text> |
19 | </view> | 23 | </view> |
20 | 24 | ||
21 | </view> | 25 | </view> |
@@ -37,7 +41,7 @@ | @@ -37,7 +41,7 @@ | ||
37 | <view class="num">{{university.same_city_total_num}}</view> | 41 | <view class="num">{{university.same_city_total_num}}</view> |
38 | <view class="title">同城学长</view> | 42 | <view class="title">同城学长</view> |
39 | </view> | 43 | </view> |
40 | - <view class="colum" @click="popupShow"> | 44 | + <view class="colum" @click="popupShow" style="border-right:none"> |
41 | <view class="num">{{university.same_province_total_num}}</view> | 45 | <view class="num">{{university.same_province_total_num}}</view> |
42 | <view class="title">同省学长</view> | 46 | <view class="title">同省学长</view> |
43 | </view> | 47 | </view> |
@@ -72,9 +76,9 @@ | @@ -72,9 +76,9 @@ | ||
72 | <view class="articl" v-else> | 76 | <view class="articl" v-else> |
73 | 77 | ||
74 | 78 | ||
75 | - <block v-for="(item,index) in articleList" :key="index" @click="toarticle(item)"> | 79 | + <view v-for="(item,index) in articleList" :key="index" @click="toarticlemsg(item)"> |
76 | <view class="articltitle"> | 80 | <view class="articltitle"> |
77 | - <image class="photo" :src="baceurl+item.head_image"></image> | 81 | + <image class="photo" :src="item.head_image" style="border-radius: 50%;"></image> |
78 | <view class="msg"> | 82 | <view class="msg"> |
79 | <view class="name">{{item.nickname}}</view> | 83 | <view class="name">{{item.nickname}}</view> |
80 | <view class="tips">{{item.article_type_name}}</view> | 84 | <view class="tips">{{item.article_type_name}}</view> |
@@ -83,9 +87,9 @@ | @@ -83,9 +87,9 @@ | ||
83 | <view class="articleBox"> | 87 | <view class="articleBox"> |
84 | <view class="title">{{item.title}}</view> | 88 | <view class="title">{{item.title}}</view> |
85 | <view class="txt">{{item.des_content}}</view> | 89 | <view class="txt">{{item.des_content}}</view> |
86 | - <image :src="baceurl+item.des_images"></image> | 90 | + <image :src="item" v-for="(item,indexk) in item.des_images" :kry="index" @click.stop="preimg(index,indexk)"></image> |
87 | </view> | 91 | </view> |
88 | - </block> | 92 | + </view> |
89 | </view> | 93 | </view> |
90 | 94 | ||
91 | 95 | ||
@@ -230,6 +234,22 @@ export default { | @@ -230,6 +234,22 @@ export default { | ||
230 | console.log(err) | 234 | console.log(err) |
231 | }) | 235 | }) |
232 | }, | 236 | }, |
237 | + preimg(index,indexk){ | ||
238 | + let that=this; | ||
239 | + uni.previewImage({ | ||
240 | + current: that.articleList[index].des_images[indexk], | ||
241 | + urls: that.articleList[index].des_images, | ||
242 | + success: function (res) { }, | ||
243 | + fail: function (res) { }, | ||
244 | + complete: function (res) { }, | ||
245 | + }) | ||
246 | + }, | ||
247 | + toarticlemsg(item){ | ||
248 | + console.log('文章详情',item) | ||
249 | + uni.navigateTo({ | ||
250 | + url:'../school/article?article_id='+item.id | ||
251 | + }) | ||
252 | + }, | ||
233 | selecttype(item,index){ | 253 | selecttype(item,index){ |
234 | this.sel=index | 254 | this.sel=index |
235 | this.type_id=item.id | 255 | this.type_id=item.id |
@@ -421,8 +441,10 @@ export default { | @@ -421,8 +441,10 @@ export default { | ||
421 | font-size: 32rpx; | 441 | font-size: 32rpx; |
422 | text-align: center; | 442 | text-align: center; |
423 | color:rgba(45,85,117,1); | 443 | color:rgba(45,85,117,1); |
424 | - border-right: 1rpx solid rgba(213,234,227,1); | ||
425 | - | 444 | + border-right: 1rpx solid rgba(213,234,227,1); |
445 | + .colum:last-child{ | ||
446 | + border-right:none | ||
447 | + } | ||
426 | 448 | ||
427 | .title{ | 449 | .title{ |
428 | font-size: 22rpx; | 450 | font-size: 22rpx; |
@@ -10,9 +10,12 @@ | @@ -10,9 +10,12 @@ | ||
10 | <image class="icon" :src="universitylist.icon_image"></image> | 10 | <image class="icon" :src="universitylist.icon_image"></image> |
11 | <view class="txt">学校介绍</view> | 11 | <view class="txt">学校介绍</view> |
12 | </view> | 12 | </view> |
13 | - <view class="text"> | 13 | + <view class="text"> |
14 | + <rich-text :nodes="universitylist.des_content"></rich-text> | ||
15 | + </view> | ||
16 | + <!-- <view | ||
14 | {{universitylist.des_content}} | 17 | {{universitylist.des_content}} |
15 | - </view> | 18 | + </view> --> |
16 | 19 | ||
17 | </view> | 20 | </view> |
18 | 21 |
-
请 注册 或 登录 后发表评论