正在显示
31 个修改的文件
包含
716 行增加
和
460 行删除
@@ -55,13 +55,21 @@ App({ | @@ -55,13 +55,21 @@ App({ | ||
55 | resolve(res.data.data); | 55 | resolve(res.data.data); |
56 | } else if (res.data.code == '201') { | 56 | } else if (res.data.code == '201') { |
57 | resolve(res.data); | 57 | resolve(res.data); |
58 | - } else { | 58 | + }else { |
59 | wx.showToast({ | 59 | wx.showToast({ |
60 | title: res.data.msg, | 60 | title: res.data.msg, |
61 | icon:'none', | 61 | icon:'none', |
62 | duration: 1200 | 62 | duration: 1200 |
63 | }) | 63 | }) |
64 | reject(res.data) | 64 | reject(res.data) |
65 | + console.log(res.data.code) | ||
66 | + if (res.data.code == '401'){ | ||
67 | + setTimeout(()=>{ | ||
68 | + wx.navigateTo({ | ||
69 | + url: '/pages/register/register', | ||
70 | + }) | ||
71 | + },1200) | ||
72 | + } | ||
65 | } | 73 | } |
66 | (showLoad || showLoad == undefined) ? wx.hideLoading() : ""; | 74 | (showLoad || showLoad == undefined) ? wx.hideLoading() : ""; |
67 | wx.hideNavigationBarLoading() | 75 | wx.hideNavigationBarLoading() |
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | "pages/server_1/server_1", | 11 | "pages/server_1/server_1", |
12 | "pages/colleagues_2/colleagues_2", | 12 | "pages/colleagues_2/colleagues_2", |
13 | "pages/colleagues/colleagues", | 13 | "pages/colleagues/colleagues", |
14 | - "pages/enterprise_q&a/enterprise_q&a", | 14 | + "pages/enterprise/enterprise", |
15 | "pages/interact/interactPost/interactPost", | 15 | "pages/interact/interactPost/interactPost", |
16 | "pages/interact/interact", | 16 | "pages/interact/interact", |
17 | "pages/my/myAttention/myAttention", | 17 | "pages/my/myAttention/myAttention", |
@@ -19,7 +19,8 @@ | @@ -19,7 +19,8 @@ | ||
19 | "pages/matrix/company/company", | 19 | "pages/matrix/company/company", |
20 | "pages/attract/attract", | 20 | "pages/attract/attract", |
21 | "pages/attract/detail/detail", | 21 | "pages/attract/detail/detail", |
22 | - "pages/register/register" | 22 | + "pages/register/register", |
23 | + "pages/question/question" | ||
23 | ], | 24 | ], |
24 | "tabBar": { | 25 | "tabBar": { |
25 | "list": [ | 26 | "list": [ |
@@ -36,7 +37,7 @@ | @@ -36,7 +37,7 @@ | ||
36 | "selectedIconPath": "images/02_nav_fill@2x.png" | 37 | "selectedIconPath": "images/02_nav_fill@2x.png" |
37 | }, | 38 | }, |
38 | { | 39 | { |
39 | - "pagePath": "pages/enterprise_q&a/enterprise_q&a", | 40 | + "pagePath": "pages/enterprise/enterprise", |
40 | "text": "政企互动", | 41 | "text": "政企互动", |
41 | "iconPath": "/images/03_nav@2x.png", | 42 | "iconPath": "/images/03_nav@2x.png", |
42 | "selectedIconPath": "images/03_nav_fill@2x.png" | 43 | "selectedIconPath": "images/03_nav_fill@2x.png" |
pages/enterprise/enterprise.js
0 → 100644
1 | +let t = getApp(); | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + navbar: [{ | ||
9 | + name: '企业咨询' | ||
10 | + }, | ||
11 | + { | ||
12 | + name: '企话吧' | ||
13 | + } | ||
14 | + ], | ||
15 | + zixunList: [], | ||
16 | + currentTab: 0, | ||
17 | + page: 1 , | ||
18 | + ifData: !1, | ||
19 | + noMore: !1, | ||
20 | + show:!0 | ||
21 | + }, | ||
22 | + | ||
23 | + /** | ||
24 | + * 生命周期函数--监听页面加载 | ||
25 | + */ | ||
26 | + onLoad: function (options) { | ||
27 | + let c = this;wx.getSystemInfo({ | ||
28 | + success: function(res) { | ||
29 | + c.setData({ | ||
30 | + winHeight:res.windowHeight | ||
31 | + }) | ||
32 | + }, | ||
33 | + }) | ||
34 | + }, | ||
35 | + getzixun(){ | ||
36 | + let url = '/api/interact/getQuestionList',d = this,params = { | ||
37 | + header:true, | ||
38 | + page: d.data.page | ||
39 | + }; | ||
40 | + t.post(url,params,false).then((r)=>{ | ||
41 | + let list = d.data.zixunList.concat(r.data); | ||
42 | + d.setData({ | ||
43 | + zixunList: list | ||
44 | + }) | ||
45 | + list.length==0?d.setData({ | ||
46 | + ifData:!0, | ||
47 | + }):(r.data.length<r.per_page?d.setData({ | ||
48 | + noMore:!0 | ||
49 | + }):"") | ||
50 | + setTimeout(()=>{ | ||
51 | + d.setData({ | ||
52 | + show: !1 | ||
53 | + },1200) | ||
54 | + }) | ||
55 | + }) | ||
56 | + }, | ||
57 | + askQuestion(){ | ||
58 | + wx.navigateTo({ | ||
59 | + url: '/pages/question/question', | ||
60 | + }) | ||
61 | + }, | ||
62 | + checkstatus() { | ||
63 | + let b = this, url = '/api/user/getAuthStatus', params = { | ||
64 | + header: true | ||
65 | + }; | ||
66 | + t.post(url, params).then((r) => { | ||
67 | + b.setData({ | ||
68 | + auth:r | ||
69 | + }); | ||
70 | + r == 2 ? b.getzixun():''; | ||
71 | + }) | ||
72 | + }, | ||
73 | + renzheng(e){ | ||
74 | + let type = e.currentTarget.dataset.type; | ||
75 | + type==1?wx.showToast({ | ||
76 | + title: '认证审批中请耐心等待', | ||
77 | + icon:'none', | ||
78 | + duration: 1200 | ||
79 | + }):wx.navigateTo({ | ||
80 | + url: '/pages/my/approve/approve', | ||
81 | + }) | ||
82 | + }, | ||
83 | + navbarTap: function (e) { | ||
84 | + let that = this; | ||
85 | + this.setData({ | ||
86 | + currentTab: e.currentTarget.dataset.idx, | ||
87 | + }) | ||
88 | + }, | ||
89 | + jump(){ | ||
90 | + wx.navigateTo({ | ||
91 | + url: '', | ||
92 | + }) | ||
93 | + | ||
94 | + wx.switchTab({ | ||
95 | + url: '', | ||
96 | + }) | ||
97 | + }, | ||
98 | + | ||
99 | + /** | ||
100 | + * 生命周期函数--监听页面初次渲染完成 | ||
101 | + */ | ||
102 | + onReady: function () { | ||
103 | + | ||
104 | + }, | ||
105 | + | ||
106 | + /** | ||
107 | + * 生命周期函数--监听页面显示 | ||
108 | + */ | ||
109 | + onShow: function () { | ||
110 | + this.setData({ | ||
111 | + zixunList:[] | ||
112 | + }) | ||
113 | + this.checkstatus() | ||
114 | + }, | ||
115 | + | ||
116 | + /** | ||
117 | + * 生命周期函数--监听页面隐藏 | ||
118 | + */ | ||
119 | + onHide: function () { | ||
120 | + | ||
121 | + }, | ||
122 | + | ||
123 | + /** | ||
124 | + * 生命周期函数--监听页面卸载 | ||
125 | + */ | ||
126 | + onUnload: function () { | ||
127 | + | ||
128 | + }, | ||
129 | + | ||
130 | + /** | ||
131 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
132 | + */ | ||
133 | + onPullDownRefresh: function () { | ||
134 | + | ||
135 | + }, | ||
136 | + | ||
137 | + /** | ||
138 | + * 页面上拉触底事件的处理函数 | ||
139 | + */ | ||
140 | + onReachBottom: function () { | ||
141 | + | ||
142 | + }, | ||
143 | + | ||
144 | + /** | ||
145 | + * 用户点击右上角分享 | ||
146 | + */ | ||
147 | + onShareAppMessage: function () { | ||
148 | + | ||
149 | + } | ||
150 | +}) |
1 | { | 1 | { |
2 | "usingComponents": {}, | 2 | "usingComponents": {}, |
3 | - "navigationBarTitleText": "企业问答", | 3 | + "navigationBarTitleText": "政企服务平台", |
4 | "navigationBarBackgroundColor": "#169BD5", | 4 | "navigationBarBackgroundColor": "#169BD5", |
5 | "navigationBarTextStyle": "white" | 5 | "navigationBarTextStyle": "white" |
6 | } | 6 | } |
1 | +<scroll-view wx:if='{{auth=="2"}}' style='height:{{winHeight}}px' scroll-y="true"> | ||
1 | 2 | ||
2 | -<view class='container'> | ||
3 | - | ||
4 | - | ||
5 | - <!-- <view class='top'> | ||
6 | - <view class='top_left'>企业问答</view> | ||
7 | - <view class='top_right'>企话吧</view> | ||
8 | - </view> --> | ||
9 | - | ||
10 | - <view class="nav mainindex_nav top"> | ||
11 | -<view wx:for="{{navbar}}" data-idx="{{index}}" class="nav_item {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}} | ||
12 | - </view> | ||
13 | - </view> | ||
14 | - | ||
15 | - <!-- 企业问答 --> | ||
16 | - <view class='box_left' wx:if="{{currentTab==0}}"> | ||
17 | - <view class='mid' bindtap="jump"> | ||
18 | - <view class='mid_item'> | ||
19 | - <!-- 左边感叹号 --> | ||
20 | - <view class='mid_item_left'> | ||
21 | - <image src='../../images/tishi@3x.png'></image> | ||
22 | - </view> | ||
23 | - <!-- 右边标题 --> | ||
24 | - <view class='mid_item_right'> | ||
25 | - <view class='mid_item_right_top'> | ||
26 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
27 | - <view class='mid_label'> | ||
28 | - <image src='../../images/huifujishi@3x.png'></image> | ||
29 | - </view> | ||
30 | - </view> | ||
31 | - <view class='mid_item_right_bottom'> | ||
32 | - 发布时间: 07-21 21:00 | ||
33 | - </view> | ||
34 | - <!-- 回复 --> | ||
35 | - <view class='response_box'> | ||
36 | - <!-- 回复内容 --> | ||
37 | - <view class='mid_item_right_response'> | ||
38 | - <text class='color_blue'>回复:</text> | ||
39 | - 贵单位的问题已反应到相关单位,具体实施方案将在7个工作日内反馈 | ||
40 | - | ||
41 | - </view> | ||
42 | - <!-- 回复时间 --> | ||
43 | - <view class='mid_item_right_bottom'> | ||
44 | - 回复时间:07-21 21:00 | ||
45 | - </view> | ||
46 | - </view> | ||
47 | - | 3 | + <view class="none-box" hidden="{{!ifData}}"> |
4 | + <view>暂无相关咨询</view> | ||
48 | </view> | 5 | </view> |
49 | - </view> | ||
50 | - | ||
51 | - <view class='mid_item'> | ||
52 | - <!-- 左边感叹号 --> | 6 | + <view class='box_left' wx:if="{{currentTab==0}}" > |
7 | + <view class='mid' bindtap="jump" hidden='{{ifData}}'> | ||
8 | + <view class='mid_item' wx:for='{{zixunList}}' wx:key=''> | ||
53 | <view class='mid_item_left'> | 9 | <view class='mid_item_left'> |
54 | <image src='../../images/tishi@3x.png'></image> | 10 | <image src='../../images/tishi@3x.png'></image> |
55 | </view> | 11 | </view> |
56 | - <!-- 右边标题 --> | ||
57 | <view class='mid_item_right'> | 12 | <view class='mid_item_right'> |
58 | <view class='mid_item_right_top'> | 13 | <view class='mid_item_right_top'> |
59 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
60 | - <view class='mid_label'> | ||
61 | - <image src='../../images/huifuyiban@3x.png'></image> | 14 | + {{item.question}}? |
15 | + <view class='mid_label' hidden='{{item.show}}'> | ||
16 | + <image src='../../images/huifujishi@3x.png' wx:if="{{item.state==1}}"></image> | ||
17 | + <image src='../../images/huifuyiban@3x.png' wx:elif='{{item.state==2}}'></image> | ||
18 | + <image src='../../images/huifuzhihuan @3x.png' wx:elif='{{item.state==3}}'></image> | ||
62 | </view> | 19 | </view> |
63 | </view> | 20 | </view> |
64 | <view class='mid_item_right_bottom'> | 21 | <view class='mid_item_right_bottom'> |
65 | - 发布时间:07-21 21:00 | 22 | + 发布时间: {{item.create_time_text}} |
66 | </view> | 23 | </view> |
67 | <!-- 回复 --> | 24 | <!-- 回复 --> |
68 | - <view class='response_box'> | 25 | + <view class='response_box' hidden='{{item.state==0}}'> |
69 | <!-- 回复内容 --> | 26 | <!-- 回复内容 --> |
70 | <view class='mid_item_right_response'> | 27 | <view class='mid_item_right_response'> |
71 | - <text class='color_blue'>回复:</text> | ||
72 | - 贵单位的问题已反应到相关单位,具体实施方案将在7个工作日内反馈 | ||
73 | - | 28 | + <text class='color_blue'>回复:</text> {{item.reply}} |
74 | </view> | 29 | </view> |
75 | <!-- 回复时间 --> | 30 | <!-- 回复时间 --> |
76 | <view class='mid_item_right_bottom'> | 31 | <view class='mid_item_right_bottom'> |
77 | - 回复时间:07-21 21:00 | ||
78 | - </view> | ||
79 | - </view> | ||
80 | - | ||
81 | - </view> | ||
82 | - </view> | ||
83 | - | ||
84 | - <view class='mid_item'> | ||
85 | - <!-- 左边感叹号 --> | ||
86 | - <view class='mid_item_left'> | ||
87 | - <image src='../../images/tishi@3x.png'></image> | 32 | + 回复时间:{{item.reply_time_text}} |
88 | </view> | 33 | </view> |
89 | - <!-- 右边标题 --> | ||
90 | - <view class='mid_item_right'> | ||
91 | - <view class='mid_item_right_top'> | ||
92 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
93 | - <view class='mid_label'> | ||
94 | - <image src='../../images/huifuzhihuan @3x.png'></image> | ||
95 | </view> | 34 | </view> |
96 | - </view> | ||
97 | - <view class='mid_item_right_bottom'> | ||
98 | - 发布时间:07-21 21:00 | ||
99 | - </view> | ||
100 | - | ||
101 | - <!-- 等待回复 --> | ||
102 | - <view class='waiting_response'> | 35 | + <view class='waiting_response' hidden='{{item.state!=0}}'> |
103 | 等待回复中..... | 36 | 等待回复中..... |
104 | </view> | 37 | </view> |
105 | </view> | 38 | </view> |
106 | </view> | 39 | </view> |
107 | - | ||
108 | </view> | 40 | </view> |
41 | + | ||
109 | <!-- 提问 --> | 42 | <!-- 提问 --> |
110 | - <view class='bottom'> | ||
111 | - <view class='bottom_question'> | 43 | + <view class='bottom' hidden='{{show}}'> |
44 | + <view class='bottom_question' bindtap='askQuestion'> | ||
112 | 提问 | 45 | 提问 |
113 | </view> | 46 | </view> |
114 | </view> | 47 | </view> |
115 | </view> | 48 | </view> |
116 | - | ||
117 | <!-- 企话吧 --> | 49 | <!-- 企话吧 --> |
118 | <view class='box_right' wx:if="{{currentTab==1}}"> | 50 | <view class='box_right' wx:if="{{currentTab==1}}"> |
119 | <view class='mid'> | 51 | <view class='mid'> |
@@ -305,11 +237,25 @@ | @@ -305,11 +237,25 @@ | ||
305 | </view> | 237 | </view> |
306 | <!-- 回复框 --> | 238 | <!-- 回复框 --> |
307 | <view class='mid_item_bottom'> | 239 | <view class='mid_item_bottom'> |
308 | - <view><span class='color_blue'>宏中科技</span>:非常实用!!!</view> | ||
309 | - <view><span class='color_blue'>宏中科技</span>:非常实用!!!</view> | ||
310 | - <view><span class='color_blue'>查看更多>></span></view> | 240 | + <view> |
241 | + <span class='color_blue'>宏中科技</span>:非常实用!!!</view> | ||
242 | + <view> | ||
243 | + <span class='color_blue'>宏中科技</span>:非常实用!!!</view> | ||
244 | + <view> | ||
245 | + <span class='color_blue'>查看更多>></span> | ||
246 | + </view> | ||
311 | </view> | 247 | </view> |
312 | </view> | 248 | </view> |
313 | </view> | 249 | </view> |
314 | </view> | 250 | </view> |
251 | +</scroll-view> | ||
252 | + | ||
253 | + | ||
254 | +<!-- 没有权限 --> | ||
255 | +<view class='null_data_box' wx:else> | ||
256 | + <view class='data_box'> | ||
257 | + <image src='/images/weirenzheng@2x.png'></image> | ||
258 | + <view class='list_btn' bindtap='open_btn' data-type='auth' bindtap='renzheng'>{{auth=='0'?'开通企业认证 >':auth=='1'?'企业认证中 请等待':""}}</view> | ||
259 | + <view wx:if='{{auth=="0"}}'> ~~ 企业认证后开启更多服务 ~~</view> | ||
260 | + </view> | ||
315 | </view> | 261 | </view> |
1 | + | ||
1 | page{ | 2 | page{ |
2 | background: #F7F7F7; | 3 | background: #F7F7F7; |
3 | } | 4 | } |
@@ -10,7 +11,6 @@ page{ | @@ -10,7 +11,6 @@ page{ | ||
10 | .nav_item{ | 11 | .nav_item{ |
11 | width: 169rpx; | 12 | width: 169rpx; |
12 | text-align: center | 13 | text-align: center |
13 | - | ||
14 | } | 14 | } |
15 | .active{ | 15 | .active{ |
16 | color: #169BD5; | 16 | color: #169BD5; |
@@ -66,9 +66,9 @@ page{ | @@ -66,9 +66,9 @@ page{ | ||
66 | width: 686rpx; | 66 | width: 686rpx; |
67 | margin: 0 auto; | 67 | margin: 0 auto; |
68 | display: flex; | 68 | display: flex; |
69 | - flex-flow: column; | ||
70 | justify-content: space-between; | 69 | justify-content: space-between; |
71 | border-bottom: 2px solid #f5f5f5; | 70 | border-bottom: 2px solid #f5f5f5; |
71 | + box-sizing: border-box; | ||
72 | } | 72 | } |
73 | .mid_item_left{ | 73 | .mid_item_left{ |
74 | width:42rpx; | 74 | width:42rpx; |
@@ -138,21 +138,20 @@ page{ | @@ -138,21 +138,20 @@ page{ | ||
138 | display: flex; | 138 | display: flex; |
139 | position: absolute; | 139 | position: absolute; |
140 | top: 0; | 140 | top: 0; |
141 | - right: -30rpx; | 141 | + right: -20rpx; |
142 | } | 142 | } |
143 | .mid_label image{ | 143 | .mid_label image{ |
144 | width: 100%; | 144 | width: 100%; |
145 | height: 100%; | 145 | height: 100%; |
146 | } | 146 | } |
147 | .bottom{ | 147 | .bottom{ |
148 | - | 148 | + margin-top: 150rpx; |
149 | width: 100%; | 149 | width: 100%; |
150 | - background: #fff; | 150 | + /* background: #fff; */ |
151 | display: flex; | 151 | display: flex; |
152 | justify-content: center; | 152 | justify-content: center; |
153 | } | 153 | } |
154 | .bottom_question{ | 154 | .bottom_question{ |
155 | - margin: 180rpx 0; | ||
156 | width:304rpx; | 155 | width:304rpx; |
157 | height:96rpx; | 156 | height:96rpx; |
158 | line-height: 96rpx; | 157 | line-height: 96rpx; |
@@ -310,9 +309,9 @@ page{ | @@ -310,9 +309,9 @@ page{ | ||
310 | .mid_item_bottom view:last-child{ | 309 | .mid_item_bottom view:last-child{ |
311 | margin-top: 10rpx; | 310 | margin-top: 10rpx; |
312 | } | 311 | } |
313 | -.box_left{ | 312 | +/* .box_left{ |
314 | margin-top: 96rpx; | 313 | margin-top: 96rpx; |
315 | -} | 314 | +} */ |
316 | .box_right{ | 315 | .box_right{ |
317 | margin-top: 96rpx; | 316 | margin-top: 96rpx; |
318 | } | 317 | } |
@@ -332,3 +331,45 @@ page{ | @@ -332,3 +331,45 @@ page{ | ||
332 | width: 100%; | 331 | width: 100%; |
333 | height: 100%; | 332 | height: 100%; |
334 | } | 333 | } |
334 | +/* */ | ||
335 | + | ||
336 | +.null_data_box { | ||
337 | + width: 100%; | ||
338 | + height: 100%; | ||
339 | + font-size: 22rpx; | ||
340 | + color: #ccc; | ||
341 | + text-align: center; | ||
342 | + position: fixed; | ||
343 | + top: 00rpx; | ||
344 | + left: 0; | ||
345 | + display: flex; | ||
346 | + align-items: center; | ||
347 | + justify-content: center; | ||
348 | + flex-wrap: wrap; | ||
349 | +} | ||
350 | + | ||
351 | +.null_data_box image { | ||
352 | + width: 315rpx; | ||
353 | + height: 227rpx; | ||
354 | + margin: 0 auto; | ||
355 | +} | ||
356 | + | ||
357 | +.data_box { | ||
358 | + width: 100%; | ||
359 | +} | ||
360 | + | ||
361 | +.list_btn { | ||
362 | + width: 352rpx; | ||
363 | + height: 80rpx; | ||
364 | + background: linear-gradient(319deg, rgba(22, 155, 213, 1) 0%, rgba(0, 211, 255, 1) 100%); | ||
365 | + border-radius: 8rpx; | ||
366 | + font-size: 30rpx; | ||
367 | + color: #fff; | ||
368 | + display: flex; | ||
369 | + align-items: center; | ||
370 | + justify-content: center; | ||
371 | + margin: 40rpx auto; | ||
372 | +} | ||
373 | +.none-box{ | ||
374 | + position: relative | ||
375 | +} |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <view class='banner_box'> | 3 | <view class='banner_box'> |
4 | <view class='type_box' bindtap="showPicker"> | 4 | <view class='type_box' bindtap="showPicker"> |
5 | <view> | 5 | <view> |
6 | - <input placeholder='输入主题...' placeholder-class='input_size' value='{{title}}' bindinput='setTitle'></input> | 6 | + <input placeholder='输入主题...' placeholder-class='input_size' data-type='title' value='{{title}}' bindinput='setTitle'></input> |
7 | </view> | 7 | </view> |
8 | </view> | 8 | </view> |
9 | <view class='textarea_box'> | 9 | <view class='textarea_box'> |
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | <view class='compony_info'> | 7 | <view class='compony_info'> |
8 | <view class='compony_title'> | 8 | <view class='compony_title'> |
9 | <view class='compony_left'>{{detailInfo.name}}</view> | 9 | <view class='compony_left'>{{detailInfo.name}}</view> |
10 | - <view class='focus_button cancle_focus' wx:if='{{detailInfo.focus}}' bindtap='canclefocus'>已关注</view> | 10 | + <view class='focus_button cancle_focus' wx:if='{{detailInfo.isLikes}}' bindtap='canclefocus'>已关注</view> |
11 | <view class='focus_button' bindtap='onfocus' wx:else>+ 关注</view> | 11 | <view class='focus_button' bindtap='onfocus' wx:else>+ 关注</view> |
12 | 12 | ||
13 | </view> | 13 | </view> |
@@ -40,7 +40,7 @@ | @@ -40,7 +40,7 @@ | ||
40 | <view class='company_desc {{open?"openContent":""}}'> | 40 | <view class='company_desc {{open?"openContent":""}}'> |
41 | 公司简介:{{detailInfo.content}} | 41 | 公司简介:{{detailInfo.content}} |
42 | </view> | 42 | </view> |
43 | - <view class='open' bindtap='openText'> | 43 | + <view class='open {{!open?"close":""}}' bindtap='openText'> |
44 | {{open?"收起":'展开'}} | 44 | {{open?"收起":'展开'}} |
45 | </view> | 45 | </view> |
46 | </view> | 46 | </view> |
@@ -87,8 +87,31 @@ page{ | @@ -87,8 +87,31 @@ page{ | ||
87 | display: flex; | 87 | display: flex; |
88 | align-items: center; | 88 | align-items: center; |
89 | justify-content: center; | 89 | justify-content: center; |
90 | + position: relative; | ||
91 | + width:100rpx; | ||
92 | + margin: 0 auto; | ||
93 | +} | ||
94 | +.open:after{ | ||
95 | + content: ""; | ||
96 | + position: absolute; | ||
97 | + width: 14rpx; | ||
98 | + height: 14rpx; | ||
99 | + border-right: 1px solid; border-bottom: 1px solid; | ||
100 | + transform: rotate(225deg); | ||
101 | + top: 46rpx; | ||
102 | + right: 0; | ||
103 | + transition: 1s; | ||
104 | +} | ||
105 | +.open.close:after{ | ||
106 | + content: ""; | ||
107 | + position: absolute; | ||
108 | + width: 14rpx; | ||
109 | + height: 14rpx; | ||
110 | + border-right: 1px solid; border-bottom: 1px solid; | ||
111 | + transform: rotate(45deg); | ||
112 | + top: 36rpx; | ||
113 | + right: 0; | ||
90 | } | 114 | } |
91 | - | ||
92 | .tuijian_content{ | 115 | .tuijian_content{ |
93 | height: 174rpx; | 116 | height: 174rpx; |
94 | display: flex; | 117 | display: flex; |
@@ -28,7 +28,8 @@ Page({ | @@ -28,7 +28,8 @@ Page({ | ||
28 | this.setData({ | 28 | this.setData({ |
29 | index:e.detail.value, | 29 | index:e.detail.value, |
30 | park:this.data.areaList[e.detail.value].id, | 30 | park:this.data.areaList[e.detail.value].id, |
31 | - page:1 | 31 | + page:1, |
32 | + companyList:[], | ||
32 | }) | 33 | }) |
33 | this.getCompanyList(this.data.category_id,this.data.areaList[e.detail.value].id) | 34 | this.getCompanyList(this.data.category_id,this.data.areaList[e.detail.value].id) |
34 | }, | 35 | }, |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <!-- 园区选择 --> | 3 | <!-- 园区选择 --> |
4 | <view class='areasChoose'> | 4 | <view class='areasChoose'> |
5 | <picker class='areaName' mode='selector' range='{{areaList}}' value="{{index}}" range-key="name" bindchange='changeAreas'> | 5 | <picker class='areaName' mode='selector' range='{{areaList}}' value="{{index}}" range-key="name" bindchange='changeAreas'> |
6 | - <view>{{areaList[index].name}}</view> | 6 | + <view class='chooseArea {{choose?"choose":""}}'>园区选择:{{areaList[index].name}}</view> |
7 | </picker> | 7 | </picker> |
8 | <view class='iconfont icon-gengduo1' bindtap='changeShow'></view> | 8 | <view class='iconfont icon-gengduo1' bindtap='changeShow'></view> |
9 | </view> | 9 | </view> |
@@ -12,7 +12,6 @@ | @@ -12,7 +12,6 @@ | ||
12 | <block wx:for="{{typeList}}" wx:key=''> | 12 | <block wx:for="{{typeList}}" wx:key=''> |
13 | <view class="tab_item {{current == item.id?'active':''}}" data-current='{{item.id}}' bindtap='tabCharge' data-index='{{index}}'>{{item.name}}</view> | 13 | <view class="tab_item {{current == item.id?'active':''}}" data-current='{{item.id}}' bindtap='tabCharge' data-index='{{index}}'>{{item.name}}</view> |
14 | </block> | 14 | </block> |
15 | - | ||
16 | </scroll-view> | 15 | </scroll-view> |
17 | </view> | 16 | </view> |
18 | <scroll-view bindscroll="scroll" bindscrolltolower="getMore" class="scroll-content" hidden="{{!ifData}}" scrollTop="{{scrollTop}}" scrollY="true" style="height:{{scrollHeight-89}}px;"> | 17 | <scroll-view bindscroll="scroll" bindscrolltolower="getMore" class="scroll-content" hidden="{{!ifData}}" scrollTop="{{scrollTop}}" scrollY="true" style="height:{{scrollHeight-89}}px;"> |
@@ -215,3 +215,28 @@ page { | @@ -215,3 +215,28 @@ page { | ||
215 | top: 350rpx; | 215 | top: 350rpx; |
216 | text-align: center; | 216 | text-align: center; |
217 | } | 217 | } |
218 | +.chooseArea{ | ||
219 | + position: relative; | ||
220 | +} | ||
221 | +.chooseArea:after{ | ||
222 | + content: ""; | ||
223 | + position: absolute; | ||
224 | + width: 14rpx; | ||
225 | + height: 14rpx; | ||
226 | + border-right: 1px solid; border-bottom: 1px solid; | ||
227 | + transform: rotate(45deg); | ||
228 | + top: 10rpx; | ||
229 | + right: -30rpx; | ||
230 | + transition: 1s; | ||
231 | +} | ||
232 | +.chooseArea.choose:after{ | ||
233 | + content: ""; | ||
234 | + position: absolute; | ||
235 | + width: 14rpx; | ||
236 | + height: 14rpx; | ||
237 | + border-right: 1px solid; border-bottom: 1px solid; | ||
238 | + transform: rotate(225deg); | ||
239 | + top: 10rpx; | ||
240 | + right: -30rpx; | ||
241 | + transition: 1s; | ||
242 | +} |
@@ -36,28 +36,25 @@ Page({ | @@ -36,28 +36,25 @@ Page({ | ||
36 | seach: true | 36 | seach: true |
37 | }) | 37 | }) |
38 | }, | 38 | }, |
39 | + // 取消搜索 | ||
40 | + cancle(){ | ||
41 | + this.setData({ | ||
42 | + seach:false | ||
43 | + }) | ||
44 | + }, | ||
39 | 45 | ||
40 | // 搜索公司名称 | 46 | // 搜索公司名称 |
41 | seachFun: function() { | 47 | seachFun: function() { |
42 | - let url = '/api/Company/index', b = this; | ||
43 | - if(b.data.keyword == "") { | ||
44 | - wx.showToast({ | ||
45 | - title: '请输入要搜索的公司名称', | ||
46 | - icon: "none", | ||
47 | - duration: 1300 | ||
48 | - }) | ||
49 | - return false; | ||
50 | - }else { | ||
51 | - let params = { | 48 | + let url = '/api/Company/index', b = this,params = { |
52 | keyword: b.data.keyword | 49 | keyword: b.data.keyword |
53 | } | 50 | } |
54 | - app.post(url, params).then((res) => { | ||
55 | - // console.log(res); | 51 | + b.data.keyword ? (app.post(url, params, false).then((res) => { |
56 | b.setData({ | 52 | b.setData({ |
57 | companyList: res.data | 53 | companyList: res.data |
58 | }) | 54 | }) |
55 | + })):b.setData({ | ||
56 | + companyList: [] | ||
59 | }) | 57 | }) |
60 | - } | ||
61 | }, | 58 | }, |
62 | 59 | ||
63 | // 公司名称同步到data | 60 | // 公司名称同步到data |
@@ -122,11 +119,6 @@ Page({ | @@ -122,11 +119,6 @@ Page({ | ||
122 | // 上传图片至后台 | 119 | // 上传图片至后台 |
123 | uploadAllfile(filePaths, successUp, failUp, i, length) { | 120 | uploadAllfile(filePaths, successUp, failUp, i, length) { |
124 | let that = this; | 121 | let that = this; |
125 | - // console.log(filePaths) | ||
126 | - // console.log(successUp) | ||
127 | - // console.log(failUp) | ||
128 | - // console.log(i) | ||
129 | - // console.log(length) | ||
130 | let url = 'http://lqz.w.brotop.cn/api/common/upload'; | 122 | let url = 'http://lqz.w.brotop.cn/api/common/upload'; |
131 | let headers = { | 123 | let headers = { |
132 | "token": wx.getStorageSync("token"), | 124 | "token": wx.getStorageSync("token"), |
@@ -198,11 +190,32 @@ Page({ | @@ -198,11 +190,32 @@ Page({ | ||
198 | // 上传认证 | 190 | // 上传认证 |
199 | subFun() { | 191 | subFun() { |
200 | let b = this; | 192 | let b = this; |
193 | + let reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/ | ||
201 | let url = "/api/user/setCertificationInfo"; | 194 | let url = "/api/user/setCertificationInfo"; |
202 | - // console.log(b.data.proData.images.length) | ||
203 | - if(b.data.companyName == "" || b.data.proData.name == "" || b.data.proData.mobile == "" || b.data.proData.images.length == 0) { | 195 | + if(b.data.companyName == "") { |
196 | + wx.showToast({ | ||
197 | + title: '请选择公司', | ||
198 | + icon: "none", | ||
199 | + duration: 1300 | ||
200 | + }) | ||
201 | + return false; | ||
202 | + } else if (b.data.proData.name == ""){ | ||
203 | + wx.showToast({ | ||
204 | + title: '请输入姓名', | ||
205 | + icon: "none", | ||
206 | + duration: 1300 | ||
207 | + }) | ||
208 | + return false; | ||
209 | + } else if (!reg.test(b.data.proData.mobile)){ | ||
210 | + wx.showToast({ | ||
211 | + title: '请输入正确的手机号码', | ||
212 | + icon: "none", | ||
213 | + duration: 1300 | ||
214 | + }) | ||
215 | + return false; | ||
216 | + } else if (b.data.proData.images.length == 0){ | ||
204 | wx.showToast({ | 217 | wx.showToast({ |
205 | - title: '请输入必填项', | 218 | + title: '请上传营业执照', |
206 | icon: "none", | 219 | icon: "none", |
207 | duration: 1300 | 220 | duration: 1300 |
208 | }) | 221 | }) |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <view class="item_list" bindtap='companyFun'> | 3 | <view class="item_list" bindtap='companyFun'> |
4 | <view class="list_title">公司名称</view> | 4 | <view class="list_title">公司名称</view> |
5 | <view class="list_content"> | 5 | <view class="list_content"> |
6 | - <view class='input_item {{proData.company_id?"":"color_input"}}'>{{proData.company_id?companyName:'输入公司名称'}}</view> | 6 | + <view class='input_item {{proData.company_id?"":"color_input"}}'>{{proData.company_id?companyName:'请选择公司'}}</view> |
7 | </view> | 7 | </view> |
8 | </view> | 8 | </view> |
9 | <view class="item_list"> | 9 | <view class="item_list"> |
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | <view class="item_list"> | 15 | <view class="item_list"> |
16 | <view class="list_title">联系电话</view> | 16 | <view class="list_title">联系电话</view> |
17 | <view class="list_content"> | 17 | <view class="list_content"> |
18 | - <input type="number" placeholder='输入联系电话' placeholder-class='pl_style' value="{{proData.mobile}}" class="input_item" bindinput='getPhone'></input> | 18 | + <input type="number" placeholder='请输入联系电话' placeholder-class='pl_style' value="{{proData.mobile}}" class="input_item" bindinput='getPhone'></input> |
19 | </view> | 19 | </view> |
20 | </view> | 20 | </view> |
21 | <view class="item_list" style=' align-items: flex-start;'> | 21 | <view class="item_list" style=' align-items: flex-start;'> |
@@ -40,7 +40,7 @@ | @@ -40,7 +40,7 @@ | ||
40 | <view class='search_box'> | 40 | <view class='search_box'> |
41 | <input placeholder='请输入公司名称' bindinput='keywordFun' type='search' class='input_item'></input> | 41 | <input placeholder='请输入公司名称' bindinput='keywordFun' type='search' class='input_item'></input> |
42 | <image src='../../../images/del.png'></image> | 42 | <image src='../../../images/del.png'></image> |
43 | - <view class='cancle_action' bindtap='seachFun'>搜索</view> | 43 | + <view class='cancle_action' bindtap='cancle'>取消</view> |
44 | </view> | 44 | </view> |
45 | </view> | 45 | </view> |
46 | 46 |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | </view> | 8 | </view> |
9 | <view class='list_content'> | 9 | <view class='list_content'> |
10 | <view class='list_info'>提交成功!</view> | 10 | <view class='list_info'>提交成功!</view> |
11 | - <view>您已成功提交企业资料,待平台审核...</view> | 11 | + <view>您已成功提交企业资料,请等待平台审核...</view> |
12 | <view class='list_btn list_active' bindtap='post_btn'>发表帖子</view> | 12 | <view class='list_btn list_active' bindtap='post_btn'>发表帖子</view> |
13 | <view class='list_btn ' bindtap='goHome'>返回首页</view> | 13 | <view class='list_btn ' bindtap='goHome'>返回首页</view> |
14 | </view> | 14 | </view> |
@@ -15,21 +15,36 @@ Page({ | @@ -15,21 +15,36 @@ Page({ | ||
15 | onLoad: function (options) { | 15 | onLoad: function (options) { |
16 | 16 | ||
17 | }, | 17 | }, |
18 | + renzheng(e) { | ||
19 | + let type = e.currentTarget.dataset.type; | ||
20 | + console.log(type) | ||
21 | + type == 1 ? wx.showToast({ | ||
22 | + title: '认证审批中请耐心等待', | ||
23 | + icon: 'none', | ||
24 | + duration: 1200 | ||
25 | + }) : wx.navigateTo({ | ||
26 | + url: '/pages/my/approve/approve', | ||
27 | + }) | ||
28 | + }, | ||
29 | + checkstatus() { | ||
30 | + let b = this, url = '/api/user/getAuthStatus', params = { | ||
31 | + header: true | ||
32 | + }; | ||
33 | + t.post(url, params, false).then((r) => { | ||
34 | + b.setData({ | ||
35 | + auth: r | ||
36 | + }); | ||
37 | + r == 2 ? b.getUserInfo() : ''; | ||
38 | + }) | ||
39 | + }, | ||
18 | getUserInfo(){ | 40 | getUserInfo(){ |
19 | let d = this, url ='/api/user/index',params={ | 41 | let d = this, url ='/api/user/index',params={ |
20 | header: true | 42 | header: true |
21 | - }; t.post(url,params).then((r)=>{ | 43 | + }; t.post(url,params,false).then((r)=>{ |
22 | d.setData({ userInfo: r.userInfo}) | 44 | d.setData({ userInfo: r.userInfo}) |
23 | }) | 45 | }) |
24 | }, | 46 | }, |
25 | - open_btn() { | ||
26 | - wx.navigateTo({ | ||
27 | - url: '/pages/my/approve/approve', | ||
28 | - }) | ||
29 | - this.setData({ | ||
30 | - status:true | ||
31 | - }) | ||
32 | - }, | 47 | + |
33 | btn_post() { | 48 | btn_post() { |
34 | 49 | ||
35 | wx.navigateTo({ | 50 | wx.navigateTo({ |
@@ -71,7 +86,8 @@ Page({ | @@ -71,7 +86,8 @@ Page({ | ||
71 | * 生命周期函数--监听页面显示 | 86 | * 生命周期函数--监听页面显示 |
72 | */ | 87 | */ |
73 | onShow: function () { | 88 | onShow: function () { |
74 | - this.getUserInfo(); | 89 | + |
90 | + this.checkstatus(); | ||
75 | }, | 91 | }, |
76 | 92 | ||
77 | /** | 93 | /** |
1 | <!--pages/my/my.wxml--> | 1 | <!--pages/my/my.wxml--> |
2 | -<view class='banner_box'> | 2 | +<view class='banner_box' wx:if='{{auth!=0}}'> |
3 | <view class='banner_info_box'> | 3 | <view class='banner_info_box'> |
4 | <image class='head_img' src='{{userInfo.avatar||"/images/weirenzheng@2x.png"}}'></image> | 4 | <image class='head_img' src='{{userInfo.avatar||"/images/weirenzheng@2x.png"}}'></image> |
5 | <view class='banner_right' wx:if="{{userInfo}}"> | 5 | <view class='banner_right' wx:if="{{userInfo}}"> |
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | </view> | 16 | </view> |
17 | </view> | 17 | </view> |
18 | <!-- --> | 18 | <!-- --> |
19 | -<view class='content_box' wx:if='{{userInfo.auth_status}}'> | 19 | +<view class='content_box' hidden='{{auth!=2}}'> |
20 | <view class='item_list' bindtap='TB' bindtap="btn_post"> | 20 | <view class='item_list' bindtap='TB' bindtap="btn_post"> |
21 | <view class='list_icon'> | 21 | <view class='list_icon'> |
22 | <text class='iconfont icon-wodetiezi'></text> | 22 | <text class='iconfont icon-wodetiezi'></text> |
@@ -66,10 +66,10 @@ | @@ -66,10 +66,10 @@ | ||
66 | </view> | 66 | </view> |
67 | </view> | 67 | </view> |
68 | </view> | 68 | </view> |
69 | -<view class='null_data_box' wx:else> | 69 | +<view class='null_data_box' hidden='{{auth==2}}'> |
70 | <view class='data_box'> | 70 | <view class='data_box'> |
71 | <image src='/images/weirenzheng@2x.png'></image> | 71 | <image src='/images/weirenzheng@2x.png'></image> |
72 | - <view class='list_btn' bindtap='open_btn'>开通企业认证 ></view> | ||
73 | - <view> ~~ 企业认证后开启更多服务 ~~</view> | 72 | + <view class='list_btn' bindtap='open_btn' data-type='{{auth}}' bindtap='renzheng'>{{auth=='0'?'开通企业认证 >':auth=='1'?'企业认证中 请等待':""}}</view> |
73 | + <view wx:if='{{auth=="0"}}'> ~~ 企业认证后开启更多服务 ~~</view> | ||
74 | </view> | 74 | </view> |
75 | </view> | 75 | </view> |
@@ -6,7 +6,8 @@ Page({ | @@ -6,7 +6,8 @@ Page({ | ||
6 | */ | 6 | */ |
7 | data: { | 7 | data: { |
8 | commentsList: [], | 8 | commentsList: [], |
9 | - page: 1 | 9 | + page: 1, |
10 | + ifData:!1 | ||
10 | }, | 11 | }, |
11 | 12 | ||
12 | /** | 13 | /** |
@@ -27,8 +28,15 @@ Page({ | @@ -27,8 +28,15 @@ Page({ | ||
27 | a.post(url, params).then((res) => { | 28 | a.post(url, params).then((res) => { |
28 | console.log(res); | 29 | console.log(res); |
29 | b.setData({ | 30 | b.setData({ |
30 | - commentsList: res.data | 31 | + commentsList: b.data.commentsList.concat(res.data) |
31 | }) | 32 | }) |
33 | + b.data.commentsList.length > 0 ? b.setData({ | ||
34 | + ifData: !0 | ||
35 | + }) : b.setData({ | ||
36 | + ifData: !1 | ||
37 | + }), res.data.length < res.per_page ? b.setData({ | ||
38 | + noMore: !0, | ||
39 | + }) : '' | ||
32 | }) | 40 | }) |
33 | }, | 41 | }, |
34 | 42 |
1 | -<view class='container'> | ||
2 | - | ||
3 | - | ||
4 | - | ||
5 | - | ||
6 | - | ||
7 | <!-- 企话吧 --> | 1 | <!-- 企话吧 --> |
8 | - <view class='box_right'> | 2 | +<scroll-view scroll-y='true'> |
9 | <view class='mid'> | 3 | <view class='mid'> |
10 | 4 | ||
11 | <!-- 条目 --> | 5 | <!-- 条目 --> |
@@ -100,5 +94,8 @@ | @@ -100,5 +94,8 @@ | ||
100 | </view> | 94 | </view> |
101 | 95 | ||
102 | </view> | 96 | </view> |
103 | - </view> | 97 | + </scroll-view> |
98 | +<view class="none-box" hidden="{{ifData}}"> | ||
99 | + <view>暂无相关评论</view> | ||
104 | </view> | 100 | </view> |
101 | + |
@@ -6,7 +6,8 @@ Page({ | @@ -6,7 +6,8 @@ Page({ | ||
6 | */ | 6 | */ |
7 | data: { | 7 | data: { |
8 | noticeList: [], | 8 | noticeList: [], |
9 | - page: 1 | 9 | + page: 1, |
10 | + ifData:!1 | ||
10 | }, | 11 | }, |
11 | 12 | ||
12 | /** | 13 | /** |
@@ -25,10 +26,16 @@ Page({ | @@ -25,10 +26,16 @@ Page({ | ||
25 | page: b.data.page | 26 | page: b.data.page |
26 | }; | 27 | }; |
27 | a.post(url, params).then((res) => { | 28 | a.post(url, params).then((res) => { |
28 | - console.log(res); | ||
29 | b.setData({ | 29 | b.setData({ |
30 | - noticeList: res.data | 30 | + noticeList: b.data.noticeList.concat(res.data) |
31 | }) | 31 | }) |
32 | + b.data.noticeList.length > 0 ? b.setData({ | ||
33 | + ifData: !0 | ||
34 | + }) : b.setData({ | ||
35 | + ifData: !1 | ||
36 | + }), res.data.length < res.per_page ? b.setData({ | ||
37 | + noMore: !0, | ||
38 | + }) : '' | ||
32 | }) | 39 | }) |
33 | }, | 40 | }, |
34 | 41 |
1 | -<view class='container'> | ||
2 | - | ||
3 | - | ||
4 | - | ||
5 | - <!-- 企业问答 --> | ||
6 | - <view class='box_left' style='display:none'> | 1 | + <scroll-view scroll-y='true' style='height:{{winHeight}}px' hidden='{{!ifData}}'> |
7 | <view class='mid'> | 2 | <view class='mid'> |
8 | - <view class='mid_item'> | ||
9 | - <!-- 左边感叹号 --> | ||
10 | - <view class='mid_item_left'> | ||
11 | - <image src='../../images/tishi@3x.png'></image> | ||
12 | - </view> | ||
13 | - <!-- 右边标题 --> | ||
14 | - <view class='mid_item_right'> | ||
15 | - <view class='mid_item_right_top'> | ||
16 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
17 | - <view class='mid_label'> | ||
18 | - <image src='../../images/huifujishi@3x.png'></image> | ||
19 | - </view> | ||
20 | - </view> | ||
21 | - <view class='mid_item_right_bottom'> | ||
22 | - 发布时间: 07-21 21:00 | ||
23 | - </view> | ||
24 | - <!-- 回复 --> | ||
25 | - <view class='response_box'> | ||
26 | - <!-- 回复内容 --> | ||
27 | - <view class='mid_item_right_response'> | ||
28 | - <text class='color_blue'>回复:</text> 贵单位的问题已反应到相关单位,具体实施方案将在7个工作日内反馈 | ||
29 | - | ||
30 | - </view> | ||
31 | - <!-- 回复时间 --> | ||
32 | - <view class='mid_item_right_bottom'> | ||
33 | - 回复时间:07-21 21:00 | ||
34 | - </view> | ||
35 | - </view> | ||
36 | - | ||
37 | - </view> | ||
38 | - </view> | ||
39 | - | ||
40 | - <view class='mid_item'> | ||
41 | - <!-- 左边感叹号 --> | ||
42 | - <view class='mid_item_left'> | ||
43 | - <image src='../../images/tishi@3x.png'></image> | ||
44 | - </view> | ||
45 | - <!-- 右边标题 --> | ||
46 | - <view class='mid_item_right'> | ||
47 | - <view class='mid_item_right_top'> | ||
48 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
49 | - <view class='mid_label'> | ||
50 | - <image src='../../images/huifuyiban@3x.png'></image> | ||
51 | - </view> | ||
52 | - </view> | ||
53 | - <view class='mid_item_right_bottom'> | ||
54 | - 发布时间:07-21 21:00 | ||
55 | - </view> | ||
56 | - <!-- 回复 --> | ||
57 | - <view class='response_box'> | ||
58 | - <!-- 回复内容 --> | ||
59 | - <view class='mid_item_right_response'> | ||
60 | - <text class='color_blue'>回复:</text> 贵单位的问题已反应到相关单位,具体实施方案将在7个工作日内反馈 | ||
61 | - | ||
62 | - </view> | ||
63 | - <!-- 回复时间 --> | ||
64 | - <view class='mid_item_right_bottom'> | ||
65 | - 回复时间:07-21 21:00 | ||
66 | - </view> | ||
67 | - </view> | ||
68 | - | ||
69 | - </view> | ||
70 | - </view> | ||
71 | - | ||
72 | - <view class='mid_item'> | ||
73 | - <!-- 左边感叹号 --> | ||
74 | - <view class='mid_item_left'> | ||
75 | - <image src='../../images/tishi@3x.png'></image> | ||
76 | - </view> | ||
77 | - <!-- 右边标题 --> | ||
78 | - <view class='mid_item_right'> | ||
79 | - <view class='mid_item_right_top'> | ||
80 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
81 | - <view class='mid_label'> | ||
82 | - <image src='../../images/huifuzhihuan @3x.png'></image> | ||
83 | - </view> | ||
84 | - </view> | ||
85 | - <view class='mid_item_right_bottom'> | ||
86 | - 发布时间:07-21 21:00 | ||
87 | - </view> | ||
88 | - | ||
89 | - <!-- 等待回复 --> | ||
90 | - <view class='waiting_response'> | ||
91 | - 等待回复中..... | ||
92 | - </view> | ||
93 | - </view> | ||
94 | - </view> | ||
95 | - | ||
96 | - </view> | ||
97 | - <!-- 提问 --> | ||
98 | - <view class='bottom'> | ||
99 | - <view class='bottom_question'> | ||
100 | - 提问 | ||
101 | - </view> | ||
102 | - </view> | ||
103 | - </view> | ||
104 | - | ||
105 | - <!-- 企话吧 --> | ||
106 | - <view class='box_right'> | ||
107 | - <view class='mid'> | ||
108 | - | ||
109 | - <!-- 条目 --> | ||
110 | <view class='mid_item' wx:for="{{noticeList}}" wx:key="index"> | 3 | <view class='mid_item' wx:for="{{noticeList}}" wx:key="index"> |
111 | <view class='mid_item_top'> | 4 | <view class='mid_item_top'> |
112 | <view class='mid_item_top_left'> | 5 | <view class='mid_item_top_left'> |
@@ -139,47 +32,11 @@ | @@ -139,47 +32,11 @@ | ||
139 | <view class='mid_item_text'> | 32 | <view class='mid_item_text'> |
140 | {{item.content}} | 33 | {{item.content}} |
141 | </view> | 34 | </view> |
142 | - | ||
143 | - | ||
144 | - | ||
145 | - | ||
146 | - </view> | ||
147 | - | ||
148 | - <!-- 条目 --> | ||
149 | - <view class='mid_item'> | ||
150 | - <view class='mid_item_top'> | ||
151 | - <view class='mid_item_top_left'> | ||
152 | - <!-- 图片 --> | ||
153 | - <view class='mid_item_top_left_pic'> | ||
154 | - <image src='../../images/03_nav@2x.png'></image> | ||
155 | - </view> | ||
156 | - <!-- 文字 --> | ||
157 | - <view class='mid_item_top_left_text color_blue'> | ||
158 | - 牧羊人 | ||
159 | - <view class='mid_icon color_read'> | ||
160 | - 已读 | ||
161 | - <!-- <image src='../../images/weidu@2x.png'></image> --> | ||
162 | </view> | 35 | </view> |
163 | </view> | 36 | </view> |
164 | - </view> | ||
165 | - <view class='mid_item_top_right '> | ||
166 | - 15分钟前 | ||
167 | - </view> | ||
168 | - </view> | ||
169 | - <!-- 大标题 --> | ||
170 | - <view class='mid_item_title'> | ||
171 | - 交通优势突出停车难问题能否解决? | ||
172 | - </view> | ||
173 | - <!-- 文字内容 --> | ||
174 | - <view class='mid_item_text'> | ||
175 | - 新个人所得税法近日备受关注。关于个人所得税,想必大家都十分关心,让我们通过以下问题! | ||
176 | - </view> | ||
177 | - | ||
178 | - | 37 | + </scroll-view> |
179 | 38 | ||
180 | - | ||
181 | - </view> | ||
182 | - | ||
183 | - </view> | ||
184 | - </view> | 39 | + <view class="none-box" hidden="{{ifData}}"> |
40 | + <view>暂无相关发文</view> | ||
185 | </view> | 41 | </view> |
42 | + |
1 | 1 | ||
2 | -<view class='container'> | ||
3 | - | ||
4 | - | ||
5 | - | ||
6 | - <!-- 企业问答 --> | ||
7 | - <view class='box_left' style='display:none'> | ||
8 | - <view class='mid'> | ||
9 | - <view class='mid_item'> | ||
10 | - <!-- 左边感叹号 --> | ||
11 | - <view class='mid_item_left'> | ||
12 | - <image src='../../images/tishi@3x.png'></image> | ||
13 | - </view> | ||
14 | - <!-- 右边标题 --> | ||
15 | - <view class='mid_item_right'> | ||
16 | - <view class='mid_item_right_top'> | ||
17 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
18 | - <view class='mid_label'> | ||
19 | - <image src='../../images/huifujishi@3x.png'></image> | ||
20 | - </view> | ||
21 | - </view> | ||
22 | - <view class='mid_item_right_bottom'> | ||
23 | - 发布时间: 07-21 21:00 | ||
24 | - </view> | ||
25 | - <!-- 回复 --> | ||
26 | - <view class='response_box'> | ||
27 | - <!-- 回复内容 --> | ||
28 | - <view class='mid_item_right_response'> | ||
29 | - <text class='color_blue'>回复:</text> | ||
30 | - 贵单位的问题已反应到相关单位,具体实施方案将在7个工作日内反馈 | ||
31 | - | ||
32 | - </view> | ||
33 | - <!-- 回复时间 --> | ||
34 | - <view class='mid_item_right_bottom'> | ||
35 | - 回复时间:07-21 21:00 | ||
36 | - </view> | ||
37 | - </view> | ||
38 | - | ||
39 | - </view> | ||
40 | - </view> | ||
41 | - | ||
42 | - <view class='mid_item'> | ||
43 | - <!-- 左边感叹号 --> | ||
44 | - <view class='mid_item_left'> | ||
45 | - <image src='../../images/tishi@3x.png'></image> | ||
46 | - </view> | ||
47 | - <!-- 右边标题 --> | ||
48 | - <view class='mid_item_right'> | ||
49 | - <view class='mid_item_right_top'> | ||
50 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
51 | - <view class='mid_label'> | ||
52 | - <image src='../../images/huifuyiban@3x.png'></image> | ||
53 | - </view> | ||
54 | - </view> | ||
55 | - <view class='mid_item_right_bottom'> | ||
56 | - 发布时间:07-21 21:00 | ||
57 | - </view> | ||
58 | - <!-- 回复 --> | ||
59 | - <view class='response_box'> | ||
60 | - <!-- 回复内容 --> | ||
61 | - <view class='mid_item_right_response'> | ||
62 | - <text class='color_blue'>回复:</text> | ||
63 | - 贵单位的问题已反应到相关单位,具体实施方案将在7个工作日内反馈 | ||
64 | - | ||
65 | - </view> | ||
66 | - <!-- 回复时间 --> | ||
67 | - <view class='mid_item_right_bottom'> | ||
68 | - 回复时间:07-21 21:00 | ||
69 | - </view> | ||
70 | - </view> | ||
71 | - | ||
72 | - </view> | ||
73 | - </view> | ||
74 | - | ||
75 | - <view class='mid_item'> | ||
76 | - <!-- 左边感叹号 --> | ||
77 | - <view class='mid_item_left'> | ||
78 | - <image src='../../images/tishi@3x.png'></image> | ||
79 | - </view> | ||
80 | - <!-- 右边标题 --> | ||
81 | - <view class='mid_item_right'> | ||
82 | - <view class='mid_item_right_top'> | ||
83 | - 校区门口停车难,镇政府是否可协调交管局规划车位,方便学生家长停车? | ||
84 | - <view class='mid_label'> | ||
85 | - <image src='../../images/huifuzhihuan @3x.png'></image> | ||
86 | - </view> | ||
87 | - </view> | ||
88 | - <view class='mid_item_right_bottom'> | ||
89 | - 发布时间:07-21 21:00 | ||
90 | - </view> | ||
91 | - | ||
92 | - <!-- 等待回复 --> | ||
93 | - <view class='waiting_response'> | ||
94 | - 等待回复中..... | ||
95 | - </view> | ||
96 | - </view> | ||
97 | - </view> | ||
98 | - | ||
99 | - </view> | ||
100 | - <!-- 提问 --> | ||
101 | - <view class='bottom'> | ||
102 | - <view class='bottom_question'> | ||
103 | - 提问 | ||
104 | - </view> | ||
105 | - </view> | ||
106 | - </view> | ||
107 | - | ||
108 | <!-- 企话吧 --> | 2 | <!-- 企话吧 --> |
109 | - <view class='box_right'> | 3 | + <scroll-view class='box_right' hidden='{{!ifData}}'> |
110 | <view class='mid'> | 4 | <view class='mid'> |
111 | - | ||
112 | <!-- 条目 --> | 5 | <!-- 条目 --> |
113 | <view class='mid_item' wx:for="{{likeList}}" wx:key="index"> | 6 | <view class='mid_item' wx:for="{{likeList}}" wx:key="index"> |
114 | <view class='mid_item_top'> | 7 | <view class='mid_item_top'> |
@@ -166,12 +59,13 @@ | @@ -166,12 +59,13 @@ | ||
166 | 46 | 59 | 46 |
167 | </view> | 60 | </view> |
168 | </view> | 61 | </view> |
169 | - | ||
170 | </view> | 62 | </view> |
171 | - | ||
172 | </view> | 63 | </view> |
64 | + </view> | ||
65 | + </scroll-view> | ||
173 | 66 | ||
174 | 67 | ||
175 | - </view> | ||
176 | - </view> | 68 | +<view class="none-box" hidden="{{ifData}}"> |
69 | + <view>暂无相关点赞</view> | ||
177 | </view> | 70 | </view> |
71 | + |
@@ -6,7 +6,8 @@ Page({ | @@ -6,7 +6,8 @@ Page({ | ||
6 | */ | 6 | */ |
7 | data: { | 7 | data: { |
8 | articleList:[], | 8 | articleList:[], |
9 | - ifData:!1 | 9 | + ifData:!1, |
10 | + page: 1 | ||
10 | }, | 11 | }, |
11 | 12 | ||
12 | /** | 13 | /** |
@@ -20,11 +21,12 @@ Page({ | @@ -20,11 +21,12 @@ Page({ | ||
20 | windowHeight: res.windowHeight | 21 | windowHeight: res.windowHeight |
21 | }) | 22 | }) |
22 | }, | 23 | }, |
23 | - }) | 24 | + }), c.articleList(); |
24 | }, | 25 | }, |
25 | articleList(){ | 26 | articleList(){ |
26 | - let b = this, url =' /api/User/getMyPostsList',params={ | ||
27 | - header:true | 27 | + let b = this, url ='/api/User/getMyPostsList',params={ |
28 | + header:true, | ||
29 | + page: b.data.page | ||
28 | }; | 30 | }; |
29 | a.post(url,params).then((r)=>{ | 31 | a.post(url,params).then((r)=>{ |
30 | let dataList = b.data.articleList.concat(r.data); | 32 | let dataList = b.data.articleList.concat(r.data); |
@@ -39,6 +41,34 @@ Page({ | @@ -39,6 +41,34 @@ Page({ | ||
39 | 41 | ||
40 | }) | 42 | }) |
41 | }, | 43 | }, |
44 | + delArticle(e){ | ||
45 | + console.log(e) | ||
46 | + let t = this, id = e.currentTarget.id, url ='/api/interact/deletePosts',params={ | ||
47 | + id:id, | ||
48 | + header:true | ||
49 | + }; | ||
50 | + wx.showModal({ | ||
51 | + title: '提示', | ||
52 | + content: '确认删除这个帖子吗?', | ||
53 | + success: (r)=>{ | ||
54 | + if(r.confirm){ | ||
55 | + a.post(url,params).then((rt)=>{ | ||
56 | + wx.showToast({ | ||
57 | + title: '删除成功', | ||
58 | + icon:'none', | ||
59 | + duration: 1300 | ||
60 | + }) | ||
61 | + t.articleList() | ||
62 | + }) | ||
63 | + } | ||
64 | + } | ||
65 | + }) | ||
66 | + }, | ||
67 | + subArticle(){ | ||
68 | + wx.navigateTo({ | ||
69 | + url: '/pages/interact/interactPost/interactPost', | ||
70 | + }) | ||
71 | + }, | ||
42 | loadMore(){ | 72 | loadMore(){ |
43 | 73 | ||
44 | }, | 74 | }, |
1 | - | ||
2 | <scroll-view class='container' scroll-y='true' hidden='{{!ifData}}' style='height:{{windowHeight}}px'> | 1 | <scroll-view class='container' scroll-y='true' hidden='{{!ifData}}' style='height:{{windowHeight}}px'> |
3 | - <block wx:foe="{{articleList}}" wx:key=""> | ||
4 | - </block> | 2 | + <block wx:for="{{articleList}}" wx:key=""> |
5 | <view class='item'> | 3 | <view class='item'> |
6 | - <view class='item_top'> | ||
7 | - {{item.title}} | ||
8 | - </view> | 4 | + <view class='item_top'>{{item.title}}</view> |
9 | <view class='item_mid'> | 5 | <view class='item_mid'> |
10 | - <view class='item_mid_text'> | ||
11 | - {{item.content}} | ||
12 | - </view> | 6 | + <view class='item_mid_text'>{{item.content}}</view> |
13 | <!-- 图片盒子 --> | 7 | <!-- 图片盒子 --> |
14 | <view class='item_mid_box' wx:if="{{item.images}}"> | 8 | <view class='item_mid_box' wx:if="{{item.images}}"> |
15 | <view class='item_mid_box_pic'> | 9 | <view class='item_mid_box_pic'> |
@@ -44,6 +38,46 @@ | @@ -44,6 +38,46 @@ | ||
44 | </view> | 38 | </view> |
45 | </view> | 39 | </view> |
46 | </view> | 40 | </view> |
41 | + <view class='item'> | ||
42 | + <view class='item_top'>{{item.title}}</view> | ||
43 | + <view class='item_mid'> | ||
44 | + <view class='item_mid_text'>{{item.content}}</view> | ||
45 | + <!-- 图片盒子 --> | ||
46 | + <view class='item_mid_box' wx:if="{{item.images}}"> | ||
47 | + <view class='item_mid_box_pic'> | ||
48 | + <image src='{{item.images}}'></image> | ||
49 | + </view> | ||
50 | + </view> | ||
51 | + </view> | ||
52 | + <!-- 底部 --> | ||
53 | + <view class='item_bottom'> | ||
54 | + <view class='item_left' id='{{item.id}}' bindtap='delArticle'> | ||
55 | + 删除 | ||
56 | + </view> | ||
57 | + <view class='item_right'> | ||
58 | + <!-- 图片 --> | ||
59 | + <view class='item_right_pic'> | ||
60 | + <image src='../../images/chakan@3x.png'></image> | ||
61 | + </view> | ||
62 | + <!-- 数量 --> | ||
63 | + <view class='item_right_number'> | ||
64 | + {{item.browse_count}} | ||
65 | + </view> | ||
66 | + | ||
67 | + <!-- 图片 --> | ||
68 | + <view class='item_right_pic2'> | ||
69 | + <image src='../../images/pinglun@3x.png'></image> | ||
70 | + </view> | ||
71 | + <!-- 数量 --> | ||
72 | + <view class='item_right_number'> | ||
73 | + {{item.comment_count}} | ||
74 | + </view> | ||
75 | + | ||
76 | + </view> | ||
77 | + </view> | ||
78 | + </view> | ||
79 | + </block> | ||
80 | + | ||
47 | 81 | ||
48 | <!-- 底部按钮 --> | 82 | <!-- 底部按钮 --> |
49 | <!-- <view class='button'> | 83 | <!-- <view class='button'> |
@@ -52,5 +86,6 @@ | @@ -52,5 +86,6 @@ | ||
52 | </scroll-view> | 86 | </scroll-view> |
53 | 87 | ||
54 | <view class="none-box" hidden="{{ifData}}"> | 88 | <view class="none-box" hidden="{{ifData}}"> |
55 | - <view>你还没有帖子,快去发表吧!</view> | 89 | + <view>你还没有帖子,快去<text class='fabiao' bindtap='subArticle'>发表</text>吧!</view> |
90 | + | ||
56 | </view> | 91 | </view> |
@@ -13,6 +13,7 @@ page{ | @@ -13,6 +13,7 @@ page{ | ||
13 | background: #fff; | 13 | background: #fff; |
14 | box-sizing: border-box; | 14 | box-sizing: border-box; |
15 | padding: 48rpx 32rpx; | 15 | padding: 48rpx 32rpx; |
16 | + border-bottom:2rpx solid #f7f7f7 | ||
16 | } | 17 | } |
17 | .item_top{ | 18 | .item_top{ |
18 | 19 | ||
@@ -140,5 +141,8 @@ page{ | @@ -140,5 +141,8 @@ page{ | ||
140 | position: fixed; | 141 | position: fixed; |
141 | left: 32rpx; | 142 | left: 32rpx; |
142 | bottom: 30rpx; | 143 | bottom: 30rpx; |
143 | - | 144 | +} |
145 | +.fabiao{ | ||
146 | + color: rgba(0,194,255,1); | ||
147 | + text-decoration: underline; | ||
144 | } | 148 | } |
1 | +// pages/question/question.js | ||
2 | +let a = getApp(); | ||
1 | Page({ | 3 | Page({ |
2 | 4 | ||
3 | /** | 5 | /** |
4 | * 页面的初始数据 | 6 | * 页面的初始数据 |
5 | */ | 7 | */ |
6 | data: { | 8 | data: { |
7 | - navbar: [{ | ||
8 | - name: '企业问答' | ||
9 | - }, | ||
10 | - { | ||
11 | - name: '企话吧' | ||
12 | - } | ||
13 | - | ||
14 | 9 | ||
15 | - ], | ||
16 | - currentTab: 0, | ||
17 | }, | 10 | }, |
18 | 11 | ||
19 | /** | 12 | /** |
@@ -22,20 +15,27 @@ Page({ | @@ -22,20 +15,27 @@ Page({ | ||
22 | onLoad: function (options) { | 15 | onLoad: function (options) { |
23 | 16 | ||
24 | }, | 17 | }, |
25 | - navbarTap: function (e) { | ||
26 | - console.log(88) | ||
27 | - let that = this; | 18 | + setText(e){ |
28 | this.setData({ | 19 | this.setData({ |
29 | - currentTab: e.currentTarget.dataset.idx, | ||
30 | - }) | 20 | + question:e.detail.value |
21 | + }); | ||
31 | }, | 22 | }, |
32 | - jump(){ | ||
33 | - wx.navigateTo({ | ||
34 | - url: '', | ||
35 | - }) | ||
36 | - | ||
37 | - wx.switchTab({ | ||
38 | - url: '', | 23 | + subQuesition(){ |
24 | + let t = this,params = { | ||
25 | + question: t.data.question, | ||
26 | + header: true | ||
27 | + }, url ='/api/interact/setQuestion'; | ||
28 | + t.data.question?a.post(url,params).then((r)=>{ | ||
29 | + wx.showToast({ | ||
30 | + title: '提交成功,请等待工作人员的审核回复', | ||
31 | + icon:'none', | ||
32 | + duration: 1300 | ||
33 | + }),setTimeout(()=>{ | ||
34 | + wx.navigateBack() | ||
35 | + },1100) | ||
36 | + }) : wx.showToast({ | ||
37 | + title: '请输入您要咨询的问题', | ||
38 | + icon: 'none' | ||
39 | }) | 39 | }) |
40 | }, | 40 | }, |
41 | 41 |
pages/question/question.json
0 → 100644
pages/question/question.wxml
0 → 100644
1 | +<!--pages/interact/interactPost/interactPost.wxml--> | ||
2 | +<view class='box'> | ||
3 | + <view class='banner_box'> | ||
4 | + | ||
5 | + <view class='textarea_box'> | ||
6 | + <textarea class='textarea' placeholder='请输入您要咨询的问题...' placeholder-class='input_size' maxlength='{{max2}}' value='{{text}}' bindinput='setText'> | ||
7 | + </textarea> | ||
8 | + </view> | ||
9 | + </view> | ||
10 | + <view class='bottom_btn' bindtap='subQuesition'>提交咨询</view> | ||
11 | +</view> |
pages/question/question.wxss
0 → 100644
1 | +/* pages/interact/interactPost/interactPost.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #f7f7f7; | ||
5 | +} | ||
6 | + | ||
7 | +.box { | ||
8 | + padding: 30rpx; | ||
9 | + box-sizing: border-box; | ||
10 | +} | ||
11 | + | ||
12 | +.banner_box { | ||
13 | + background: #fff; | ||
14 | + padding: 30rpx; | ||
15 | +} | ||
16 | + | ||
17 | +.textarea_box { | ||
18 | + width: 100%; | ||
19 | + min-height: 200rpx; | ||
20 | +} | ||
21 | + | ||
22 | +.textarea { | ||
23 | + width: 100%; | ||
24 | + min-height: 200rpx; | ||
25 | + padding: 20rpx 0; | ||
26 | + position: relative; | ||
27 | + font-size: 28rpx; | ||
28 | +} | ||
29 | + | ||
30 | +.number { | ||
31 | + position: absolute; | ||
32 | + bottom: 0; | ||
33 | + right: 0; | ||
34 | + color: #a5a6a8; | ||
35 | + font-size: 28rpx; | ||
36 | +} | ||
37 | + | ||
38 | +.textarea_size { | ||
39 | + font-size: 32rpx; | ||
40 | + color: #808080; | ||
41 | +} | ||
42 | + | ||
43 | +.upload_box { | ||
44 | + display: flex; | ||
45 | + flex-wrap: wrap; | ||
46 | + align-items: center; | ||
47 | +} | ||
48 | + | ||
49 | +.upload_img { | ||
50 | + width: 187rpx; | ||
51 | + height: 187rpx; | ||
52 | + border: 1rpx dashed #ebebeb; | ||
53 | + display: flex; | ||
54 | + align-items: center; | ||
55 | + justify-content: center; | ||
56 | + position: relative; | ||
57 | + margin-right: 20rpx; | ||
58 | + margin-bottom: 20rpx; | ||
59 | +} | ||
60 | + | ||
61 | +.icon-jia1 { | ||
62 | + color: #ebebeb; | ||
63 | + font-size: 100rpx; | ||
64 | +} | ||
65 | + | ||
66 | +.upload_img:nth-child(5), .upload_img:nth-child(10) { | ||
67 | + margin-right: 0; | ||
68 | +} | ||
69 | + | ||
70 | +.upload_img image { | ||
71 | + width: 100%; | ||
72 | + height: 100%; | ||
73 | +} | ||
74 | + | ||
75 | +.icon_box { | ||
76 | + display: flex; | ||
77 | + align-items: center; | ||
78 | + justify-content: center; | ||
79 | + position: absolute; | ||
80 | + right: -12rpx; | ||
81 | + top: -12rpx; | ||
82 | +} | ||
83 | + | ||
84 | +.icon-shanchu { | ||
85 | + font-size: 40rpx; | ||
86 | + color: #f70e0e; | ||
87 | +} | ||
88 | + | ||
89 | +.type_box { | ||
90 | + width: 100%; | ||
91 | + height: 86rpx; | ||
92 | + display: flex; | ||
93 | + align-items: center; | ||
94 | + justify-content: space-between; | ||
95 | + border-bottom: 1rpx solid #f5f5f5; | ||
96 | +} | ||
97 | + | ||
98 | +.type_box input { | ||
99 | + font-size: 28rpx; | ||
100 | +} | ||
101 | + | ||
102 | +.type_info { | ||
103 | + font-size: 32rpx; | ||
104 | + color: RGBA(102, 102, 102, 0.6); | ||
105 | +} | ||
106 | + | ||
107 | +.list_input { | ||
108 | + width: 100%; | ||
109 | + height: 86rpx; | ||
110 | + display: flex; | ||
111 | + align-items: center; | ||
112 | +} | ||
113 | + | ||
114 | +.input_box input { | ||
115 | + font-size: 32rpx; | ||
116 | +} | ||
117 | + | ||
118 | +.add-border { | ||
119 | + border-bottom: 1rpx solid #ebebeb; | ||
120 | +} | ||
121 | + | ||
122 | + | ||
123 | +.input_size { | ||
124 | + font-size: 32rpx; | ||
125 | + color: #ccc; | ||
126 | +} | ||
127 | + | ||
128 | +.areas { | ||
129 | + width: 100%; | ||
130 | + height: 100%; | ||
131 | + font-size: 26rpx; | ||
132 | + position: relative; | ||
133 | +} | ||
134 | + | ||
135 | +.bottom_btn { | ||
136 | + width: 100%; | ||
137 | + height: 96rpx; | ||
138 | + background: #000; | ||
139 | + background: linear-gradient(336deg, rgba(0, 128, 255, 1) 0%, rgba(0, 194, 255, 1) 100%); | ||
140 | + border-radius: 8rpx; | ||
141 | + font-size: 34rpx; | ||
142 | + font-weight: bold; | ||
143 | + color: #fff; | ||
144 | + display: flex; | ||
145 | + align-items: center; | ||
146 | + justify-content: center; | ||
147 | + margin: 150rpx auto 0 auto; | ||
148 | +} |
@@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
37 | "list": [] | 37 | "list": [] |
38 | }, | 38 | }, |
39 | "miniprogram": { | 39 | "miniprogram": { |
40 | - "current": 26, | 40 | + "current": 31, |
41 | "list": [ | 41 | "list": [ |
42 | { | 42 | { |
43 | "id": 0, | 43 | "id": 0, |
@@ -225,6 +225,42 @@ | @@ -225,6 +225,42 @@ | ||
225 | "id": -1, | 225 | "id": -1, |
226 | "name": "企业认证", | 226 | "name": "企业认证", |
227 | "pathName": "pages/my/approve/approve", | 227 | "pathName": "pages/my/approve/approve", |
228 | + "query": "", | ||
229 | + "scene": null | ||
230 | + }, | ||
231 | + { | ||
232 | + "id": 27, | ||
233 | + "name": "企业问答", | ||
234 | + "pathName": "pages/enterprise/enterprise", | ||
235 | + "query": "", | ||
236 | + "scene": null | ||
237 | + }, | ||
238 | + { | ||
239 | + "id": -1, | ||
240 | + "name": "发表帖子", | ||
241 | + "pathName": "pages/interact/interactPost/interactPost", | ||
242 | + "query": "", | ||
243 | + "scene": null | ||
244 | + }, | ||
245 | + { | ||
246 | + "id": -1, | ||
247 | + "name": "提问", | ||
248 | + "pathName": "pages/question/question", | ||
249 | + "query": "", | ||
250 | + "scene": null | ||
251 | + }, | ||
252 | + { | ||
253 | + "id": -1, | ||
254 | + "name": "发文通知", | ||
255 | + "pathName": "pages/myInform/myInform", | ||
256 | + "query": "", | ||
257 | + "scene": null | ||
258 | + }, | ||
259 | + { | ||
260 | + "id": -1, | ||
261 | + "name": "我的评论", | ||
262 | + "pathName": "pages/myComments/myComments", | ||
263 | + "query": "", | ||
228 | "scene": null | 264 | "scene": null |
229 | } | 265 | } |
230 | ] | 266 | ] |
-
请 注册 或 登录 后发表评论