正在显示
22 个修改的文件
包含
380 行增加
和
50 行删除
@@ -81,6 +81,10 @@ img { | @@ -81,6 +81,10 @@ img { | ||
81 | width: 100%; | 81 | width: 100%; |
82 | height: 100%; | 82 | height: 100%; |
83 | } | 83 | } |
84 | +.tieziwordbox p img{ | ||
85 | + width: 100%!important; | ||
86 | + height: 100%!important; | ||
87 | +} | ||
84 | textarea { | 88 | textarea { |
85 | border: none; | 89 | border: none; |
86 | outline: none; | 90 | outline: none; |
src/assets/jianotu.png
0 → 100644
286 字节
src/assets/jianpan.png
0 → 100644
1.2 KB
src/assets/share.png
0 → 100644
4.1 KB
src/assets/sharewrapimg.png
0 → 100644
11.9 KB
src/assets/zigezheng.png
0 → 100644
4.6 KB
src/assets/证书.png
0 → 100644
3.8 KB
@@ -109,13 +109,16 @@ | @@ -109,13 +109,16 @@ | ||
109 | </div> | 109 | </div> |
110 | <div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div> | 110 | <div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div> |
111 | </div> | 111 | </div> |
112 | - <img | ||
113 | - :src="item.logo_image" | 112 | + <div class="flex" v-if=" item.user.label!='[]'"> |
113 | + <img | ||
114 | + :src="itemk.logo_image" | ||
114 | class="banggongimg" | 115 | class="banggongimg" |
115 | alt="" | 116 | alt="" |
116 | - v-for="(item, index) in item.user.label" | 117 | + v-for="(itemk, index) in item.user.label" |
117 | :key="index" | 118 | :key="index" |
118 | /> | 119 | /> |
120 | + </div> | ||
121 | + | ||
119 | <!-- <img | 122 | <!-- <img |
120 | src="../assets/peisong_icon@2x.png" | 123 | src="../assets/peisong_icon@2x.png" |
121 | class="banggongimg" | 124 | class="banggongimg" |
@@ -378,7 +381,7 @@ export default { | @@ -378,7 +381,7 @@ export default { | ||
378 | let that = this; | 381 | let that = this; |
379 | console.log(3443893489809) | 382 | console.log(3443893489809) |
380 | Dialog.confirm({ | 383 | Dialog.confirm({ |
381 | - title: "是否撤销帖子" | 384 | + title: "是否删除帖子" |
382 | }) | 385 | }) |
383 | .then(res => { | 386 | .then(res => { |
384 | console.log(3489348); | 387 | console.log(3489348); |
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | </div> | 13 | </div> |
14 | <div class="tieziright"> | 14 | <div class="tieziright"> |
15 | <div class="tiezirighttop flex"> | 15 | <div class="tiezirighttop flex"> |
16 | - <div> | 16 | + <div style="margin-right:0.2rem"> |
17 | <div class="tieziming">{{ item.user.nickname }}</div> | 17 | <div class="tieziming">{{ item.user.nickname }}</div> |
18 | <div class="tiezifen">{{item.createtime}}</div> | 18 | <div class="tiezifen">{{item.createtime}}</div> |
19 | </div> | 19 | </div> |
@@ -25,13 +25,16 @@ | @@ -25,13 +25,16 @@ | ||
25 | </div> | 25 | </div> |
26 | <div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div> | 26 | <div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div> |
27 | </div> | 27 | </div> |
28 | - <img | ||
29 | - :src="item" | ||
30 | - class="banggongimg" | ||
31 | - alt="" | ||
32 | - v-for="(item, index) in item.user.label" | ||
33 | - :key="index" | ||
34 | - /> | 28 | + <div class="flex" v-if="item.user.label!='[]'"> |
29 | + <img | ||
30 | + :src="itemk.logo_image" | ||
31 | + class="banggongimg" | ||
32 | + alt="" | ||
33 | + v-for="(itemk, index) in item.user.label" | ||
34 | + :key="index" | ||
35 | + | ||
36 | + /> | ||
37 | + </div> | ||
35 | <img | 38 | <img |
36 | src="../assets/yirenzheng_icon@2x.png" | 39 | src="../assets/yirenzheng_icon@2x.png" |
37 | class="banggongimg" | 40 | class="banggongimg" |
@@ -2,8 +2,9 @@ | @@ -2,8 +2,9 @@ | ||
2 | <div class="container"> | 2 | <div class="container"> |
3 | <div class="hometop"> | 3 | <div class="hometop"> |
4 | <div class="hometopbar flextwo"> | 4 | <div class="hometopbar flextwo"> |
5 | + <!-- ../../../assets/touxiang_img@2x.png --> | ||
5 | <img | 6 | <img |
6 | - src="../../../assets/touxiang_img@2x.png" | 7 | + :src="userinfo.avatar" |
7 | alt="" | 8 | alt="" |
8 | class="homelogo" | 9 | class="homelogo" |
9 | /> | 10 | /> |
@@ -29,7 +30,7 @@ | @@ -29,7 +30,7 @@ | ||
29 | class="my-swipe" | 30 | class="my-swipe" |
30 | :autoplay="2000" | 31 | :autoplay="2000" |
31 | indicator-color="white" | 32 | indicator-color="white" |
32 | - loop="true" | 33 | + :loop="true" |
33 | > | 34 | > |
34 | <van-swipe-item v-for="(item, index) in bannertop" :key="index"> | 35 | <van-swipe-item v-for="(item, index) in bannertop" :key="index"> |
35 | <div class="bannerimg"> | 36 | <div class="bannerimg"> |
@@ -84,7 +85,6 @@ | @@ -84,7 +85,6 @@ | ||
84 | finished-text="没有更多了" | 85 | finished-text="没有更多了" |
85 | @load="onLoad" | 86 | @load="onLoad" |
86 | > | 87 | > |
87 | - | ||
88 | <div | 88 | <div |
89 | class="tieziitem" | 89 | class="tieziitem" |
90 | v-for="(item, index) in tiezilist" | 90 | v-for="(item, index) in tiezilist" |
@@ -100,7 +100,7 @@ | @@ -100,7 +100,7 @@ | ||
100 | <div class="tiezirighttop flex"> | 100 | <div class="tiezirighttop flex"> |
101 | <div class="timeright"> | 101 | <div class="timeright"> |
102 | <div class="tieziming">{{ item.user.nickname }}</div> | 102 | <div class="tieziming">{{ item.user.nickname }}</div> |
103 | - <div class="tiezifen">{{item.createtime}}</div> | 103 | + <div class="tiezifen">{{item.createtime}} </div> |
104 | </div> | 104 | </div> |
105 | 105 | ||
106 | <div> | 106 | <div> |
@@ -110,18 +110,27 @@ | @@ -110,18 +110,27 @@ | ||
110 | </div> | 110 | </div> |
111 | <div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div> | 111 | <div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div> |
112 | </div> | 112 | </div> |
113 | - <img | ||
114 | - :src="item" | 113 | + <!-- {{item.user.label.length}} --> |
114 | + <!-- v-if="item.user.label.length!=0" --> | ||
115 | + <div class="flex" v-if="item.user.label!='[]'"> | ||
116 | + <img | ||
117 | + :src="itemk.logo_image" | ||
115 | class="banggongimg" | 118 | class="banggongimg" |
116 | alt="" | 119 | alt="" |
117 | - v-for="(item, index) in item.user.label" | 120 | + v-for="(itemk, index) in item.user.label" |
118 | :key="index" | 121 | :key="index" |
122 | + | ||
119 | /> | 123 | /> |
120 | - <!-- <img | 124 | + <!-- <img |
121 | src="../../../assets/peisong_icon@2x.png" | 125 | src="../../../assets/peisong_icon@2x.png" |
122 | class="banggongimg" | 126 | class="banggongimg" |
123 | alt="" | 127 | alt="" |
124 | /> --> | 128 | /> --> |
129 | + </div> | ||
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | ||
125 | <img | 134 | <img |
126 | src="../../../assets/yirenzheng_icon@2x.png" | 135 | src="../../../assets/yirenzheng_icon@2x.png" |
127 | class="banggongimg" | 136 | class="banggongimg" |
@@ -307,7 +316,9 @@ export default { | @@ -307,7 +316,9 @@ export default { | ||
307 | proname: "", | 316 | proname: "", |
308 | province_id: "", | 317 | province_id: "", |
309 | keyword: "", | 318 | keyword: "", |
310 | - bannertop: [] // 顶部轮播图 | 319 | + bannertop: [], // 顶部轮播图 |
320 | + userinfo:'' | ||
321 | + | ||
311 | 322 | ||
312 | }; | 323 | }; |
313 | }, | 324 | }, |
@@ -319,6 +330,8 @@ export default { | @@ -319,6 +330,8 @@ export default { | ||
319 | this.getappid(); | 330 | this.getappid(); |
320 | // 获取帖子分类 | 331 | // 获取帖子分类 |
321 | this.gettiezikind(); | 332 | this.gettiezikind(); |
333 | + // 获取用户信息 | ||
334 | + this.getuserinfo() | ||
322 | 335 | ||
323 | }, | 336 | }, |
324 | beforeRouteEnter(to, from, next) { | 337 | beforeRouteEnter(to, from, next) { |
@@ -333,6 +346,20 @@ export default { | @@ -333,6 +346,20 @@ export default { | ||
333 | } | 346 | } |
334 | }, | 347 | }, |
335 | methods: { | 348 | methods: { |
349 | + // 获取用户信息 | ||
350 | + getuserinfo() { | ||
351 | + let that = this; | ||
352 | + var url = "/api/member/index"; | ||
353 | + var params = {}; | ||
354 | + console.log("7766554", params); | ||
355 | + that.$axios | ||
356 | + .post(url, params) | ||
357 | + .then(res => { | ||
358 | + that.userinfo = res.data; | ||
359 | + | ||
360 | + }) | ||
361 | + .catch(err => { }); | ||
362 | + }, | ||
336 | // 收藏和取消收藏 | 363 | // 收藏和取消收藏 |
337 | collect(index,id){ | 364 | collect(index,id){ |
338 | let that = this; | 365 | let that = this; |
@@ -46,12 +46,10 @@ | @@ -46,12 +46,10 @@ | ||
46 | <div class="kaoshirule"> | 46 | <div class="kaoshirule"> |
47 | <div class="kaoshiruletitle">考试规则</div> | 47 | <div class="kaoshiruletitle">考试规则</div> |
48 | <div class="kaoshiruletext" v-html="rulecontent"> | 48 | <div class="kaoshiruletext" v-html="rulecontent"> |
49 | - | ||
50 | </div> | 49 | </div> |
51 | </div> | 50 | </div> |
52 | </div> | 51 | </div> |
53 | </template> | 52 | </template> |
54 | - | ||
55 | <script> | 53 | <script> |
56 | export default { | 54 | export default { |
57 | data() { | 55 | data() { |
@@ -104,7 +102,6 @@ export default { | @@ -104,7 +102,6 @@ export default { | ||
104 | 102 | ||
105 | }) | 103 | }) |
106 | }, | 104 | }, |
107 | - | ||
108 | // 考试规则 | 105 | // 考试规则 |
109 | getrulecontent() { | 106 | getrulecontent() { |
110 | let that = this; | 107 | let that = this; |
@@ -751,7 +751,7 @@ export default { | @@ -751,7 +751,7 @@ export default { | ||
751 | width: 100%; | 751 | width: 100%; |
752 | height: 100%; | 752 | height: 100%; |
753 | background: transparent; | 753 | background: transparent; |
754 | - padding: 0.12rem 0.32rem; | 754 | + padding: 0.12rem 0.2rem; |
755 | box-sizing: border-box; | 755 | box-sizing: border-box; |
756 | color:#333; | 756 | color:#333; |
757 | font-size: 0.28rem; | 757 | font-size: 0.28rem; |
1 | <template> | 1 | <template> |
2 | <div class="container"> | 2 | <div class="container"> |
3 | - <div class="tiezhlist tiezhlistbox"> | 3 | + <div class="tiezhlist tiezhlistbox" v-if="tiezishow"> |
4 | <div class="tieziitem"> | 4 | <div class="tieziitem"> |
5 | <div class="tiezitop flexone" > | 5 | <div class="tiezitop flexone" > |
6 | <div class="tieziimg" @click="personclick"> | 6 | <div class="tieziimg" @click="personclick"> |
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | </div> | 22 | </div> |
23 | </div> | 23 | </div> |
24 | <img | 24 | <img |
25 | - :src="item" | 25 | + :src="item.logo_image" |
26 | class="banggongimg" | 26 | class="banggongimg" |
27 | alt="" | 27 | alt="" |
28 | v-for="(item, index) in tiezidetail.user.label" | 28 | v-for="(item, index) in tiezidetail.user.label" |
@@ -47,6 +47,7 @@ | @@ -47,6 +47,7 @@ | ||
47 | 47 | ||
48 | <div class="teizicontenttop flextwo"> | 48 | <div class="teizicontenttop flextwo"> |
49 | <div class="tiezicontentname">{{ tiezidetail.title }}</div> | 49 | <div class="tiezicontentname">{{ tiezidetail.title }}</div> |
50 | + <img src="../../../assets/share.png" alt="" class='shareimg' @click="sharebtn"> | ||
50 | <img | 51 | <img |
51 | src="../../../assets/xingxing_icon@2x.png" | 52 | src="../../../assets/xingxing_icon@2x.png" |
52 | alt="" | 53 | alt="" |
@@ -140,12 +141,12 @@ | @@ -140,12 +141,12 @@ | ||
140 | :key="index" | 141 | :key="index" |
141 | > | 142 | > |
142 | <div class="tiezitop flexone"> | 143 | <div class="tiezitop flexone"> |
143 | - <div class="tieziimg"> | 144 | + <div class="tieziimg" @click.stop="begincomment(item)"> |
144 | <img :src="item.user.avatar" alt="" /> | 145 | <img :src="item.user.avatar" alt="" /> |
145 | </div> | 146 | </div> |
146 | <div class="tieziright flextwo"> | 147 | <div class="tieziright flextwo"> |
147 | <div class="tiezirighttop flextwo"> | 148 | <div class="tiezirighttop flextwo"> |
148 | - <div class="flexone"> | 149 | + <div class="flexone" @click.stop="begincomment(item)"> |
149 | <div> | 150 | <div> |
150 | <div class="tieziming">{{ item.user.nickname }}</div> | 151 | <div class="tieziming">{{ item.user.nickname }}</div> |
151 | <div class="tiezifen">{{item.createtime}}</div> | 152 | <div class="tiezifen">{{item.createtime}}</div> |
@@ -222,7 +223,6 @@ | @@ -222,7 +223,6 @@ | ||
222 | </div> | 223 | </div> |
223 | </van-list> | 224 | </van-list> |
224 | </div> | 225 | </div> |
225 | - | ||
226 | <div class="commentboxfix flexone"> | 226 | <div class="commentboxfix flexone"> |
227 | <div class="writebox"> | 227 | <div class="writebox"> |
228 | <input type="text" placeholder="写点什么..." v-model="comment" /> | 228 | <input type="text" placeholder="写点什么..." v-model="comment" /> |
@@ -230,6 +230,56 @@ | @@ -230,6 +230,56 @@ | ||
230 | <div class="fasend" @click="sendcomment">发送</div> | 230 | <div class="fasend" @click="sendcomment">发送</div> |
231 | </div> | 231 | </div> |
232 | </div> | 232 | </div> |
233 | + <!-- 消息弹出层 --> | ||
234 | + <div class="register" v-if="showcomment"> | ||
235 | + <div class="commentwrap"> | ||
236 | + <div class="commenttop flextwo"> | ||
237 | + <div class="commenttopleft"></div> | ||
238 | + <div class="commenttopmiddle">全部{{child.length}}条评论</div> | ||
239 | + <img src="../../../assets/close.png" alt class="closeimg" @click="hidecomment"/> | ||
240 | + </div> | ||
241 | + | ||
242 | + <div class="commentbox"> | ||
243 | + <div class="nodata" v-if="child.length == 0">暂无评论</div> | ||
244 | + <div> | ||
245 | + <div class="commentboxitem" v-for="(item, index) in child" | ||
246 | + :key="index"> | ||
247 | + <div class="commentimg"> | ||
248 | + <img :src="item.user.avatar" alt /> | ||
249 | + </div> | ||
250 | + <div class="commentright"> | ||
251 | + <div class="commentnamek">{{item.user.nickname}}</div> | ||
252 | + | ||
253 | + <div class="commenttext"> | ||
254 | + {{item.content}} | ||
255 | + </div> | ||
256 | + <!-- <div class="commenttext"> | ||
257 | + 回复 | ||
258 | + <span class="repalayname">4tio4oi</span> | ||
259 | + skfgsldf | ||
260 | + </div> --> | ||
261 | + </div> | ||
262 | + </div> | ||
263 | + </div> | ||
264 | + <!-- <div class="kanmore flexthree" | ||
265 | + > | ||
266 | + 查看更多 | ||
267 | + <img src="../../../assets/jianotu.png" alt class="jiantou" /> | ||
268 | + </div> --> | ||
269 | + </div> | ||
270 | + <div class="commentbot flextwo"> | ||
271 | + <img src="../../../assets/jianpan.png" alt class="jianpan" /> | ||
272 | + <div class="entercomment"> | ||
273 | + <input type="text" :placeholder="dateinit" v-model="textcomment" /> | ||
274 | + </div> | ||
275 | + <div class="fasong" @click="sendtext">发送</div> | ||
276 | + </div> | ||
277 | + </div> | ||
278 | + </div> | ||
279 | + <!-- 分享弹层 --> | ||
280 | + <div class="sharewrap" v-if="shareshow" @click="hidesharek"> | ||
281 | + <img src="../../../assets/sharewrapimg.png" alt /> | ||
282 | + </div> | ||
233 | </div> | 283 | </div> |
234 | </template> | 284 | </template> |
235 | 285 | ||
@@ -251,7 +301,15 @@ export default { | @@ -251,7 +301,15 @@ export default { | ||
251 | // 发送评论 | 301 | // 发送评论 |
252 | comment: "", | 302 | comment: "", |
253 | user: "",//用户信息 | 303 | user: "",//用户信息 |
254 | - baseurl:'' | 304 | + baseurl:'', |
305 | + showcomment:false, | ||
306 | + textcomment:'', | ||
307 | + dateinit: "请输入", | ||
308 | + tiezishow:false, | ||
309 | + comments_id:"", | ||
310 | + child:[], | ||
311 | + userinfo:'',//用户信息 | ||
312 | + shareshow:false | ||
255 | }; | 313 | }; |
256 | }, | 314 | }, |
257 | created() { | 315 | created() { |
@@ -263,6 +321,8 @@ export default { | @@ -263,6 +321,8 @@ export default { | ||
263 | this.getformdetail(); | 321 | this.getformdetail(); |
264 | // 获取评论列表 | 322 | // 获取评论列表 |
265 | this.getcommentlist(); | 323 | this.getcommentlist(); |
324 | + // 获取用户信息 | ||
325 | + this.getuserinfo() | ||
266 | 326 | ||
267 | }, | 327 | }, |
268 | beforeRouteEnter(to, from, next) { | 328 | beforeRouteEnter(to, from, next) { |
@@ -277,6 +337,77 @@ export default { | @@ -277,6 +337,77 @@ export default { | ||
277 | } | 337 | } |
278 | }, | 338 | }, |
279 | methods: { | 339 | methods: { |
340 | + // 弹出分享弹层 | ||
341 | + sharebtn(){ | ||
342 | + this.shareshow=true | ||
343 | + }, | ||
344 | + // 隐藏分享弹层 | ||
345 | + hidesharek(){ | ||
346 | + this.shareshow=false | ||
347 | + }, | ||
348 | + // 获取用户信息 | ||
349 | + getuserinfo() { | ||
350 | + let that = this; | ||
351 | + var url = "/api/member/index"; | ||
352 | + var params = {}; | ||
353 | + console.log("7766554", params); | ||
354 | + that.$axios | ||
355 | + .post(url, params) | ||
356 | + .then(res => { | ||
357 | + that.userinfo = res.data; | ||
358 | + | ||
359 | + }) | ||
360 | + .catch(err => { }); | ||
361 | + }, | ||
362 | + // 开始评论 | ||
363 | + begincomment(item){ | ||
364 | + console.log(343843,item) | ||
365 | + this.showcomment=true; | ||
366 | + this.dateinit='@'+item.user.nickname; | ||
367 | + this.comments_id=item.id; | ||
368 | + this.child=item.child | ||
369 | + }, | ||
370 | + // 发送消息 | ||
371 | + sendtext(){ | ||
372 | + let that = this; | ||
373 | + if (that.textcomment == "") { | ||
374 | + Toast("请输入评论内容"); | ||
375 | + return false; | ||
376 | + } | ||
377 | + var url = "/api/comments/publish_comments"; | ||
378 | + var params = { | ||
379 | + forum_id: that.forum_id, | ||
380 | + content: that.textcomment, | ||
381 | + comments_id:that.comments_id | ||
382 | + }; | ||
383 | + console.log("参数", params); | ||
384 | + that.$axios | ||
385 | + .post(url, params) | ||
386 | + .then(res => { | ||
387 | + console.log(res); | ||
388 | + Toast("评论成功"); | ||
389 | + // 把发布的信息放到数组 | ||
390 | + let obj={ | ||
391 | + user:{} | ||
392 | + }; | ||
393 | + obj.user.nickname=that.userinfo.nickname; | ||
394 | + obj.user.avatar=that.userinfo.avatar; | ||
395 | + obj.content=that.textcomment; | ||
396 | + console.log(obj) | ||
397 | + that.child.unshift(obj); | ||
398 | + that.child=that.child; | ||
399 | + that.textcomment=''; | ||
400 | + that.comment = ""; | ||
401 | + that.$forceUpdate() | ||
402 | + }) | ||
403 | + .catch(err => { | ||
404 | + console.log(err); | ||
405 | + }); | ||
406 | + }, | ||
407 | + // 隐藏评论弹层 | ||
408 | + hidecomment(){ | ||
409 | + this.showcomment=false | ||
410 | + }, | ||
280 | seltiekind(id) { | 411 | seltiekind(id) { |
281 | this.tiezisel = id; | 412 | this.tiezisel = id; |
282 | }, | 413 | }, |
@@ -417,9 +548,6 @@ export default { | @@ -417,9 +548,6 @@ export default { | ||
417 | }, | 548 | }, |
418 | 549 | ||
419 | 550 | ||
420 | - | ||
421 | - | ||
422 | - | ||
423 | // 获取帖子详情 | 551 | // 获取帖子详情 |
424 | getformdetail() { | 552 | getformdetail() { |
425 | let that = this; | 553 | let that = this; |
@@ -441,6 +569,7 @@ export default { | @@ -441,6 +569,7 @@ export default { | ||
441 | that.$forceUpdate() | 569 | that.$forceUpdate() |
442 | that.user = res.data.user; | 570 | that.user = res.data.user; |
443 | that.getappid() | 571 | that.getappid() |
572 | + that.tiezishow=true | ||
444 | }, 200); | 573 | }, 200); |
445 | }) | 574 | }) |
446 | .catch(err => { | 575 | .catch(err => { |
@@ -503,7 +632,7 @@ export default { | @@ -503,7 +632,7 @@ export default { | ||
503 | }); | 632 | }); |
504 | }, | 633 | }, |
505 | 634 | ||
506 | - // 获取评论列表 | 635 | + // 获取评全部论列表 |
507 | getcommentlist() { | 636 | getcommentlist() { |
508 | let that = this; | 637 | let that = this; |
509 | var url = "/api/comments/get_comments"; | 638 | var url = "/api/comments/get_comments"; |
@@ -523,7 +652,7 @@ export default { | @@ -523,7 +652,7 @@ export default { | ||
523 | that.showpull = false; | 652 | that.showpull = false; |
524 | } | 653 | } |
525 | } | 654 | } |
526 | - console.log(this.commentlist); | 655 | + |
527 | }) | 656 | }) |
528 | .catch(err => { | 657 | .catch(err => { |
529 | console.log(err); | 658 | console.log(err); |
@@ -539,7 +668,8 @@ export default { | @@ -539,7 +668,8 @@ export default { | ||
539 | var url = "/api/comments/publish_comments"; | 668 | var url = "/api/comments/publish_comments"; |
540 | var params = { | 669 | var params = { |
541 | forum_id: that.forum_id, | 670 | forum_id: that.forum_id, |
542 | - content: that.comment | 671 | + content: that.comment, |
672 | + comments_id:'' | ||
543 | }; | 673 | }; |
544 | console.log("参数", params); | 674 | console.log("参数", params); |
545 | that.$axios | 675 | that.$axios |
@@ -613,5 +743,158 @@ export default { | @@ -613,5 +743,158 @@ export default { | ||
613 | .tieziright,.tiezirighttop { | 743 | .tieziright,.tiezirighttop { |
614 | flex:1 | 744 | flex:1 |
615 | } | 745 | } |
746 | +.tieziwordbox p img{ | ||
747 | + width:100%!important | ||
748 | +} | ||
616 | 749 | ||
750 | +.kanmore { | ||
751 | + width: 100%; | ||
752 | + color: #333; | ||
753 | + font-size: 0.28rem; | ||
754 | + margin: 0.32rem 0; | ||
755 | +} | ||
756 | +.jiantou { | ||
757 | + width: 0.2rem; | ||
758 | + height: 0.25rem; | ||
759 | + margin-left: 0.16rem; | ||
760 | +} | ||
761 | +.xiajiantou { | ||
762 | + width: 0.2rem; | ||
763 | + height: 0.25rem; | ||
764 | + transform: rotate(90deg); | ||
765 | + margin-left: 0.16rem; | ||
766 | +} | ||
767 | +.shangjiantou { | ||
768 | + width: 0.2rem; | ||
769 | + height: 0.25rem; | ||
770 | + transform: rotate(-90deg); | ||
771 | + margin-left: 0.16rem; | ||
772 | +} | ||
773 | +.societybox { | ||
774 | + margin-bottom: 1.2rem; | ||
775 | + margin-top: 2rem; | ||
776 | +} | ||
777 | +.desyincang { | ||
778 | + display: -webkit-box; | ||
779 | + -webkit-box-orient: vertical; | ||
780 | + -webkit-line-clamp: 3; | ||
781 | + overflow: hidden; | ||
782 | +} | ||
783 | +.commentbot { | ||
784 | + padding: 0.16rem 0.32rem; | ||
785 | + box-sizing: border-box; | ||
786 | + background: #f7f7f7; | ||
787 | +} | ||
788 | +.entercomment { | ||
789 | + width: 4.9rem; | ||
790 | + height: 0.76rem; | ||
791 | + background: #fff; | ||
792 | + color: #454e56; | ||
793 | + font-size: 0.28rem; | ||
794 | +} | ||
795 | +.entercomment input { | ||
796 | + width: 100%; | ||
797 | + height: 100%; | ||
798 | + padding: 0.2rem; | ||
799 | + box-sizing: border-box; | ||
800 | +} | ||
801 | +.fasong { | ||
802 | + width: 1.14rem; | ||
803 | + height: 0.6rem; | ||
804 | + background:#F19B18; | ||
805 | + border-radius: 0.04rem; | ||
806 | + color: #fff; | ||
807 | + font-size: 0.28rem; | ||
808 | + text-align: center; | ||
809 | + line-height: 0.6rem; | ||
810 | +} | ||
811 | +.jianpan { | ||
812 | + width: 0.5rem; | ||
813 | + height: 0.5rem; | ||
814 | +} | ||
815 | +.repalayname { | ||
816 | + color: #F19B18; | ||
817 | + font-size: 0.28rem; | ||
818 | +} | ||
819 | +.commenttext { | ||
820 | + color: #454e56; | ||
821 | + font-size: 0.28rem; | ||
822 | + margin-top: 0.1rem; | ||
823 | +} | ||
824 | +.commentname { | ||
825 | + color: "#333333"; | ||
826 | + font-size: 0.28rem; | ||
827 | + font-weight: bold; | ||
828 | +} | ||
829 | +.commentnamek{ | ||
830 | + color: "#333333"; | ||
831 | + font-size: 0.28rem; | ||
832 | + font-weight: bold; | ||
833 | +} | ||
834 | +.commentimg { | ||
835 | + width: 0.64rem; | ||
836 | + height: 0.64rem; | ||
837 | + border-radius: 50%; | ||
838 | + margin-right: 0.08rem; | ||
839 | + font-size: 0; | ||
840 | + flex: 0 0 auto; | ||
841 | +} | ||
842 | +.commentimg img { | ||
843 | + border-radius: 50%; | ||
844 | +} | ||
845 | +.commentboxitem { | ||
846 | + margin-top: 0.24rem; | ||
847 | + display: flex; | ||
848 | +} | ||
849 | +.commentwrap { | ||
850 | + width: 100%; | ||
851 | + height: 8.5rem; | ||
852 | + background: #fff; | ||
853 | + border-radius: 0.1rem 0.1rem 0 0; | ||
854 | + position: absolute; | ||
855 | + bottom: 0; | ||
856 | + left: 0; | ||
857 | +} | ||
858 | +.closeimg { | ||
859 | + width: 0.38rem; | ||
860 | + height: 0.38rem; | ||
861 | +} | ||
862 | +.commenttop { | ||
863 | + padding: 0.32rem 0.32rem 0; | ||
864 | + box-sizing: border-box; | ||
865 | +} | ||
866 | +.commentbox { | ||
867 | + padding: 0 0.32rem; | ||
868 | + box-sizing: border-box; | ||
869 | + overflow-y: scroll; | ||
870 | + height: 6.62em; | ||
871 | + padding-bottom: 0.32rem; | ||
872 | +} | ||
873 | +.commenttopleft { | ||
874 | + width: 0.24rem; | ||
875 | + height: 0.24rem; | ||
876 | +} | ||
877 | +.commenttopmiddle { | ||
878 | + color: #041121; | ||
879 | + font-size: 0.36rem; | ||
880 | +} | ||
881 | +.nodata{ | ||
882 | + color:#999; | ||
883 | + font-size:0.32rem; | ||
884 | + text-align: center; | ||
885 | + margin-top:0.23rem; | ||
886 | +} | ||
887 | +.shareimg{ | ||
888 | + width:0.32rem; | ||
889 | + height: 0.32rem; | ||
890 | + margin-right:0.3rem; | ||
891 | +} | ||
892 | +.sharewrap { | ||
893 | + width: 100%; | ||
894 | + height: 100%; | ||
895 | + position: fixed; | ||
896 | + top: 0; | ||
897 | + left: 0; | ||
898 | + z-index: 9999; | ||
899 | +} | ||
617 | </style> | 900 | </style> |
@@ -27,11 +27,13 @@ export default { | @@ -27,11 +27,13 @@ export default { | ||
27 | document.querySelector("body").style.height = "100%"; | 27 | document.querySelector("body").style.height = "100%"; |
28 | document.querySelector("html").style.height = "100%"; | 28 | document.querySelector("html").style.height = "100%"; |
29 | document.querySelector("#app").style.height = "100%"; | 29 | document.querySelector("#app").style.height = "100%"; |
30 | + console.log(343) | ||
30 | // var vdo = document.getElementById("video"); | 31 | // var vdo = document.getElementById("video"); |
31 | // vdo.play(); | 32 | // vdo.play(); |
32 | - document.title = "中国面条"; | 33 | + document.title = "中国面条"; //TODO: 我的时空网开 |
33 | 34 | ||
34 | console.log(this.url); | 35 | console.log(this.url); |
36 | + | ||
35 | }, | 37 | }, |
36 | methods: {} | 38 | methods: {} |
37 | }; | 39 | }; |
@@ -45,6 +47,6 @@ export default { | @@ -45,6 +47,6 @@ export default { | ||
45 | .videobox { | 47 | .videobox { |
46 | width: 100%; | 48 | width: 100%; |
47 | height: 100%; | 49 | height: 100%; |
48 | - margin-top: 1rem; | 50 | + /* margin-top: 1rem; */ |
49 | } | 51 | } |
50 | </style> | 52 | </style> |
@@ -93,6 +93,16 @@ | @@ -93,6 +93,16 @@ | ||
93 | /> | 93 | /> |
94 | 关于我们 | 94 | 关于我们 |
95 | </div> | 95 | </div> |
96 | + <div class="collectboxitem flexone" @click="collect(5)"> | ||
97 | + <img | ||
98 | + src="../../../assets/zigezheng.png" | ||
99 | + alt="" | ||
100 | + class="collectimg" | ||
101 | + style="width:0.34rem;margin-right:0.38rem" | ||
102 | + | ||
103 | + /> | ||
104 | + 资格证 | ||
105 | + </div> | ||
96 | </div> | 106 | </div> |
97 | <tabBar v-bind:active="4" /> | 107 | <tabBar v-bind:active="4" /> |
98 | </div> | 108 | </div> |
@@ -152,6 +162,11 @@ export default { | @@ -152,6 +162,11 @@ export default { | ||
152 | }); | 162 | }); |
153 | } else if (id == 4) { | 163 | } else if (id == 4) { |
154 | window.location.href = this.guanwang | 164 | window.location.href = this.guanwang |
165 | + }else if(id==5){ | ||
166 | + this.$router.push({ | ||
167 | + path: "/mykaoshi" | ||
168 | + | ||
169 | + }); | ||
155 | } | 170 | } |
156 | }, | 171 | }, |
157 | // 修改个人资料 | 172 | // 修改个人资料 |
@@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
27 | :class="fenlei == 3 ? 'fenleiactive' : ''" | 27 | :class="fenlei == 3 ? 'fenleiactive' : ''" |
28 | @click="getfen(3)" | 28 | @click="getfen(3)" |
29 | > | 29 | > |
30 | - 我的评论 | 30 | + 评论 |
31 | 31 | ||
32 | </div> | 32 | </div> |
33 | </div> | 33 | </div> |
@@ -142,7 +142,6 @@ export default { | @@ -142,7 +142,6 @@ export default { | ||
142 | }) | 142 | }) |
143 | that.tiezilist=that.tiezilist; | 143 | that.tiezilist=that.tiezilist; |
144 | that.$forceUpdate() | 144 | that.$forceUpdate() |
145 | - | ||
146 | }) | 145 | }) |
147 | .catch(err => { | 146 | .catch(err => { |
148 | console.log(err); | 147 | console.log(err); |
@@ -21,7 +21,6 @@ | @@ -21,7 +21,6 @@ | ||
21 | alt="" | 21 | alt="" |
22 | /> | 22 | /> |
23 | </div> | 23 | </div> |
24 | - | ||
25 | <img src="../../../assets/youjiantou.png" alt="" class="youjian" /> | 24 | <img src="../../../assets/youjiantou.png" alt="" class="youjian" /> |
26 | </div> | 25 | </div> |
27 | </div> | 26 | </div> |
@@ -48,6 +47,7 @@ | @@ -48,6 +47,7 @@ | ||
48 | <!-- <img src="../../../assets/youjiantou.png" alt="" class="youjian" /> --> | 47 | <!-- <img src="../../../assets/youjiantou.png" alt="" class="youjian" /> --> |
49 | </div> | 48 | </div> |
50 | </div> | 49 | </div> |
50 | + | ||
51 | <!-- <div class="weiquanitem flextwo"> | 51 | <!-- <div class="weiquanitem flextwo"> |
52 | <div class="weiguitou flexone"> | 52 | <div class="weiguitou flexone"> |
53 | <div>性别</div> | 53 | <div>性别</div> |
@@ -8,10 +8,10 @@ import Vant from "vant"; | @@ -8,10 +8,10 @@ import Vant from "vant"; | ||
8 | import "vant/lib/index.css"; | 8 | import "vant/lib/index.css"; |
9 | 9 | ||
10 | Vue.use(Vant); | 10 | Vue.use(Vant); |
11 | -import Vconsole from "vconsole"; | 11 | +// import Vconsole from "vconsole"; |
12 | 12 | ||
13 | -let vConsole = new Vconsole(); | ||
14 | -Vue.use(vConsole); | 13 | +// let vConsole = new Vconsole(); |
14 | +// Vue.use(vConsole); | ||
15 | 15 | ||
16 | import { service } from "./utils/commonsec.js"; | 16 | import { service } from "./utils/commonsec.js"; |
17 | Vue.prototype.$http = service; | 17 | Vue.prototype.$http = service; |
@@ -61,7 +61,7 @@ var text = function(details) { | @@ -61,7 +61,7 @@ var text = function(details) { | ||
61 | texts += details; //最后拼接的内容 | 61 | texts += details; //最后拼接的内容 |
62 | return texts; | 62 | return texts; |
63 | }; | 63 | }; |
64 | - | 64 | +// 富文本转化 |
65 | var richTextFormat = function(value) { | 65 | var richTextFormat = function(value) { |
66 | // value = value.replace(/<\/?[^>]*>/g,'') | 66 | // value = value.replace(/<\/?[^>]*>/g,'') |
67 | value = value.replace(/<\/?.+?>/g, '') | 67 | value = value.replace(/<\/?.+?>/g, '') |
-
请 注册 或 登录 后发表评论