正在显示
5 个修改的文件
包含
479 行增加
和
0 行删除
pages/matrix/article/article.js
0 → 100644
1 | +// pages/matrix/article/article.js | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + | ||
9 | + }, | ||
10 | + | ||
11 | + /** | ||
12 | + * 生命周期函数--监听页面加载 | ||
13 | + */ | ||
14 | + onLoad: function (options) { | ||
15 | + | ||
16 | + }, | ||
17 | + | ||
18 | + /** | ||
19 | + * 生命周期函数--监听页面初次渲染完成 | ||
20 | + */ | ||
21 | + onReady: function () { | ||
22 | + | ||
23 | + }, | ||
24 | + | ||
25 | + /** | ||
26 | + * 生命周期函数--监听页面显示 | ||
27 | + */ | ||
28 | + onShow: function () { | ||
29 | + | ||
30 | + }, | ||
31 | + | ||
32 | + /** | ||
33 | + * 生命周期函数--监听页面隐藏 | ||
34 | + */ | ||
35 | + onHide: function () { | ||
36 | + | ||
37 | + }, | ||
38 | + | ||
39 | + /** | ||
40 | + * 生命周期函数--监听页面卸载 | ||
41 | + */ | ||
42 | + onUnload: function () { | ||
43 | + | ||
44 | + }, | ||
45 | + | ||
46 | + /** | ||
47 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
48 | + */ | ||
49 | + onPullDownRefresh: function () { | ||
50 | + | ||
51 | + }, | ||
52 | + | ||
53 | + /** | ||
54 | + * 页面上拉触底事件的处理函数 | ||
55 | + */ | ||
56 | + onReachBottom: function () { | ||
57 | + | ||
58 | + }, | ||
59 | + | ||
60 | + /** | ||
61 | + * 用户点击右上角分享 | ||
62 | + */ | ||
63 | + onShareAppMessage: function () { | ||
64 | + | ||
65 | + } | ||
66 | +}) |
pages/matrix/article/article.json
0 → 100644
pages/matrix/article/article.wxml
0 → 100644
1 | +<!--pages/matrix/article/article.wxml--> | ||
2 | +<view class='box'> | ||
3 | + <view class='title'>全国弹弓高手齐聚上海外滩射得准可挺进意大利争夺</view> | ||
4 | + <view class='head_content_box'> | ||
5 | + <image class='head_box' src='/images/img.jpg'></image> | ||
6 | + <text class='user_name'>罗纳尔多</text> | ||
7 | + <text>1047次阅读 · 1小时前</text> | ||
8 | + </view> | ||
9 | + <view class='content_box'> | ||
10 | + <view class='article_content'> | ||
11 | + <view>日常生活中,近视眼是一种常见的多发病,在青少年中逐渐增长。造成儿童近视眼增多的主要原因是用眼时间过长、使用电子产品不节制、睡眠太晚等等。那么在生活中,我们应该怎样预防近视眼呢?</view> | ||
12 | + <image src='/images/img.jpg'></image> | ||
13 | + <!-- <view class='article_title1'>预防儿童近视5个方法</view> --> | ||
14 | + <view>1、保证营养充足:导致孩子近视发生和发展的重要原因就是饮食不当。使孩子缺乏营养。要及时给孩子补充足够的钙磷及维生素C等。</view> | ||
15 | + <image src='/images/img.jpg'></image> | ||
16 | + <!-- <import src="../../../wxParse/wxParse.wxml" /> | ||
17 | + <view class='content'> | ||
18 | + <template is="wxParse" data="{{wxParseData:article.nodes}}" /> | ||
19 | + </view> --> | ||
20 | + </view> | ||
21 | + </view> | ||
22 | + | ||
23 | +</view> | ||
24 | + | ||
25 | +<view class='comment_box'> | ||
26 | + <view class='comment_title'>评论</view> | ||
27 | + <view class='comment_item'> | ||
28 | + <view class='left_box'> | ||
29 | + <image class='head_img' src='/images/img.jpg'></image> | ||
30 | + </view> | ||
31 | + <view class='comment_content_box'> | ||
32 | + <view class='comment_name'>11</view> | ||
33 | + <view class='comment_content'>1111</view> | ||
34 | + <view class='list_state_box'> | ||
35 | + <view class='time'>24分钟前</view> | ||
36 | + <view class='list_icon'> | ||
37 | + <view catchtap='likeCharge' data-index="{{mindex}}" data-id='{{item.id}}'> | ||
38 | + <text class='time'>0</text> | ||
39 | + <text class='iconfont icon-zan zan'></text> | ||
40 | + <!-- <text class='iconfont icon-huida pinglun1' wx:else></text> --> | ||
41 | + </view> | ||
42 | + </view> | ||
43 | + </view> | ||
44 | + </view> | ||
45 | + </view> | ||
46 | +</view> | ||
47 | +<view class='null_box'></view> | ||
48 | +<view class='bottom_box'> | ||
49 | + <view class="label_item"> | ||
50 | + <text class='iconfont icon-bianji1 icon'></text> | ||
51 | + <input placeholder='写评论'></input> | ||
52 | + </view> | ||
53 | + <view class='label_icon_box'> | ||
54 | + <text class='iconfont icon-pinglun icon'></text> | ||
55 | + <text class='iconfont icon-favorite_diss icon'></text> | ||
56 | + <text class='iconfont icon-fenxiang icon'></text> | ||
57 | + <text class='iconfont icon-zan icon' style='font-size:40rpx;'></text> | ||
58 | + </view> | ||
59 | +</view> |
pages/matrix/article/article.wxss
0 → 100644
1 | +/* pages/eyeTest/articleDetail/articleDetail.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #f5f5f5; | ||
5 | +} | ||
6 | + | ||
7 | +.content .wxParse-img { | ||
8 | + width: 100% !important; | ||
9 | + height: 100%; | ||
10 | +} | ||
11 | + | ||
12 | +.box { | ||
13 | + padding: 30rpx; | ||
14 | + background: #fff; | ||
15 | +} | ||
16 | + | ||
17 | +.title { | ||
18 | + font-size: 54rpx; | ||
19 | + font-weight: bold; | ||
20 | + color: #333; | ||
21 | +} | ||
22 | + | ||
23 | +.user_box { | ||
24 | + display: flex; | ||
25 | + align-items: center; | ||
26 | + border-top: 1rpx solid #d8d8d8; | ||
27 | + border-bottom: 1rpx solid #d8d8d8; | ||
28 | + padding: 30rpx 0; | ||
29 | + margin-top: 40rpx; | ||
30 | +} | ||
31 | + | ||
32 | +.head_box { | ||
33 | + width: 48rpx; | ||
34 | + height: 48rpx; | ||
35 | + border-radius: 50%; | ||
36 | + margin-right: 20rpx; | ||
37 | +} | ||
38 | + | ||
39 | +.head_content_box { | ||
40 | + width: 100%; | ||
41 | + display: flex; | ||
42 | + align-items: center; | ||
43 | + font-size: 28rpx; | ||
44 | + color: #999; | ||
45 | + margin-top: 20rpx; | ||
46 | +} | ||
47 | + | ||
48 | +.user_name { | ||
49 | + font-size: 28rpx; | ||
50 | + color: #333; | ||
51 | +} | ||
52 | + | ||
53 | +.head_content_box text { | ||
54 | + margin-left: 20rpx; | ||
55 | +} | ||
56 | + | ||
57 | +.content_img { | ||
58 | + width: 140rpx; | ||
59 | + height: 140rpx; | ||
60 | + border-radius: 30rpx; | ||
61 | + overflow: hidden; | ||
62 | +} | ||
63 | + | ||
64 | +.content_img image { | ||
65 | + width: 100%; | ||
66 | + height: 100%; | ||
67 | +} | ||
68 | + | ||
69 | +.list_content_box { | ||
70 | + display: flex; | ||
71 | + align-items: center; | ||
72 | + white-space: normal; | ||
73 | + margin-top: 35rpx; | ||
74 | +} | ||
75 | + | ||
76 | +.list_title { | ||
77 | + font-size: 36rpx; | ||
78 | + color: #666; | ||
79 | + display: -webkit-box; | ||
80 | + word-break: break-all !important; | ||
81 | + -webkit-box-orient: vertical !important; | ||
82 | + -webkit-line-clamp: 2 !important; | ||
83 | + overflow: hidden !important; | ||
84 | + /* text-overflow: ellipsis !important; */ | ||
85 | + white-space: normal !important; | ||
86 | +} | ||
87 | + | ||
88 | +.list_content { | ||
89 | + width: 68%; | ||
90 | + height: 100%; | ||
91 | + font-size: 28rpx; | ||
92 | + color: #666; | ||
93 | + display: -webkit-box; | ||
94 | + word-break: break-all !important; | ||
95 | + -webkit-box-orient: vertical !important; | ||
96 | + -webkit-line-clamp: 3 !important; | ||
97 | + overflow: hidden !important; | ||
98 | + /* text-overflow: ellipsis !important; */ | ||
99 | + white-space: normal !important; | ||
100 | + margin-left: 30rpx; | ||
101 | + line-height: 43rpx; | ||
102 | +} | ||
103 | + | ||
104 | +/* .article_box{ | ||
105 | + position: relative; | ||
106 | + left: 0; | ||
107 | + bottom: 40rpx; | ||
108 | +} */ | ||
109 | + | ||
110 | +.article_title { | ||
111 | + font-size: 30rpx; | ||
112 | + color: #999; | ||
113 | + border-top: 1rpx solid #d8d8d8; | ||
114 | + padding: 20rpx 0 15rpx 0; | ||
115 | + /* margin-top: 30rpx; */ | ||
116 | +} | ||
117 | + | ||
118 | +.more_box { | ||
119 | + font-size: 30rpx; | ||
120 | + color: #999; | ||
121 | + background: #fff; | ||
122 | + width: 200rpx !important; | ||
123 | + height: 320rpx; | ||
124 | + border-radius: 15rpx; | ||
125 | + padding: 30rpx; | ||
126 | + box-sizing: border-box; | ||
127 | + margin-right: 30rpx; | ||
128 | + vertical-align: top; | ||
129 | + line-height: 230rpx; | ||
130 | + text-align: center; | ||
131 | +} | ||
132 | + | ||
133 | +.scroll_box { | ||
134 | + width: 100%; | ||
135 | + height: 400rpx; | ||
136 | + white-space: nowrap; | ||
137 | + padding-bottom: 40rpx; | ||
138 | + box-sizing: border-box; | ||
139 | + padding: 10rpx; | ||
140 | +} | ||
141 | + | ||
142 | +.scroll_item { | ||
143 | + background: #fff; | ||
144 | + width: 555rpx; | ||
145 | + height: 345rpx; | ||
146 | + display: inline-block; | ||
147 | + border-radius: 30rpx; | ||
148 | + padding: 30rpx; | ||
149 | + box-sizing: border-box; | ||
150 | + margin-right: 30rpx; | ||
151 | + vertical-align: top; | ||
152 | + border: 1rpx solid #ededed; | ||
153 | + margin-top: 10rpx; | ||
154 | + /* box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0, 0, 0, 0.15); */ | ||
155 | + box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.06); | ||
156 | +} | ||
157 | + | ||
158 | +.article_content_box { | ||
159 | + width: 100%; | ||
160 | + /* height: 260rpx; */ | ||
161 | + overflow-x: scroll; | ||
162 | + white-space: nowrap; | ||
163 | + display: flex; | ||
164 | + align-items: center; | ||
165 | + margin-bottom: 30rpx; | ||
166 | + padding: 10rpx; | ||
167 | +} | ||
168 | + | ||
169 | +.article_content { | ||
170 | + font-size: 32rpx; | ||
171 | + color: #333; | ||
172 | + padding: 30rpx 0; | ||
173 | +} | ||
174 | + | ||
175 | +.article_content image { | ||
176 | + width: 690rpx; | ||
177 | + height: 400rpx; | ||
178 | + margin: 20rpx 0; | ||
179 | + border-radius: 8rpx; | ||
180 | +} | ||
181 | + | ||
182 | +.article_title1 { | ||
183 | + font-size: 44rpx; | ||
184 | + color: #333; | ||
185 | + position: relative; | ||
186 | + padding-left: 20rpx; | ||
187 | + margin-bottom: 30rpx; | ||
188 | +} | ||
189 | + | ||
190 | +.article_title1::after { | ||
191 | + content: ""; | ||
192 | + position: absolute; | ||
193 | + left: 0; | ||
194 | + top: 10rpx; | ||
195 | + height: 40rpx; | ||
196 | + width: 4rpx; | ||
197 | + background: #8bd985; | ||
198 | +} | ||
199 | + | ||
200 | +::-webkit-scrollbar { | ||
201 | + width: 0; | ||
202 | + height: 0; | ||
203 | + color: transparent; | ||
204 | +} | ||
205 | + | ||
206 | +/* */ | ||
207 | + | ||
208 | +.comment_box { | ||
209 | + padding: 30rpx; | ||
210 | + background: #fff; | ||
211 | + box-sizing: border-box; | ||
212 | + margin-top: 16rpx; | ||
213 | +} | ||
214 | + | ||
215 | +.comment_title { | ||
216 | + font-size: 34rpx; | ||
217 | + font-weight: bold; | ||
218 | + color: #333; | ||
219 | + border-bottom: 1rpx solid #f5f5f5; | ||
220 | + padding-bottom: 30rpx; | ||
221 | + text-align: center; | ||
222 | +} | ||
223 | + | ||
224 | +.comment_item { | ||
225 | + display: flex; | ||
226 | + align-items: flex-start; | ||
227 | + padding: 30rpx 0; | ||
228 | + margin-bottom: 16rpx; | ||
229 | + background: #fff; | ||
230 | + border-bottom: 1rpx solid #f5f5f5; | ||
231 | +} | ||
232 | + | ||
233 | +.comment_item:last-child { | ||
234 | + border-bottom: 0; | ||
235 | +} | ||
236 | + | ||
237 | +.head_img { | ||
238 | + width: 80rpx; | ||
239 | + height: 80rpx; | ||
240 | + border-radius: 50%; | ||
241 | + display: flex; | ||
242 | + align-items: center; | ||
243 | + justify-content: center; | ||
244 | + margin-right: 20rpx; | ||
245 | +} | ||
246 | + | ||
247 | +.comment_content_box { | ||
248 | + width: 85%; | ||
249 | +} | ||
250 | + | ||
251 | +.comment_content { | ||
252 | + font-size: 28rpx; | ||
253 | + color: #333; | ||
254 | + margin-top: 10rpx; | ||
255 | +} | ||
256 | + | ||
257 | +.comment_name { | ||
258 | + font-size: 24rpx; | ||
259 | + color: #45609f; | ||
260 | +} | ||
261 | + | ||
262 | +.time { | ||
263 | + font-size: 20rpx; | ||
264 | + color: #999; | ||
265 | +} | ||
266 | + | ||
267 | +.zan { | ||
268 | + font-size: 30rpx; | ||
269 | + margin-left: 10rpx; | ||
270 | +} | ||
271 | + | ||
272 | +.list_info_box { | ||
273 | + font-size: 24rpx; | ||
274 | + color: #b3b3b3; | ||
275 | +} | ||
276 | + | ||
277 | +.list_state_box { | ||
278 | + display: flex; | ||
279 | + align-items: center; | ||
280 | + justify-content: space-between; | ||
281 | + font-size: 26rpx; | ||
282 | + color: #999; | ||
283 | + margin-top: 15rpx; | ||
284 | +} | ||
285 | + | ||
286 | +.list_comment_box { | ||
287 | + background: #ebecf0; | ||
288 | + font-size: 24rpx; | ||
289 | + color: #6b7e91; | ||
290 | + margin-top: 28rpx; | ||
291 | +} | ||
292 | + | ||
293 | +.comment_list { | ||
294 | + border-bottom: 1rpx solid #fff; | ||
295 | + padding: 10rpx 17rpx; | ||
296 | +} | ||
297 | + | ||
298 | +/* */ | ||
299 | + | ||
300 | +.null_box { | ||
301 | + width: 100%; | ||
302 | + height: 110rpx; | ||
303 | +} | ||
304 | + | ||
305 | +.bottom_box { | ||
306 | + width: 100%; | ||
307 | + height: 96rpx; | ||
308 | + position: fixed; | ||
309 | + left: 0; | ||
310 | + bottom: 0; | ||
311 | + background: #fff; | ||
312 | + display: flex; | ||
313 | + align-items: center; | ||
314 | + padding: 0 30rpx; | ||
315 | + box-shadow:0rpx 0rpx 12rpx rgba(0,0,0,0.05); | ||
316 | +} | ||
317 | + | ||
318 | +.label_item { | ||
319 | + width: 340rpx; | ||
320 | + height: 64rpx; | ||
321 | + background: rgba(247, 247, 247, 1); | ||
322 | + border: 1rpx solid rgba(238, 238, 238, 1); | ||
323 | + border-radius: 206rpx; | ||
324 | + display: flex; | ||
325 | + align-items: center; | ||
326 | + justify-content: center; | ||
327 | + font-size: 28rpx; | ||
328 | + color: #666; | ||
329 | + padding: 5rpx 20rpx; | ||
330 | +} | ||
331 | + | ||
332 | +.icon-bianji1{ | ||
333 | + margin-right: 10rpx; | ||
334 | +} | ||
335 | +.label_icon_box{ | ||
336 | + width: 40%; | ||
337 | + display: flex; | ||
338 | + align-items: center; | ||
339 | + justify-content: space-around; | ||
340 | + padding: 0 30rpx; | ||
341 | +} | ||
342 | + | ||
343 | + | ||
344 | +.icon { | ||
345 | + font-size: 35rpx; | ||
346 | + color: #666666; | ||
347 | +} | ||
348 | + | ||
349 | + |
-
请 注册 或 登录 后发表评论