正在显示
23 个修改的文件
包含
1020 行增加
和
114 行删除
1 | { | 1 | { |
2 | "pages": [ | 2 | "pages": [ |
3 | "pages/start/start", | 3 | "pages/start/start", |
4 | + "pages/my/userInfo/userInfo", | ||
4 | "pages/index/search/search", | 5 | "pages/index/search/search", |
5 | "pages/index/release/release", | 6 | "pages/index/release/release", |
6 | "pages/index/message/message", | 7 | "pages/index/message/message", |
@@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
12 | <block> | 12 | <block> |
13 | <view class="collect_box {{list.user_host==1?'active':''}}" bindtap='attention' data-id='{{list.open_user_id}}'> | 13 | <view class="collect_box {{list.user_host==1?'active':''}}" bindtap='attention' data-id='{{list.open_user_id}}'> |
14 | <text class='iconfont icon-shoucang0 star2'></text> | 14 | <text class='iconfont icon-shoucang0 star2'></text> |
15 | - <text class="collect_word">关注TA</text> | 15 | + <text class="collect_word">{{list.user_host==1?'取消关注':'关注TA'}}</text> |
16 | </view> | 16 | </view> |
17 | </block> | 17 | </block> |
18 | </view> | 18 | </view> |
@@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
78 | <block wx:if='{{item.user_status==1}}'> | 78 | <block wx:if='{{item.user_status==1}}'> |
79 | <view class='collect_box active' bindtap='replay' data-index="{{index}}" data-id='{{item.id}}' data-comment_state='{{item.user_status}}' data-name='{{item.user_nickname}}'> | 79 | <view class='collect_box active' bindtap='replay' data-index="{{index}}" data-id='{{item.id}}' data-comment_state='{{item.user_status}}' data-name='{{item.user_nickname}}'> |
80 | <text class='iconfont icon-pinglun star2'></text> | 80 | <text class='iconfont icon-pinglun star2'></text> |
81 | - <text class="collect_word">回复</text> | 81 | + <text class="collect_word">发布者</text> |
82 | </view> | 82 | </view> |
83 | </block> | 83 | </block> |
84 | </view> | 84 | </view> |
@@ -322,6 +322,10 @@ page { | @@ -322,6 +322,10 @@ page { | ||
322 | font-size: 26rpx; | 322 | font-size: 26rpx; |
323 | } | 323 | } |
324 | 324 | ||
325 | +.zan { | ||
326 | + color: #000; | ||
327 | +} | ||
328 | + | ||
325 | .zan, .pinglun1 { | 329 | .zan, .pinglun1 { |
326 | font-size: 28rpx; | 330 | font-size: 28rpx; |
327 | margin-right: 10rpx; | 331 | margin-right: 10rpx; |
@@ -408,7 +412,7 @@ page { | @@ -408,7 +412,7 @@ page { | ||
408 | box-sizing: border-box; | 412 | box-sizing: border-box; |
409 | } | 413 | } |
410 | 414 | ||
411 | -.comment_box textarea,input { | 415 | +.comment_box textarea, input { |
412 | font-size: 26rpx; | 416 | font-size: 26rpx; |
413 | height: 80rpx; | 417 | height: 80rpx; |
414 | } | 418 | } |
@@ -10,6 +10,13 @@ Page({ | @@ -10,6 +10,13 @@ Page({ | ||
10 | list: [] | 10 | list: [] |
11 | }, | 11 | }, |
12 | 12 | ||
13 | + goUserInfo(e) { | ||
14 | + var id = e.currentTarget.dataset.id | ||
15 | + wx.navigateTo({ | ||
16 | + url: '/pages/my/userInfo/userInfo?id=' + id, | ||
17 | + }) | ||
18 | + }, | ||
19 | + | ||
13 | getData() { | 20 | getData() { |
14 | let url = '/home/index/checkFans' | 21 | let url = '/home/index/checkFans' |
15 | let params = { | 22 | let params = { |
@@ -21,9 +28,15 @@ Page({ | @@ -21,9 +28,15 @@ Page({ | ||
21 | } | 28 | } |
22 | app.post(url, params, header).then((res) => { | 29 | app.post(url, params, header).then((res) => { |
23 | console.log(res) | 30 | console.log(res) |
31 | + var list = res.data.data.list | ||
32 | + // if (this.data.status == 1) { | ||
33 | + // for (var i in list) { | ||
34 | + // list[i].user_host == 1 | ||
35 | + // } | ||
36 | + // } | ||
24 | if (res.data.code == 20000) { | 37 | if (res.data.code == 20000) { |
25 | this.setData({ | 38 | this.setData({ |
26 | - list: res.data.data.list | 39 | + list: list |
27 | }) | 40 | }) |
28 | } | 41 | } |
29 | }) | 42 | }) |
@@ -49,8 +62,10 @@ Page({ | @@ -49,8 +62,10 @@ Page({ | ||
49 | }, | 62 | }, |
50 | 63 | ||
51 | //关注接口 | 64 | //关注接口 |
52 | - attentionInfo(id, status) { | 65 | + attentionInfo(e) { |
53 | let that = this; | 66 | let that = this; |
67 | + var id = e.currentTarget.dataset.id | ||
68 | + var status = e.currentTarget.dataset.status | ||
54 | let url = '/home/index/host'; | 69 | let url = '/home/index/host'; |
55 | let param = { | 70 | let param = { |
56 | open_user_id: id, | 71 | open_user_id: id, |
@@ -73,10 +88,10 @@ Page({ | @@ -73,10 +88,10 @@ Page({ | ||
73 | */ | 88 | */ |
74 | onLoad: function(options) { | 89 | onLoad: function(options) { |
75 | this.setData({ | 90 | this.setData({ |
76 | - status:options.status?options.status:'' | 91 | + status: options.status ? options.status : '' |
77 | }) | 92 | }) |
78 | this.getData() | 93 | this.getData() |
79 | - if(options.status==1){ | 94 | + if (options.status == 1) { |
80 | wx.setNavigationBarTitle({ | 95 | wx.setNavigationBarTitle({ |
81 | title: '关注', | 96 | title: '关注', |
82 | }) | 97 | }) |
1 | <!--pages/index/fans/fans.wxml--> | 1 | <!--pages/index/fans/fans.wxml--> |
2 | <view class='content_box'> | 2 | <view class='content_box'> |
3 | - <view class='item_list' wx:for='{{list}}' wx:key> | 3 | + <view class='item_list' wx:for='{{list}}' wx:key bindtap='goUserInfo' data-id='{{item.id}}'> |
4 | <view class='list_left'> | 4 | <view class='list_left'> |
5 | <image class='head_img' src='{{item.avatar}}'></image> | 5 | <image class='head_img' src='{{item.avatar}}'></image> |
6 | <view> | 6 | <view> |
@@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
10 | </view> | 10 | </view> |
11 | </view> | 11 | </view> |
12 | </view> | 12 | </view> |
13 | - <view class="list_label list_active" bindtap='attention' data-id='{{list.open_user_id}}'>添加关注</view> | 13 | + <view class="list_label list_active" bindtap='attentionInfo' data-id='{{item.id}}' data-status='1' wx:if='{{status==2}}'>添加关注</view> |
14 | + <view class="list_label" bindtap='attentionInfo' data-id='{{item.id}}' data-status='2' wx:if='{{status==1}}'>取消关注</view> | ||
14 | </view> | 15 | </view> |
15 | </view> | 16 | </view> |
@@ -30,17 +30,51 @@ Page({ | @@ -30,17 +30,51 @@ Page({ | ||
30 | list: [], | 30 | list: [], |
31 | order: 1, | 31 | order: 1, |
32 | poster_list: [], | 32 | poster_list: [], |
33 | - img_state:false, | ||
34 | - imgUrl:'', | ||
35 | - img_text:'', | 33 | + img_state: false, |
34 | + imgUrl: '', | ||
35 | + img_text: '', | ||
36 | + poster: '', | ||
36 | 37 | ||
37 | // https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534766809331&di=012cc4ad15d457ffa55c6537503eb84a&imgtype=0&src=http%3A%2F%2Fpicture.5068.com%2Fallimg%2F121120%2F4-1211201G920.jpg | 38 | // https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534766809331&di=012cc4ad15d457ffa55c6537503eb84a&imgtype=0&src=http%3A%2F%2Fpicture.5068.com%2Fallimg%2F121120%2F4-1211201G920.jpg |
38 | cardPath: '', | 39 | cardPath: '', |
39 | headPath: '', | 40 | headPath: '', |
40 | // https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534765039080&di=1e81a596bc89cd54db55c0dbc7c4bb87&imgtype=0&src=http%3A%2F%2Fimg3.100bt.com%2Fupload%2Fttq%2F20140529%2F1401337844678_middle.png | 41 | // https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534765039080&di=1e81a596bc89cd54db55c0dbc7c4bb87&imgtype=0&src=http%3A%2F%2Fimg3.100bt.com%2Fupload%2Fttq%2F20140529%2F1401337844678_middle.png |
41 | sendName: '' | 42 | sendName: '' |
43 | + }, | ||
42 | 44 | ||
45 | + saveImg(e) { | ||
46 | + var src = e.currentTarget.dataset.src | ||
47 | + wx.downloadFile({ | ||
48 | + url: src, | ||
49 | + success: function(res) { | ||
50 | + let path = res.tempFilePath | ||
51 | + wx.saveImageToPhotosAlbum({ | ||
52 | + filePath: path, | ||
53 | + success(res) { | ||
54 | + wx.showToast({ | ||
55 | + title: '保存成功', | ||
56 | + icon: 'success' | ||
57 | + }) | ||
58 | + }, | ||
59 | + fail(res) { | ||
60 | + console.log(res) | ||
61 | + }, | ||
62 | + complete(res) { | ||
63 | + console.log(res) | ||
64 | + } | ||
65 | + }) | ||
66 | + }, | ||
67 | + fail: function(res) { | ||
68 | + console.log(res) | ||
69 | + } | ||
70 | + }) | ||
71 | + }, | ||
43 | 72 | ||
73 | + goUserInfo(e) { | ||
74 | + var id = e.currentTarget.dataset.id | ||
75 | + wx.navigateTo({ | ||
76 | + url: '/pages/my/userInfo/userInfo?id=' + id, | ||
77 | + }) | ||
44 | }, | 78 | }, |
45 | 79 | ||
46 | viewImg(e) { | 80 | viewImg(e) { |
@@ -51,26 +85,18 @@ Page({ | @@ -51,26 +85,18 @@ Page({ | ||
51 | var current = e.currentTarget.dataset.src | 85 | var current = e.currentTarget.dataset.src |
52 | console.log(imgs) | 86 | console.log(imgs) |
53 | this.setData({ | 87 | this.setData({ |
54 | - imgUrl:current, | ||
55 | - img_text:e.currentTarget.dataset.text, | ||
56 | - img_state:true | 88 | + imgUrl: current, |
89 | + img_text: e.currentTarget.dataset.text, | ||
90 | + img_state: true | ||
57 | }) | 91 | }) |
58 | - wx.hideTabBar({ | ||
59 | - | ||
60 | - }) | ||
61 | - // wx.previewImage({ | ||
62 | - // current: current, | ||
63 | - // urls: imgs, | ||
64 | - // }) | 92 | + wx.hideTabBar({}) |
65 | }, | 93 | }, |
66 | 94 | ||
67 | - cancle_img(){ | 95 | + cancle_img() { |
68 | this.setData({ | 96 | this.setData({ |
69 | - img_state:false | ||
70 | - }) | ||
71 | - wx.showTabBar({ | ||
72 | - | 97 | + img_state: false |
73 | }) | 98 | }) |
99 | + wx.showTabBar({}) | ||
74 | }, | 100 | }, |
75 | 101 | ||
76 | chargeType(e) { | 102 | chargeType(e) { |
@@ -192,7 +218,7 @@ Page({ | @@ -192,7 +218,7 @@ Page({ | ||
192 | } | 218 | } |
193 | app.post(url, params, header).then((res) => { | 219 | app.post(url, params, header).then((res) => { |
194 | console.log(res) | 220 | console.log(res) |
195 | - if(res.data.code==20000){ | 221 | + if (res.data.code == 20000) { |
196 | this.getData() | 222 | this.getData() |
197 | } | 223 | } |
198 | }) | 224 | }) |
@@ -222,10 +248,17 @@ Page({ | @@ -222,10 +248,17 @@ Page({ | ||
222 | 248 | ||
223 | showPoster(e) { | 249 | showPoster(e) { |
224 | var id = e.currentTarget.dataset.id | 250 | var id = e.currentTarget.dataset.id |
225 | - this.setData({ | 251 | + var that=this |
252 | + wx.hideTabBar({}) | ||
253 | + wx.showToast({ | ||
254 | + title: '加载中', | ||
255 | + icon: 'loading' | ||
256 | + }) | ||
257 | + // setTimeout(function() { | ||
258 | + that.setData({ | ||
226 | poster_state: true | 259 | poster_state: true |
227 | }) | 260 | }) |
228 | - wx.hideTabBar({}) | 261 | + // }, 2000) |
229 | this.getPoster(id) | 262 | this.getPoster(id) |
230 | }, | 263 | }, |
231 | 264 | ||
@@ -254,14 +287,13 @@ Page({ | @@ -254,14 +287,13 @@ Page({ | ||
254 | } | 287 | } |
255 | app.post(url, param, header).then((res) => { | 288 | app.post(url, param, header).then((res) => { |
256 | console.log(res) | 289 | console.log(res) |
290 | + | ||
257 | if (res.data.code == 20000) { | 291 | if (res.data.code == 20000) { |
258 | this.setData({ | 292 | this.setData({ |
259 | - // poster_list: res.data.data, | ||
260 | - cardPath: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534766809331&di=012cc4ad15d457ffa55c6537503eb84a&imgtype=0&src=http%3A%2F%2Fpicture.5068.com%2Fallimg%2F121120%2F4-1211201G920.jpg', | ||
261 | - headPath: res.data.data.img, | ||
262 | - sendName: res.data.data.text, | 293 | + poster: res.data.data.url, |
263 | }) | 294 | }) |
264 | } | 295 | } |
296 | + | ||
265 | }) | 297 | }) |
266 | }, | 298 | }, |
267 | 299 | ||
@@ -432,7 +464,7 @@ Page({ | @@ -432,7 +464,7 @@ Page({ | ||
432 | 464 | ||
433 | //画图 | 465 | //画图 |
434 | drawCanvas: function() { | 466 | drawCanvas: function() { |
435 | - console.log(this.data.cardPath,'aa') | 467 | + console.log(this.data.cardPath, 'aa') |
436 | this.setData({ | 468 | this.setData({ |
437 | cardPath: this.data.cardPath, | 469 | cardPath: this.data.cardPath, |
438 | headPath: this.data.headPath, | 470 | headPath: this.data.headPath, |
@@ -454,7 +486,7 @@ Page({ | @@ -454,7 +486,7 @@ Page({ | ||
454 | wx.getImageInfo({ | 486 | wx.getImageInfo({ |
455 | src: this.data.cardPath, | 487 | src: this.data.cardPath, |
456 | success: (res) => { | 488 | success: (res) => { |
457 | - console.log('canvas',res) | 489 | + console.log('canvas', res) |
458 | ctx.drawImage(res.path, 15, 15, 345, 470); //card | 490 | ctx.drawImage(res.path, 15, 15, 345, 470); //card |
459 | wx.getImageInfo({ | 491 | wx.getImageInfo({ |
460 | src: this.data.headPath, | 492 | src: this.data.headPath, |
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | <view class='content_box'> | 16 | <view class='content_box'> |
17 | <view class='content_item' wx:for='{{list}}' wx:for-index='mindex' wx:key> | 17 | <view class='content_item' wx:for='{{list}}' wx:for-index='mindex' wx:key> |
18 | <view class='left_box'> | 18 | <view class='left_box'> |
19 | - <view class='head_portrait'> | 19 | + <view class='head_portrait' bindtap='goUserInfo' data-id='{{item.open_user_id}}'> |
20 | <image src='{{item.avatar}}'></image> | 20 | <image src='{{item.avatar}}'></image> |
21 | </view> | 21 | </view> |
22 | </view> | 22 | </view> |
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | <view class='user_name'>{{item.user_nickname}}</view> | 25 | <view class='user_name'>{{item.user_nickname}}</view> |
26 | <view class=' state_box'> | 26 | <view class=' state_box'> |
27 | <view class="collect_box {{item.user_host==1?'active':''}}" catchtap='attention' data-index="{{mindex}}" data-id='{{item.open_user_id}}'> | 27 | <view class="collect_box {{item.user_host==1?'active':''}}" catchtap='attention' data-index="{{mindex}}" data-id='{{item.open_user_id}}'> |
28 | - <text class="collect_word">关注TA</text> | 28 | + <text class="collect_word">{{item.user_host==1?'取消关注':'关注TA'}}</text> |
29 | </view> | 29 | </view> |
30 | </view> | 30 | </view> |
31 | </view> | 31 | </view> |
@@ -76,33 +76,39 @@ | @@ -76,33 +76,39 @@ | ||
76 | </view> | 76 | </view> |
77 | <view class='iconfont icon-jia' bindtap='releaseInfo'></view> | 77 | <view class='iconfont icon-jia' bindtap='releaseInfo'></view> |
78 | <view class='mask_box2' wx:if='{{poster_state}}'> | 78 | <view class='mask_box2' wx:if='{{poster_state}}'> |
79 | - <view class="canvasBox"> | ||
80 | - <canvas canvas-id='myCanvas' style=''></canvas> | 79 | + <!-- <view class="canvasBox"> --> |
80 | + <!-- <canvas canvas-id='myCanvas' style=''></canvas> --> | ||
81 | + <!-- </view> --> | ||
82 | + <!-- <view class='popup_img'> | ||
83 | + <image src='{{poster}}'></image> | ||
81 | </view> | 84 | </view> |
82 | <view class="btn" bindtap="saveImage">保存图片</view> | 85 | <view class="btn" bindtap="saveImage">保存图片</view> |
83 | - <view class='iconfont icon-quxiao quxiao2' bindtap='canclePopup'></view> | ||
84 | - <!-- <view class='popup_box2'> | 86 | + <view class='iconfont icon-quxiao quxiao2' bindtap='canclePopup'></view> --> |
87 | + <view class='popup_box2'> | ||
85 | <view> | 88 | <view> |
86 | <view class='popup_content_box'> | 89 | <view class='popup_content_box'> |
87 | - <view class='popup_img2'> | 90 | + <!-- <view class='popup_img2'> |
88 | <image src='{{poster_list.img}}'></image> | 91 | <image src='{{poster_list.img}}'></image> |
89 | <view class='circle'></view> | 92 | <view class='circle'></view> |
90 | <view class='circle2'></view> | 93 | <view class='circle2'></view> |
91 | - </view> | 94 | + </view> --> |
92 | <view class='popup_info_box'> | 95 | <view class='popup_info_box'> |
93 | - <view class='popup_title2'>{{poster_list.title}}</view> | ||
94 | - <view>{{poster_list.text}}</view> | 96 | + <!-- <view class='popup_title2'>{{poster_list.title}}</view> |
97 | + <view>{{poster_list.text}}</view> --> | ||
98 | + <view class='popup_img'> | ||
99 | + <image src='{{poster}}'></image> | ||
100 | + </view> | ||
95 | <view class='popup_icon_box'> | 101 | <view class='popup_icon_box'> |
96 | - <view class='popup_btn_box'> | 102 | + <view class='popup_btn_box' bindtap='saveImg' data-src='{{poster}}'> |
97 | <view class='popup_btn2'>保存图片</view> | 103 | <view class='popup_btn2'>保存图片</view> |
98 | </view> | 104 | </view> |
99 | - <image src='/images/chuanda_quan_90@2x.png'></image> | 105 | + <!-- <image src='/images/chuanda_quan_90@2x.png'></image> --> |
100 | </view> | 106 | </view> |
101 | </view> | 107 | </view> |
102 | </view> | 108 | </view> |
103 | </view> | 109 | </view> |
104 | <view class='iconfont icon-quxiao' bindtap='canclePopup'></view> | 110 | <view class='iconfont icon-quxiao' bindtap='canclePopup'></view> |
105 | - </view> --> | 111 | + </view> |
106 | </view> | 112 | </view> |
107 | 113 | ||
108 | <!-- catchtap='cancleClassify' --> | 114 | <!-- catchtap='cancleClassify' --> |
@@ -449,13 +449,13 @@ page { | @@ -449,13 +449,13 @@ page { | ||
449 | } | 449 | } |
450 | 450 | ||
451 | .icon-quxiao { | 451 | .icon-quxiao { |
452 | - /* font-size: 36rpx; | 452 | + font-size: 36rpx; |
453 | text-align: center; | 453 | text-align: center; |
454 | color: #fff; | 454 | color: #fff; |
455 | position: absolute; | 455 | position: absolute; |
456 | bottom: -80rpx; | 456 | bottom: -80rpx; |
457 | left: 50%; | 457 | left: 50%; |
458 | - transform: translateX(-50%); */ | 458 | + transform: translateX(-50%); |
459 | } | 459 | } |
460 | 460 | ||
461 | .popup_box2 { | 461 | .popup_box2 { |
@@ -472,12 +472,13 @@ page { | @@ -472,12 +472,13 @@ page { | ||
472 | 472 | ||
473 | .popup_info_box { | 473 | .popup_info_box { |
474 | width: 686rpx; | 474 | width: 686rpx; |
475 | - background: #fff; | 475 | + /* background: #fff; |
476 | padding: 30rpx; | 476 | padding: 30rpx; |
477 | box-sizing: border-box; | 477 | box-sizing: border-box; |
478 | font-size: 28rpx; | 478 | font-size: 28rpx; |
479 | - color: #282829; | 479 | + color: #282829; */ |
480 | border-radius: 10rpx; | 480 | border-radius: 10rpx; |
481 | + position: relative; | ||
481 | } | 482 | } |
482 | 483 | ||
483 | .popup_icon_box { | 484 | .popup_icon_box { |
@@ -486,6 +487,9 @@ page { | @@ -486,6 +487,9 @@ page { | ||
486 | justify-content: space-between; | 487 | justify-content: space-between; |
487 | padding: 0 45rpx; | 488 | padding: 0 45rpx; |
488 | margin-top: 30rpx; | 489 | margin-top: 30rpx; |
490 | + position: absolute; | ||
491 | + left: 0; | ||
492 | + bottom: 0; | ||
489 | } | 493 | } |
490 | 494 | ||
491 | .popup_title2 { | 495 | .popup_title2 { |
@@ -543,6 +547,16 @@ page { | @@ -543,6 +547,16 @@ page { | ||
543 | right: 0; | 547 | right: 0; |
544 | z-index: 100; | 548 | z-index: 100; |
545 | } | 549 | } |
550 | +.popup_img{ | ||
551 | + width: 100%; | ||
552 | + height:1026rpx; | ||
553 | + border-radius: 16rpx; | ||
554 | + overflow: hidden; | ||
555 | +} | ||
556 | +.popup_img image{ | ||
557 | + width: 100%; | ||
558 | + height: 100%; | ||
559 | +} | ||
546 | 560 | ||
547 | .popup_img2 { | 561 | .popup_img2 { |
548 | width: 686rpx; | 562 | width: 686rpx; |
@@ -12,12 +12,13 @@ | @@ -12,12 +12,13 @@ | ||
12 | <view> | 12 | <view> |
13 | <view class=' user_name '>{{item.user_nickname}}</view> | 13 | <view class=' user_name '>{{item.user_nickname}}</view> |
14 | <view> | 14 | <view> |
15 | - <text>评论了你的</text> | 15 | + <text wx:if='{{status==1}}'>评论了你的</text> |
16 | + <text wx:elif='{{status==2}}'>点赞了你的</text> | ||
16 | <text class='list_hint '>{{item.title}}</text> | 17 | <text class='list_hint '>{{item.title}}</text> |
17 | </view> | 18 | </view> |
18 | </view> | 19 | </view> |
19 | </view> | 20 | </view> |
20 | - <view class='point '></view> | 21 | + <view class='point' wx:if='{{status==2}}'></view> |
21 | </view> | 22 | </view> |
22 | </block> | 23 | </block> |
23 | <!-- <block wx:if='{{status==2}} '> | 24 | <!-- <block wx:if='{{status==2}} '> |
@@ -35,12 +36,12 @@ | @@ -35,12 +36,12 @@ | ||
35 | <view class='point '></view> | 36 | <view class='point '></view> |
36 | </view> | 37 | </view> |
37 | </block> --> | 38 | </block> --> |
38 | - <block wx:if='{{status==3}} '> | 39 | + <block wx:elif='{{status==3}} '> |
39 | <view class='item_list' wx:for='{{list2}}' wx:key> | 40 | <view class='item_list' wx:for='{{list2}}' wx:key> |
40 | <view class='list_left'> | 41 | <view class='list_left'> |
41 | <view> | 42 | <view> |
42 | <view class='user_name' style='font-weight:normal; '> | 43 | <view class='user_name' style='font-weight:normal; '> |
43 | - <text>Rose | ローズ您好,您发布的今日打卡审核</text> | 44 | + <text>{{item.user_nickname}}您好,您发布的{{title}}审核</text> |
44 | <text class='list_hint2'>未通过</text> | 45 | <text class='list_hint2'>未通过</text> |
45 | </view> | 46 | </view> |
46 | <view>原因:发布内容有歧义</view> | 47 | <view>原因:发布内容有歧义</view> |
@@ -14,7 +14,7 @@ Page({ | @@ -14,7 +14,7 @@ Page({ | ||
14 | currentTime: 0, | 14 | currentTime: 0, |
15 | relsese_state: false, | 15 | relsese_state: false, |
16 | relsese_state1: -1, | 16 | relsese_state1: -1, |
17 | - release_time2: ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '012:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00', ], | 17 | + release_time2: ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00', ], |
18 | more_state: false, | 18 | more_state: false, |
19 | images: [], | 19 | images: [], |
20 | styles: [], | 20 | styles: [], |
@@ -24,7 +24,7 @@ Page({ | @@ -24,7 +24,7 @@ Page({ | ||
24 | img_state: false, | 24 | img_state: false, |
25 | tempUrl: [], | 25 | tempUrl: [], |
26 | time_info: '定时发送', | 26 | time_info: '定时发送', |
27 | - open_time: '', | 27 | + open_time: 0, |
28 | temp_time2: '', | 28 | temp_time2: '', |
29 | temp_time: '', | 29 | temp_time: '', |
30 | list_id: 0, | 30 | list_id: 0, |
@@ -156,6 +156,7 @@ Page({ | @@ -156,6 +156,7 @@ Page({ | ||
156 | var minutes = date.getMinutes() | 156 | var minutes = date.getMinutes() |
157 | var seconds = date.getSeconds() | 157 | var seconds = date.getSeconds() |
158 | var release_time = this.data.release_time | 158 | var release_time = this.data.release_time |
159 | + console.log(release_time) | ||
159 | 160 | ||
160 | if (week == 0) { | 161 | if (week == 0) { |
161 | info = "周日"; | 162 | info = "周日"; |
@@ -183,6 +184,7 @@ Page({ | @@ -183,6 +184,7 @@ Page({ | ||
183 | this.setData({ | 184 | this.setData({ |
184 | release_time: release_time, | 185 | release_time: release_time, |
185 | lastMonth: lastMonth, | 186 | lastMonth: lastMonth, |
187 | + // open_time: year + '/' + month + '/' + day + ' ' + hours + ':00', | ||
186 | }) | 188 | }) |
187 | 189 | ||
188 | }, | 190 | }, |
@@ -200,6 +202,7 @@ Page({ | @@ -200,6 +202,7 @@ Page({ | ||
200 | } | 202 | } |
201 | var open_time = time + ' ' + temp_time | 203 | var open_time = time + ' ' + temp_time |
202 | var open_time2 = time2 + ' ' + temp_time | 204 | var open_time2 = time2 + ' ' + temp_time |
205 | + console.log(open_time) | ||
203 | this.setData({ | 206 | this.setData({ |
204 | open_time: open_time, | 207 | open_time: open_time, |
205 | time_info: open_time2 | 208 | time_info: open_time2 |
@@ -324,9 +327,6 @@ Page({ | @@ -324,9 +327,6 @@ Page({ | ||
324 | index: index, | 327 | index: index, |
325 | url: url | 328 | url: url |
326 | }) | 329 | }) |
327 | - // wx.navigateTo({ | ||
328 | - // url: '/pages/index/brief/brief?index=' + index + '&url=' + url, | ||
329 | - // }) | ||
330 | }, | 330 | }, |
331 | 331 | ||
332 | showMore() { | 332 | showMore() { |
@@ -371,6 +371,7 @@ Page({ | @@ -371,6 +371,7 @@ Page({ | ||
371 | 371 | ||
372 | submitInfo() { | 372 | submitInfo() { |
373 | this.tempClassify() | 373 | this.tempClassify() |
374 | + console.log(this.data.open_time) | ||
374 | let url = '/home/index/fashion' | 375 | let url = '/home/index/fashion' |
375 | let params = { | 376 | let params = { |
376 | list_id: this.data.list_id, | 377 | list_id: this.data.list_id, |
@@ -392,9 +393,15 @@ Page({ | @@ -392,9 +393,15 @@ Page({ | ||
392 | title: '提交成功', | 393 | title: '提交成功', |
393 | }) | 394 | }) |
394 | setTimeout((res) => { | 395 | setTimeout((res) => { |
396 | + if (this.data.open == 4) { | ||
395 | wx.navigateBack({ | 397 | wx.navigateBack({ |
396 | dalta: 1 | 398 | dalta: 1 |
397 | }) | 399 | }) |
400 | + } else { | ||
401 | + wx.redirectTo({ | ||
402 | + url: '/pages/index/check/check', | ||
403 | + }) | ||
404 | + } | ||
398 | }, 1000) | 405 | }, 1000) |
399 | } else { | 406 | } else { |
400 | wx.showToast({ | 407 | wx.showToast({ |
@@ -416,7 +423,6 @@ Page({ | @@ -416,7 +423,6 @@ Page({ | ||
416 | 'XX-Device-Type': 'wxapp' | 423 | 'XX-Device-Type': 'wxapp' |
417 | } | 424 | } |
418 | app.post(url, params, header).then((res) => { | 425 | app.post(url, params, header).then((res) => { |
419 | - console.log(res) | ||
420 | var open = res.data.data.open | 426 | var open = res.data.data.open |
421 | var more_info = this.data.more_info | 427 | var more_info = this.data.more_info |
422 | if (open == 1) { | 428 | if (open == 1) { |
@@ -473,7 +479,7 @@ Page({ | @@ -473,7 +479,7 @@ Page({ | ||
473 | this.setData({ | 479 | this.setData({ |
474 | list_id: options.id ? options.id : '' | 480 | list_id: options.id ? options.id : '' |
475 | }) | 481 | }) |
476 | - if (options.id != 0) { | 482 | + if (options.id != 0 && options.id != undefined) { |
477 | this.getData() | 483 | this.getData() |
478 | } | 484 | } |
479 | }, | 485 | }, |
@@ -33,15 +33,15 @@ | @@ -33,15 +33,15 @@ | ||
33 | <view class='more_item' bindtap='setOpen' data-open='1'> | 33 | <view class='more_item' bindtap='setOpen' data-open='1'> |
34 | <text>公开</text> | 34 | <text>公开</text> |
35 | </view> | 35 | </view> |
36 | - <view class='more_line'></view> | 36 | + <!-- <view class='more_line'></view> --> |
37 | <view class='more_item' catchtap='setOpen' data-open='3'> | 37 | <view class='more_item' catchtap='setOpen' data-open='3'> |
38 | <text>仅自己可见</text> | 38 | <text>仅自己可见</text> |
39 | </view> | 39 | </view> |
40 | - <view class='more_line'></view> | 40 | + <!-- <view class='more_line'></view> --> |
41 | <view class='more_item' catchtap='setOpen' data-open='2'> | 41 | <view class='more_item' catchtap='setOpen' data-open='2'> |
42 | <text>粉丝可见</text> | 42 | <text>粉丝可见</text> |
43 | </view> | 43 | </view> |
44 | - <view class='more_line'></view> | 44 | + <!-- <view class='more_line'></view> --> |
45 | <view class='more_item' catchtap='setOpen' data-open='4'> | 45 | <view class='more_item' catchtap='setOpen' data-open='4'> |
46 | <text>草稿箱</text> | 46 | <text>草稿箱</text> |
47 | </view> | 47 | </view> |
@@ -220,8 +220,6 @@ page { | @@ -220,8 +220,6 @@ page { | ||
220 | justify-content: center; | 220 | justify-content: center; |
221 | } | 221 | } |
222 | 222 | ||
223 | - | ||
224 | - | ||
225 | .picker-title { | 223 | .picker-title { |
226 | margin: 50rpx 0 0 0; | 224 | margin: 50rpx 0 0 0; |
227 | font-size: 36rpx; | 225 | font-size: 36rpx; |
@@ -386,7 +384,7 @@ picker-view-column view { | @@ -386,7 +384,7 @@ picker-view-column view { | ||
386 | box-shadow: 0 8rpx 30rpx 0 #e5e5e5; | 384 | box-shadow: 0 8rpx 30rpx 0 #e5e5e5; |
387 | font-size: 28rpx; | 385 | font-size: 28rpx; |
388 | color: #000; | 386 | color: #000; |
389 | - padding: 15rpx 30rpx; | 387 | + padding: 0 30rpx; |
390 | box-sizing: border-box; | 388 | box-sizing: border-box; |
391 | } | 389 | } |
392 | 390 | ||
@@ -395,8 +393,13 @@ picker-view-column view { | @@ -395,8 +393,13 @@ picker-view-column view { | ||
395 | } | 393 | } |
396 | 394 | ||
397 | .more_item { | 395 | .more_item { |
398 | - /* padding: 0 25rpx; */ | ||
399 | text-align: center; | 396 | text-align: center; |
397 | + border-bottom: 1rpx solid #ebebeb; | ||
398 | + padding: 10rpx 0; | ||
399 | +} | ||
400 | + | ||
401 | +.more_item:last-child { | ||
402 | + border-bottom: 0; | ||
400 | } | 403 | } |
401 | 404 | ||
402 | .more_line { | 405 | .more_line { |
1 | // pages/my/draft/draft.js | 1 | // pages/my/draft/draft.js |
2 | -const app=getApp() | 2 | +const app = getApp() |
3 | Page({ | 3 | Page({ |
4 | 4 | ||
5 | /** | 5 | /** |
6 | * 页面的初始数据 | 6 | * 页面的初始数据 |
7 | */ | 7 | */ |
8 | data: { | 8 | data: { |
9 | - list:'' | 9 | + list: '', |
10 | + mask_state: false, | ||
10 | }, | 11 | }, |
11 | 12 | ||
12 | getData() { | 13 | getData() { |
@@ -18,16 +19,16 @@ Page({ | @@ -18,16 +19,16 @@ Page({ | ||
18 | } | 19 | } |
19 | app.post(url, params, header).then((res) => { | 20 | app.post(url, params, header).then((res) => { |
20 | console.log(res) | 21 | console.log(res) |
21 | - if(res.data.code==20000){ | ||
22 | - if(res.data.data.list==''){ | 22 | + if (res.data.code == 20000) { |
23 | + if (res.data.data.list == '') { | ||
23 | this.setData({ | 24 | this.setData({ |
24 | list: res.data.data.list | 25 | list: res.data.data.list |
25 | }) | 26 | }) |
26 | wx.showToast({ | 27 | wx.showToast({ |
27 | title: '暂无数据', | 28 | title: '暂无数据', |
28 | - icon:'none' | 29 | + icon: 'none' |
29 | }) | 30 | }) |
30 | - }else{ | 31 | + } else { |
31 | this.setData({ | 32 | this.setData({ |
32 | list: res.data.data.list | 33 | list: res.data.data.list |
33 | }) | 34 | }) |
@@ -37,66 +38,95 @@ Page({ | @@ -37,66 +38,95 @@ Page({ | ||
37 | }) | 38 | }) |
38 | }, | 39 | }, |
39 | 40 | ||
40 | - goDetail(e){ | ||
41 | - var id=e.currentTarget.dataset.id | 41 | + showMask(e) { |
42 | + var id = e.currentTarget.dataset.id | ||
43 | + this.setData({ | ||
44 | + mask_state: true, | ||
45 | + id: id | ||
46 | + }) | ||
47 | + }, | ||
48 | + cancleMask() { | ||
49 | + this.setData({ | ||
50 | + mask_state: false | ||
51 | + }) | ||
52 | + }, | ||
53 | + delInfo() { | ||
54 | + var that=this | ||
55 | + let url = '/home/index/draftsDelete' | ||
56 | + let params = { | ||
57 | + list_id: this.data.id | ||
58 | + } | ||
59 | + let header = { | ||
60 | + "XX-Token": wx.getStorageSync('token'), | ||
61 | + 'XX-Device-Type': 'wxapp' | ||
62 | + } | ||
63 | + app.post(url, params, header).then((res) => { | ||
64 | + if (res.data.code == 20000) { | ||
65 | + that.getData() | ||
66 | + } | ||
67 | + }) | ||
68 | + }, | ||
69 | + | ||
70 | + goDetail(e) { | ||
71 | + var id = e.currentTarget.dataset.id | ||
42 | wx.navigateTo({ | 72 | wx.navigateTo({ |
43 | - url: '/pages/index/release/release?id='+id, | 73 | + url: '/pages/index/release/release?id=' + id, |
44 | }) | 74 | }) |
45 | }, | 75 | }, |
46 | 76 | ||
47 | /** | 77 | /** |
48 | * 生命周期函数--监听页面加载 | 78 | * 生命周期函数--监听页面加载 |
49 | */ | 79 | */ |
50 | - onLoad: function (options) { | 80 | + onLoad: function(options) { |
51 | this.getData() | 81 | this.getData() |
52 | }, | 82 | }, |
53 | 83 | ||
54 | /** | 84 | /** |
55 | * 生命周期函数--监听页面初次渲染完成 | 85 | * 生命周期函数--监听页面初次渲染完成 |
56 | */ | 86 | */ |
57 | - onReady: function () { | 87 | + onReady: function() { |
58 | 88 | ||
59 | }, | 89 | }, |
60 | 90 | ||
61 | /** | 91 | /** |
62 | * 生命周期函数--监听页面显示 | 92 | * 生命周期函数--监听页面显示 |
63 | */ | 93 | */ |
64 | - onShow: function () { | 94 | + onShow: function() { |
65 | 95 | ||
66 | }, | 96 | }, |
67 | 97 | ||
68 | /** | 98 | /** |
69 | * 生命周期函数--监听页面隐藏 | 99 | * 生命周期函数--监听页面隐藏 |
70 | */ | 100 | */ |
71 | - onHide: function () { | 101 | + onHide: function() { |
72 | 102 | ||
73 | }, | 103 | }, |
74 | 104 | ||
75 | /** | 105 | /** |
76 | * 生命周期函数--监听页面卸载 | 106 | * 生命周期函数--监听页面卸载 |
77 | */ | 107 | */ |
78 | - onUnload: function () { | 108 | + onUnload: function() { |
79 | 109 | ||
80 | }, | 110 | }, |
81 | 111 | ||
82 | /** | 112 | /** |
83 | * 页面相关事件处理函数--监听用户下拉动作 | 113 | * 页面相关事件处理函数--监听用户下拉动作 |
84 | */ | 114 | */ |
85 | - onPullDownRefresh: function () { | 115 | + onPullDownRefresh: function() { |
86 | 116 | ||
87 | }, | 117 | }, |
88 | 118 | ||
89 | /** | 119 | /** |
90 | * 页面上拉触底事件的处理函数 | 120 | * 页面上拉触底事件的处理函数 |
91 | */ | 121 | */ |
92 | - onReachBottom: function () { | 122 | + onReachBottom: function() { |
93 | 123 | ||
94 | }, | 124 | }, |
95 | 125 | ||
96 | /** | 126 | /** |
97 | * 用户点击右上角分享 | 127 | * 用户点击右上角分享 |
98 | */ | 128 | */ |
99 | - onShareAppMessage: function () { | 129 | + onShareAppMessage: function() { |
100 | 130 | ||
101 | } | 131 | } |
102 | }) | 132 | }) |
@@ -9,8 +9,20 @@ | @@ -9,8 +9,20 @@ | ||
9 | </view> | 9 | </view> |
10 | <view class='list_content'> | 10 | <view class='list_content'> |
11 | <view>{{item.text}}</view> | 11 | <view>{{item.text}}</view> |
12 | - <view class='iconfont icon-shanchu1'></view> | 12 | + <view class='iconfont icon-shanchu1' catchtap='showMask' data-id='{{item.list_id}}'></view> |
13 | </view> | 13 | </view> |
14 | </view> | 14 | </view> |
15 | </view> | 15 | </view> |
16 | </view> | 16 | </view> |
17 | + | ||
18 | + | ||
19 | +<view class='mask_box' wx:if='{{mask_state}}' catchtap='cancleMask'> | ||
20 | + <view class='popup_box'> | ||
21 | + <view class='popup_title'>提示</view> | ||
22 | + <view>确认删除吗?</view> | ||
23 | + <view class='popup_btn_box'> | ||
24 | + <view class='popup_btn' catchtap='cancleMask'>取消</view> | ||
25 | + <view class='popup_btn' bindtap='delInfo'>确定</view> | ||
26 | + </view> | ||
27 | + </view> | ||
28 | +</view> |
@@ -59,28 +59,29 @@ Page({ | @@ -59,28 +59,29 @@ Page({ | ||
59 | }) | 59 | }) |
60 | }, | 60 | }, |
61 | 61 | ||
62 | - //点赞 | ||
63 | likeCharge(e) { | 62 | likeCharge(e) { |
64 | var id = e.currentTarget.dataset.id | 63 | var id = e.currentTarget.dataset.id |
65 | - var index = e.currentTarget.dataset.index | ||
66 | - var list = this.data.list | ||
67 | - var status = '' | ||
68 | - if (list[index].user_support == 1) { | ||
69 | - list[index].user_support = 0 | ||
70 | - status = 2 | ||
71 | - } else { | ||
72 | - list[index].user_support = 1 | ||
73 | - status = 1 | 64 | + var status = e.currentTarget.dataset.status |
65 | + let url = '/home/index/support' | ||
66 | + let params = { | ||
67 | + list_id: id, | ||
68 | + status: status | ||
69 | + } | ||
70 | + let header = { | ||
71 | + "XX-Token": wx.getStorageSync('token'), | ||
72 | + 'XX-Device-Type': 'wxapp' | ||
73 | + } | ||
74 | + app.post(url, params, header).then((res) => { | ||
75 | + if (res.data.code == 20000) { | ||
76 | + this.getData() | ||
74 | } | 77 | } |
75 | - this.setData({ | ||
76 | - list: list | ||
77 | }) | 78 | }) |
78 | - this.like(id, status) | ||
79 | - // this.getData() | ||
80 | }, | 79 | }, |
81 | 80 | ||
82 | - like(id, status) { | ||
83 | - let url = '/home/index/support' | 81 | + collectInfo(e) { |
82 | + var id=e.currentTarget.dataset.id | ||
83 | + var status=e.currentTarget.dataset.status | ||
84 | + let url = '/home/index/collect' | ||
84 | let params = { | 85 | let params = { |
85 | list_id: id, | 86 | list_id: id, |
86 | status: status | 87 | status: status |
@@ -90,6 +91,7 @@ Page({ | @@ -90,6 +91,7 @@ Page({ | ||
90 | 'XX-Device-Type': 'wxapp' | 91 | 'XX-Device-Type': 'wxapp' |
91 | } | 92 | } |
92 | app.post(url, params, header).then((res) => { | 93 | app.post(url, params, header).then((res) => { |
94 | + console.log(res) | ||
93 | if (res.data.code == 20000) { | 95 | if (res.data.code == 20000) { |
94 | this.getData() | 96 | this.getData() |
95 | } | 97 | } |
@@ -158,6 +160,7 @@ Page({ | @@ -158,6 +160,7 @@ Page({ | ||
158 | } | 160 | } |
159 | }) | 161 | }) |
160 | }, | 162 | }, |
163 | + | ||
161 | getData() { | 164 | getData() { |
162 | let url = '/home/index/checkPage' | 165 | let url = '/home/index/checkPage' |
163 | let params = { | 166 | let params = { |
@@ -183,7 +186,7 @@ Page({ | @@ -183,7 +186,7 @@ Page({ | ||
183 | * 生命周期函数--监听页面加载 | 186 | * 生命周期函数--监听页面加载 |
184 | */ | 187 | */ |
185 | onLoad: function(options) { | 188 | onLoad: function(options) { |
186 | - this.getData() | 189 | + // this.getData() |
187 | this.getData2() | 190 | this.getData2() |
188 | }, | 191 | }, |
189 | 192 | ||
@@ -198,7 +201,7 @@ Page({ | @@ -198,7 +201,7 @@ Page({ | ||
198 | * 生命周期函数--监听页面显示 | 201 | * 生命周期函数--监听页面显示 |
199 | */ | 202 | */ |
200 | onShow: function() { | 203 | onShow: function() { |
201 | - | 204 | + this.getData() |
202 | }, | 205 | }, |
203 | 206 | ||
204 | /** | 207 | /** |
@@ -63,16 +63,21 @@ | @@ -63,16 +63,21 @@ | ||
63 | <view class='list_state_box'> | 63 | <view class='list_state_box'> |
64 | <view class='time'>{{item.open_time}}</view> | 64 | <view class='time'>{{item.open_time}}</view> |
65 | <view class='list_icon'> | 65 | <view class='list_icon'> |
66 | - <view bindtap='likeCharge' data-index="{{index}}" data-id='{{item.id}}'> | ||
67 | - <text class='iconfont icon-dianzan2 zan' wx:if="{{item.user_support==1}}"></text> | ||
68 | - <text class='iconfont icon-huida pinglun1' wx:else></text> | 66 | + <view bindtap='likeCharge' data-index="{{index}}" data-id='{{item.list_id}}' data-status='2' wx:if='{{tab_current!=4&&tab_current!=3}}'> |
67 | + <text class='iconfont icon-dianzan2 zan'></text> | ||
68 | + <!-- <text class='iconfont icon-huida pinglun1' wx:else></text> --> | ||
69 | <text class=''>{{item.support}}</text> | 69 | <text class=''>{{item.support}}</text> |
70 | </view> | 70 | </view> |
71 | - <view bindtap='review' data-id='{{item.id}}' data-type='review'> | 71 | + <view bindtap='review' data-id='{{item.list_id}}' data-type='review'> |
72 | <text class='iconfont icon-pinglun pinglun1'></text> | 72 | <text class='iconfont icon-pinglun pinglun1'></text> |
73 | <text>{{item.table}}</text> | 73 | <text>{{item.table}}</text> |
74 | </view> | 74 | </view> |
75 | - <view class='more_box'> | 75 | + <view catchtap='collectInfo' wx:if='{{tab_current==4}}' data-status='2' data-index="{{index}}" data-id='{{item.list_id}}'> |
76 | + <text class='iconfont icon-shoucang2 zan'></text> | ||
77 | + <!-- <text class='iconfont icon-shoucang4 pinglun1' wx:else></text> --> | ||
78 | + <text class=''>{{item.collect}}</text> | ||
79 | + </view> | ||
80 | + <view class='more_box' wx:if='{{tab_current==1 || tab_current==4}}'> | ||
76 | <text class='iconfont icon-gengduo' catchtap='showMore' data-index='{{index}}'></text> | 81 | <text class='iconfont icon-gengduo' catchtap='showMore' data-index='{{index}}'></text> |
77 | <block wx:if='{{state2}}'> | 82 | <block wx:if='{{state2}}'> |
78 | <view class='more_label_box more2' wx:if='{{item.more_state}}'> | 83 | <view class='more_label_box more2' wx:if='{{item.more_state}}'> |
@@ -101,7 +106,7 @@ | @@ -101,7 +106,7 @@ | ||
101 | </view> | 106 | </view> |
102 | </block> | 107 | </block> |
103 | </view> | 108 | </view> |
104 | - <text class='iconfont icon-suo'></text> | 109 | + <text class='iconfont icon-suo' wx:if='{{tab_current==1}}'></text> |
105 | </view> | 110 | </view> |
106 | </view> | 111 | </view> |
107 | </view> | 112 | </view> |
pages/my/userInfo/userInfo.js
0 → 100644
1 | +// pages/my/userInfo/userInfo.js | ||
2 | +const app = getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + id: '', | ||
10 | + look: '', | ||
11 | + look_type: '', | ||
12 | + status: 1, | ||
13 | + page: 1 | ||
14 | + }, | ||
15 | + | ||
16 | + getData() { | ||
17 | + let url = '/home/index/userPage' | ||
18 | + let params = { | ||
19 | + open_user_id: this.data.id, | ||
20 | + look: this.data.look, | ||
21 | + look_type: this.data.look_type | ||
22 | + } | ||
23 | + let header = { | ||
24 | + "XX-Token": wx.getStorageSync('token'), | ||
25 | + 'XX-Device-Type': 'wxapp' | ||
26 | + } | ||
27 | + app.post(url, params, header).then((res) => { | ||
28 | + console.log(res) | ||
29 | + if (res.data.code == 20000) { | ||
30 | + this.setData({ | ||
31 | + avatar: res.data.data.avatar, | ||
32 | + fans_num: res.data.data.fans_num, | ||
33 | + host: res.data.data.host, | ||
34 | + host_num: res.data.data.host_num, | ||
35 | + list: res.data.data.list, | ||
36 | + signature: res.data.data.signature, | ||
37 | + user_nickname: res.data.data.user_nickname | ||
38 | + }) | ||
39 | + } | ||
40 | + }) | ||
41 | + }, | ||
42 | + | ||
43 | + getData2() { | ||
44 | + let url = '/home/index/checkPage' | ||
45 | + let params = { | ||
46 | + open_user_id: this.data.id, | ||
47 | + status: this.data.status, | ||
48 | + page: this.data.page | ||
49 | + } | ||
50 | + let header = { | ||
51 | + "XX-Token": wx.getStorageSync('token'), | ||
52 | + 'XX-Device-Type': 'wxapp' | ||
53 | + } | ||
54 | + app.post(url, params, header).then((res) => { | ||
55 | + console.log(res) | ||
56 | + if (res.data.code == 20000) { | ||
57 | + this.setData({ | ||
58 | + list: res.data.data.list | ||
59 | + }) | ||
60 | + | ||
61 | + } | ||
62 | + }) | ||
63 | + }, | ||
64 | + | ||
65 | + chargeTime(e) { | ||
66 | + var current = e.currentTarget.dataset.current | ||
67 | + var tab_current = this.data.tab_current | ||
68 | + if (current == 1) { | ||
69 | + this.setData({ | ||
70 | + state: !(this.data.state) | ||
71 | + }) | ||
72 | + } | ||
73 | + if (current == 4) { | ||
74 | + this.setData({ | ||
75 | + state2: true | ||
76 | + }) | ||
77 | + } else { | ||
78 | + this.setData({ | ||
79 | + state2: false | ||
80 | + }) | ||
81 | + } | ||
82 | + if (tab_current == current) { | ||
83 | + return false | ||
84 | + } else { | ||
85 | + this.setData({ | ||
86 | + tab_current: current, | ||
87 | + status: current, | ||
88 | + }) | ||
89 | + this.getData2() | ||
90 | + } | ||
91 | + }, | ||
92 | + | ||
93 | + | ||
94 | + //关注接口 | ||
95 | + attentionInfo(e) { | ||
96 | + var id = this.data.id | ||
97 | + var host = this.data.host | ||
98 | + var status = '' | ||
99 | + host == 1 ? status = 2 : status = 1 | ||
100 | + let that = this; | ||
101 | + let url = '/home/index/host'; | ||
102 | + let param = { | ||
103 | + open_user_id: id, | ||
104 | + status: status | ||
105 | + } | ||
106 | + let header = { | ||
107 | + 'XX-Token': wx.getStorageSync('token'), | ||
108 | + 'XX-Device-Type': 'wxapp' | ||
109 | + } | ||
110 | + app.post(url, param, header).then((res) => { | ||
111 | + if (res.data.code == 20000) { | ||
112 | + this.getData() | ||
113 | + } | ||
114 | + }) | ||
115 | + }, | ||
116 | + | ||
117 | + | ||
118 | + goBox() { | ||
119 | + wx.navigateTo({ | ||
120 | + url: '/pages/my/draft/draft', | ||
121 | + }) | ||
122 | + }, | ||
123 | + | ||
124 | + goMessage() { | ||
125 | + wx.navigateTo({ | ||
126 | + url: '/pages/index/message/message', | ||
127 | + }) | ||
128 | + }, | ||
129 | + | ||
130 | + /** | ||
131 | + * 生命周期函数--监听页面加载 | ||
132 | + */ | ||
133 | + onLoad: function(options) { | ||
134 | + this.setData({ | ||
135 | + id: options.id ? options.id : '' | ||
136 | + }) | ||
137 | + if (options.id != '' && options.id != undefined) { | ||
138 | + this.getData() | ||
139 | + } | ||
140 | + }, | ||
141 | + | ||
142 | + /** | ||
143 | + * 生命周期函数--监听页面初次渲染完成 | ||
144 | + */ | ||
145 | + onReady: function() { | ||
146 | + | ||
147 | + }, | ||
148 | + | ||
149 | + /** | ||
150 | + * 生命周期函数--监听页面显示 | ||
151 | + */ | ||
152 | + onShow: function() { | ||
153 | + | ||
154 | + }, | ||
155 | + | ||
156 | + /** | ||
157 | + * 生命周期函数--监听页面隐藏 | ||
158 | + */ | ||
159 | + onHide: function() { | ||
160 | + | ||
161 | + }, | ||
162 | + | ||
163 | + /** | ||
164 | + * 生命周期函数--监听页面卸载 | ||
165 | + */ | ||
166 | + onUnload: function() { | ||
167 | + | ||
168 | + }, | ||
169 | + | ||
170 | + /** | ||
171 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
172 | + */ | ||
173 | + onPullDownRefresh: function() { | ||
174 | + | ||
175 | + }, | ||
176 | + | ||
177 | + /** | ||
178 | + * 页面上拉触底事件的处理函数 | ||
179 | + */ | ||
180 | + onReachBottom: function() { | ||
181 | + | ||
182 | + }, | ||
183 | + | ||
184 | + /** | ||
185 | + * 用户点击右上角分享 | ||
186 | + */ | ||
187 | + onShareAppMessage: function() { | ||
188 | + | ||
189 | + } | ||
190 | +}) |
pages/my/userInfo/userInfo.json
0 → 100644
pages/my/userInfo/userInfo.wxml
0 → 100644
1 | +<view class='banner_box' bindtap='uoloadImg'> | ||
2 | + <view class='banner_info info1'> | ||
3 | + <view class="list_label1 {{host==1?'list_active1':''}}" bindtap='attentionInfo' data-id='{{item.id}}'>{{host==1?'已关注':'添加关注'}}</view> | ||
4 | + </view> | ||
5 | + <view class='head_img'> | ||
6 | + <image class='banner_img' src='{{avatar}}'></image> | ||
7 | + </view> | ||
8 | + <view class='user_name'>{{user_nickname}}</view> | ||
9 | + <view class='user_brief'>{{signature}}</view> | ||
10 | + <view class='banner_info' style='padding:0 50rpx;'> | ||
11 | + <view bindtap='goList' data-status='2'> | ||
12 | + <text class='' style='color:#999;'>粉丝</text> | ||
13 | + <text class='user_num'>{{fans_num}}</text> | ||
14 | + </view> | ||
15 | + <view bindtap='goList' data-status='1'> | ||
16 | + <text class='' style='color:#999;'>关注</text> | ||
17 | + <text class='user_num'>{{host_num}}</text> | ||
18 | + </view> | ||
19 | + </view> | ||
20 | +</view> | ||
21 | + | ||
22 | +<view class='content_box'> | ||
23 | + <view class='list_tab_box'> | ||
24 | + <view class="tab_item {{status==1?'tab_active':''}}" data-current='1' bindtap='chargeTime'> | ||
25 | + <view>从前</view> | ||
26 | + <view class="iconfont icon-caret-up {{status==1?'icon_active':''}}"></view> | ||
27 | + </view> | ||
28 | + <view class="tab_item {{status==4?'tab_active':''}}" data-current='4' bindtap='chargeTime'> | ||
29 | + <view>收藏</view> | ||
30 | + <view class="iconfont icon-caret-up {{status==4?'icon_active':''}}"></view> | ||
31 | + </view> | ||
32 | + </view> | ||
33 | + <view class='item_list' wx:key='' wx:for='{{list}}' wx:key> | ||
34 | + <view class='list_title'>{{item.open_time}}</view> | ||
35 | + <view class='content_item_box' data-id='{{item.id}}' bindtap='messageDetail'> | ||
36 | + <view class='list_content_box'> | ||
37 | + <view class='list_img'> | ||
38 | + <image src='{{item.img}}' wx:key=''></image> | ||
39 | + </view> | ||
40 | + <view class='list_content'> | ||
41 | + <view class='content'> | ||
42 | + <view class='content_info'>{{item.title}}</view> | ||
43 | + <view class='list_label'>{{item.style}}</view> | ||
44 | + </view> | ||
45 | + <view class='list_state_box'> | ||
46 | + <view class='time'>{{item.open_time}}</view> | ||
47 | + <view class='list_icon'> | ||
48 | + <view bindtap='likeCharge' data-index="{{index}}" data-id='{{item.list_id}}' wx:if='{{status!=4}}'> | ||
49 | + <text class='iconfont icon-dianzan2 zan' wx:if="{{item.user_support==1}}"></text> | ||
50 | + <text class='iconfont icon-huida pinglun1' wx:else></text> | ||
51 | + <text class=''>{{item.support}}</text> | ||
52 | + </view> | ||
53 | + <view bindtap='review' data-id='{{item.list_id}}' data-type='review'> | ||
54 | + <text class='iconfont icon-pinglun pinglun1'></text> | ||
55 | + <text>{{item.table}}</text> | ||
56 | + </view> | ||
57 | + <view catchtap='collectInfo' wx:if='{{status==4}}' data-index="{{index}}" data-id='{{item.list_id}}'> | ||
58 | + <text class='iconfont icon-shoucang2 zan'></text> | ||
59 | + <!-- <text class='iconfont icon-shoucang4 pinglun1' wx:else></text> --> | ||
60 | + <text class=''>{{item.collect}}</text> | ||
61 | + </view> | ||
62 | + <view class='more_box' wx:if='{{status==1 || status==4}}'> | ||
63 | + <text class='iconfont icon-gengduo' catchtap='showMore' data-index='{{index}}'></text> | ||
64 | + <block wx:if='{{state2}}'> | ||
65 | + <view class='more_label_box more2' wx:if='{{item.more_state}}'> | ||
66 | + <view class='more_item' bindtap='showPoster'> | ||
67 | + <text>删除</text> | ||
68 | + </view> | ||
69 | + </view> | ||
70 | + </block> | ||
71 | + <block wx:else> | ||
72 | + <view class='more_label_box' wx:if='{{item.more_state}}'> | ||
73 | + <view class='more_item' bindtap='showPoster'> | ||
74 | + <text>删除</text> | ||
75 | + </view> | ||
76 | + <view class='more_line'></view> | ||
77 | + <view class='more_item' catchtap='complain'> | ||
78 | + <text>仅自己可见</text> | ||
79 | + </view> | ||
80 | + <view class='more_line'></view> | ||
81 | + <view class='more_item' catchtap='complain'> | ||
82 | + <text>粉丝可见</text> | ||
83 | + </view> | ||
84 | + <view class='more_line'></view> | ||
85 | + <view class='more_item' catchtap='complain'> | ||
86 | + <text>全部</text> | ||
87 | + </view> | ||
88 | + </view> | ||
89 | + </block> | ||
90 | + </view> | ||
91 | + <text class='iconfont icon-suo' wx:if='{{status==1}}'></text> | ||
92 | + </view> | ||
93 | + </view> | ||
94 | + </view> | ||
95 | + </view> | ||
96 | + </view> | ||
97 | + </view> | ||
98 | +</view> | ||
99 | + | ||
100 | + | ||
101 | +<view class='mask_box' wx:if='{{}}' catchtap='cancleMask'> | ||
102 | + <view class='popup_box'> | ||
103 | + <view class='popup_title'>取消关注</view> | ||
104 | + <view>确认取消关注?</view> | ||
105 | + <view class='popup_btn_box'> | ||
106 | + <view class='popup_btn'>再想想</view> | ||
107 | + <view class='popup_btn'>再想想</view> | ||
108 | + </view> | ||
109 | + </view> | ||
110 | +</view> |
pages/my/userInfo/userInfo.wxss
0 → 100644
1 | +/* pages/my/myindex/myindex.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #f5f6fa; | ||
5 | +} | ||
6 | +.list_label1 { | ||
7 | + width: 112rpx; | ||
8 | + height: 40rpx; | ||
9 | + background: #DCDDE0; | ||
10 | + border-radius: 5rpx; | ||
11 | + font-size: 24rpx; | ||
12 | + color: #fff; | ||
13 | + display: flex; | ||
14 | + align-items: center; | ||
15 | + justify-content: center; | ||
16 | +} | ||
17 | +.list_active1{ | ||
18 | + background: #F7F7F7; | ||
19 | + color: #3568CC; | ||
20 | +} | ||
21 | +.info1{ | ||
22 | + justify-content: flex-end!important; | ||
23 | +} | ||
24 | +.banner_box { | ||
25 | + width: 100%; | ||
26 | + height: 500rpx; | ||
27 | + display: flex; | ||
28 | + align-items: center; | ||
29 | + justify-content: center; | ||
30 | + flex-wrap: wrap; | ||
31 | + padding: 40rpx; | ||
32 | + background: #fff; | ||
33 | + box-sizing: border-box; | ||
34 | +} | ||
35 | + | ||
36 | +.banner_info { | ||
37 | + width: 100%; | ||
38 | + display: flex; | ||
39 | + align-items: center; | ||
40 | + justify-content: space-between; | ||
41 | +} | ||
42 | + | ||
43 | +.user_name text { | ||
44 | + font-size: 32rpx !important; | ||
45 | + color: #282829 !important; | ||
46 | + font-weight: bold; | ||
47 | +} | ||
48 | + | ||
49 | +.user_name { | ||
50 | + width: 100%; | ||
51 | + text-align: center; | ||
52 | +} | ||
53 | + | ||
54 | +.icon-caogaoxiang, .icon-xiaoxi { | ||
55 | + font-size: 28rpx !important; | ||
56 | + color: #282829 !important; | ||
57 | + margin-right: 10rpx; | ||
58 | +} | ||
59 | + | ||
60 | +.user_brief { | ||
61 | + font-size: 28rpx; | ||
62 | + color: #282829; | ||
63 | + text-align: center; | ||
64 | +} | ||
65 | + | ||
66 | +.user_num { | ||
67 | + font-size: 32rpx !important; | ||
68 | + font-weight: bold; | ||
69 | + color: #282829 !important; | ||
70 | + margin-left: 10rpx; | ||
71 | +} | ||
72 | + | ||
73 | +.banner_box text { | ||
74 | + font-size: 28rpx; | ||
75 | + color: #282829; | ||
76 | +} | ||
77 | + | ||
78 | +.banner_img { | ||
79 | + width: 120rpx; | ||
80 | + height: 120rpx; | ||
81 | + border-radius: 50%; | ||
82 | +} | ||
83 | + | ||
84 | +.info_box { | ||
85 | + width: 100%; | ||
86 | + display: flex; | ||
87 | + justify-content: flex-end; | ||
88 | + margin-top: -80rpx; | ||
89 | + padding-right: 38rpx; | ||
90 | +} | ||
91 | + | ||
92 | +.head_img { | ||
93 | + width: 144rpx; | ||
94 | + height: 144rpx; | ||
95 | + border-radius: 50%; | ||
96 | + display: flex; | ||
97 | + align-items: center; | ||
98 | + justify-content: center; | ||
99 | + border: 1rpx solid #000; | ||
100 | + background: #fff; | ||
101 | + padding: 12rpx; | ||
102 | + box-sizing: border-box; | ||
103 | + position: relative; | ||
104 | +} | ||
105 | + | ||
106 | +.head_img image { | ||
107 | + width: 100%; | ||
108 | + height: 100%; | ||
109 | +} | ||
110 | + | ||
111 | +.edit_box { | ||
112 | + width: 38rpx; | ||
113 | + height: 38rpx; | ||
114 | + position: absolute; | ||
115 | + right: 0; | ||
116 | + bottom: 0; | ||
117 | + background: #5a5b5c; | ||
118 | + border-radius: 50%; | ||
119 | + font-size: 28rpx; | ||
120 | + color: #fff; | ||
121 | + display: flex; | ||
122 | + align-items: center; | ||
123 | + justify-content: center; | ||
124 | + border: 1rpx solid #fff; | ||
125 | +} | ||
126 | + | ||
127 | +.icon-bianji { | ||
128 | + font-size: 25rpx; | ||
129 | + color: #fff; | ||
130 | +} | ||
131 | + | ||
132 | +.content_box { | ||
133 | + padding: 30rpx 20rpx; | ||
134 | + box-sizing: border-box; | ||
135 | + margin-top: 20rpx; | ||
136 | + background: #fff; | ||
137 | +} | ||
138 | + | ||
139 | +.no-post { | ||
140 | + color: #999; | ||
141 | + font-size: 26rpx; | ||
142 | + text-align: center; | ||
143 | +} | ||
144 | + | ||
145 | +.item_list { | ||
146 | + width: 100%; | ||
147 | + height: 100%; | ||
148 | + display: flex; | ||
149 | + align-items: flex-start; | ||
150 | + margin-bottom: 20rpx; | ||
151 | +} | ||
152 | + | ||
153 | +.item_list:last-child { | ||
154 | + margin-bottom: 0; | ||
155 | +} | ||
156 | + | ||
157 | +.list_title { | ||
158 | + width: 25%; | ||
159 | + font-size: 32rpx; | ||
160 | + font-weight: bold; | ||
161 | + color: #010000; | ||
162 | +} | ||
163 | + | ||
164 | +.date .day { | ||
165 | + /* width: 50%; */ | ||
166 | + font-size: 50rpx; | ||
167 | + font-weight: bold; | ||
168 | +} | ||
169 | + | ||
170 | +.month { | ||
171 | + /*width: 52%;*/ | ||
172 | + font-size: 24rpx; | ||
173 | + /* font-weight: bold; */ | ||
174 | + color: #010000; | ||
175 | + margin-bottom: -4rpx; | ||
176 | + font-weight: bold; | ||
177 | +} | ||
178 | + | ||
179 | +.date { | ||
180 | + width: 24%; | ||
181 | + display: flex; | ||
182 | + align-items: baseline; | ||
183 | + /* justify-content: flex-end; *//* margin-right: 50rpx; */ | ||
184 | +} | ||
185 | + | ||
186 | +.year-month { | ||
187 | + display: flex; | ||
188 | + flex-direction: column; | ||
189 | + width: 15%; | ||
190 | + margin-right: 20rpx; | ||
191 | + text-align: right; | ||
192 | +} | ||
193 | + | ||
194 | +.year-month .year, .year-month .month { | ||
195 | + width: 100%; | ||
196 | +} | ||
197 | + | ||
198 | +.content_item_box { | ||
199 | + width: 100%; | ||
200 | + height: 100%; | ||
201 | +} | ||
202 | + | ||
203 | +.add-bg { | ||
204 | + background: #f2f2f2; | ||
205 | + padding: 10rpx 10rpx 0 10rpx; | ||
206 | +} | ||
207 | + | ||
208 | +.list_content_box { | ||
209 | + display: flex; | ||
210 | + align-items: flex-start; | ||
211 | + justify-content: space-between; | ||
212 | + margin-bottom: 10rpx; | ||
213 | +} | ||
214 | + | ||
215 | +.list_content { | ||
216 | + width: 65%; | ||
217 | + height: 100%; | ||
218 | + display: flex; | ||
219 | + align-items: center; | ||
220 | + justify-content: space-between; | ||
221 | + flex-wrap: wrap; | ||
222 | +} | ||
223 | + | ||
224 | +.content_info { | ||
225 | + width: 74%; | ||
226 | + height: 85rpx; | ||
227 | + display: -webkit-box; | ||
228 | + -webkit-box-orient: vertical; | ||
229 | + -webkit-line-clamp: 2; | ||
230 | + overflow: hidden; | ||
231 | + text-overflow: ellipsis; | ||
232 | +} | ||
233 | + | ||
234 | +.add-width { | ||
235 | + width: 100%; | ||
236 | +} | ||
237 | + | ||
238 | +.list_img { | ||
239 | + width: 180rpx; | ||
240 | + height: 180rpx; | ||
241 | + margin-right: 14rpx; | ||
242 | + display: flex; | ||
243 | + align-items: center; | ||
244 | + justify-content: center; | ||
245 | + border: 1rpx solid #e5e5e5; | ||
246 | +} | ||
247 | + | ||
248 | +.list_img image { | ||
249 | + width: 100%; | ||
250 | + height: 100%; | ||
251 | +} | ||
252 | + | ||
253 | +.list_tab_box { | ||
254 | + display: flex; | ||
255 | + align-items: center; | ||
256 | + padding: 0 150rpx; | ||
257 | + box-sizing: border-box; | ||
258 | + margin-bottom: 40rpx; | ||
259 | +} | ||
260 | + | ||
261 | +.tab_item { | ||
262 | + width: 50%; | ||
263 | + text-align: center; | ||
264 | + font-size: 30rpx; | ||
265 | + font-weight: bold; | ||
266 | + color: #a5a6a8; | ||
267 | + position: relative; | ||
268 | +} | ||
269 | + | ||
270 | +.tab_active { | ||
271 | + color: #000; | ||
272 | +} | ||
273 | + | ||
274 | +.icon-caret-up { | ||
275 | + color: #fff; | ||
276 | +} | ||
277 | + | ||
278 | +.icon_active { | ||
279 | + color: #000; | ||
280 | +} | ||
281 | + | ||
282 | +.time { | ||
283 | + font-size: 26rpx; | ||
284 | + color: #fff; | ||
285 | +} | ||
286 | + | ||
287 | +.zan, .pinglun1 { | ||
288 | + font-size: 28rpx; | ||
289 | + margin-right: 10rpx; | ||
290 | + margin-left: 32rpx; | ||
291 | +} | ||
292 | + | ||
293 | +.pinglun1 { | ||
294 | + margin-left: 32rpx; | ||
295 | +} | ||
296 | + | ||
297 | +.content { | ||
298 | + width: 100%; | ||
299 | + display: flex; | ||
300 | + align-items: flex-start; | ||
301 | + justify-content: space-between; | ||
302 | + font-size: 28rpx; | ||
303 | + color: #000; | ||
304 | +} | ||
305 | + | ||
306 | +.list_label { | ||
307 | + font-size: 24rpx; | ||
308 | + color: #f80; | ||
309 | + background: #f5f5f5; | ||
310 | + border-radius: 8rpx; | ||
311 | + height: 40rpx; | ||
312 | + padding: 0 20rpx; | ||
313 | + display: flex; | ||
314 | + align-items: center; | ||
315 | + justify-content: center; | ||
316 | + box-sizing: border-box; | ||
317 | +} | ||
318 | + | ||
319 | +.list_icon { | ||
320 | + width: 100%; | ||
321 | + display: flex; | ||
322 | + align-items: center; | ||
323 | + justify-content: flex-end; | ||
324 | +} | ||
325 | + | ||
326 | +.mask_box { | ||
327 | + width: 100%; | ||
328 | + height: 100%; | ||
329 | + position: fixed; | ||
330 | + left: 0; | ||
331 | + top: 0; | ||
332 | + background: rgba(0, 0, 0, 0.2); | ||
333 | + display: flex; | ||
334 | + align-items: center; | ||
335 | + justify-content: center; | ||
336 | +} | ||
337 | + | ||
338 | +.popup_box { | ||
339 | + width: 718rpx; | ||
340 | + height: 380rpx; | ||
341 | + background: rgba(255, 255, 255, 1); | ||
342 | + box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(0, 0, 0, 0.08); | ||
343 | + border-radius: 36rpx; | ||
344 | + text-align: center; | ||
345 | + position: relative; | ||
346 | +} | ||
347 | + | ||
348 | +.popup_title { | ||
349 | + font-size: 36rpx; | ||
350 | + color: #000; | ||
351 | + text-align: center; | ||
352 | + border-bottom: 1rpx solid #ebebeb; | ||
353 | + padding: 20rpx 0; | ||
354 | + margin-bottom: 40rpx; | ||
355 | +} | ||
356 | + | ||
357 | +.popup_btn_box { | ||
358 | + width: 100%; | ||
359 | + display: flex; | ||
360 | + align-items: center; | ||
361 | + justify-content: space-between; | ||
362 | + position: absolute; | ||
363 | + bottom: 40rpx; | ||
364 | + padding: 0 30rpx; | ||
365 | + box-sizing: border-box; | ||
366 | +} | ||
367 | + | ||
368 | +.popup_btn { | ||
369 | + width: 312rpx; | ||
370 | + height: 82rpx; | ||
371 | + background: rgba(247, 247, 247, 1); | ||
372 | + border: 1rpx solid rgba(226, 226, 226, 1); | ||
373 | + border-radius: 40rpx; | ||
374 | + display: flex; | ||
375 | + align-items: center; | ||
376 | + justify-content: center; | ||
377 | + font-size: 30rpx; | ||
378 | + color: #000; | ||
379 | +} | ||
380 | + | ||
381 | +.list_state_box { | ||
382 | + width: 100%; | ||
383 | + display: flex; | ||
384 | + align-items: center; | ||
385 | + justify-content: space-between; | ||
386 | + font-size: 26rpx; | ||
387 | + color: #999; | ||
388 | + margin-top: 70rpx; | ||
389 | +} | ||
390 | + | ||
391 | +.time { | ||
392 | + font-size: 26rpx; | ||
393 | +} | ||
394 | + | ||
395 | +.zan, .pinglun1 { | ||
396 | + font-size: 28rpx; | ||
397 | + margin-right: 10rpx; | ||
398 | + margin-left: 52rpx; | ||
399 | +} | ||
400 | + | ||
401 | +.pinglun1 { | ||
402 | + margin-left: 52rpx; | ||
403 | +} | ||
404 | + | ||
405 | +.list_comment_box { | ||
406 | + background: #ebecf0; | ||
407 | + font-size: 24rpx; | ||
408 | + color: #6b7e91; | ||
409 | + margin-top: 28rpx; | ||
410 | +} | ||
411 | + | ||
412 | +.comment_list { | ||
413 | + border-bottom: 1rpx solid #fff; | ||
414 | + padding: 10rpx 17rpx; | ||
415 | +} | ||
416 | + | ||
417 | +.more_box { | ||
418 | + position: relative; | ||
419 | +} | ||
420 | + | ||
421 | +.more_box view { | ||
422 | + display: inline-block; | ||
423 | +} | ||
424 | + | ||
425 | +.more_label_box { | ||
426 | + display: inline-block; | ||
427 | + position: absolute; | ||
428 | + right: 0; | ||
429 | + bottom: -355rpx; | ||
430 | + width: 250rpx; | ||
431 | + background: #fff; | ||
432 | + box-shadow: 0 8rpx 30rpx 0 #e5e5e5; | ||
433 | + color: #000; | ||
434 | + text-align: center; | ||
435 | + padding: 30rpx 0; | ||
436 | +} | ||
437 | + | ||
438 | +.more { | ||
439 | + margin-right: 10rpx; | ||
440 | +} | ||
441 | + | ||
442 | +.more2 { | ||
443 | + position: absolute; | ||
444 | + right: 0; | ||
445 | + bottom: -105rpx; | ||
446 | +} | ||
447 | + | ||
448 | +.more_item { | ||
449 | + padding: 0 25rpx; | ||
450 | + text-align: center; | ||
451 | +} | ||
452 | + | ||
453 | +.more_line { | ||
454 | + width: 100%; | ||
455 | + height: 3rpx; | ||
456 | + background: #ebebeb; | ||
457 | + margin: 20rpx 0; | ||
458 | +} |
@@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
37 | "list": [] | 37 | "list": [] |
38 | }, | 38 | }, |
39 | "miniprogram": { | 39 | "miniprogram": { |
40 | - "current": 1, | 40 | + "current": 2, |
41 | "list": [ | 41 | "list": [ |
42 | { | 42 | { |
43 | "id": -1, | 43 | "id": -1, |
@@ -50,6 +50,14 @@ | @@ -50,6 +50,14 @@ | ||
50 | "id": -1, | 50 | "id": -1, |
51 | "name": "fabu", | 51 | "name": "fabu", |
52 | "pathName": "pages/index/release/release", | 52 | "pathName": "pages/index/release/release", |
53 | + "query": "", | ||
54 | + "scene": null | ||
55 | + }, | ||
56 | + { | ||
57 | + "id": -1, | ||
58 | + "name": "aa", | ||
59 | + "pathName": "pages/my/userInfo/userInfo", | ||
60 | + "query": "id=2", | ||
53 | "scene": null | 61 | "scene": null |
54 | } | 62 | } |
55 | ] | 63 | ] |
-
请 注册 或 登录 后发表评论