正在显示
67 个修改的文件
包含
4774 行增加
和
0 行删除
app.js
0 → 100644
1 | +//app.js | ||
2 | +App({ | ||
3 | + onLaunch: function () { | ||
4 | + // 展示本地存储能力 | ||
5 | + var logs = wx.getStorageSync('logs') || [] | ||
6 | + logs.unshift(Date.now()) | ||
7 | + wx.setStorageSync('logs', logs) | ||
8 | + | ||
9 | + // 登录 | ||
10 | + wx.login({ | ||
11 | + success: res => { | ||
12 | + // 发送 res.code 到后台换取 openId, sessionKey, unionId | ||
13 | + } | ||
14 | + }) | ||
15 | + // 获取用户信息 | ||
16 | + wx.getSetting({ | ||
17 | + success: res => { | ||
18 | + if (res.authSetting['scope.userInfo']) { | ||
19 | + // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框 | ||
20 | + wx.getUserInfo({ | ||
21 | + success: res => { | ||
22 | + // 可以将 res 发送给后台解码出 unionId | ||
23 | + this.globalData.userInfo = res.userInfo | ||
24 | + | ||
25 | + // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回 | ||
26 | + // 所以此处加入 callback 以防止这种情况 | ||
27 | + if (this.userInfoReadyCallback) { | ||
28 | + this.userInfoReadyCallback(res) | ||
29 | + } | ||
30 | + } | ||
31 | + }) | ||
32 | + } | ||
33 | + } | ||
34 | + }) | ||
35 | + }, | ||
36 | + globalData: { | ||
37 | + userInfo: null | ||
38 | + } | ||
39 | +}) |
app.json
0 → 100644
1 | +{ | ||
2 | + "pages": [ | ||
3 | + "pages/index/index", | ||
4 | + "pages/my/orderDetail/orderDetail", | ||
5 | + "pages/my/big/big", | ||
6 | + "pages/my/activityInformation/activityInformation", | ||
7 | + "pages/my/serach/serach", | ||
8 | + "pages/my/selectAddress/selectAddress", | ||
9 | + "pages/my/editAddress2/editAddress2", | ||
10 | + "pages/my/editAddress/editAddress", | ||
11 | + "pages/index/production_steps/production_steps", | ||
12 | + "pages/my/myCollection/myCollection", | ||
13 | + "pages/index/goodsDetial2/goodsDetial2", | ||
14 | + "pages/index/goodsDetial/goodsDetial", | ||
15 | + "pages/my/modifyPersonInformation/modifyPersonInformation", | ||
16 | + "pages/my/modifyName/modifyName", | ||
17 | + "pages/my/invitationList/invitationList", | ||
18 | + "pages/my/invoiceInformation/invoiceInformation", | ||
19 | + "pages/my/invoice/invoice", | ||
20 | + "pages/my/commonProblems/commonProblems", | ||
21 | + "pages/my/myAddress/myAddress", | ||
22 | + "pages/my/invitationPolite/invitationPolite", | ||
23 | + "pages/my/comment/comment", | ||
24 | + "pages/my/coupons/coupons", | ||
25 | + "pages/my/balance _center2/balance _center2", | ||
26 | + "pages/my/charger_code/charger_code", | ||
27 | + "pages/my/balance _center/balance _center", | ||
28 | + "pages/my/my", | ||
29 | + "pages/cart/cart" | ||
30 | + ], | ||
31 | + "window": { | ||
32 | + "backgroundTextStyle": "dark", | ||
33 | + "navigationBarBackgroundColor": "#1a191f", | ||
34 | + "navigationBarTitleText": "HI,鲜生", | ||
35 | + "navigationBarTextStyle": "white" | ||
36 | + }, | ||
37 | + "permission": { | ||
38 | + "scope.userLocation": { | ||
39 | + "desc": "你的位置信息将用于小程序位置接口的效果展示" | ||
40 | + } | ||
41 | + }, | ||
42 | + "tabBar": { | ||
43 | + "selectedColor": "#222222", | ||
44 | + "list": [ | ||
45 | + { | ||
46 | + "selectedIconPath": "pages/imgs/nav02@2x.png", | ||
47 | + "iconPath": "pages/imgs/nav01@2x.png", | ||
48 | + "pagePath": "pages/index/index", | ||
49 | + "text": "首页" | ||
50 | + }, | ||
51 | + { | ||
52 | + "selectedIconPath": "pages/imgs/nav04@2x.png", | ||
53 | + "iconPath": "pages/imgs/nav03@2x.png", | ||
54 | + "pagePath": "pages/cart/cart", | ||
55 | + "text": "购物车" | ||
56 | + }, | ||
57 | + { | ||
58 | + "selectedIconPath": "pages/imgs/nav06@2x.png", | ||
59 | + "iconPath": "pages/imgs/nav05@2x.png", | ||
60 | + "pagePath": "pages/my/my", | ||
61 | + "text": "个人中心" | ||
62 | + } | ||
63 | + ] | ||
64 | + }, | ||
65 | + "networkTimeout": { | ||
66 | + "request": 1000, | ||
67 | + "connectSocket": 1000, | ||
68 | + "uploadFile": 1000, | ||
69 | + "downloadFile": 1000 | ||
70 | + } | ||
71 | +} |
app.wxss
0 → 100644
1 | +/**app.wxss**/ | ||
2 | + | ||
3 | +@font-face { | ||
4 | + font-family: 'pingfang'; | ||
5 | + src: url('pages/src/fonts/PingFangLight.ttf'); | ||
6 | + font-family: 'pingfanglight'; | ||
7 | + src: url('pages/src/fonts/PingFangLight.ttf'); | ||
8 | +} | ||
9 | + | ||
10 | +/** | ||
11 | + * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) | ||
12 | + * http://cssreset.com | ||
13 | + */ | ||
14 | + | ||
15 | +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, | ||
16 | +blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, | ||
17 | +ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, | ||
18 | +dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, | ||
19 | +tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, | ||
20 | +figcaption, footer, header, menu, nav, output, ruby, section, summary, time, | ||
21 | +mark, audio, video, input, view, text, template, blockquote, page, image { | ||
22 | + margin: 0; | ||
23 | + padding: 0; | ||
24 | + border: 0; | ||
25 | + font-size: 100%; | ||
26 | + font-weight: normal; | ||
27 | + vertical-align: baseline; | ||
28 | + box-sizing: border-box; | ||
29 | + font-family: 'pingfang'; | ||
30 | +} | ||
31 | + | ||
32 | +/* HTML5 display-role reset for older browsers */ | ||
33 | + | ||
34 | +article, aside, details, figcaption, figure, footer, header, menu, nav, section { | ||
35 | + display: block; | ||
36 | +} | ||
37 | + | ||
38 | +body { | ||
39 | + line-height: 1; | ||
40 | + height: 100%; | ||
41 | + position: relative; | ||
42 | +} | ||
43 | + | ||
44 | +blockquote, q { | ||
45 | + quotes: none; | ||
46 | +} | ||
47 | + | ||
48 | +blockquote:before, blockquote:after, q:before, q:after { | ||
49 | + content: none; | ||
50 | +} | ||
51 | + | ||
52 | +table { | ||
53 | + border-collapse: collapse; | ||
54 | + border-spacing: 0; | ||
55 | +} | ||
56 | + | ||
57 | +html, body { | ||
58 | + width: 100%; | ||
59 | +} | ||
60 | + | ||
61 | +/* custom */ | ||
62 | + | ||
63 | +a { | ||
64 | + color: #000; | ||
65 | + text-decoration: none; | ||
66 | + -webkit-backface-visibility: hidden; | ||
67 | +} | ||
68 | + | ||
69 | +li { | ||
70 | + list-style: none; | ||
71 | +} | ||
72 | + | ||
73 | +::-webkit-scrollbar { | ||
74 | + width: 5px; | ||
75 | + height: 5px; | ||
76 | +} | ||
77 | + | ||
78 | +::-webkit-scrollbar-track-piece { | ||
79 | + background-color: rgba(0, 0, 0, 0.2); | ||
80 | + -webkit-border-radius: 6px; | ||
81 | +} | ||
82 | + | ||
83 | +::-webkit-scrollbar-thumb:vertical { | ||
84 | + height: 5px; | ||
85 | + background-color: rgba(125, 125, 125, 0.7); | ||
86 | + -webkit-border-radius: 6px; | ||
87 | +} | ||
88 | + | ||
89 | +::-webkit-scrollbar-thumb:horizontal { | ||
90 | + width: 5px; | ||
91 | + background-color: rgba(125, 125, 125, 0.7); | ||
92 | + -webkit-border-radius: 6px; | ||
93 | +} | ||
94 | + | ||
95 | +body { | ||
96 | + -webkit-text-size-adjust: none; | ||
97 | + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
98 | +} | ||
99 | + | ||
100 | +img { | ||
101 | + border: 0; | ||
102 | + margin: 0; | ||
103 | +} | ||
104 | + | ||
105 | +input, textarea { | ||
106 | + height: 100%; | ||
107 | + width: 100%; | ||
108 | + border: 0; | ||
109 | + outline: none; | ||
110 | + background: none; | ||
111 | +} | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | +.rmb { | ||
117 | + font-size: 22rpx; | ||
118 | + color: #222; | ||
119 | +} | ||
120 | + | ||
121 | +.nav_type_box { | ||
122 | + display: flex; | ||
123 | + align-items: center; | ||
124 | + justify-content: space-between; | ||
125 | + font-size: 24rpx; | ||
126 | + color: #222; | ||
127 | + padding: 29rpx 23rpx; | ||
128 | + border-bottom: 1rpx solid #f2f2f2; | ||
129 | + background-color: #fff; | ||
130 | +} | ||
131 | + | ||
132 | +.nav_type_left { | ||
133 | + display: flex; | ||
134 | + align-items: center; | ||
135 | + flex: 1; | ||
136 | +} | ||
137 | + | ||
138 | +.nav_type { | ||
139 | + display: flex; | ||
140 | + align-items: center; | ||
141 | + margin-right: 30rpx; | ||
142 | +} | ||
143 | + | ||
144 | +.nav_type .iconfont, .nav_type_right .iconfont { | ||
145 | + font-size: 24rpx; | ||
146 | + margin: 0 11rpx 0 0; | ||
147 | +} | ||
148 | + | ||
149 | +.nav_type_right { | ||
150 | + display: flex; | ||
151 | + align-items: center; | ||
152 | +} | ||
153 | + | ||
154 | +.type_active { | ||
155 | + color: #ffda44; | ||
156 | +} | ||
157 | + | ||
158 | +/* 单个商品列表样式 */ | ||
159 | + | ||
160 | +.goodbox { | ||
161 | + background-color: #fff; | ||
162 | + | ||
163 | +} | ||
164 | + | ||
165 | +.good_item { | ||
166 | + display: flex; | ||
167 | + align-items: center; | ||
168 | + justify-content: space-between; | ||
169 | + padding: 50rpx 22rpx; | ||
170 | + border-bottom: 1rpx solid #f2f2f2; | ||
171 | +} | ||
172 | + | ||
173 | +.good_img { | ||
174 | + width: 225rpx; | ||
175 | + height: 217rpx; | ||
176 | + display: flex; | ||
177 | + align-items: center; | ||
178 | + justify-content: center; | ||
179 | +} | ||
180 | + | ||
181 | +.good_right { | ||
182 | + flex: 2; | ||
183 | + margin-left: 20rpx; | ||
184 | +} | ||
185 | + | ||
186 | +.good_name { | ||
187 | + color: #222; | ||
188 | + font-size: 30rpx; | ||
189 | + padding: 0 0 10rpx 0; | ||
190 | +} | ||
191 | + | ||
192 | +.good_stand { | ||
193 | + font-size: 24rpx; | ||
194 | + color: #888; | ||
195 | +} | ||
196 | + | ||
197 | +.rmb { | ||
198 | + font-size: 22rpx; | ||
199 | +} | ||
200 | + | ||
201 | +.good_pprice { | ||
202 | + font-size: 26rpx; | ||
203 | + color: #222; | ||
204 | + font-weight: bold; | ||
205 | + padding: 0 10rpx; | ||
206 | +} | ||
207 | + | ||
208 | +.good_oprice { | ||
209 | + font-size: 22rpx; | ||
210 | + color: #888; | ||
211 | +} | ||
212 | + | ||
213 | +.good_vip { | ||
214 | + color: #f44; | ||
215 | + font-size: 34rpx; | ||
216 | + font-weight: bold; | ||
217 | +} | ||
218 | + | ||
219 | +.good_vipbox { | ||
220 | + display: flex; | ||
221 | + align-items: center; | ||
222 | + justify-content: space-between; | ||
223 | +} | ||
224 | + | ||
225 | +.good_vipbox_left { | ||
226 | + display: flex; | ||
227 | + align-items: center; | ||
228 | + flex: 1; | ||
229 | +} | ||
230 | + | ||
231 | +.good_vip_spec { | ||
232 | + font-size: 18rpx; | ||
233 | + height: 25rpx; | ||
234 | + background-color: #f44; | ||
235 | + padding: 3rpx; | ||
236 | + text-align: center; | ||
237 | + color: #fff; | ||
238 | + line-height: 100%; | ||
239 | + margin-left: 5rpx; | ||
240 | + /* background-image: url('../imgs/') */ | ||
241 | +} | ||
242 | + | ||
243 | +.good_btn { | ||
244 | + height: 60rpx; | ||
245 | + width: 60rpx; | ||
246 | + display: flex; | ||
247 | + align-items: center; | ||
248 | + justify-content: center; | ||
249 | + border-radius: 50%; | ||
250 | + background-color: #ffda44; | ||
251 | + box-shadow: 5rpx 0px 5rpx rgba(248, 207, 38, 0.3); | ||
252 | +} | ||
253 | + | ||
254 | +.icon-gouwuche { | ||
255 | + font-size: 29rpx; | ||
256 | + color: #444; | ||
257 | +} | ||
258 | + | ||
259 | +/* 头部信息 */ | ||
260 | + | ||
261 | +.banner { | ||
262 | + height: 86rpx; | ||
263 | + width: 100%; | ||
264 | + overflow: hidden; | ||
265 | + line-height: 80rpx; | ||
266 | + background: #fff; | ||
267 | + display: flex; | ||
268 | + font-size: 34rpx; | ||
269 | + color: #222; | ||
270 | + border-bottom: 1rpx solid #ededed; | ||
271 | + padding: 0 26rpx; | ||
272 | + box-sizing: border-box; | ||
273 | + | ||
274 | +} | ||
275 | + | ||
276 | +.coupons { | ||
277 | + font-weight: bold; | ||
278 | + margin: 0 auto; | ||
279 | +} | ||
280 | + | ||
281 | + | ||
282 | + | ||
283 | + | ||
284 | + | ||
285 | + | ||
286 | + | ||
287 | + | ||
288 | + | ||
289 | + | ||
290 | + | ||
291 | + | ||
292 | + | ||
293 | + | ||
294 | + | ||
295 | +@font-face { | ||
296 | + font-family: 'iconfont'; /* project id 636259 */ | ||
297 | + src: url('//at.alicdn.com/t/font_636259_xrf3sdkafk.eot'); | ||
298 | + src: url('//at.alicdn.com/t/font_636259_xrf3sdkafk.eot?#iefix') format('embedded-opentype'), | ||
299 | + url('//at.alicdn.com/t/font_636259_xrf3sdkafk.woff') format('woff'), | ||
300 | + url('//at.alicdn.com/t/font_636259_xrf3sdkafk.ttf') format('truetype'), | ||
301 | + url('//at.alicdn.com/t/font_636259_xrf3sdkafk.svg#iconfont') format('svg'); | ||
302 | +} | ||
303 | + | ||
304 | + | ||
305 | +.iconfont { | ||
306 | + font-family:"iconfont" !important; | ||
307 | + font-size:16px; | ||
308 | + font-style:normal; | ||
309 | + -webkit-font-smoothing: antialiased; | ||
310 | + -moz-osx-font-smoothing: grayscale; | ||
311 | +} | ||
312 | + | ||
313 | +.icon-vip:before { content: "\e62f"; } | ||
314 | + | ||
315 | +.icon-jia:before { content: "\e65b"; } | ||
316 | + | ||
317 | +.icon-jiantouarrow486:before { content: "\e6aa"; } | ||
318 | + | ||
319 | +.icon-quan:before { content: "\e741"; } | ||
320 | + | ||
321 | +.icon-gouwuche:before { content: "\e6be"; } | ||
322 | + | ||
323 | +.icon-cuowu:before { content: "\e657"; } | ||
324 | + | ||
325 | +.icon-icondayu:before { content: "\e632"; } | ||
326 | + | ||
327 | +.icon-huangguan:before { content: "\e640"; } | ||
328 | + | ||
329 | +.icon-3:before { content: "\e62c"; } | ||
330 | + | ||
331 | +.icon-one-off:before { content: "\e62d"; } | ||
332 | + | ||
333 | +.icon-two-off:before { content: "\e62e"; } | ||
334 | + | ||
335 | +.icon-shangyinhao:before { content: "\e63f"; } | ||
336 | + | ||
337 | +.icon-xiaoyu:before { content: "\e74c"; } | ||
338 | + | ||
339 | +.icon-diandian:before { content: "\e631"; } | ||
340 | + | ||
341 | +.icon-location:before { content: "\e601"; } | ||
342 | + | ||
343 | +.icon-search:before { content: "\e602"; } | ||
344 | + | ||
345 | +.icon-message:before { content: "\e603"; } | ||
346 | + | ||
347 | +.icon-fenlei:before { content: "\e604"; } | ||
348 | + | ||
349 | +.icon-jiance:before { content: "\e605"; } | ||
350 | + | ||
351 | +.icon-xingzhuang:before { content: "\e606"; } | ||
352 | + | ||
353 | +.icon-xingzhuang1:before { content: "\e607"; } | ||
354 | + | ||
355 | +.icon-datu:before { content: "\e608"; } | ||
356 | + | ||
357 | +.icon-wangge:before { content: "\e609"; } | ||
358 | + | ||
359 | +.icon-liebiao:before { content: "\e60a"; } | ||
360 | + | ||
361 | +.icon-shaixuan:before { content: "\e60b"; } | ||
362 | + | ||
363 | +.icon-chakanguize:before { content: "\e600"; } | ||
364 | + | ||
365 | +.icon-tianxie:before { content: "\e60c"; } | ||
366 | + | ||
367 | +.icon-xingzhuang2:before { content: "\e60d"; } | ||
368 | + | ||
369 | +.icon-fanhui:before { content: "\e60e"; } | ||
370 | + | ||
371 | +.icon-dingwei:before { content: "\e60f"; } | ||
372 | + | ||
373 | +.icon-lishisousuo:before { content: "\e610"; } | ||
374 | + | ||
375 | +.icon-remensousuo:before { content: "\e611"; } | ||
376 | + | ||
377 | +.icon-quxiao:before { content: "\e612"; } | ||
378 | + | ||
379 | +.icon-shanchu:before { content: "\e613"; } | ||
380 | + | ||
381 | +.icon-zhankai:before { content: "\e614"; } | ||
382 | + | ||
383 | +.icon-meipingfen:before { content: "\e615"; } | ||
384 | + | ||
385 | +.icon-maishoutuijian:before { content: "\e616"; } | ||
386 | + | ||
387 | +.icon-shoucang:before { content: "\e617"; } | ||
388 | + | ||
389 | +.icon-jinru:before { content: "\e618"; } | ||
390 | + | ||
391 | +.icon-pingfen:before { content: "\e619"; } | ||
392 | + | ||
393 | +.icon-genghuan:before { content: "\e630"; } | ||
394 | + | ||
395 | +.icon-location1:before { content: "\e61a"; } | ||
396 | + | ||
397 | +.icon-weixuanzhong:before { content: "\e61b"; } | ||
398 | + | ||
399 | +.icon-time:before { content: "\e61c"; } | ||
400 | + | ||
401 | +.icon-xuanzhong:before { content: "\e61d"; } | ||
402 | + | ||
403 | +.icon-fenxiangyouli:before { content: "\e61e"; } | ||
404 | + | ||
405 | +.icon-wodeshoucang:before { content: "\e61f"; } | ||
406 | + | ||
407 | +.icon-location2:before { content: "\e620"; } | ||
408 | + | ||
409 | +.icon-yonghuzhinan:before { content: "\e621"; } | ||
410 | + | ||
411 | +.icon-yijianfankui:before { content: "\e622"; } | ||
412 | + | ||
413 | +.icon-qiandao:before { content: "\e623"; } | ||
414 | + | ||
415 | +.icon-zhangdanmingxi:before { content: "\e624"; } | ||
416 | + | ||
417 | +.icon-chuxuyouli:before { content: "\e625"; } | ||
418 | + | ||
419 | +.icon-saoma:before { content: "\e626"; } | ||
420 | + | ||
421 | +.icon-pingjia:before { content: "\e627"; } | ||
422 | + | ||
423 | +.icon-cai:before { content: "\e628"; } | ||
424 | + | ||
425 | +.icon-zan:before { content: "\e629"; } | ||
426 | + | ||
427 | +.icon-kefu:before { content: "\e62a"; } | ||
428 | + | ||
429 | +.icon-quxiao1:before { content: "\e62b"; } | ||
430 | + | ||
431 | +.icon-dangqian:before { content: "\e64a"; } | ||
432 | + | ||
433 | +.icon-meipingfen-copy:before { content: "\e6bf"; } |
pages/cart/cart.js
0 → 100644
1 | +// pages/cart/cart.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/cart/cart.json
0 → 100644
1 | +{} |
pages/cart/cart.wxml
0 → 100644
pages/cart/cart.wxss
0 → 100644
1 | +/* pages/cart/cart.wxss */ |
pages/imgs/.DS_Store
0 → 100644
不能预览此文件类型
pages/imgs/atan@2x.png
0 → 100644
587.3 KB
pages/imgs/bg.png
0 → 100644
8.7 KB
pages/imgs/caipu.png
0 → 100644
221.9 KB
pages/imgs/ic01@2x.png
0 → 100644
3.2 KB
pages/imgs/ic02@2x.png
0 → 100644
2.9 KB
pages/imgs/ic03@2x.png
0 → 100644
2.4 KB
pages/imgs/ic04@2x.png
0 → 100644
2.0 KB
pages/imgs/icon32.png
0 → 100644
31.8 KB
pages/imgs/icon36.png
0 → 100644
904 字节
pages/imgs/icon37.png
0 → 100644
905 字节
pages/imgs/nav01@2x.png
0 → 100644
1.8 KB
pages/imgs/nav02@2x.png
0 → 100644
2.3 KB
pages/imgs/nav03@2x.png
0 → 100644
1.7 KB
pages/imgs/nav04@2x.png
0 → 100644
1.8 KB
pages/imgs/nav05@2x.png
0 → 100644
2.1 KB
pages/imgs/nav06@2x.png
0 → 100644
2.8 KB
pages/imgs/pic1.png
0 → 100644
432.0 KB
pages/imgs/pic19.png
0 → 100644
259.3 KB
pages/imgs/pic2.png
0 → 100644
400.9 KB
pages/imgs/pic38.png
0 → 100644
20.2 KB
pages/imgs/pic41.png
0 → 100644
72.5 KB
pages/imgs/pic43.png
0 → 100644
55.3 KB
pages/imgs/pic6.png
0 → 100644
55.9 KB
pages/imgs/yifahuo@2x.png
0 → 100644
2.1 KB
pages/index/goodsDetial/goodsDetial.js
0 → 100644
1 | +// pages/index/goodsDetial/goodsDetial.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/index/goodsDetial/goodsDetial.json
0 → 100644
1 | +{} |
pages/index/goodsDetial/goodsDetial.wxml
0 → 100644
1 | +<!--pages/index/goodsDetial/goodsDetial.wxml--> | ||
2 | +<view> | ||
3 | + <view class='banner'> | ||
4 | + <view class='iconfont icon-fanhui'></view> | ||
5 | + <view class='coupons'> | ||
6 | + <view class='goods_detail'>商品详情</view> | ||
7 | + <view class='graphic_detail'>图文详情</view> | ||
8 | + </view> | ||
9 | + <view class='share'>分享</view> | ||
10 | + </view> | ||
11 | + <view class='banner_box'> | ||
12 | + <view class='banner_img'> | ||
13 | + <image src='../../imgs/caipu.png'></image> | ||
14 | + </view> | ||
15 | + </view> | ||
16 | + | ||
17 | + <view class='content_item'> | ||
18 | + <view class='item_list'> | ||
19 | + <view class='banner_title'>泰式冬阴功升级版秘制虾汤620g</view> | ||
20 | + <view class='introduce'>量大好吃无限回购</view> | ||
21 | + <view class='banner_character'> | ||
22 | + <view class='banner_price'> | ||
23 | + <view class=''> | ||
24 | + <text class='money_icon'>¥</text> | ||
25 | + <text class='money'>26.0</text> | ||
26 | + <text class='original_price'>¥52.0</text> | ||
27 | + </view> | ||
28 | + <view class='display_box'> | ||
29 | + <text class='money_icon2'>¥</text> | ||
30 | + <text class='money2'>20.0</text> | ||
31 | + <text class='vip'>会员专享</text> | ||
32 | + </view> | ||
33 | + </view> | ||
34 | + <view>已售出:1566份</view> | ||
35 | + </view> | ||
36 | + </view> | ||
37 | + | ||
38 | + <view class='item_list'> | ||
39 | + <view class='list_content'> | ||
40 | + <view class='content_title'> | ||
41 | + <view class='title'>商品规格</view> | ||
42 | + <view class='content'>选择 处理方式 份量</view> | ||
43 | + </view> | ||
44 | + <view class='iconfont icon-jinru'></view> | ||
45 | + </view> | ||
46 | + <view class='list_content'> | ||
47 | + <view class='content_title'> | ||
48 | + <view class='title'>基本参数</view> | ||
49 | + <view class='content'>重量:500g*包 场地/品牌:大理弥渡 ...</view> | ||
50 | + </view> | ||
51 | + <view class='iconfont icon-jinru'></view> | ||
52 | + </view> | ||
53 | + </view> | ||
54 | + | ||
55 | + <view class='item_list7'> | ||
56 | + <view class='list_content'> | ||
57 | + <view> | ||
58 | + <view class='attribute'> | ||
59 | + <view class='attribute_titel'>难度</view> | ||
60 | + <view class='stars'> | ||
61 | + <view class='iconfont icon-pingfen'></view> | ||
62 | + <view class='iconfont icon-pingfen'></view> | ||
63 | + <view class='iconfont icon-pingfen'></view> | ||
64 | + <view class='iconfont icon-pingfen'></view> | ||
65 | + <view class='iconfont icon-pingfen'></view> | ||
66 | + </view> | ||
67 | + </view> | ||
68 | + <view class='attribute'> | ||
69 | + <view class='attribute_titel'>难度</view> | ||
70 | + <view class='stars'>10分钟</view> | ||
71 | + </view> | ||
72 | + </view> | ||
73 | + <view> | ||
74 | + <view class='attribute'> | ||
75 | + <view class='attribute_titel'>难度</view> | ||
76 | + <view class='attribute_content'>微辣</view> | ||
77 | + </view> | ||
78 | + <view class='attribute'> | ||
79 | + <view class='attribute_titel'>难度</view> | ||
80 | + <view class='attribute_content'>10分钟</view> | ||
81 | + </view> | ||
82 | + | ||
83 | + </view> | ||
84 | + </view> | ||
85 | + <view class='more_box'> | ||
86 | + <view>展开更多</view> | ||
87 | + <view class='iconfont icon-zhankai'></view> | ||
88 | + </view> | ||
89 | + </view> | ||
90 | + | ||
91 | + | ||
92 | + <view class='item_list1'> | ||
93 | + <view class='hint1'> | ||
94 | + <view>15元升级SVIP,立享5特权</view> | ||
95 | + <view class='cash_back'> | ||
96 | + 本商品 | ||
97 | + <text class='red_font'>更返2元</text> | ||
98 | + </view> | ||
99 | + </view> | ||
100 | + <view class='hint1'> | ||
101 | + <view>15元升级SVIP,立享5特权</view> | ||
102 | + <view class='cash_back'> | ||
103 | + 本商品 | ||
104 | + <text class='red_font'>更返2元</text> | ||
105 | + </view> | ||
106 | + </view> | ||
107 | + </view> | ||
108 | + | ||
109 | + <view class='item_list2'> | ||
110 | + <view class='user_evaluation'> | ||
111 | + <view class='user_evaluation_title'>用户评价</view> | ||
112 | + <view class='user_evaluation_time'> | ||
113 | + <view>(26)</view> | ||
114 | + <view class='iconfont icon-jinru'></view> | ||
115 | + </view> | ||
116 | + </view> | ||
117 | + <view class='user_information_box'> | ||
118 | + <view class='user_information'> | ||
119 | + <view class='the_star'> | ||
120 | + <view class='head_portrait'> | ||
121 | + <image src='../../imgs/icon32.png'></image> | ||
122 | + </view> | ||
123 | + <view class='star_box'> | ||
124 | + <view class='user_name'>叶晓林</view> | ||
125 | + <view class='stars1'> | ||
126 | + <view class='iconfont icon-pingfen'></view> | ||
127 | + <view class='iconfont icon-pingfen'></view> | ||
128 | + <view class='iconfont icon-pingfen'></view> | ||
129 | + <view class='iconfont icon-pingfen'></view> | ||
130 | + <view class='iconfont icon-pingfen'></view> | ||
131 | + </view> | ||
132 | + </view> | ||
133 | + </view> | ||
134 | + <view class='title'>2017-04-23</view> | ||
135 | + </view> | ||
136 | + <view class='evaluation'>第一次用Hi,鲜生,准时送达,送货上门,主动联系,态度很好,配送很快.感觉挺好。期待下一次购物~</view> | ||
137 | + <view class='evaluation_img'> | ||
138 | + <view class='upload_img_box'> | ||
139 | + <view class='upload_img'> | ||
140 | + <image src='../../imgs/pic38.png'></image> | ||
141 | + </view> | ||
142 | + <view class='upload_img'> | ||
143 | + <image src='../../imgs/pic38.png'></image> | ||
144 | + </view> | ||
145 | + <view class='upload_img'> | ||
146 | + <image src='../../imgs/pic38.png'></image> | ||
147 | + </view> | ||
148 | + </view> | ||
149 | + </view> | ||
150 | + <view class='comments_btn'> | ||
151 | + <view class='iconfont icon-message'></view> | ||
152 | + <view class='comments'>评论</view> | ||
153 | + </view> | ||
154 | + </view> | ||
155 | + </view> | ||
156 | + | ||
157 | + <view class='item_list3'> | ||
158 | + <view class='package_title'>购买含本商品套餐更优惠</view> | ||
159 | + <view class='package_box'> | ||
160 | + <view class='package_img_box'> | ||
161 | + <view class='package_img'> | ||
162 | + <image src='../../imgs/pic38.png'></image> | ||
163 | + </view> | ||
164 | + <view class='package_img'> | ||
165 | + <image src='../../imgs/pic38.png'></image> | ||
166 | + </view> | ||
167 | + <view class='package_img'> | ||
168 | + <image src='../../imgs/pic38.png'></image> | ||
169 | + </view> | ||
170 | + <view class='package_img'> | ||
171 | + <image src='../../imgs/pic38.png'></image> | ||
172 | + </view> | ||
173 | + </view> | ||
174 | + <view class='package_content'> | ||
175 | + <view>粤菜大礼包 春节团圆系列</view> | ||
176 | + <view class='package_hint'>为大家精选挑选的菜系</view> | ||
177 | + <view class='pickage_display'>最多可省 | ||
178 | + <text class='money_icon2'>¥</text> | ||
179 | + <text class='money2'>65.0</text> </view> | ||
180 | + </view> | ||
181 | + </view> | ||
182 | + </view> | ||
183 | + | ||
184 | + <view class='item_list4'> | ||
185 | + <view class='detection'> | ||
186 | + <view class='line1'></view> | ||
187 | + <view class='detection_title'>安心检测</view> | ||
188 | + <view class='line2'></view> | ||
189 | + </view> | ||
190 | + <view class='detection_hint'>经过14项感官排查,100%可溯,点标签查看。</view> | ||
191 | + <view class='detection_item'> | ||
192 | + <view class='detection_box'> | ||
193 | + <view class='detection_img'> | ||
194 | + <image src='../../imgs/pic38.png'></image> | ||
195 | + </view> | ||
196 | + <view>可视化种植</view> | ||
197 | + </view> | ||
198 | + <view class='detection_box'> | ||
199 | + <view class='detection_img'> | ||
200 | + <image src='../../imgs/pic38.png'></image> | ||
201 | + </view> | ||
202 | + <view>可视化种植</view> | ||
203 | + </view> | ||
204 | + <view class='detection_box'> | ||
205 | + <view class='detection_img'> | ||
206 | + <image src='../../imgs/pic38.png'></image> | ||
207 | + </view> | ||
208 | + <view>可视化种植</view> | ||
209 | + </view> | ||
210 | + <view class='detection_box'> | ||
211 | + <view class='detection_img'> | ||
212 | + <image src='../../imgs/pic38.png'></image> | ||
213 | + </view> | ||
214 | + <view>可视化种植</view> | ||
215 | + </view> | ||
216 | + </view> | ||
217 | + </view> | ||
218 | + | ||
219 | + | ||
220 | + <view class='itme_list5'> | ||
221 | + <view class='recommended_box'> | ||
222 | + <view class='iconfont icon-maishoutuijian'></view> | ||
223 | + <view>买手推荐</view> | ||
224 | + </view> | ||
225 | + <view class='foretaste_box'> | ||
226 | + <view class='head_portrait'> | ||
227 | + <image src='../../imgs/icon32.png'></image> | ||
228 | + </view> | ||
229 | + <view class='buyer_recommend'> | ||
230 | + <view class='buyer_name'>杨军</view> | ||
231 | + <view>被称为挑剔的试吃官,力求让每个家庭吃上安心蔬菜</view> | ||
232 | + </view> | ||
233 | + </view> | ||
234 | + <view class='aaa'></view> | ||
235 | + | ||
236 | + <view class='recommend_content'> | ||
237 | + <view class='iconfont icon-shangyinhao'></view> | ||
238 | + <view class='recommend_character'>沃柑生产于广西,南方温和气候有着充足的日照环境,使其沃柑更甘甜水润。沃柑个大皮薄,容易剥皮,果肉脆嫩,粒粒果肉饱满,容易剥皮,果汁多易化渣。看得到的鲜嫩美味。</view> | ||
239 | + <view class='triangle'></view> | ||
240 | + </view> | ||
241 | + | ||
242 | + <view class='ingredients'> | ||
243 | + <view class='ingredients_title'>食材包内含20件</view> | ||
244 | + <view class='ingredients_box'> | ||
245 | + <view class='ingredients_img'> | ||
246 | + <image src='../../imgs/icon32.png'></image> | ||
247 | + </view> | ||
248 | + <view> | ||
249 | + <view class='ingredients_item'> | ||
250 | + <view class='ingredients_name'>主料</view> | ||
251 | + <view class='ingredients_content'> | ||
252 | + <view> 排骨</view> | ||
253 | + <view> 排骨</view> | ||
254 | + <view> 排骨</view> | ||
255 | + <view> 排骨</view> | ||
256 | + <view> 排骨</view> | ||
257 | + </view> | ||
258 | + </view> | ||
259 | + <view class='ingredients_item'> | ||
260 | + <view class='ingredients_name'>主料</view> | ||
261 | + <view class='ingredients_content'> | ||
262 | + <view> 排骨</view> | ||
263 | + <view> 排骨</view> | ||
264 | + <view> 排骨</view> | ||
265 | + <view> 排骨</view> | ||
266 | + <view> 排骨</view> | ||
267 | + </view> | ||
268 | + </view> | ||
269 | + </view> | ||
270 | + </view> | ||
271 | + </view> | ||
272 | + <view class='graphic_ingredients_box'> | ||
273 | + <view class='graphic_ingredients'> | ||
274 | + <view class='graphic_ingredients_background'> | ||
275 | + <view class='graphic_ingredients_border'>浏览图文食谱</view> | ||
276 | + </view> | ||
277 | + </view> | ||
278 | + <view class='graphic_ingredients'> | ||
279 | + <view class='graphic_ingredients_background'> | ||
280 | + <view class='graphic_ingredients_border'>浏览图文食谱</view> | ||
281 | + </view> | ||
282 | + </view> | ||
283 | + </view> | ||
284 | + </view> | ||
285 | + | ||
286 | + <view class='item_list6'> | ||
287 | + | ||
288 | + <view class='collocation_title'>建议搭配 酸梅汁或红酒 解腻助消化</view> | ||
289 | + <view class='collocation'> | ||
290 | + <view class='collocation_box'> | ||
291 | + <view class='collocation_img'> | ||
292 | + <image src='../../imgs/pic43.png'></image> | ||
293 | + </view> | ||
294 | + <view class='collocation_content'> | ||
295 | + | ||
296 | + <view>泰式冬阴功秘制虾汤...</view> | ||
297 | + <view class='introduce'>量大好吃无限回购</view> | ||
298 | + <view class=''> | ||
299 | + <text class='money_icon2'>¥</text> | ||
300 | + <text class='money2'>20.0</text> | ||
301 | + <text class='original_price'>¥52.0</text> | ||
302 | + </view> | ||
303 | + </view> | ||
304 | + </view> | ||
305 | + | ||
306 | + <view class='collocation_box'> | ||
307 | + <view class='collocation_img'> | ||
308 | + <image src='../../imgs/pic43.png'></image> | ||
309 | + </view> | ||
310 | + <view class='collocation_content'> | ||
311 | + | ||
312 | + <view>泰式冬阴功秘制虾汤...</view> | ||
313 | + <view class='introduce'>量大好吃无限回购</view> | ||
314 | + <view class=''> | ||
315 | + <text class='money_icon2'>¥</text> | ||
316 | + <text class='money2'>20.0</text> | ||
317 | + <text class='original_price'>¥52.0</text> | ||
318 | + </view> | ||
319 | + </view> | ||
320 | + </view> | ||
321 | + </view> | ||
322 | + | ||
323 | + </view> | ||
324 | + </view> | ||
325 | + | ||
326 | + <view class='bottom_btn'> | ||
327 | + <view class='hint_btn'> | ||
328 | + <view class='shop_car'> | ||
329 | + <view class='iconfont icon-gouwuche'></view> | ||
330 | + <view>购物车</view> | ||
331 | + </view> | ||
332 | + <view> | ||
333 | + <view class='iconfont icon-shoucang'></view> | ||
334 | + <view class='shop_car'>收藏</view> | ||
335 | + </view> | ||
336 | + </view> | ||
337 | + <view class='join_btn'>加入购物车</view> | ||
338 | + <view class='immediately_btn'>立即购买</view> | ||
339 | + </view> | ||
340 | + | ||
341 | +</view> |
pages/index/goodsDetial/goodsDetial.wxss
0 → 100644
1 | +/* pages/index/goodsDetial/goodsDetial.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #f3f5f5; | ||
5 | +} | ||
6 | + | ||
7 | +.coupons { | ||
8 | + font-size: 30rpx; | ||
9 | + color: #222; | ||
10 | + display: flex; | ||
11 | +} | ||
12 | + | ||
13 | +.goods_detail { | ||
14 | + font-weight: bold; | ||
15 | + border-bottom: 3rpx solid #ffda44; | ||
16 | +} | ||
17 | + | ||
18 | +.graphic_detail { | ||
19 | + font-weight: bold; | ||
20 | + margin-left: 56rpx; | ||
21 | +} | ||
22 | + | ||
23 | +.share { | ||
24 | + font-size: 28rpx; | ||
25 | + color: #222; | ||
26 | +} | ||
27 | + | ||
28 | +.banner_img { | ||
29 | + height: 630rpx; | ||
30 | +} | ||
31 | + | ||
32 | +.banner_img image { | ||
33 | + width: 100%; | ||
34 | + height: 100%; | ||
35 | +} | ||
36 | + | ||
37 | +.item_list { | ||
38 | + padding: 32rpx 25rpx; | ||
39 | + background-color: #fff; | ||
40 | + margin-bottom: 20rpx; | ||
41 | +} | ||
42 | + | ||
43 | +.banner_title { | ||
44 | + font-size: 34rpx; | ||
45 | + color: #222; | ||
46 | +} | ||
47 | + | ||
48 | +.introduce { | ||
49 | + font-size: 28rpx; | ||
50 | + color: #888; | ||
51 | +} | ||
52 | + | ||
53 | +.banner_character { | ||
54 | + display: flex; | ||
55 | + justify-content: space-between; | ||
56 | + align-items: center; | ||
57 | + font-size: 24rpx; | ||
58 | + color: #888; | ||
59 | + margin-top: 40rpx; | ||
60 | +} | ||
61 | + | ||
62 | +.banner_price { | ||
63 | + display: flex; | ||
64 | + /* align-items: center; */ | ||
65 | +} | ||
66 | + | ||
67 | +.money_icon { | ||
68 | + font-size: 22rpx; | ||
69 | + color: #222; | ||
70 | +} | ||
71 | + | ||
72 | +.money { | ||
73 | + font-size: 38rpx; | ||
74 | + font-weight: bold; | ||
75 | + color: #222; | ||
76 | +} | ||
77 | + | ||
78 | +.original_price { | ||
79 | + color: #888; | ||
80 | + text-decoration: line-through; | ||
81 | +} | ||
82 | + | ||
83 | +.display_box { | ||
84 | + margin-left: 40rpx; | ||
85 | +} | ||
86 | + | ||
87 | +.money_icon2 { | ||
88 | + font-size: 22rpx; | ||
89 | + color: #f44; | ||
90 | +} | ||
91 | + | ||
92 | +.money2 { | ||
93 | + font-size: 38rpx; | ||
94 | + font-weight: bold; | ||
95 | + color: #f44; | ||
96 | +} | ||
97 | + | ||
98 | +.vip { | ||
99 | + color: #fff; | ||
100 | + background-color: #f44; | ||
101 | + margin-left: 5rpx; | ||
102 | +} | ||
103 | + | ||
104 | +.list_content { | ||
105 | + display: flex; | ||
106 | + justify-content: space-between; | ||
107 | + align-items: center; | ||
108 | +} | ||
109 | + | ||
110 | +.content_title { | ||
111 | + display: flex; | ||
112 | +} | ||
113 | + | ||
114 | +.title { | ||
115 | + font-size: 24rpx; | ||
116 | + color: #888; | ||
117 | +} | ||
118 | + | ||
119 | +.content { | ||
120 | + font-size: 24rpx; | ||
121 | + color: #222; | ||
122 | + margin-left: 47rpx; | ||
123 | +} | ||
124 | + | ||
125 | +.icon-jinru { | ||
126 | + font-size: 22rpx; | ||
127 | + color: #c7c7c7; | ||
128 | +} | ||
129 | + | ||
130 | +.more_box { | ||
131 | + font-size: 24rpx; | ||
132 | + color: #949a9a; | ||
133 | + border-top: 1rpx solid #ededed; | ||
134 | + display: flex; | ||
135 | + justify-content: center; | ||
136 | + align-items: center; | ||
137 | + padding-top: 24rpx; | ||
138 | + margin-top: 35rpx; | ||
139 | +} | ||
140 | + | ||
141 | +.icon-zhankai { | ||
142 | + font-size: 14rpx; | ||
143 | + margin-left: 10rpx; | ||
144 | +} | ||
145 | + | ||
146 | +.item_list1 { | ||
147 | + background-color: #fff; | ||
148 | + margin-bottom: 20rpx; | ||
149 | + display: flex; | ||
150 | + justify-content: space-between; | ||
151 | + align-items: center; | ||
152 | + padding: 19rpx 16rpx; | ||
153 | +} | ||
154 | + | ||
155 | +.hint1 { | ||
156 | + font-size: 22rpx; | ||
157 | + color: #222; | ||
158 | + background-color: #fafafa; | ||
159 | + border-radius: 12rpx; | ||
160 | + padding: 25rpx 39rpx; | ||
161 | +} | ||
162 | + | ||
163 | +.cash_back { | ||
164 | + font-size: 28rpx; | ||
165 | + font-weight: bold; | ||
166 | + color: #222; | ||
167 | +} | ||
168 | + | ||
169 | +.red_font { | ||
170 | + font-weight: bold; | ||
171 | + color: #f44; | ||
172 | +} | ||
173 | + | ||
174 | +.item_list7 { | ||
175 | + padding: 31rpx 25rpx 25rpx 25rpx; | ||
176 | +} | ||
177 | + | ||
178 | +.attribute { | ||
179 | + width: 375rpx; | ||
180 | + display: flex; | ||
181 | + align-items: center; | ||
182 | + /* margin-left: 49rpx; */ | ||
183 | +} | ||
184 | + | ||
185 | +.attribute_titel { | ||
186 | + font-size: 26rpx; | ||
187 | + color: #94999a; | ||
188 | +} | ||
189 | + | ||
190 | +.stars { | ||
191 | + display: flex; | ||
192 | + font-size: 26rpx; | ||
193 | + color: #222; | ||
194 | + margin-left: 35rpx; | ||
195 | +} | ||
196 | + | ||
197 | +.icon-pingfen { | ||
198 | + font-size: 26rpx; | ||
199 | + color: #222; | ||
200 | +} | ||
201 | + | ||
202 | +.attribute_content { | ||
203 | + font-size: 26rpx; | ||
204 | + color: #222; | ||
205 | + margin-left: 113rpx; | ||
206 | +} | ||
207 | + | ||
208 | +.item_list2, .item_list3, .item_list4, .itme_list5, .item_list6, .item_list7 { | ||
209 | + background-color: #fff; | ||
210 | + margin-bottom: 20rpx; | ||
211 | +} | ||
212 | + | ||
213 | +.user_evaluation { | ||
214 | + display: flex; | ||
215 | + justify-content: space-between; | ||
216 | + align-items: center; | ||
217 | + border-bottom: 1rpx solid #f3f5f5; | ||
218 | + padding: 31rpx 25rpx; | ||
219 | +} | ||
220 | + | ||
221 | +.user_evaluation_title { | ||
222 | + font-size: 30rpx; | ||
223 | + font-weight: bold; | ||
224 | + color: #222; | ||
225 | +} | ||
226 | + | ||
227 | +.user_evaluation_time { | ||
228 | + font-size: 24rpx; | ||
229 | + color: #c7c7c7; | ||
230 | + display: flex; | ||
231 | + align-items: center; | ||
232 | +} | ||
233 | + | ||
234 | +.comments_btn { | ||
235 | + display: flex; | ||
236 | + justify-content: flex-end; | ||
237 | + align-items: center; | ||
238 | + font-size: 23rpx; | ||
239 | + color: #949a9a; | ||
240 | + margin-top: 24rpx; | ||
241 | +} | ||
242 | + | ||
243 | +.icon-message { | ||
244 | + font-size: 22rpx; | ||
245 | + color: #949a9a; | ||
246 | + margin-right: 10rpx; | ||
247 | +} | ||
248 | + | ||
249 | +.user_information_box { | ||
250 | + padding: 31rpx 25rpx 25rpx 25rpx; | ||
251 | +} | ||
252 | + | ||
253 | +.user_information { | ||
254 | + display: flex; | ||
255 | + justify-content: space-between; | ||
256 | + align-items: center; | ||
257 | +} | ||
258 | + | ||
259 | +.head_portrait { | ||
260 | + width: 62rpx; | ||
261 | + height: 62rpx; | ||
262 | +} | ||
263 | + | ||
264 | +.head_portrait image { | ||
265 | + width: 100%; | ||
266 | + height: 100%; | ||
267 | +} | ||
268 | + | ||
269 | +.star_box { | ||
270 | + margin-left: 25rpx; | ||
271 | +} | ||
272 | + | ||
273 | +.the_star { | ||
274 | + display: flex; | ||
275 | + align-items: center; | ||
276 | +} | ||
277 | + | ||
278 | +.stars1 { | ||
279 | + display: flex; | ||
280 | +} | ||
281 | + | ||
282 | +.user_name { | ||
283 | + font-size: 26rpx; | ||
284 | + color: #222; | ||
285 | +} | ||
286 | + | ||
287 | +.evaluation { | ||
288 | + font-size: 24rpx; | ||
289 | + color: #222; | ||
290 | + margin-top: 25rpx; | ||
291 | +} | ||
292 | + | ||
293 | +.evaluation_img { | ||
294 | + margin-top: 21rpx; | ||
295 | +} | ||
296 | + | ||
297 | +.upload_img_box { | ||
298 | + display: flex; | ||
299 | +} | ||
300 | + | ||
301 | +.upload_img { | ||
302 | + width: 160rpx; | ||
303 | + height: 160rpx; | ||
304 | + margin-right: 20rpx; | ||
305 | +} | ||
306 | + | ||
307 | +.upload_img image { | ||
308 | + width: 100%; | ||
309 | + height: 100%; | ||
310 | +} | ||
311 | + | ||
312 | +.item_list3 { | ||
313 | + padding: 39rpx 25rpx 40rpx 25rpx; | ||
314 | +} | ||
315 | + | ||
316 | +.package_title { | ||
317 | + font-size: 30rpx; | ||
318 | + font-weight: bold; | ||
319 | + color: #222; | ||
320 | +} | ||
321 | + | ||
322 | +.package_box { | ||
323 | + display: flex; | ||
324 | + margin-top: 44rpx; | ||
325 | +} | ||
326 | + | ||
327 | +.package_img_box { | ||
328 | + width: 200rpx; | ||
329 | + height: 200rpx; | ||
330 | + display: flex; | ||
331 | + flex-wrap: wrap; | ||
332 | + /* justify-content: flex-end; | ||
333 | + align-content: space-between; */ | ||
334 | +} | ||
335 | + | ||
336 | +.package_img { | ||
337 | + width: 95rpx; | ||
338 | + height: 95rpx; | ||
339 | +} | ||
340 | + | ||
341 | +.package_img image { | ||
342 | + width: 100%; | ||
343 | + height: 100%; | ||
344 | +} | ||
345 | + | ||
346 | +.package_content { | ||
347 | + font-size: 30rpx; | ||
348 | + color: #222; | ||
349 | + margin-left: 40rpx; | ||
350 | +} | ||
351 | + | ||
352 | +.package_hint { | ||
353 | + font-size: 24rpx; | ||
354 | + color: #94999a; | ||
355 | +} | ||
356 | + | ||
357 | +.pickage_display { | ||
358 | + font-size: 24rpx; | ||
359 | + color: #f44; | ||
360 | + margin-top: 47rpx; | ||
361 | +} | ||
362 | + | ||
363 | +.item_list4 { | ||
364 | + padding: 46rpx 44rpx; | ||
365 | +} | ||
366 | + | ||
367 | +.detection_item { | ||
368 | + display: flex; | ||
369 | + justify-content: space-around; | ||
370 | + margin-top: 58rpx; | ||
371 | +} | ||
372 | + | ||
373 | +.detection { | ||
374 | + display: flex; | ||
375 | + justify-content: center; | ||
376 | + align-items: center; | ||
377 | +} | ||
378 | + | ||
379 | +.line1 { | ||
380 | + width: 115rpx; | ||
381 | + height: 1rpx; | ||
382 | + background: linear-gradient(to right, #fff, #bbb); | ||
383 | +} | ||
384 | + | ||
385 | +.line2 { | ||
386 | + width: 115rpx; | ||
387 | + height: 1rpx; | ||
388 | + background: linear-gradient(to left, #fff, #bbb); | ||
389 | +} | ||
390 | + | ||
391 | +.detection_title { | ||
392 | + font-size: 26rpx; | ||
393 | + color: #222; | ||
394 | + margin: 0 30rpx; | ||
395 | +} | ||
396 | + | ||
397 | +.detection_box { | ||
398 | + font-size: 26rpx; | ||
399 | + color: #222; | ||
400 | +} | ||
401 | + | ||
402 | +.detection_img { | ||
403 | + margin: 0 auto; | ||
404 | + width: 54rpx; | ||
405 | + height: 54rpx; | ||
406 | +} | ||
407 | + | ||
408 | +.detection_img image { | ||
409 | + width: 100%; | ||
410 | + height: 100%; | ||
411 | +} | ||
412 | + | ||
413 | +.detection_hint { | ||
414 | + font-size: 22rpx; | ||
415 | + color: #94999a; | ||
416 | + text-align: center; | ||
417 | + margin-top: 20rpx; | ||
418 | +} | ||
419 | + | ||
420 | +.itme_list5 { | ||
421 | + position: relative; | ||
422 | + padding: 45rpx 25rpx 30rpx 25rpx; | ||
423 | + box-sizing: border-box; | ||
424 | +} | ||
425 | + | ||
426 | +.recommended_box { | ||
427 | + width: 150rpx; | ||
428 | + height: 45rpx; | ||
429 | + display: flex; | ||
430 | + align-items: center; | ||
431 | + justify-content: center; | ||
432 | + background: #ffda44; | ||
433 | + border-radius: 0 0 16rpx 16rpx; | ||
434 | + font-size: 22rpx; | ||
435 | + color: #333; | ||
436 | + position: absolute; | ||
437 | + right: 24rpx; | ||
438 | + top: 0; | ||
439 | +} | ||
440 | + | ||
441 | +.foretaste_box { | ||
442 | + display: flex; | ||
443 | + align-items: center; | ||
444 | + font-size: 30rpx; | ||
445 | +} | ||
446 | + | ||
447 | +.buyer_recommend { | ||
448 | + font-size: 22rpx; | ||
449 | + color: #94999a; | ||
450 | + margin-left: 20rpx; | ||
451 | +} | ||
452 | + | ||
453 | +.buyer_name { | ||
454 | + font-size: 30rpx; | ||
455 | + color: #222; | ||
456 | +} | ||
457 | + | ||
458 | +.recommend_content { | ||
459 | + background-color: #fafafa; | ||
460 | + border-radius: 16rpx; | ||
461 | + padding: 25rpx 25rpx 25rpx 25rpx; | ||
462 | + margin-top: 30rpx; | ||
463 | + font-size: 26rpx; | ||
464 | + color: #222; | ||
465 | + position: relative; | ||
466 | +} | ||
467 | + | ||
468 | +.icon-shangyinhao { | ||
469 | + font-size: 22rpx; | ||
470 | + color: #e3e3e3; | ||
471 | +} | ||
472 | + | ||
473 | +.triangle { | ||
474 | + width: 0; | ||
475 | + height: 0; | ||
476 | + border-left: 60rpx solid #fafafa; | ||
477 | + border-top: 30rpx solid transparent; | ||
478 | + border-bottom: 30rpx solid transparent; | ||
479 | + position: absolute; | ||
480 | + top: -30rpx; | ||
481 | + left: 50rpx; | ||
482 | +} | ||
483 | + | ||
484 | +.recommend_character { | ||
485 | + margin-left: 10rpx; | ||
486 | +} | ||
487 | + | ||
488 | +.ingredients { | ||
489 | + margin-top: 40rpx; | ||
490 | +} | ||
491 | + | ||
492 | +.ingredients_title { | ||
493 | + font-size: 30rpx; | ||
494 | + font-weight: bold; | ||
495 | + color: #222; | ||
496 | + text-align: center; | ||
497 | +} | ||
498 | + | ||
499 | +.ingredients_img { | ||
500 | + width: 280rpx; | ||
501 | + height: 280rpx; | ||
502 | +} | ||
503 | + | ||
504 | +.ingredients_box { | ||
505 | + display: flex; | ||
506 | +} | ||
507 | + | ||
508 | +.ingredients_img image { | ||
509 | + width: 100%; | ||
510 | + height: 100%; | ||
511 | +} | ||
512 | + | ||
513 | +.ingredients_item { | ||
514 | + width: 400rpx; | ||
515 | + font-size: 26rpx; | ||
516 | + display: flex; | ||
517 | + /* margin-left: 34rpx; */ | ||
518 | + margin-top: 34rpx; | ||
519 | + border: 1px solid red; | ||
520 | +} | ||
521 | + | ||
522 | +.ingredients_name { | ||
523 | + color: #94999a; | ||
524 | + width: 80rpx; | ||
525 | +} | ||
526 | + | ||
527 | +.ingredients_content { | ||
528 | + width: 300rpx; | ||
529 | + display: flex; | ||
530 | + flex-wrap: wrap; | ||
531 | + margin-left: 30rpx; | ||
532 | + border: 1px solid red; | ||
533 | +} | ||
534 | + | ||
535 | +.graphic_ingredients_box { | ||
536 | + margin-top: 40rpx; | ||
537 | +} | ||
538 | + | ||
539 | +.graphic_ingredients { | ||
540 | + height: 200rpx; | ||
541 | + border: 1rpx solid red; | ||
542 | + display: flex; | ||
543 | + align-items: center; | ||
544 | + justify-content: center; | ||
545 | + background-image: url('http://hifresh.w.bronet.cn/assets/wxapp/keshihua@2x.png'); | ||
546 | + margin-bottom: 20rpx; | ||
547 | +} | ||
548 | + | ||
549 | +.graphic_ingredients_background { | ||
550 | + width: 450rpx; | ||
551 | + height: 110rpx; | ||
552 | + background-color: #ffb244; | ||
553 | + display: flex; | ||
554 | + align-items: center; | ||
555 | + justify-content: center; | ||
556 | +} | ||
557 | + | ||
558 | +.graphic_ingredients_border { | ||
559 | + font-size: 38rpx; | ||
560 | + color: #fff; | ||
561 | + width: 430rpx; | ||
562 | + height: 90rpx; | ||
563 | + border: 1rpx solid #fff; | ||
564 | + display: flex; | ||
565 | + align-items: center; | ||
566 | + justify-content: center; | ||
567 | +} | ||
568 | + | ||
569 | +.item_list6 { | ||
570 | + padding: 30rpx 25rpx; | ||
571 | +} | ||
572 | + | ||
573 | +.collocation_title { | ||
574 | + font-size: 30rpx; | ||
575 | + font-weight: bold; | ||
576 | + color: #222; | ||
577 | + margin-bottom: 40rpx; | ||
578 | +} | ||
579 | + | ||
580 | +.collocation { | ||
581 | + display: flex; | ||
582 | + justify-content: space-between; | ||
583 | + flex-wrap: wrap; | ||
584 | +} | ||
585 | + | ||
586 | +.collocation_box { | ||
587 | + width: 340rpx; | ||
588 | + border: 1rpx solid red; | ||
589 | + border-radius: 16rpx; | ||
590 | + overflow: hidden; | ||
591 | + /* margin-left: 20rpx; */ | ||
592 | +} | ||
593 | + | ||
594 | +.collocation_img { | ||
595 | + width: 340rpx; | ||
596 | + height: 340rpx; | ||
597 | +} | ||
598 | + | ||
599 | +.collocation_img image { | ||
600 | + width: 100%; | ||
601 | + height: 100%; | ||
602 | +} | ||
603 | + | ||
604 | +.collocation_content { | ||
605 | + background: #fafafa; | ||
606 | + font-size: 30rpx; | ||
607 | + color: #222; | ||
608 | + padding: 22rpx; | ||
609 | +} | ||
610 | + | ||
611 | +.bottom_btn { | ||
612 | + height: 100rpx; | ||
613 | + background: #fff; | ||
614 | + display: flex; | ||
615 | + justify-content: flex-end; | ||
616 | + align-items: center; | ||
617 | +} | ||
618 | + | ||
619 | +.hint_btn { | ||
620 | + width: 218rpx; | ||
621 | + display: flex; | ||
622 | + justify-content: space-around; | ||
623 | + align-items: center; | ||
624 | +} | ||
625 | + | ||
626 | +.shop_car { | ||
627 | + font-size: 18rpx; | ||
628 | + color: #747b7d; | ||
629 | +} | ||
630 | + | ||
631 | +.join_btn { | ||
632 | + width: 266rpx; | ||
633 | + height: 100rpx; | ||
634 | + background: linear-gradient(to left, #ffda44, #ffb244); | ||
635 | + display: flex; | ||
636 | + align-items: center; | ||
637 | + justify-content: center; | ||
638 | + font-size: 26rpx; | ||
639 | + color: #fff; | ||
640 | +} | ||
641 | + | ||
642 | +.immediately_btn { | ||
643 | + width: 266rpx; | ||
644 | + height: 100rpx; | ||
645 | + background: linear-gradient(to left, #f99115, #f56800); | ||
646 | + display: flex; | ||
647 | + align-items: center; | ||
648 | + justify-content: center; | ||
649 | + font-size: 26rpx; | ||
650 | + color: #fff; | ||
651 | +} |
pages/index/goodsDetial2/goodsDetial2.js
0 → 100644
1 | +// pages/index/goodsDetial2/goodsDetial2.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/index/goodsDetial2/goodsDetial2.json
0 → 100644
1 | +{} |
pages/index/goodsDetial2/goodsDetial2.wxml
0 → 100644
1 | +<!--pages/index/goodsDetial/goodsDetial.wxml--> | ||
2 | +<view> | ||
3 | + <view class='banner'> | ||
4 | + <view class='iconfont icon-fanhui'></view> | ||
5 | + <view class='coupons'>商品详情</view> | ||
6 | + <view class='share'>分享</view> | ||
7 | + </view> | ||
8 | + <view class='banner_box'> | ||
9 | + <view class='banner_img'> | ||
10 | + <image src='../../imgs/caipu.png'></image> | ||
11 | + </view> | ||
12 | + <view class='banner_img'> | ||
13 | + <image src='../../imgs/caipu.png'></image> | ||
14 | + </view> | ||
15 | + <view class='banner_img'> | ||
16 | + <image src='../../imgs/caipu.png'></image> | ||
17 | + </view> | ||
18 | + <view class='banner_img'> | ||
19 | + <image src='../../imgs/caipu.png'></image> | ||
20 | + </view> | ||
21 | + </view> | ||
22 | + <view class='content_item'> | ||
23 | + <view class='item_list'> | ||
24 | + <view class='banner_title'>泰式冬阴功升级版秘制虾汤620g</view> | ||
25 | + <view class='introduce'>量大好吃无限回购</view> | ||
26 | + <view class='banner_character'> | ||
27 | + <view class='banner_price'> | ||
28 | + <view class=''> | ||
29 | + <text class='money_icon'>¥</text> | ||
30 | + <text class='money'>26.0</text> | ||
31 | + <text class='original_price'>¥52.0</text> | ||
32 | + </view> | ||
33 | + <view class='display_box'> | ||
34 | + <text class='money_icon2'>¥</text> | ||
35 | + <text class='money2'>20.0</text> | ||
36 | + <text class='vip'>会员专享</text> | ||
37 | + </view> | ||
38 | + </view> | ||
39 | + <view>已售出:1566份</view> | ||
40 | + </view> | ||
41 | + </view> | ||
42 | + | ||
43 | + | ||
44 | + <view class='item_list2'> | ||
45 | + <view class='user_evaluation'> | ||
46 | + <view class='user_evaluation_title'>用户评价</view> | ||
47 | + <view class='user_evaluation_time'> | ||
48 | + <view>(26)</view> | ||
49 | + <view class='iconfont icon-jinru'></view> | ||
50 | + </view> | ||
51 | + </view> | ||
52 | + <view class='user_information_box'> | ||
53 | + <view class='user_information'> | ||
54 | + <view class='the_star'> | ||
55 | + <view class='head_portrait'> | ||
56 | + <image src='../../imgs/icon32.png'></image> | ||
57 | + </view> | ||
58 | + <view class='star_box'> | ||
59 | + <view class='user_name'>叶晓林</view> | ||
60 | + <view class='stars1'> | ||
61 | + <view class='iconfont icon-pingfen'></view> | ||
62 | + <view class='iconfont icon-pingfen'></view> | ||
63 | + <view class='iconfont icon-pingfen'></view> | ||
64 | + <view class='iconfont icon-pingfen'></view> | ||
65 | + <view class='iconfont icon-pingfen'></view> | ||
66 | + </view> | ||
67 | + </view> | ||
68 | + </view> | ||
69 | + <view class='title'>2017-04-23</view> | ||
70 | + </view> | ||
71 | + <view class='evaluation'>第一次用Hi,鲜生,准时送达,送货上门,主动联系,态度很好,配送很快.感觉挺好。期待下一次购物~</view> | ||
72 | + <view class='evaluation_img'> | ||
73 | + <view class='upload_img_box'> | ||
74 | + <view class='upload_img'> | ||
75 | + <image src='../../imgs/pic38.png'></image> | ||
76 | + </view> | ||
77 | + <view class='upload_img'> | ||
78 | + <image src='../../imgs/pic38.png'></image> | ||
79 | + </view> | ||
80 | + <view class='upload_img'> | ||
81 | + <image src='../../imgs/pic38.png'></image> | ||
82 | + </view> | ||
83 | + </view> | ||
84 | + </view> | ||
85 | + <view class='comments_btn'> | ||
86 | + <view class='iconfont icon-message'></view> | ||
87 | + <view class='comments'>评论</view> | ||
88 | + </view> | ||
89 | + </view> | ||
90 | + </view> | ||
91 | + | ||
92 | + | ||
93 | + <view class='item_list1'> | ||
94 | + <view class='hint1'> | ||
95 | + <view>15元升级SVIP,立享5特权</view> | ||
96 | + <view class='cash_back'> | ||
97 | + 本商品 | ||
98 | + <text class='red_font'>更返2元</text> | ||
99 | + </view> | ||
100 | + </view> | ||
101 | + <view class='hint1'> | ||
102 | + <view>15元升级SVIP,立享5特权</view> | ||
103 | + <view class='cash_back'> | ||
104 | + 本商品 | ||
105 | + <text class='red_font'>更返2元</text> | ||
106 | + </view> | ||
107 | + </view> | ||
108 | + </view> | ||
109 | + | ||
110 | + <view class='item_list3'> | ||
111 | + <view class='detection'> | ||
112 | + <view class='line1'></view> | ||
113 | + <view class='detection_title'>安心检测</view> | ||
114 | + <view class='line2'></view> | ||
115 | + </view> | ||
116 | + <view class='detection_hint'>经过14项感官排查,100%可溯,点标签查看。</view> | ||
117 | + <view class='detection_item'> | ||
118 | + <view class='detection_box'> | ||
119 | + <view class='detection_img'> | ||
120 | + <image src='../../imgs/pic38.png'></image> | ||
121 | + </view> | ||
122 | + <view>可视化种植</view> | ||
123 | + </view> | ||
124 | + <view class='detection_box'> | ||
125 | + <view class='detection_img'> | ||
126 | + <image src='../../imgs/pic38.png'></image> | ||
127 | + </view> | ||
128 | + <view>可视化种植</view> | ||
129 | + </view> | ||
130 | + <view class='detection_box'> | ||
131 | + <view class='detection_img'> | ||
132 | + <image src='../../imgs/pic38.png'></image> | ||
133 | + </view> | ||
134 | + <view>可视化种植</view> | ||
135 | + </view> | ||
136 | + <view class='detection_box'> | ||
137 | + <view class='detection_img'> | ||
138 | + <image src='../../imgs/pic38.png'></image> | ||
139 | + </view> | ||
140 | + <view>可视化种植</view> | ||
141 | + </view> | ||
142 | + </view> | ||
143 | + </view> | ||
144 | + | ||
145 | + <view class='itme_list5'> | ||
146 | + <view class='recommended_box'> | ||
147 | + <view class='iconfont icon-maishoutuijian'></view> | ||
148 | + <view>买手推荐</view> | ||
149 | + </view> | ||
150 | + <view class='foretaste_box'> | ||
151 | + <view class='head_portrait'> | ||
152 | + <image src='../../imgs/icon32.png'></image> | ||
153 | + </view> | ||
154 | + <view class='buyer_recommend'> | ||
155 | + <view class='buyer_name'>杨军</view> | ||
156 | + <view>被称为挑剔的试吃官,力求让每个家庭吃上安心蔬菜</view> | ||
157 | + </view> | ||
158 | + </view> | ||
159 | + <view class='recommend_content'> | ||
160 | + <view class='iconfont icon-shangyinhao'></view> | ||
161 | + <view class='recommend_character'>沃柑生产于广西,南方温和气候有着充足的日照环境,使其沃柑更甘甜水润。沃柑个大皮薄,容易剥皮,果肉脆嫩,粒粒果肉饱满,容易剥皮,果汁多易化渣。看得到的鲜嫩美味。</view> | ||
162 | + <view class='triangle'></view> | ||
163 | + </view> | ||
164 | + </view> | ||
165 | + | ||
166 | + <view class='item_list4'> | ||
167 | + <view class='detection'> | ||
168 | + <view class='line1'></view> | ||
169 | + <view class='detection_title'>商品包内容</view> | ||
170 | + <view class='line2'></view> | ||
171 | + </view> | ||
172 | + <view class='detection_hint'>经过14项感官排查,100%可溯,点标签查看。</view> | ||
173 | + <view class='collocation'> | ||
174 | + <view class='collocation_box'> | ||
175 | + <view class='collocation_img'> | ||
176 | + <image src='../../imgs/pic43.png'></image> | ||
177 | + </view> | ||
178 | + <view class='collocation_content'> | ||
179 | + <view>泰式冬阴功秘制虾汤...</view> | ||
180 | + <view class='introduce'>量大好吃无限回购</view> | ||
181 | + </view> | ||
182 | + </view> | ||
183 | + <view class='collocation_box'> | ||
184 | + <view class='collocation_img'> | ||
185 | + <image src='../../imgs/pic43.png'></image> | ||
186 | + </view> | ||
187 | + <view class='collocation_content'> | ||
188 | + <view>泰式冬阴功秘制虾汤...</view> | ||
189 | + <view class='introduce'>量大好吃无限回购</view> | ||
190 | + </view> | ||
191 | + </view> | ||
192 | + <view class='collocation_box'> | ||
193 | + <view class='collocation_img'> | ||
194 | + <image src='../../imgs/pic43.png'></image> | ||
195 | + </view> | ||
196 | + <view class='collocation_content'> | ||
197 | + <view>泰式冬阴功秘制虾汤...</view> | ||
198 | + <view class='introduce'>量大好吃无限回购</view> | ||
199 | + </view> | ||
200 | + </view> | ||
201 | + <view class='collocation_box'> | ||
202 | + <view class='collocation_img'> | ||
203 | + <image src='../../imgs/pic43.png'></image> | ||
204 | + </view> | ||
205 | + <view class='collocation_content'> | ||
206 | + <view>泰式冬阴功秘制虾汤...</view> | ||
207 | + <view class='introduce'>量大好吃无限回购</view> | ||
208 | + </view> | ||
209 | + </view> | ||
210 | + </view> | ||
211 | + <view class='charge_btn'> | ||
212 | + <view class='iconfont icon-genghuan'></view> | ||
213 | + <view>更换菜品</view> | ||
214 | + </view> | ||
215 | + </view> | ||
216 | + | ||
217 | + | ||
218 | +<view class='tips'> | ||
219 | + <view class='item_list7'> | ||
220 | + <view class='detection'> | ||
221 | + <view class='line1'></view> | ||
222 | + <view class='detection_title'>小贴士</view> | ||
223 | + <view class='line2'></view> | ||
224 | + </view> | ||
225 | + <view class='tips_content'> | ||
226 | + <view>01 烤翅中时,在烤盘底部刷一层油再放入烤箱中烤,这样就不会粘盘。</view> | ||
227 | + <view>02 将腌制好的翅中再涂一层蜂蜜,这样会给翅中提鲜,烤出的翅中肉质更细嫩可口。</view> | ||
228 | + <view>03 用翅中和香菇一起烹煮,可令两种食物中的纤维效果加倍,双重营养,使人体更容易消化吸收。</view> | ||
229 | + </view> | ||
230 | + </view> | ||
231 | +</view> | ||
232 | + | ||
233 | + | ||
234 | + <view class='item_list6'> | ||
235 | + <view class='collocation_title'>建议搭配 酸梅汁或红酒 解腻助消化</view> | ||
236 | + <view class='collocation'> | ||
237 | + <view class='collocation_box'> | ||
238 | + <view class='collocation_img'> | ||
239 | + <image src='../../imgs/pic43.png'></image> | ||
240 | + </view> | ||
241 | + <view class='collocation_content'> | ||
242 | + <view>泰式冬阴功秘制虾汤...</view> | ||
243 | + <view class='introduce'>量大好吃无限回购</view> | ||
244 | + <view class=''> | ||
245 | + <text class='money_icon2'>¥</text> | ||
246 | + <text class='money2'>20.0</text> | ||
247 | + <text class='original_price'>¥52.0</text> | ||
248 | + </view> | ||
249 | + </view> | ||
250 | + </view> | ||
251 | + | ||
252 | + <view class='collocation_box'> | ||
253 | + <view class='collocation_img'> | ||
254 | + <image src='../../imgs/pic43.png'></image> | ||
255 | + </view> | ||
256 | + <view class='collocation_content'> | ||
257 | + <view>泰式冬阴功秘制虾汤...</view> | ||
258 | + <view class='introduce'>量大好吃无限回购</view> | ||
259 | + <view class=''> | ||
260 | + <text class='money_icon2'>¥</text> | ||
261 | + <text class='money2'>20.0</text> | ||
262 | + <text class='original_price'>¥52.0</text> | ||
263 | + </view> | ||
264 | + </view> | ||
265 | + </view> | ||
266 | + </view> | ||
267 | + </view> | ||
268 | + </view> | ||
269 | + | ||
270 | + <view class='bottom_btn'> | ||
271 | + <view class='hint_btn'> | ||
272 | + <view class='shop_car'> | ||
273 | + <view class='iconfont icon-gouwuche'></view> | ||
274 | + <view>购物车</view> | ||
275 | + </view> | ||
276 | + <view> | ||
277 | + <view class='iconfont icon-shoucang'></view> | ||
278 | + <view class='shop_car'>收藏</view> | ||
279 | + </view> | ||
280 | + </view> | ||
281 | + <view class='join_btn'>加入购物车</view> | ||
282 | + <view class='immediately_btn'>立即购买</view> | ||
283 | + </view> | ||
284 | + | ||
285 | +</view> |
pages/index/goodsDetial2/goodsDetial2.wxss
0 → 100644
1 | +/* pages/index/goodsDetial/goodsDetial.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #f3f5f5; | ||
5 | +} | ||
6 | + | ||
7 | +.coupons { | ||
8 | + font-size: 30rpx; | ||
9 | + color: #222; | ||
10 | + display: flex; | ||
11 | +} | ||
12 | + | ||
13 | +.goods_detail { | ||
14 | + font-weight: bold; | ||
15 | + border-bottom: 3rpx solid #ffda44; | ||
16 | +} | ||
17 | + | ||
18 | +.graphic_detail { | ||
19 | + font-weight: bold; | ||
20 | + margin-left: 56rpx; | ||
21 | +} | ||
22 | + | ||
23 | +.share { | ||
24 | + font-size: 28rpx; | ||
25 | + color: #222; | ||
26 | +} | ||
27 | + | ||
28 | +.banner_box { | ||
29 | + display: flex; | ||
30 | + flex-wrap: wrap; | ||
31 | +} | ||
32 | + | ||
33 | +.banner_img { | ||
34 | + width: 370rpx; | ||
35 | + height: 315rpx; | ||
36 | +} | ||
37 | + | ||
38 | +.banner_img image { | ||
39 | + width: 100%; | ||
40 | + height: 100%; | ||
41 | +} | ||
42 | + | ||
43 | +.item_list { | ||
44 | + padding: 32rpx 25rpx; | ||
45 | + background-color: #fff; | ||
46 | + margin-bottom: 20rpx; | ||
47 | +} | ||
48 | + | ||
49 | +.banner_title { | ||
50 | + font-size: 34rpx; | ||
51 | + color: #222; | ||
52 | +} | ||
53 | + | ||
54 | +.introduce { | ||
55 | + font-size: 28rpx; | ||
56 | + color: #888; | ||
57 | +} | ||
58 | + | ||
59 | +.banner_character { | ||
60 | + display: flex; | ||
61 | + justify-content: space-between; | ||
62 | + align-items: center; | ||
63 | + font-size: 24rpx; | ||
64 | + color: #888; | ||
65 | + margin-top: 40rpx; | ||
66 | +} | ||
67 | + | ||
68 | +.banner_price { | ||
69 | + display: flex; | ||
70 | + /* align-items: center; */ | ||
71 | +} | ||
72 | + | ||
73 | +.money_icon { | ||
74 | + font-size: 22rpx; | ||
75 | + color: #222; | ||
76 | +} | ||
77 | + | ||
78 | +.money { | ||
79 | + font-size: 38rpx; | ||
80 | + font-weight: bold; | ||
81 | + color: #222; | ||
82 | +} | ||
83 | + | ||
84 | +.original_price { | ||
85 | + color: #888; | ||
86 | + text-decoration: line-through; | ||
87 | +} | ||
88 | + | ||
89 | +.display_box { | ||
90 | + margin-left: 40rpx; | ||
91 | +} | ||
92 | + | ||
93 | +.money_icon2 { | ||
94 | + font-size: 22rpx; | ||
95 | + color: #f44; | ||
96 | +} | ||
97 | + | ||
98 | +.money2 { | ||
99 | + font-size: 38rpx; | ||
100 | + font-weight: bold; | ||
101 | + color: #f44; | ||
102 | +} | ||
103 | + | ||
104 | +.vip { | ||
105 | + color: #fff; | ||
106 | + background-color: #f44; | ||
107 | + margin-left: 5rpx; | ||
108 | +} | ||
109 | + | ||
110 | +.list_content { | ||
111 | + display: flex; | ||
112 | + justify-content: space-between; | ||
113 | + align-items: center; | ||
114 | +} | ||
115 | + | ||
116 | +.content_title { | ||
117 | + display: flex; | ||
118 | +} | ||
119 | + | ||
120 | +.title { | ||
121 | + font-size: 24rpx; | ||
122 | + color: #888; | ||
123 | +} | ||
124 | + | ||
125 | +.content { | ||
126 | + font-size: 24rpx; | ||
127 | + color: #222; | ||
128 | + margin-left: 47rpx; | ||
129 | +} | ||
130 | + | ||
131 | +.icon-jinru { | ||
132 | + font-size: 22rpx; | ||
133 | + color: #c7c7c7; | ||
134 | +} | ||
135 | + | ||
136 | +.more_box { | ||
137 | + font-size: 24rpx; | ||
138 | + color: #949a9a; | ||
139 | + border-top: 1rpx solid #ededed; | ||
140 | + display: flex; | ||
141 | + justify-content: center; | ||
142 | + align-items: center; | ||
143 | + padding-top: 24rpx; | ||
144 | + margin-top: 35rpx; | ||
145 | +} | ||
146 | + | ||
147 | +.icon-zhankai { | ||
148 | + font-size: 14rpx; | ||
149 | + margin-left: 10rpx; | ||
150 | +} | ||
151 | + | ||
152 | +.item_list1 { | ||
153 | + background-color: #fff; | ||
154 | + margin-bottom: 20rpx; | ||
155 | + display: flex; | ||
156 | + justify-content: space-between; | ||
157 | + align-items: center; | ||
158 | + padding: 19rpx 16rpx; | ||
159 | +} | ||
160 | + | ||
161 | +.hint1 { | ||
162 | + font-size: 22rpx; | ||
163 | + color: #222; | ||
164 | + background-color: #fafafa; | ||
165 | + border-radius: 12rpx; | ||
166 | + padding: 25rpx 39rpx; | ||
167 | +} | ||
168 | + | ||
169 | +.cash_back { | ||
170 | + font-size: 28rpx; | ||
171 | + font-weight: bold; | ||
172 | + color: #222; | ||
173 | +} | ||
174 | + | ||
175 | +.red_font { | ||
176 | + font-weight: bold; | ||
177 | + color: #f44; | ||
178 | +} | ||
179 | + | ||
180 | +.attribute { | ||
181 | + width: 375rpx; | ||
182 | + display: flex; | ||
183 | + align-items: center; | ||
184 | + /* margin-left: 49rpx; */ | ||
185 | +} | ||
186 | + | ||
187 | +.attribute_titel { | ||
188 | + font-size: 26rpx; | ||
189 | + color: #94999a; | ||
190 | +} | ||
191 | + | ||
192 | +.stars { | ||
193 | + display: flex; | ||
194 | + font-size: 26rpx; | ||
195 | + color: #222; | ||
196 | + margin-left: 35rpx; | ||
197 | +} | ||
198 | + | ||
199 | +.icon-pingfen { | ||
200 | + font-size: 26rpx; | ||
201 | + color: #222; | ||
202 | +} | ||
203 | + | ||
204 | +.attribute_content { | ||
205 | + font-size: 26rpx; | ||
206 | + color: #222; | ||
207 | + margin-left: 113rpx; | ||
208 | +} | ||
209 | + | ||
210 | +.item_list2, .item_list3, .item_list4, .itme_list5, .item_list6 { | ||
211 | + background-color: #fff; | ||
212 | + margin-bottom: 20rpx; | ||
213 | +} | ||
214 | + | ||
215 | +.user_evaluation { | ||
216 | + display: flex; | ||
217 | + justify-content: space-between; | ||
218 | + align-items: center; | ||
219 | + border-bottom: 1rpx solid #f3f5f5; | ||
220 | + padding: 31rpx 25rpx; | ||
221 | +} | ||
222 | + | ||
223 | +.user_evaluation_title { | ||
224 | + font-size: 30rpx; | ||
225 | + font-weight: bold; | ||
226 | + color: #222; | ||
227 | +} | ||
228 | + | ||
229 | +.user_evaluation_time { | ||
230 | + font-size: 24rpx; | ||
231 | + color: #c7c7c7; | ||
232 | + display: flex; | ||
233 | + align-items: center; | ||
234 | +} | ||
235 | + | ||
236 | +.comments_btn { | ||
237 | + display: flex; | ||
238 | + justify-content: flex-end; | ||
239 | + align-items: center; | ||
240 | + font-size: 23rpx; | ||
241 | + color: #949a9a; | ||
242 | + margin-top: 24rpx; | ||
243 | +} | ||
244 | + | ||
245 | +.icon-message { | ||
246 | + font-size: 22rpx; | ||
247 | + color: #949a9a; | ||
248 | + margin-right: 10rpx; | ||
249 | +} | ||
250 | + | ||
251 | +.user_information_box { | ||
252 | + padding: 31rpx 25rpx 25rpx 25rpx; | ||
253 | +} | ||
254 | + | ||
255 | +.user_information { | ||
256 | + display: flex; | ||
257 | + justify-content: space-between; | ||
258 | + align-items: center; | ||
259 | +} | ||
260 | + | ||
261 | +.head_portrait { | ||
262 | + width: 62rpx; | ||
263 | + height: 62rpx; | ||
264 | +} | ||
265 | + | ||
266 | +.head_portrait image { | ||
267 | + width: 100%; | ||
268 | + height: 100%; | ||
269 | +} | ||
270 | + | ||
271 | +.star_box { | ||
272 | + margin-left: 25rpx; | ||
273 | +} | ||
274 | + | ||
275 | +.the_star { | ||
276 | + display: flex; | ||
277 | + align-items: center; | ||
278 | +} | ||
279 | + | ||
280 | +.stars1 { | ||
281 | + display: flex; | ||
282 | +} | ||
283 | + | ||
284 | +.user_name { | ||
285 | + font-size: 26rpx; | ||
286 | + color: #222; | ||
287 | +} | ||
288 | + | ||
289 | +.evaluation { | ||
290 | + font-size: 24rpx; | ||
291 | + color: #222; | ||
292 | + margin-top: 25rpx; | ||
293 | +} | ||
294 | + | ||
295 | +.evaluation_img { | ||
296 | + margin-top: 21rpx; | ||
297 | +} | ||
298 | + | ||
299 | +.upload_img_box { | ||
300 | + display: flex; | ||
301 | +} | ||
302 | + | ||
303 | +.upload_img { | ||
304 | + width: 160rpx; | ||
305 | + height: 160rpx; | ||
306 | + margin-right: 20rpx; | ||
307 | +} | ||
308 | + | ||
309 | +.upload_img image { | ||
310 | + width: 100%; | ||
311 | + height: 100%; | ||
312 | +} | ||
313 | + | ||
314 | +.item_list3 { | ||
315 | + padding: 46rpx 44rpx; | ||
316 | +} | ||
317 | + | ||
318 | +.item_list4 { | ||
319 | + padding: 30rpx 25rpx; | ||
320 | +} | ||
321 | + | ||
322 | +.charge_btn { | ||
323 | + height: 80rpx; | ||
324 | + display: flex; | ||
325 | + justify-content: center; | ||
326 | + align-items: center; | ||
327 | + font-size: 26rpx; | ||
328 | + color: #f44; | ||
329 | + border: 1rpx solid #f44; | ||
330 | + border-radius: 40rpx; | ||
331 | + margin-top: 30rpx; | ||
332 | +} | ||
333 | + | ||
334 | +.detection_item { | ||
335 | + display: flex; | ||
336 | + justify-content: space-around; | ||
337 | + margin-top: 58rpx; | ||
338 | +} | ||
339 | + | ||
340 | +.detection { | ||
341 | + display: flex; | ||
342 | + justify-content: center; | ||
343 | + align-items: center; | ||
344 | +} | ||
345 | + | ||
346 | +.line1 { | ||
347 | + width: 115rpx; | ||
348 | + height: 1rpx; | ||
349 | + background: linear-gradient(to right, #fff, #bbb); | ||
350 | +} | ||
351 | + | ||
352 | +.line2 { | ||
353 | + width: 115rpx; | ||
354 | + height: 1rpx; | ||
355 | + background: linear-gradient(to left, #fff, #bbb); | ||
356 | +} | ||
357 | + | ||
358 | +.detection_title { | ||
359 | + font-size: 26rpx; | ||
360 | + font-weight: bold; | ||
361 | + color: #222; | ||
362 | + margin: 0 30rpx; | ||
363 | +} | ||
364 | + | ||
365 | +.detection_box { | ||
366 | + font-size: 26rpx; | ||
367 | + color: #222; | ||
368 | +} | ||
369 | + | ||
370 | +.detection_img { | ||
371 | + margin: 0 auto; | ||
372 | + width: 54rpx; | ||
373 | + height: 54rpx; | ||
374 | +} | ||
375 | + | ||
376 | +.detection_img image { | ||
377 | + width: 100%; | ||
378 | + height: 100%; | ||
379 | +} | ||
380 | + | ||
381 | +.detection_hint { | ||
382 | + font-size: 22rpx; | ||
383 | + color: #94999a; | ||
384 | + text-align: center; | ||
385 | + margin-top: 20rpx; | ||
386 | +} | ||
387 | + | ||
388 | +.itme_list5 { | ||
389 | + position: relative; | ||
390 | + padding: 45rpx 25rpx 30rpx 25rpx; | ||
391 | + box-sizing: border-box; | ||
392 | +} | ||
393 | + | ||
394 | +.recommended_box { | ||
395 | + width: 150rpx; | ||
396 | + height: 45rpx; | ||
397 | + display: flex; | ||
398 | + align-items: center; | ||
399 | + justify-content: center; | ||
400 | + background: #ffda44; | ||
401 | + border-radius: 0 0 16rpx 16rpx; | ||
402 | + font-size: 22rpx; | ||
403 | + color: #333; | ||
404 | + position: absolute; | ||
405 | + right: 24rpx; | ||
406 | + top: 0; | ||
407 | +} | ||
408 | + | ||
409 | +.foretaste_box { | ||
410 | + display: flex; | ||
411 | + align-items: center; | ||
412 | + font-size: 30rpx; | ||
413 | +} | ||
414 | + | ||
415 | +.buyer_recommend { | ||
416 | + font-size: 22rpx; | ||
417 | + color: #94999a; | ||
418 | + margin-left: 20rpx; | ||
419 | +} | ||
420 | + | ||
421 | +.buyer_name { | ||
422 | + font-size: 30rpx; | ||
423 | + color: #222; | ||
424 | +} | ||
425 | + | ||
426 | +.recommend_content { | ||
427 | + background-color: #fafafa; | ||
428 | + border-radius: 16rpx; | ||
429 | + padding: 25rpx 25rpx 25rpx 25rpx; | ||
430 | + margin-top: 30rpx; | ||
431 | + font-size: 26rpx; | ||
432 | + color: #222; | ||
433 | + position: relative; | ||
434 | +} | ||
435 | + | ||
436 | +.icon-shangyinhao { | ||
437 | + font-size: 22rpx; | ||
438 | + color: #e3e3e3; | ||
439 | +} | ||
440 | + | ||
441 | +.triangle { | ||
442 | + width: 0; | ||
443 | + height: 0; | ||
444 | + border-left: 60rpx solid #fafafa; | ||
445 | + border-top: 30rpx solid transparent; | ||
446 | + border-bottom: 30rpx solid transparent; | ||
447 | + position: absolute; | ||
448 | + top: -30rpx; | ||
449 | + left: 50rpx; | ||
450 | +} | ||
451 | + | ||
452 | +.recommend_character { | ||
453 | + margin-left: 10rpx; | ||
454 | +} | ||
455 | + | ||
456 | +.ingredients { | ||
457 | + margin-top: 40rpx; | ||
458 | +} | ||
459 | + | ||
460 | +.ingredients_title { | ||
461 | + font-size: 30rpx; | ||
462 | + font-weight: bold; | ||
463 | + color: #222; | ||
464 | + text-align: center; | ||
465 | +} | ||
466 | + | ||
467 | +.ingredients_img { | ||
468 | + width: 280rpx; | ||
469 | + height: 280rpx; | ||
470 | +} | ||
471 | + | ||
472 | +.ingredients_box { | ||
473 | + display: flex; | ||
474 | +} | ||
475 | + | ||
476 | +.ingredients_img image { | ||
477 | + width: 100%; | ||
478 | + height: 100%; | ||
479 | +} | ||
480 | + | ||
481 | +.ingredients_item { | ||
482 | + width: 400rpx; | ||
483 | + font-size: 26rpx; | ||
484 | + display: flex; | ||
485 | + /* margin-left: 34rpx; */ | ||
486 | + margin-top: 34rpx; | ||
487 | + border: 1px solid red; | ||
488 | +} | ||
489 | + | ||
490 | +.ingredients_name { | ||
491 | + color: #94999a; | ||
492 | + width: 80rpx; | ||
493 | +} | ||
494 | + | ||
495 | +.ingredients_content { | ||
496 | + width: 300rpx; | ||
497 | + display: flex; | ||
498 | + flex-wrap: wrap; | ||
499 | + margin-left: 30rpx; | ||
500 | + border: 1px solid red; | ||
501 | +} | ||
502 | + | ||
503 | +.graphic_ingredients_box { | ||
504 | + margin-top: 40rpx; | ||
505 | +} | ||
506 | + | ||
507 | +.graphic_ingredients { | ||
508 | + height: 200rpx; | ||
509 | + border: 1rpx solid red; | ||
510 | + display: flex; | ||
511 | + align-items: center; | ||
512 | + justify-content: center; | ||
513 | + background-image: url('http://hifresh.w.bronet.cn/assets/wxapp/keshihua@2x.png'); | ||
514 | + margin-bottom: 20rpx; | ||
515 | +} | ||
516 | + | ||
517 | +.graphic_ingredients_background { | ||
518 | + width: 450rpx; | ||
519 | + height: 110rpx; | ||
520 | + background-color: #ffb244; | ||
521 | + display: flex; | ||
522 | + align-items: center; | ||
523 | + justify-content: center; | ||
524 | +} | ||
525 | + | ||
526 | +.graphic_ingredients_border { | ||
527 | + font-size: 38rpx; | ||
528 | + color: #fff; | ||
529 | + width: 430rpx; | ||
530 | + height: 90rpx; | ||
531 | + border: 1rpx solid #fff; | ||
532 | + display: flex; | ||
533 | + align-items: center; | ||
534 | + justify-content: center; | ||
535 | +} | ||
536 | + | ||
537 | +.item_list6 { | ||
538 | + padding: 30rpx 25rpx; | ||
539 | +} | ||
540 | + | ||
541 | +.collocation_title { | ||
542 | + font-size: 30rpx; | ||
543 | + font-weight: bold; | ||
544 | + color: #222; | ||
545 | + margin-bottom: 40rpx; | ||
546 | +} | ||
547 | + | ||
548 | +.collocation { | ||
549 | + display: flex; | ||
550 | + justify-content: space-between; | ||
551 | + flex-wrap: wrap; | ||
552 | + margin-top: 39rpx; | ||
553 | +} | ||
554 | + | ||
555 | +.collocation_box { | ||
556 | + width: 340rpx; | ||
557 | + border: 1rpx solid red; | ||
558 | + border-radius: 16rpx; | ||
559 | + overflow: hidden; | ||
560 | + margin-bottom: 20rpx; | ||
561 | +} | ||
562 | + | ||
563 | +.collocation_img { | ||
564 | + width: 340rpx; | ||
565 | + height: 340rpx; | ||
566 | +} | ||
567 | + | ||
568 | +.collocation_img image { | ||
569 | + width: 100%; | ||
570 | + height: 100%; | ||
571 | +} | ||
572 | + | ||
573 | +.collocation_content { | ||
574 | + background: #fafafa; | ||
575 | + font-size: 30rpx; | ||
576 | + color: #222; | ||
577 | + padding: 22rpx; | ||
578 | +} | ||
579 | + | ||
580 | +.bottom_btn { | ||
581 | + height: 100rpx; | ||
582 | + background: #fff; | ||
583 | + display: flex; | ||
584 | + justify-content: flex-end; | ||
585 | + align-items: center; | ||
586 | +} | ||
587 | + | ||
588 | +.hint_btn { | ||
589 | + width: 218rpx; | ||
590 | + display: flex; | ||
591 | + justify-content: space-around; | ||
592 | + align-items: center; | ||
593 | +} | ||
594 | + | ||
595 | +.shop_car { | ||
596 | + font-size: 18rpx; | ||
597 | + color: #747b7d; | ||
598 | +} | ||
599 | + | ||
600 | +.join_btn { | ||
601 | + width: 266rpx; | ||
602 | + height: 100rpx; | ||
603 | + background: linear-gradient(to left, #ffda44, #ffb244); | ||
604 | + display: flex; | ||
605 | + align-items: center; | ||
606 | + justify-content: center; | ||
607 | + font-size: 26rpx; | ||
608 | + color: #fff; | ||
609 | +} | ||
610 | + | ||
611 | +.immediately_btn { | ||
612 | + width: 266rpx; | ||
613 | + height: 100rpx; | ||
614 | + background: linear-gradient(to left, #f99115, #f56800); | ||
615 | + display: flex; | ||
616 | + align-items: center; | ||
617 | + justify-content: center; | ||
618 | + font-size: 26rpx; | ||
619 | + color: #fff; | ||
620 | +} | ||
621 | + | ||
622 | +.tips{ | ||
623 | + padding: 0 25rpx; | ||
624 | + box-sizing: border-box; | ||
625 | +} | ||
626 | +.tips_content{ | ||
627 | + margin-top: 30rpx; | ||
628 | + line-height: 40rpx; | ||
629 | +} | ||
630 | +.item_list7 { | ||
631 | + height: 368rpx; | ||
632 | + background: rgba(255, 255, 255, 1); | ||
633 | + border-radius: 16rpx; | ||
634 | + box-shadow: 15rpx 0rpx 30rpx rgba(214, 214, 214, 0.6); | ||
635 | + font-size: 26rpx; | ||
636 | + color: #222; | ||
637 | + margin: 0 auto; | ||
638 | + margin-bottom: 20rpx; | ||
639 | + padding: 34rpx 49rpx; | ||
640 | +} |
pages/index/index.js
0 → 100644
1 | +// pages/cart/cart.js | ||
2 | +var QQMapWX = require('../../utils/qqmap-wx-jssdk.min.js'); | ||
3 | +var qqmapsdk; | ||
4 | +Page({ | ||
5 | + | ||
6 | + /** | ||
7 | + * 页面的初始数据 | ||
8 | + */ | ||
9 | + data: { | ||
10 | + city: '', | ||
11 | + imgUrls: [ | ||
12 | + 1, 2, 2 | ||
13 | + ], | ||
14 | + num: 5, | ||
15 | + current_index: 0, | ||
16 | + showad: true, //首页广告控制显示 | ||
17 | + popup_state: false | ||
18 | + }, | ||
19 | + cancleMask() { | ||
20 | + this.setData({ | ||
21 | + popup_state: false | ||
22 | + }) | ||
23 | + }, | ||
24 | + /** | ||
25 | + * 生命周期函数--监听页面加载 | ||
26 | + */ | ||
27 | + onLoad: function(options) { | ||
28 | + qqmapsdk = new QQMapWX({ | ||
29 | + key: 'KLXBZ-KAFCF-6LVJZ-JQAAL-NCI65-XTF52' | ||
30 | + }); | ||
31 | + this.getaddress() | ||
32 | + }, | ||
33 | + active_btn() { | ||
34 | + this.setData({ | ||
35 | + current_index: 1 | ||
36 | + }) | ||
37 | + }, | ||
38 | + getaddress() { | ||
39 | + var that = this | ||
40 | + wx.getLocation({ | ||
41 | + type: 'gcj02', //返回可以用于wx.openLocation的经纬度 | ||
42 | + success: function(res) { | ||
43 | + console.log(res) | ||
44 | + var latitude = res.latitude | ||
45 | + var longitude = res.longitude | ||
46 | + qqmapsdk.reverseGeocoder({ | ||
47 | + location: { | ||
48 | + latitude: latitude, | ||
49 | + longitude: longitude | ||
50 | + }, | ||
51 | + success: function(res) { | ||
52 | + console.log(res); | ||
53 | + var ctiy = res.result.address_component.district | ||
54 | + that.setData({ | ||
55 | + city: ctiy | ||
56 | + }) | ||
57 | + }, | ||
58 | + fail: function(res) { | ||
59 | + console.log(res); | ||
60 | + }, | ||
61 | + complete: function(res) { | ||
62 | + console.log(res); | ||
63 | + } | ||
64 | + }); | ||
65 | + } | ||
66 | + }) | ||
67 | + | ||
68 | + }, | ||
69 | + //控制广告 | ||
70 | + show_ad() { | ||
71 | + this.setData({ | ||
72 | + showad: false | ||
73 | + }) | ||
74 | + }, | ||
75 | + //广告页的跳转 | ||
76 | + goad() { | ||
77 | + console.log(1) | ||
78 | + }, | ||
79 | + | ||
80 | + | ||
81 | + /** | ||
82 | + * 生命周期函数--监听页面初次渲染完成 | ||
83 | + */ | ||
84 | + onReady: function() { | ||
85 | + | ||
86 | + }, | ||
87 | + | ||
88 | + /** | ||
89 | + * 生命周期函数--监听页面显示 | ||
90 | + */ | ||
91 | + onShow: function() { | ||
92 | + | ||
93 | + }, | ||
94 | + | ||
95 | + /** | ||
96 | + * 生命周期函数--监听页面隐藏 | ||
97 | + */ | ||
98 | + onHide: function() { | ||
99 | + | ||
100 | + }, | ||
101 | + | ||
102 | + /** | ||
103 | + * 生命周期函数--监听页面卸载 | ||
104 | + */ | ||
105 | + onUnload: function() { | ||
106 | + | ||
107 | + }, | ||
108 | + | ||
109 | + /** | ||
110 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
111 | + */ | ||
112 | + onPullDownRefresh: function() { | ||
113 | + | ||
114 | + }, | ||
115 | + | ||
116 | + /** | ||
117 | + * 页面上拉触底事件的处理函数 | ||
118 | + */ | ||
119 | + onReachBottom: function() { | ||
120 | + | ||
121 | + }, | ||
122 | + | ||
123 | + /** | ||
124 | + * 用户点击右上角分享 | ||
125 | + */ | ||
126 | + onShareAppMessage: function() { | ||
127 | + | ||
128 | + } | ||
129 | +}) |
pages/index/index.json
0 → 100644
1 | +{} |
pages/index/index.wxml
0 → 100644
1 | +<view class='index_top'> | ||
2 | + <view class='index_add' bindtap='getaddress'> | ||
3 | + <view class='iconfont icon-location'></view> | ||
4 | + <text class='city_box'>{{city}}</text> | ||
5 | + </view> | ||
6 | + <view class='index_input'> | ||
7 | + <input placeholder='有机红颜草莓' placeholder-class='holder'></input> | ||
8 | + <icon type='search' size='16' color='#222'></icon> | ||
9 | + </view> | ||
10 | + <view class='iconfont icon-message'></view> | ||
11 | +</view> | ||
12 | +<view class='nav_box'> | ||
13 | + <swiper display-multiple-items='{{num}}' class='swiper_nav_box'> | ||
14 | + <swiper-item> | ||
15 | + <text class='nav_swiper_active'>推荐</text> | ||
16 | + </swiper-item> | ||
17 | + <swiper-item bindtap='active_btn'> | ||
18 | + <text>中餐</text> | ||
19 | + </swiper-item> | ||
20 | + <swiper-item> | ||
21 | + <text>中餐</text> | ||
22 | + </swiper-item> | ||
23 | + <swiper-item> | ||
24 | + <text>美味海鲜</text> | ||
25 | + </swiper-item> | ||
26 | + <swiper-item> | ||
27 | + <text>美味海鲜</text> | ||
28 | + </swiper-item> | ||
29 | + </swiper> | ||
30 | + <view class='nav_text'> | ||
31 | + <text class='iconfont icon-fenlei'></text> | ||
32 | + </view> | ||
33 | +</view> | ||
34 | +<swiper previous-margin='40rpx' next-margin='40rpx' circular='true' display-multiple-items='1' class='swiper_banner_box'> | ||
35 | + <swiper-item> | ||
36 | + <image src='../imgs/pic2.png'></image> | ||
37 | + </swiper-item> | ||
38 | + <swiper-item> | ||
39 | + <image src='../imgs/pic1.png'></image> | ||
40 | + </swiper-item> | ||
41 | + <swiper-item> | ||
42 | + <image src='../imgs/pic2.png'></image> | ||
43 | + </swiper-item> | ||
44 | +</swiper> | ||
45 | +<view class='safe_box'> | ||
46 | + <view> | ||
47 | + <text class='iconfont icon-jiance'></text> | ||
48 | + <text>安心检测</text> | ||
49 | + </view> | ||
50 | + <view> | ||
51 | + <text class='iconfont icon-xingzhuang'></text> | ||
52 | + <text>优选源头</text> | ||
53 | + </view> | ||
54 | + <view> | ||
55 | + <text class='iconfont icon-xingzhuang1'></text> | ||
56 | + <text>赔付保证</text> | ||
57 | + </view> | ||
58 | +</view> | ||
59 | +<view class='classfy'> | ||
60 | + <image src='../imgs/pic2.png'></image> | ||
61 | +</view> | ||
62 | +<view class="safety_box function"> | ||
63 | + <navigator class="safe_item clo" url='goods_detial/goods_detial' hover-class="none"> | ||
64 | + <image src="../imgs/ic01@2x.png" alt="" mode='aspectFit'></image> | ||
65 | + <text>会员俱乐部</text> | ||
66 | + </navigator> | ||
67 | + <navigator href="" class="safe_item clo" hover-class="none"> | ||
68 | + <image src="../imgs/ic02@2x.png" alt="" mode='aspectFit'></image> | ||
69 | + <text>储值送券</text> | ||
70 | + </navigator> | ||
71 | + <navigator href="" class="safe_item clo" hover-class="none"> | ||
72 | + <image src="../imgs/ic03@2x.png" alt="" mode='aspectFit'></image> | ||
73 | + <text>邀请有礼</text> | ||
74 | + </navigator> | ||
75 | + <navigator href="" class="safe_item clo" hover-class="none"> | ||
76 | + <image src="../imgs/ic04@2x.png" alt="" mode='aspectFit'></image> | ||
77 | + <text>每日签到</text> | ||
78 | + </navigator> | ||
79 | +</view> | ||
80 | +<view class='new_person_box'> | ||
81 | + <view class="index_title"> | ||
82 | + <text class="title_left"></text> | ||
83 | + <text class="title_mid">超值新人礼包</text> | ||
84 | + <text class="title_right"></text> | ||
85 | + </view> | ||
86 | + <scroll-view class='scroll_box' scroll-x> | ||
87 | + <view class='new_person_item'> | ||
88 | + <image src='../imgs/pic1.png'></image> | ||
89 | + <view class='goods_name'>三纹鱼片</view> | ||
90 | + <view> | ||
91 | + <text class='rmb'>¥</text> | ||
92 | + <text class='pprice'>26.0</text> | ||
93 | + <text class='oprice'>¥52.0</text> | ||
94 | + </view> | ||
95 | + </view> | ||
96 | + <view class='new_person_item'> | ||
97 | + <image src='../imgs/pic1.png'></image> | ||
98 | + <view class='goods_name'>三纹鱼片</view> | ||
99 | + <view> | ||
100 | + <text class='rmb'>¥</text> | ||
101 | + <text class='pprice'>26.0</text> | ||
102 | + <text class='oprice'>¥52.0</text> | ||
103 | + </view> | ||
104 | + </view> | ||
105 | + <view class='new_person_item'> | ||
106 | + <image src='../imgs/pic1.png'></image> | ||
107 | + <view class='goods_name'>三纹鱼片</view> | ||
108 | + <view> | ||
109 | + <text class='rmb'>¥</text> | ||
110 | + <text class='pprice'>26.0</text> | ||
111 | + <text class='oprice'>¥52.0</text> | ||
112 | + </view> | ||
113 | + </view> | ||
114 | + </scroll-view> | ||
115 | +</view> | ||
116 | +<view class='nav_type_box'> | ||
117 | + <view class='nav_type_left'> | ||
118 | + <view class='nav_type type_active'> | ||
119 | + <text class='iconfont icon-liebiao'></text> | ||
120 | + <text>列表</text> | ||
121 | + </view> | ||
122 | + <view class='nav_type'> | ||
123 | + <text class='iconfont icon-wangge'></text> | ||
124 | + <text>网格</text> | ||
125 | + </view> | ||
126 | + <view class='nav_type'> | ||
127 | + <text class='iconfont icon-datu'></text> | ||
128 | + <text>大图</text> | ||
129 | + </view> | ||
130 | + </view> | ||
131 | + <view class='nav_type_right'> | ||
132 | + <text class='iconfont icon-shaixuan'></text> | ||
133 | + <text>筛选</text> | ||
134 | + </view> | ||
135 | +</view> | ||
136 | +<view class='classfy' style='padding-top:40rpx;'> | ||
137 | + <image src='../imgs/pic2.png'></image> | ||
138 | +</view> | ||
139 | +<view class='goodbox'> | ||
140 | + <view class='good_item'> | ||
141 | + <view class='good_img'> | ||
142 | + <image src='../imgs/pic2.png'></image> | ||
143 | + </view> | ||
144 | + <view class='good_right'> | ||
145 | + <view class='good_name'>泰式冬阴功秘制虾汤620g</view> | ||
146 | + <view class='good_stand'>量大好吃无限回购</view> | ||
147 | + <view> | ||
148 | + <text class='good_pprice'><text class='rmb'>¥</text>26.0</text> | ||
149 | + <text class='good_oprice'><text class='rmb'>¥</text>52.0</text> | ||
150 | + </view> | ||
151 | + <view> | ||
152 | + <view class='good_vipbox'> | ||
153 | + <view class='good_vipbox_left'> | ||
154 | + <text class='good_vip'><text class='rmb'>¥</text> 25.0</text> | ||
155 | + <view class='good_vip_spec'>会员专享</view> | ||
156 | + </view> | ||
157 | + <view class='good_btn'> | ||
158 | + <view class='iconfont icon-gouwuche'></view> | ||
159 | + </view> | ||
160 | + </view> | ||
161 | + </view> | ||
162 | + </view> | ||
163 | + </view> | ||
164 | + <view class='good_item'> | ||
165 | + <view class='good_img'> | ||
166 | + <image src='../imgs/pic2.png'></image> | ||
167 | + </view> | ||
168 | + <view class='good_right'> | ||
169 | + <view class='good_name'>泰式冬阴功秘制虾汤620g</view> | ||
170 | + <view class='good_stand'>量大好吃无限回购</view> | ||
171 | + <view> | ||
172 | + <text class='good_pprice'><text class='rmb'>¥</text>26.0</text> | ||
173 | + <text class='good_oprice'><text class='rmb'>¥</text>52.0</text> | ||
174 | + </view> | ||
175 | + <view> | ||
176 | + <view class='good_vipbox'> | ||
177 | + <view class='good_vipbox_left'> | ||
178 | + <text class='good_vip'><text class='rmb'>¥</text> 25.0</text> | ||
179 | + <view class='good_vip_spec'>会员专享</view> | ||
180 | + </view> | ||
181 | + <view class='good_btn'> | ||
182 | + <view class='iconfont icon-gouwuche'></view> | ||
183 | + </view> | ||
184 | + </view> | ||
185 | + </view> | ||
186 | + </view> | ||
187 | + </view> | ||
188 | +</view> | ||
189 | +<view class='ad_box' bindtap='show_ad' wx:if='{{showad}}'> | ||
190 | + <image src='../imgs/atan@2x.png' mode='widthFix' catchtap='goad'></image> | ||
191 | + <view class='iconfont icon-quxiao'></view> | ||
192 | +</view> | ||
193 | + | ||
194 | +<!-- 筛选弹窗LXY --> | ||
195 | +<view class='masx_box' bindtap='cancleMask' wx:if='{{popup_state}}'> | ||
196 | + <view class='popup_box'> | ||
197 | + <view class='popup_content'> | ||
198 | + <view class='popup_title'>烹饪时间</view> | ||
199 | + <view class='popup_item'> | ||
200 | + <view class='popup_item_content'>10分钟</view> | ||
201 | + <view class='popup_item_content'>10分钟</view> | ||
202 | + <view class='popup_item_content'>10分钟</view> | ||
203 | + </view> | ||
204 | + </view> | ||
205 | + | ||
206 | + <view class='popup_content'> | ||
207 | + <view class='popup_title'>烹饪时间</view> | ||
208 | + <view class='popup_item'> | ||
209 | + <view class='popup_item_content'>1~2星</view> | ||
210 | + <view class='popup_item_content'>1~2星</view> | ||
211 | + <view class='popup_item_content'>1~2星</view> | ||
212 | + </view> | ||
213 | + </view> | ||
214 | + | ||
215 | + <view class='popup_content'> | ||
216 | + <view class='popup_title'>烹饪时间</view> | ||
217 | + <view class='popup_item'> | ||
218 | + <view class='popup_item_content'>微辣</view> | ||
219 | + <view class='popup_item_content'>微辣</view> | ||
220 | + <view class='popup_item_content'>微辣</view> | ||
221 | + <view class='popup_item_content'>微辣</view> | ||
222 | + </view> | ||
223 | + </view> | ||
224 | + | ||
225 | + <view class='popup_content'> | ||
226 | + <view class='popup_title'>烹饪时间</view> | ||
227 | + <view class='popup_item'> | ||
228 | + <view class='popup_item_content'> | ||
229 | + <text class='iconfont icon-xiaoyu'></text>500cal </view> | ||
230 | + <view class='popup_item_content'> 500~2000cal </view> | ||
231 | + <view class='popup_item_content'> >2000cal</view> | ||
232 | + </view> | ||
233 | + </view> | ||
234 | + | ||
235 | + <view class='popup_content'> | ||
236 | + <view class='popup_title'>烹饪时间</view> | ||
237 | + <view class='popup_item'> | ||
238 | + <view class='popup_item_content'>10分钟</view> | ||
239 | + <view class='popup_item_content'>10分钟</view> | ||
240 | + <view class='popup_item_content'>10分钟</view> | ||
241 | + </view> | ||
242 | + </view> | ||
243 | + | ||
244 | + <view class='popup_content'> | ||
245 | + <view class='popup_title'>饮食禁忌/过敏(多选)</view> | ||
246 | + <view class='popup_item'> | ||
247 | + <view class='popup_item_content'>鸡蛋</view> | ||
248 | + <view class='popup_item_content'>乳制品</view> | ||
249 | + <view class='popup_item_content'>海鲜</view> | ||
250 | + <view class='popup_item_content'>鸡蛋</view> | ||
251 | + <view class='popup_item_content'>乳制品</view> | ||
252 | + <view class='popup_item_content'>海鲜</view> | ||
253 | + <view class='popup_item_content'>鸡蛋</view> | ||
254 | + <view class='popup_item_content'>乳制品</view> | ||
255 | + <view class='popup_item_content'>后台自定义</view> | ||
256 | + </view> | ||
257 | + </view> | ||
258 | + | ||
259 | + <view class='popup_hint'>菜系(↓往下轮播可筛选更多属性)</view> | ||
260 | + <view class='popup_btn'> | ||
261 | + <view class='btn1'>重置</view> | ||
262 | + <view class='btn2'>完成</view> | ||
263 | + </view> | ||
264 | + </view> | ||
265 | +</view> |
pages/index/index.wxss
0 → 100644
1 | +page { | ||
2 | + background-color: #fafafa; | ||
3 | +} | ||
4 | + | ||
5 | +.index_top { | ||
6 | + display: flex; | ||
7 | + align-items: center; | ||
8 | + justify-content: space-between; | ||
9 | + font-size: 28rpx; | ||
10 | + color: #222; | ||
11 | + padding: 15rpx 25rpx; | ||
12 | + position: fixed; | ||
13 | + width: 100%; | ||
14 | + top: 0; | ||
15 | + left: 0; | ||
16 | + z-index: 2; | ||
17 | + background-color: #fff; | ||
18 | + border-radius: 16rpx; | ||
19 | +} | ||
20 | + | ||
21 | +.city_box { | ||
22 | + display: -webkit-box; | ||
23 | + -webkit-box-orient: vertical; | ||
24 | + -webkit-line-clamp: 1; | ||
25 | + overflow: hidden; | ||
26 | + text-align: center; | ||
27 | + /* width:80rpx; */ | ||
28 | +} | ||
29 | + | ||
30 | +.index_add { | ||
31 | + display: flex; | ||
32 | + align-items: center; | ||
33 | + margin-right: 20rpx; | ||
34 | + width: 130rpx; | ||
35 | +} | ||
36 | + | ||
37 | +.index_input { | ||
38 | + display: flex; | ||
39 | + align-items: center; | ||
40 | + border-radius: 16rpx; | ||
41 | + flex: 2; | ||
42 | + padding: 10rpx 22rpx; | ||
43 | + background-color: #f5f5f5; | ||
44 | +} | ||
45 | + | ||
46 | +.index_input icon { | ||
47 | + color: #222; | ||
48 | +} | ||
49 | + | ||
50 | +.holder { | ||
51 | + color: #adadad; | ||
52 | + font-size: 24rpx; | ||
53 | +} | ||
54 | + | ||
55 | +.icon-location { | ||
56 | + color: #222; | ||
57 | + font-size: 36rpx; | ||
58 | + margin-right: 10rpx; | ||
59 | +} | ||
60 | + | ||
61 | +.icon-message { | ||
62 | + font-size: 36rpx; | ||
63 | + color: #222; | ||
64 | + margin-left: 30rpx; | ||
65 | +} | ||
66 | + | ||
67 | +.nav_box { | ||
68 | + display: flex; | ||
69 | + align-items: center; | ||
70 | + justify-content: space-between; | ||
71 | + padding: 0 25rpx 0 0; | ||
72 | + height: 85rpx; | ||
73 | + position: fixed; | ||
74 | + width: 100%; | ||
75 | + top: 100rpx; | ||
76 | + left: 0; | ||
77 | + border-bottom: 1px solid #ededed; | ||
78 | + z-index: 2; | ||
79 | + background-color: #fff; | ||
80 | +} | ||
81 | + | ||
82 | +.swiper_nav_box { | ||
83 | + height: 100%; | ||
84 | + flex: 1; | ||
85 | +} | ||
86 | + | ||
87 | +.nav_box .icon-fenlei { | ||
88 | + font-size: 30rpx; | ||
89 | + color: #888; | ||
90 | +} | ||
91 | + | ||
92 | +.nav_text { | ||
93 | + display: flex; | ||
94 | + align-items: center; | ||
95 | + justify-content: center; | ||
96 | + padding-top: 10rpx; | ||
97 | +} | ||
98 | + | ||
99 | +.swiper_nav_box swiper-item { | ||
100 | + color: #888; | ||
101 | + font-size: 28rpx; | ||
102 | + text-align: center; | ||
103 | +} | ||
104 | + | ||
105 | +.swiper_nav_box swiper-item text { | ||
106 | + padding: 26rpx 0 23rpx 0; | ||
107 | + height: 100%; | ||
108 | + display: inline-block; | ||
109 | +} | ||
110 | + | ||
111 | +.nav_swiper_active { | ||
112 | + color: #222; | ||
113 | + border-bottom: 2px solid #ffda44; | ||
114 | +} | ||
115 | + | ||
116 | +.swiper_banner_box { | ||
117 | + height: 350rpx; | ||
118 | + margin-top: 220rpx; | ||
119 | + background-color: #fff; | ||
120 | + border-radius: 16rpx; | ||
121 | + overflow: hidden; | ||
122 | +} | ||
123 | +.swiper_banner_box swiper-item{ | ||
124 | + width: 100%; | ||
125 | + | ||
126 | +} | ||
127 | +.swiper_banner_box image { | ||
128 | + box-shadow: 1rpx 8rpx 30rpx rgba(38, 84, 9, 0.3); | ||
129 | + height: 320rpx; | ||
130 | + margin: 0 auto; | ||
131 | + display: block; | ||
132 | + border-radius: 16rpx; | ||
133 | + overflow: hidden; | ||
134 | +} | ||
135 | + | ||
136 | +.safe_box { | ||
137 | + display: flex; | ||
138 | + align-items: center; | ||
139 | + justify-content: space-around; | ||
140 | + font-size: 24rpx; | ||
141 | + color: #222; | ||
142 | + /* margin: 30rpx 0 0 0; */ | ||
143 | + background-color: #fff; | ||
144 | + padding: 0 0 30rpx 0; | ||
145 | +} | ||
146 | + | ||
147 | +.safe_box .iconfont { | ||
148 | + font-size: 28rpx; | ||
149 | + margin: 0 10rpx 0 0; | ||
150 | +} | ||
151 | + | ||
152 | +/* .ad_mold{ | ||
153 | + height: 100%; | ||
154 | + width: 100%; | ||
155 | + position: fixed; | ||
156 | + left: 0; | ||
157 | + top: 0; | ||
158 | + background-color: rgba(0, 0, 0, 0.4) | ||
159 | +} */ | ||
160 | + | ||
161 | +.classfy { | ||
162 | + /* padding: 20rpx 25rpx; */ | ||
163 | + background-color: #fff; | ||
164 | + height: 200rpx; | ||
165 | + overflow: hidden; | ||
166 | + /* margin: 0 0 15rpx 0; */ | ||
167 | + display: flex; | ||
168 | + align-items: center; | ||
169 | + justify-content: center; | ||
170 | +} | ||
171 | + | ||
172 | +.good_img image { | ||
173 | + width: 100%; | ||
174 | + height: 100%; | ||
175 | +} | ||
176 | + | ||
177 | +.classfy image { | ||
178 | + width: 100%; | ||
179 | + height: 100%; | ||
180 | + margin: 20rpx 25rpx; | ||
181 | + border-radius: 16rpx; | ||
182 | +} | ||
183 | + | ||
184 | +.index_title { | ||
185 | + display: flex; | ||
186 | + align-items: center; | ||
187 | + justify-content: center; | ||
188 | + padding: 0 145rpx; | ||
189 | + font-size: 38rpx; | ||
190 | + color: #26363a; | ||
191 | + font-weight: 600; | ||
192 | + background-color: #fff; | ||
193 | +} | ||
194 | + | ||
195 | +.title_left { | ||
196 | + display: inline-block; | ||
197 | + flex: 1; | ||
198 | + height: 1px; | ||
199 | + background: -webkit-linear-gradient(left, #fff, gray, #000); | ||
200 | + background: -o-linear-gradient(left, #fff, gray, #000); | ||
201 | + background: -moz-linear-gradient(left, #fff, gray, #000); | ||
202 | + background: linear-gradient(left, #fff, gray, #000); | ||
203 | +} | ||
204 | + | ||
205 | +.title_right { | ||
206 | + display: inline-block; | ||
207 | + flex: 1; | ||
208 | + height: 1rpx; | ||
209 | + background: -webkit-linear-gradient(left, #000, gray, #fff); | ||
210 | + background: -o-linear-gradient(left, #000, gray, #fff); | ||
211 | + background: -moz-linear-gradient(left, #000, gray, #fff); | ||
212 | + background: linear-gradient(left, #000, gray, #fff); | ||
213 | +} | ||
214 | + | ||
215 | +.title_mid { | ||
216 | + margin: 0 46rpx; | ||
217 | +} | ||
218 | + | ||
219 | +.safety_box { | ||
220 | + display: flex; | ||
221 | + align-items: center; | ||
222 | + justify-content: space-around; | ||
223 | + padding: 32rpx 0; | ||
224 | + font-size: 24rpx; | ||
225 | + text-align: center; | ||
226 | + background-color: #fff; | ||
227 | + margin: 0 0 24rpx 0; | ||
228 | +} | ||
229 | + | ||
230 | +.safety_box .safe_item { | ||
231 | + color: #455255; | ||
232 | + display: flex; | ||
233 | + align-items: center; | ||
234 | + justify-content: center; | ||
235 | + flex: 1; | ||
236 | + text-align: center; | ||
237 | +} | ||
238 | + | ||
239 | +.safety_box image { | ||
240 | + height: 90rpx; | ||
241 | + width: 100%; | ||
242 | +} | ||
243 | + | ||
244 | +.clo { | ||
245 | + flex-direction: column; | ||
246 | +} | ||
247 | + | ||
248 | +.new_person_box { | ||
249 | + padding: 50rpx 0 0 0; | ||
250 | + margin-bottom: 24rpx; | ||
251 | + background-color: #fff; | ||
252 | +} | ||
253 | + | ||
254 | +.new_person_swiper { | ||
255 | + height: 300rpx; | ||
256 | + padding: 0 30rpx; | ||
257 | +} | ||
258 | + | ||
259 | +.scroll_box { | ||
260 | + white-space: nowrap; | ||
261 | + padding: 30rpx 20rpx; | ||
262 | +} | ||
263 | + | ||
264 | +.scroll_box { | ||
265 | + margin-top: 30rpx; | ||
266 | + position: relative; | ||
267 | + z-index: 1; | ||
268 | +} | ||
269 | + | ||
270 | +.scroll_box .new_person_item { | ||
271 | + width: 289rpx; | ||
272 | + height: 270rpx; | ||
273 | + display: inline-block; | ||
274 | + background: rgba(255, 255, 255, 1); | ||
275 | + box-shadow: 0rpx 10rpx 15rpx 0rpx rgba(0, 0, 0, 0.1); | ||
276 | + border-radius: 16rpx; | ||
277 | + margin-right: 30rpx; | ||
278 | + margin-bottom: 20rpx; | ||
279 | + padding: 0 11rpx; | ||
280 | + text-align: center; | ||
281 | +} | ||
282 | + | ||
283 | +.goods_name { | ||
284 | + font-size: 24rpx; | ||
285 | + color: #222; | ||
286 | +} | ||
287 | + | ||
288 | +.new_person_item image { | ||
289 | + width: 267rpx; | ||
290 | + height: 170rpx; | ||
291 | + border-radius: 16rpx; | ||
292 | + /* position: absolute; | ||
293 | + top: -50rpx; */ | ||
294 | + z-index: 10; | ||
295 | +} | ||
296 | + | ||
297 | +.pprice { | ||
298 | + font-size: 28rpx; | ||
299 | + color: #222; | ||
300 | + margin: 0 10rpx 0 0; | ||
301 | +} | ||
302 | + | ||
303 | +.oprice { | ||
304 | + font-size: 20rpx; | ||
305 | + color: #888; | ||
306 | + text-decoration: line-through; | ||
307 | +} | ||
308 | + | ||
309 | +.ad_box { | ||
310 | + height: 100%; | ||
311 | + position: fixed; | ||
312 | + width: 100%; | ||
313 | + top: 0; | ||
314 | + left: 0; | ||
315 | + background-color: rgba(0, 0, 0, 0.6); | ||
316 | + z-index: 2; | ||
317 | + display: flex; | ||
318 | + align-items: center; | ||
319 | + justify-content: center; | ||
320 | + flex-direction: column; | ||
321 | +} | ||
322 | + | ||
323 | +.ad_box image { | ||
324 | + width: 600rpx; | ||
325 | +} | ||
326 | + | ||
327 | +.ad_box .iconfont { | ||
328 | + color: #fff; | ||
329 | +} | ||
330 | + | ||
331 | +.nav_type_right { | ||
332 | +} | ||
333 | + | ||
334 | +/* 筛选弹窗 */ | ||
335 | + | ||
336 | +.masx_box { | ||
337 | + width: 100%; | ||
338 | + height: 100%; | ||
339 | + position: fixed; | ||
340 | + top: 0; | ||
341 | + z-index: 5; | ||
342 | + background-color: rgba(0, 0, 0, 0.8); | ||
343 | +} | ||
344 | + | ||
345 | +.popup_box { | ||
346 | + width: 573rpx; | ||
347 | + height: 100%; | ||
348 | + background-color: #fff; | ||
349 | + position: absolute; | ||
350 | + right: 0; | ||
351 | + overflow-y: scroll; | ||
352 | + padding: 0 0 130rpx 0; | ||
353 | +} | ||
354 | + | ||
355 | +.popup_content { | ||
356 | + padding: 0rpx 25rpx; | ||
357 | +} | ||
358 | + | ||
359 | +.popup_title { | ||
360 | + font-size: 22rpx; | ||
361 | + color: #222; | ||
362 | + margin-top: 40rpx; | ||
363 | +} | ||
364 | + | ||
365 | +.popup_item { | ||
366 | + display: flex; | ||
367 | + justify-content: space-between; | ||
368 | + flex-wrap: wrap; | ||
369 | +} | ||
370 | + | ||
371 | +.popup_item::after { | ||
372 | + content: ""; | ||
373 | + position: relative; | ||
374 | + width: 161rpx; | ||
375 | +} | ||
376 | + | ||
377 | +.popup_item_content { | ||
378 | + width: 161rpx; | ||
379 | + height: 65rpx; | ||
380 | + font-size: 24rpx; | ||
381 | + color: #222; | ||
382 | + background-color: #f7f7f7; | ||
383 | + border-radius: 10rpx; | ||
384 | + display: flex; | ||
385 | + justify-content: center; | ||
386 | + align-items: center; | ||
387 | + margin-top: 15rpx; | ||
388 | +} | ||
389 | + | ||
390 | +.popup_hint { | ||
391 | + font-size: 22rpx; | ||
392 | + color: #222; | ||
393 | + margin-left: 25rpx; | ||
394 | + margin-top: 49rpx; | ||
395 | +} | ||
396 | + | ||
397 | +.popup_btn { | ||
398 | + display: flex; | ||
399 | + font-size: 30rpx; | ||
400 | + color: #222; | ||
401 | + position: fixed; | ||
402 | + bottom: 0; | ||
403 | +} | ||
404 | + | ||
405 | +.btn1, .btn2 { | ||
406 | + width: 287rpx; | ||
407 | + height: 100rpx; | ||
408 | + background-color: #f7f7f7; | ||
409 | + display: flex; | ||
410 | + justify-content: center; | ||
411 | + align-items: center; | ||
412 | +} | ||
413 | + | ||
414 | +.btn2 { | ||
415 | + background-color: #ffda44; | ||
416 | +} |
1 | +// pages/index/production_steps/production_steps.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 | +}) |
1 | +{} |
1 | +<!--pages/index/production_steps/production_steps.wxml--> | ||
2 | +<view> | ||
3 | + <view class='banner'> | ||
4 | + <view class='iconfont icon-fanhui'></view> | ||
5 | + <view class='coupons'>2/5</view> | ||
6 | + </view> | ||
7 | + <view class='banner_img'> | ||
8 | + <image src='../../imgs/caipu.png'></image> | ||
9 | + </view> | ||
10 | + <view class='content_item'> | ||
11 | + <view class='production_step'>步骤2</view> | ||
12 | + <view class='content'>小米提前淘洗一遍,然后用清水泡2个小时左右。 | ||
13 | + </view> | ||
14 | + <view class='tips'>Tipip:稍候我们会把小米打成糊,所以要提前多泡一会儿,搅拌的时候才会细腻一些。</view> | ||
15 | + </view> | ||
16 | +</view> |
1 | +/* pages/index/production_steps/production_steps.wxss */ | ||
2 | +.banner_img{ | ||
3 | + width: 750rpx; | ||
4 | + height: 750rpx; | ||
5 | +} | ||
6 | +.banner_img image{ | ||
7 | + width: 100%; | ||
8 | + height: 100%; | ||
9 | +} | ||
10 | +.content_item{ | ||
11 | + padding: 0 25rpx; | ||
12 | + font-size: 30rpx; | ||
13 | + color: #333; | ||
14 | +} | ||
15 | +.production_step{ | ||
16 | + font-size: 34rpx; | ||
17 | + font-weight: bold; | ||
18 | + color: #333; | ||
19 | + margin-top: 51rpx; | ||
20 | +} | ||
21 | +.content{ | ||
22 | + margin-top: 30rpx; | ||
23 | +} | ||
24 | +.tips{ | ||
25 | + margin-top: 45rpx; | ||
26 | +} |
1 | +// pages/my/activityInformation/activityInformation.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 | +}) |
1 | +{} |
1 | +<!--pages/my/coupons/coupons.wxml--> | ||
2 | + | ||
3 | +<view class='banner'> | ||
4 | + <view class='iconfont icon-fanhui'></view> | ||
5 | + <view class='coupons'>消息</view> | ||
6 | + <view class='clear_box'> | ||
7 | + <view class='iconfont icon-shanchu'></view> | ||
8 | + <view>全部清空</view> | ||
9 | + </view> | ||
10 | +</view> | ||
11 | + | ||
12 | +<view class='tab'> | ||
13 | + <view>活动消息</view> | ||
14 | + <view>通知消息</view> | ||
15 | +</view> | ||
16 | + | ||
17 | +<view class='content_item'> | ||
18 | + <view class='item_list'> | ||
19 | + <view class='content_img'> | ||
20 | + <image src='../../imgs/pic19.png'></image> | ||
21 | + </view> | ||
22 | + <view class='list_content'> | ||
23 | + <view class='content_title'>春节焕新,万券齐发!</view> | ||
24 | + <view class='time_box'> | ||
25 | + <view class='time'>2018/03/09</view> | ||
26 | + <view class='iconfont icon-diandian'></view> | ||
27 | + </view> | ||
28 | + </view> | ||
29 | + </view> | ||
30 | + | ||
31 | + <!-- <view class='item_list'> | ||
32 | + <view class='content_img'> | ||
33 | + <image src='../../imgs/pic19.png'></image> | ||
34 | + </view> | ||
35 | + <view class='list_content'> | ||
36 | + <view class='content_title'>春节焕新,万券齐发!</view> | ||
37 | + <view class='time_box'> | ||
38 | + <view class='time'>2018/03/09</view> | ||
39 | + <view class='iconfont icon-diandian'></view> | ||
40 | + </view> | ||
41 | + </view> | ||
42 | + </view> | ||
43 | + | ||
44 | + <view class='item_list'> | ||
45 | + <view class='content_img'> | ||
46 | + <image src='../../imgs/pic19.png'></image> | ||
47 | + </view> | ||
48 | + <view class='list_content'> | ||
49 | + <view class='content_title'>春节焕新,万券齐发!</view> | ||
50 | + <view class='time_box'> | ||
51 | + <view class='time'>2018/03/09</view> | ||
52 | + <view class='iconfont icon-diandian'></view> | ||
53 | + </view> | ||
54 | + </view> | ||
55 | + </view> --> | ||
56 | + | ||
57 | + | ||
58 | + <view class='item_list1'> | ||
59 | + <view class='item_top'> | ||
60 | + <view class='list_left'> | ||
61 | + <view class='title'>订单已签收</view> | ||
62 | + <view class='content'>香乐丝贝尔蒸蛋糕 608g 牛奶夹心零食散装整箱</view> | ||
63 | + </view> | ||
64 | + <view> | ||
65 | + <view class='head_portrait'> | ||
66 | + <image src='../../imgs/pic19.png'></image> | ||
67 | + </view> | ||
68 | + </view> | ||
69 | + </view> | ||
70 | + <view class='item_bottom'> | ||
71 | + <view class='number'>运单编号:480486451242</view> | ||
72 | + <view>18/03/09</view> | ||
73 | + </view> | ||
74 | + </view> | ||
75 | + | ||
76 | + | ||
77 | + <view class='item_list1'> | ||
78 | + <view class='item_top'> | ||
79 | + <view class='list_left'> | ||
80 | + <view class='title'>订单已签收</view> | ||
81 | + <view class='content'>香乐丝贝尔蒸蛋糕 608g 牛奶夹心零食散装整箱</view> | ||
82 | + </view> | ||
83 | + <view> | ||
84 | + <view class='head_portrait'> | ||
85 | + <image src='../../imgs/pic19.png'></image> | ||
86 | + </view> | ||
87 | + </view> | ||
88 | + </view> | ||
89 | + <view class='item_bottom'> | ||
90 | + <view class='number'>查看详情 ></view> | ||
91 | + <view>18/03/09</view> | ||
92 | + </view> | ||
93 | + </view> | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | +</view> |
1 | +page { | ||
2 | + background-color: #fafafa; | ||
3 | +} | ||
4 | + | ||
5 | +.banner { | ||
6 | + height: 86rpx; | ||
7 | + width: 100%; | ||
8 | + overflow: hidden; | ||
9 | + line-height: 80rpx; | ||
10 | + background: #fff; | ||
11 | + display: flex; | ||
12 | + font-size: 34rpx; | ||
13 | + color: #222; | ||
14 | + border-bottom: 1rpx solid #ededed; | ||
15 | + box-sizing: border-box; | ||
16 | + padding: 0 26rpx; | ||
17 | +} | ||
18 | + | ||
19 | +.coupons { | ||
20 | + font-weight: bold; | ||
21 | + margin: 0 auto; | ||
22 | +} | ||
23 | + | ||
24 | +.clear_box { | ||
25 | + font-size: 28rpx; | ||
26 | + color: #222; | ||
27 | + display: flex; | ||
28 | +} | ||
29 | + | ||
30 | +.icon-shanchu { | ||
31 | + font-size: 25rpx; | ||
32 | + color: #222; | ||
33 | + margin-right: 8rpx; | ||
34 | +} | ||
35 | + | ||
36 | +.tab { | ||
37 | + display: flex; | ||
38 | + justify-content: space-between; | ||
39 | + background-color: #fff; | ||
40 | + padding: 26rpx 85rpx; | ||
41 | + font-size: 28rpx; | ||
42 | + color: #222; | ||
43 | + border-bottom: 1rpx solid #ededed; | ||
44 | +} | ||
45 | + | ||
46 | +.content_item { | ||
47 | + padding: 0 25rpx; | ||
48 | +} | ||
49 | + | ||
50 | +.item_list { | ||
51 | + border-radius: 16rpx; | ||
52 | + box-shadow: 15rpx 10rpx 10rpx rgba(0, 0, 0, 0.05); | ||
53 | + margin-top: 30rpx; | ||
54 | +} | ||
55 | + | ||
56 | +.content_img { | ||
57 | + width: 700rpx; | ||
58 | + height: 250rpx; | ||
59 | +} | ||
60 | + | ||
61 | +.content_img image { | ||
62 | + width: 100%; | ||
63 | + height: 100%; | ||
64 | +} | ||
65 | + | ||
66 | +.list_content { | ||
67 | + padding: 25rpx 21rpx; | ||
68 | +} | ||
69 | + | ||
70 | +.content_title { | ||
71 | + font-size: 30rpx; | ||
72 | + font-weight: bold; | ||
73 | + color: #222; | ||
74 | +} | ||
75 | + | ||
76 | +.time_box { | ||
77 | + display: flex; | ||
78 | + justify-content: space-between; | ||
79 | + margin-top: 17rpx; | ||
80 | +} | ||
81 | + | ||
82 | +.time { | ||
83 | + font-size: 24rpx; | ||
84 | + color: #888; | ||
85 | +} | ||
86 | + | ||
87 | +.icon-diandian { | ||
88 | + font-size: 32rpx; | ||
89 | + color: #949a9a; | ||
90 | +} | ||
91 | + | ||
92 | +/* 通知消息 */ | ||
93 | + | ||
94 | +.item_list1 { | ||
95 | + border-radius: 16rpx; | ||
96 | + box-shadow: 15rpx 10rpx 10rpx rgba(0, 0, 0, 0.05); | ||
97 | + margin-top: 30rpx; | ||
98 | + padding: 30rpx; | ||
99 | +} | ||
100 | + | ||
101 | +.list_left { | ||
102 | + width: 416rpx; | ||
103 | +} | ||
104 | + | ||
105 | +.title { | ||
106 | + font-size: 30rpx; | ||
107 | + color: #222; | ||
108 | +} | ||
109 | + | ||
110 | +.content { | ||
111 | + font-size: 26rpx; | ||
112 | + color: #333; | ||
113 | + margin-top: 22rpx; | ||
114 | +} | ||
115 | + | ||
116 | +.item_top { | ||
117 | + display: flex; | ||
118 | + justify-content: space-between; | ||
119 | + align-items: center; | ||
120 | +} | ||
121 | + | ||
122 | +.item_bottom { | ||
123 | + display: flex; | ||
124 | + justify-content: space-between; | ||
125 | + align-items: center; | ||
126 | + font-size: 22rpx; | ||
127 | + color: #888; | ||
128 | + margin-top: 24rpx; | ||
129 | +} | ||
130 | + | ||
131 | +.head_portrait { | ||
132 | + width: 105rpx; | ||
133 | + height: 105rpx; | ||
134 | +} | ||
135 | + | ||
136 | +.head_portrait image { | ||
137 | + width: 100%; | ||
138 | + height: 100%; | ||
139 | + border-radius: 50rpx; | ||
140 | +} |
pages/my/balance _center/balance _center.js
0 → 100644
1 | +// pages/my/balance _center/balance _center.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 | +}) |
1 | +{} |
1 | +<!--pages/my/balance _center/balance _center.wxml--> | ||
2 | +<view class='banner_box'> | ||
3 | + <view class='banner_top'> | ||
4 | + <view class='iconfont icon-fanhui'></view> | ||
5 | + <view class='hello'>你好,Rico | ||
6 | + </view> | ||
7 | + <view class='charge_code'>兑换码充值</view> | ||
8 | + </view> | ||
9 | + <view class='banner_middle'> | ||
10 | + <view class='banner_img'> | ||
11 | + <image src='http://hifresh.w.bronet.cn/assets/wxapp/coin@2x.png' mode='widthFix'></image> | ||
12 | + </view> | ||
13 | + <view class='my_balance'> | ||
14 | + <view class='balance'>我的余额</view> | ||
15 | + <view class='balance_num'>280.00元</view> | ||
16 | + </view> | ||
17 | + </view> | ||
18 | + <view class='banner_bottom'> | ||
19 | + <view class='bottom_btn'> | ||
20 | + <view class='iconfont icon-chuxuyouli'></view> | ||
21 | + <view class='btn_character'>储值有礼</view> | ||
22 | + </view> | ||
23 | + <view class='bottom_btn1'> | ||
24 | + <view class='iconfont icon-zhangdanmingxi'></view> | ||
25 | + <view class='btn_character'>账单明细</view> | ||
26 | + </view> | ||
27 | + </view> | ||
28 | +</view> | ||
29 | +<view class='content_item'> | ||
30 | + <view class='item_list'> | ||
31 | + <view class='list_information'> | ||
32 | + <view>充值</view> | ||
33 | + <view>+60.2</view> | ||
34 | + </view> | ||
35 | + <view class='time'>2018/3/13 12:23:16</view> | ||
36 | + </view> | ||
37 | + <view class='item_list'> | ||
38 | + <view class='list_information'> | ||
39 | + <view>退款</view> | ||
40 | + <view>+28.6</view> | ||
41 | + </view> | ||
42 | + <view class='time'>2018/3/13 12:23:16</view> | ||
43 | + </view> | ||
44 | + <view class='item_list'> | ||
45 | + <view class='list_information'> | ||
46 | + <view>消费</view> | ||
47 | + <view>-60.6</view> | ||
48 | + </view> | ||
49 | + <view class='time'>2018/3/13 12:23:16</view> | ||
50 | + </view> | ||
51 | + <view class='item_list bottom'> | ||
52 | + <view class='list_information'> | ||
53 | + <view>会员卡返现</view> | ||
54 | + <view>+10.0</view> | ||
55 | + </view> | ||
56 | + <view class='time'>2018/3/13 12:23:16</view> | ||
57 | + </view> | ||
58 | +</view> |
1 | +/* pages/my/balance _center/balance _center.wxss */ | ||
2 | + | ||
3 | +.banner_box { | ||
4 | + padding: 28rpx 25rpx 0 25rpx; | ||
5 | +} | ||
6 | + | ||
7 | +.banner_box { | ||
8 | + background-color: #ffda44; | ||
9 | +} | ||
10 | + | ||
11 | +.banner_top { | ||
12 | + display: flex; | ||
13 | + justify-content: space-between; | ||
14 | + align-items: center; | ||
15 | +} | ||
16 | + | ||
17 | +.hello { | ||
18 | + font-size: 34rpx; | ||
19 | + font-weight: bold; | ||
20 | + color: #333; | ||
21 | +} | ||
22 | + | ||
23 | +.charge_code { | ||
24 | + font-size: 28rpx; | ||
25 | +} | ||
26 | + | ||
27 | +.banner_middle { | ||
28 | + display: flex; | ||
29 | + align-items: center; | ||
30 | + justify-content: center; | ||
31 | + margin-top: 35rpx; | ||
32 | +} | ||
33 | + | ||
34 | +.banner_img { | ||
35 | + width: 238rpx; | ||
36 | + height: 210rpx; | ||
37 | +} | ||
38 | + | ||
39 | +.banner_img image { | ||
40 | + width: 100%; | ||
41 | +} | ||
42 | + | ||
43 | +.my_balance { | ||
44 | + margin-left: 56rpx; | ||
45 | +} | ||
46 | + | ||
47 | +.balance { | ||
48 | + font-size: 30rpx; | ||
49 | + color: #333; | ||
50 | +} | ||
51 | + | ||
52 | +.balance_num { | ||
53 | + font-size: 76rpx; | ||
54 | + font-weight: bold; | ||
55 | + color: #333; | ||
56 | +} | ||
57 | + | ||
58 | +.banner_bottom { | ||
59 | + display: flex; | ||
60 | + margin-top: 32rpx; | ||
61 | +} | ||
62 | + | ||
63 | +.bottom_btn,.bottom_btn1 { | ||
64 | + color: #949a9a; | ||
65 | + width: 100%; | ||
66 | + font-size: 30rpx; | ||
67 | + padding: 32rpx 92rpx; | ||
68 | + display: flex; | ||
69 | + align-items: center; | ||
70 | + background-color: #f4f6f4; | ||
71 | + border-radius: 16rpx 0rpx 0rpx 0rpx; | ||
72 | +} | ||
73 | + | ||
74 | +.bottom_btn1 { | ||
75 | + color: red; | ||
76 | + background-color: #fff; | ||
77 | + border-radius: 0rpx 16rpx 0rpx 0rpx; | ||
78 | +} | ||
79 | +.btn_character{ | ||
80 | + margin-left: 15rpx; | ||
81 | +} | ||
82 | + | ||
83 | +.content_item { | ||
84 | + padding: 20rpx 65rpx; | ||
85 | +} | ||
86 | + | ||
87 | +.item_list { | ||
88 | + padding: 50rpx 0; | ||
89 | + border-bottom: 1rpx solid #f2f2f2; | ||
90 | +} | ||
91 | +.bottom{ | ||
92 | + border: 0; | ||
93 | +} | ||
94 | + | ||
95 | +.list_information { | ||
96 | + font-size: 30rpx; | ||
97 | + color: #27363b; | ||
98 | + display: flex; | ||
99 | + justify-content: space-between; | ||
100 | +} | ||
101 | + | ||
102 | +.time { | ||
103 | + font-size: 22rpx; | ||
104 | + color: #949a9a; | ||
105 | +} |
1 | +// pages/my/balance _center2/balance _center2.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 | +}) |
1 | +{} |
1 | +<!--pages/my/balance _center/balance _center.wxml--> | ||
2 | +<view class='banner_box'> | ||
3 | + <view class='banner_top'> | ||
4 | + <view class='iconfont icon-fanhui'></view> | ||
5 | + <view class='hello'>你好,Rico | ||
6 | + </view> | ||
7 | + <view class='charge_code'>兑换码充值</view> | ||
8 | + </view> | ||
9 | + <view class='banner_middle'> | ||
10 | + <view class='banner_img'> | ||
11 | + <image src='http://hifresh.w.bronet.cn/assets/wxapp/coin@2x.png' mode='widthFix'></image> | ||
12 | + </view> | ||
13 | + <view class='my_balance'> | ||
14 | + <view class='balance'>我的余额</view> | ||
15 | + <view class='balance_num'>280.00元</view> | ||
16 | + </view> | ||
17 | + </view> | ||
18 | + <view class='banner_bottom'> | ||
19 | + <view class='bottom_btn'> | ||
20 | + <view class='iconfont icon-chuxuyouli'></view> | ||
21 | + <view class='btn_character'>储值有礼</view> | ||
22 | + </view> | ||
23 | + <view class='bottom_btn1'> | ||
24 | + <view class='iconfont icon-zhangdanmingxi'></view> | ||
25 | + <view class='btn_character'>账单明细</view> | ||
26 | + </view> | ||
27 | + </view> | ||
28 | +</view> | ||
29 | +<view class='content_item'> | ||
30 | + <view class='content_title'> | ||
31 | + <view class='recharge_amount'>充值金额</view> | ||
32 | + <view class='amount_hint'>(储值金额暂不支持提现功能)</view> | ||
33 | + </view> | ||
34 | + <view class='species_box'> | ||
35 | + <view class='species1' wx:for="{{[1,2,3,4]}}"> | ||
36 | + <view>100 | ||
37 | + <text>元</text> </view> | ||
38 | + <view class='species_content'>送20元红包+1月会员</view> | ||
39 | + </view> | ||
40 | + </view> | ||
41 | +</view> | ||
42 | +<view class='bottom_btn2'>使用微信充值</view> | ||
43 | +<view class='hint'>点击立即充值,表示您已经同意<text class='hint_font'>《充送活动协议》</text> </view> |
1 | +/* pages/my/balance _center/balance _center.wxss */ | ||
2 | + | ||
3 | +.banner_box { | ||
4 | + padding: 28rpx 25rpx 0 25rpx; | ||
5 | +} | ||
6 | + | ||
7 | +.banner_box { | ||
8 | + background-color: #ffda44; | ||
9 | +} | ||
10 | + | ||
11 | +.banner_top { | ||
12 | + display: flex; | ||
13 | + justify-content: space-between; | ||
14 | + align-items: center; | ||
15 | +} | ||
16 | + | ||
17 | +.hello { | ||
18 | + font-size: 34rpx; | ||
19 | + font-weight: bold; | ||
20 | + color: #333; | ||
21 | +} | ||
22 | + | ||
23 | +.charge_code { | ||
24 | + font-size: 28rpx; | ||
25 | +} | ||
26 | + | ||
27 | +.banner_middle { | ||
28 | + display: flex; | ||
29 | + align-items: center; | ||
30 | + justify-content: center; | ||
31 | + margin-top: 35rpx; | ||
32 | +} | ||
33 | + | ||
34 | +.banner_img { | ||
35 | + width: 238rpx; | ||
36 | + height: 210rpx; | ||
37 | +} | ||
38 | + | ||
39 | +.banner_img image { | ||
40 | + width: 100%; | ||
41 | +} | ||
42 | + | ||
43 | +.my_balance { | ||
44 | + margin-left: 56rpx; | ||
45 | +} | ||
46 | + | ||
47 | +.balance { | ||
48 | + font-size: 30rpx; | ||
49 | + color: #333; | ||
50 | +} | ||
51 | + | ||
52 | +.balance_num { | ||
53 | + font-size: 76rpx; | ||
54 | + font-weight: bold; | ||
55 | + color: #333; | ||
56 | +} | ||
57 | + | ||
58 | +.banner_bottom { | ||
59 | + display: flex; | ||
60 | + margin-top: 32rpx; | ||
61 | +} | ||
62 | + | ||
63 | +.bottom_btn, .bottom_btn1 { | ||
64 | + color: #949a9a; | ||
65 | + width: 100%; | ||
66 | + font-size: 30rpx; | ||
67 | + padding: 32rpx 0; | ||
68 | + text-align: center; | ||
69 | + justify-content: center; | ||
70 | + display: flex; | ||
71 | + align-items: center; | ||
72 | + background-color: #f4f6f4; | ||
73 | + border-radius: 16rpx 0rpx 0rpx 0rpx; | ||
74 | + flex: 1 | ||
75 | +} | ||
76 | + | ||
77 | +.bottom_btn1 { | ||
78 | + background-color: #fff; | ||
79 | + border-radius: 0rpx 16rpx 0rpx 0rpx; | ||
80 | +} | ||
81 | + | ||
82 | +.btn_character { | ||
83 | + margin-left: 15rpx; | ||
84 | +} | ||
85 | + | ||
86 | +.content_item { | ||
87 | + padding: 0 55rpx; | ||
88 | + box-sizing: border-box; | ||
89 | +} | ||
90 | + | ||
91 | +.content_title { | ||
92 | + display: flex; | ||
93 | + padding: 42rpx 0; | ||
94 | + box-sizing: border-box; | ||
95 | +} | ||
96 | + | ||
97 | +.recharge_amount { | ||
98 | + font-size: 30rpx; | ||
99 | + font-weight: bold; | ||
100 | +} | ||
101 | +.amount_hint{ | ||
102 | + font-size:22rpx; | ||
103 | + color: #888; | ||
104 | +} | ||
105 | +.species_box { | ||
106 | + display: flex; | ||
107 | + flex-wrap: wrap; | ||
108 | + justify-content: space-between; | ||
109 | +} | ||
110 | + | ||
111 | +.species1 { | ||
112 | + padding: 47rpx 33rpx 24rpx 33rpx; | ||
113 | + border: 2rpx solid #ffda44; | ||
114 | + border-radius: 16rpx; | ||
115 | + margin-bottom: 20rpx; | ||
116 | +} | ||
117 | + | ||
118 | +.species_content { | ||
119 | + font-size: 25rpx; | ||
120 | + color: #333; | ||
121 | + margin-top: 33rpx; | ||
122 | +} | ||
123 | + | ||
124 | +.bottom_btn2 { | ||
125 | + width: 90%; | ||
126 | + height: 80rpx; | ||
127 | + background-color: #ffda44; | ||
128 | + border-radius: 40rpx; | ||
129 | + box-shadow: 10rpx 10rpx 30rpx rgba(255, 204, 68, 0.6); | ||
130 | + font-size: 26rpx; | ||
131 | + color: #333; | ||
132 | + text-align: center; | ||
133 | + line-height: 80rpx; | ||
134 | + margin: 100rpx auto 0 auto; | ||
135 | +} | ||
136 | + | ||
137 | +.hint { | ||
138 | + font-size: 22rpx; | ||
139 | + color: #222; | ||
140 | + text-align: center; | ||
141 | + margin-top: 44rpx; | ||
142 | + margin-bottom: 58rpx; | ||
143 | +} | ||
144 | + | ||
145 | +.hint_font { | ||
146 | + color: #f44; | ||
147 | +} |
pages/my/big/big.js
0 → 100644
1 | +// pages/my/big/big.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/my/big/big.json
0 → 100644
1 | +{} |
pages/my/big/big.wxml
0 → 100644
1 | +<!--pages/my/big/big.wxml--> | ||
2 | +<view class='content_item'> | ||
3 | + <view class='banner_img'> | ||
4 | + <image src='../../imgs/pic6.png'></image> | ||
5 | + </view> | ||
6 | + <view class='item_list'> | ||
7 | + <view class='content_img'> | ||
8 | + <image src='../../imgs/caipu.png'></image> | ||
9 | + <view class='label'>促销标签</view> | ||
10 | + </view> | ||
11 | + <view class='content_character'> | ||
12 | + <view class='banner_title'>泰式冬阴功升级版秘制虾汤620g</view> | ||
13 | + <view class='introduce'>量大好吃无限回购</view> | ||
14 | + <view class='banner_character'> | ||
15 | + <view class='banner_price'> | ||
16 | + <view class='money_box'> | ||
17 | + <text class='money_icon'>¥</text> | ||
18 | + <text class='money'>26.0</text> | ||
19 | + <text class='original_price'>¥52.0</text> | ||
20 | + </view> | ||
21 | + <view class='display_box'> | ||
22 | + <text class='money_icon2'>¥</text> | ||
23 | + <text class='money2'>20.0</text> | ||
24 | + <text class='vip'>会员专享</text> | ||
25 | + </view> | ||
26 | + </view> | ||
27 | + <view class='shop_car'> | ||
28 | + <view class='iconfont icon-gouwuche'></view> | ||
29 | + </view> | ||
30 | + </view> | ||
31 | + </view> | ||
32 | + </view> | ||
33 | +</view> | ||
34 | + | ||
35 | + | ||
36 | +<view class='content_item'> | ||
37 | + <view class='banner_img'> | ||
38 | + <image src='../../imgs/pic6.png'></image> | ||
39 | + </view> | ||
40 | + <view class='item_list'> | ||
41 | + <view class='content_img'> | ||
42 | + <image src='../../imgs/caipu.png'></image> | ||
43 | + <view class='label2'>距离团购结束 21时49分</view> | ||
44 | + </view> | ||
45 | + <view class='content_character'> | ||
46 | + <view class='banner_title'>泰式冬阴功升级版秘制虾汤620g</view> | ||
47 | + <view class='introduce'> | ||
48 | + <view class='progress_bar_box'> | ||
49 | + <view class='progress_bar'> | ||
50 | + <view class='bar'></view> | ||
51 | + </view> | ||
52 | + <view>38%</view> | ||
53 | + </view> | ||
54 | + <view class='object_hint'> | ||
55 | + <text>已拼320份</text><text class='object'>目标500份</text> | ||
56 | + </view> | ||
57 | + </view> | ||
58 | + <view class='banner_character'> | ||
59 | + <view class='banner_price'> | ||
60 | + <view class='display_box'> | ||
61 | + <text class='money_icon2'>¥</text> | ||
62 | + <text class='money2'>20.0</text> | ||
63 | + <text class='original_price'>¥52.0</text> | ||
64 | + </view> | ||
65 | + </view> | ||
66 | + <view class='shop_car'> | ||
67 | + <view class='iconfont icon-gouwuche'></view> | ||
68 | + </view> | ||
69 | + </view> | ||
70 | + </view> | ||
71 | + </view> | ||
72 | +</view> |
pages/my/big/big.wxss
0 → 100644
1 | +/* pages/my/big/big.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background-color: #ededed; | ||
5 | +} | ||
6 | + | ||
7 | +.content_item { | ||
8 | + background-color: #fff; | ||
9 | + padding: 25rpx 25rpx; | ||
10 | + margin-top: 25rpx; | ||
11 | +} | ||
12 | + | ||
13 | +.banner_img { | ||
14 | + height: 180rpx; | ||
15 | + /* padding: 25rpx 25rpx 0 25rpx; */ | ||
16 | +} | ||
17 | + | ||
18 | +.banner_img image { | ||
19 | + width: 100%; | ||
20 | + height: 100%; | ||
21 | +} | ||
22 | + | ||
23 | +.content_img { | ||
24 | + height: 630rpx; | ||
25 | + position: relative; | ||
26 | +} | ||
27 | + | ||
28 | +.content_img image { | ||
29 | + width: 100%; | ||
30 | + height: 100%; | ||
31 | +} | ||
32 | + | ||
33 | +.label { | ||
34 | + width: 140rpx; | ||
35 | + height: 140rpx; | ||
36 | + font-size: 40rpx; | ||
37 | + color: #333; | ||
38 | + padding: 28rpx 31rpx; | ||
39 | + background-color: #ffda44; | ||
40 | + position: absolute; | ||
41 | + top: 0; | ||
42 | + left: 25rpx; | ||
43 | + display: flex; | ||
44 | + align-items: center; | ||
45 | + justify-content: center; | ||
46 | +} | ||
47 | + | ||
48 | +.label2 { | ||
49 | + width: 100%; | ||
50 | + height: 45rpx; | ||
51 | + font-size: 30rpx; | ||
52 | + color: #333; | ||
53 | + background: linear-gradient(to right, #ffda44, rgba(0, 0, 0, 0)); | ||
54 | + position: absolute; | ||
55 | + bottom: 0; | ||
56 | + display: flex; | ||
57 | + align-items: center; | ||
58 | + padding-left: 20rpx; | ||
59 | +} | ||
60 | + | ||
61 | +.progress_bar_box { | ||
62 | + display: flex; | ||
63 | + align-items: center; | ||
64 | + justify-content: space-between; | ||
65 | +} | ||
66 | + | ||
67 | +.progress_bar { | ||
68 | + width: 87%; | ||
69 | + height: 14rpx; | ||
70 | + border-radius: 6rpx; | ||
71 | + background-color: #e7e7e7; | ||
72 | + position: relative; | ||
73 | +} | ||
74 | + | ||
75 | +.bar { | ||
76 | + width: 50%; | ||
77 | + height: 14rpx; | ||
78 | + border-radius: 6rpx; | ||
79 | + background-color: #ffd15d; | ||
80 | + position: absolute; | ||
81 | +} | ||
82 | + | ||
83 | +.object_hint { | ||
84 | + font-size: 24rpx; | ||
85 | + color: #94999a; | ||
86 | +} | ||
87 | + | ||
88 | +.object { | ||
89 | + margin-left: 30rpx; | ||
90 | +} | ||
91 | + | ||
92 | +.item_list { | ||
93 | + border-radius: 16rpx; | ||
94 | + overflow: hidden; | ||
95 | + margin-top: 40rpx; | ||
96 | + /* margin-bottom: 20rpx; */ | ||
97 | +} | ||
98 | + | ||
99 | +.content_character { | ||
100 | + background-color: #fafafa; | ||
101 | + padding: 25rpx 21rpx; | ||
102 | +} | ||
103 | + | ||
104 | +.banner_title { | ||
105 | + font-size: 34rpx; | ||
106 | + color: #222; | ||
107 | +} | ||
108 | + | ||
109 | +.introduce { | ||
110 | + font-size: 28rpx; | ||
111 | + color: #888; | ||
112 | +} | ||
113 | + | ||
114 | +.banner_character { | ||
115 | + display: flex; | ||
116 | + justify-content: space-between; | ||
117 | + align-items: center; | ||
118 | + font-size: 24rpx; | ||
119 | + color: #888; | ||
120 | +} | ||
121 | + | ||
122 | +.banner_price { | ||
123 | + display: flex; | ||
124 | + /* align-items: center; */ | ||
125 | +} | ||
126 | + | ||
127 | +.money_box { | ||
128 | + margin-right: 40rpx; | ||
129 | +} | ||
130 | + | ||
131 | +.money_icon { | ||
132 | + font-size: 22rpx; | ||
133 | + color: #222; | ||
134 | +} | ||
135 | + | ||
136 | +.money { | ||
137 | + font-size: 38rpx; | ||
138 | + font-weight: bold; | ||
139 | + color: #222; | ||
140 | +} | ||
141 | + | ||
142 | +.original_price { | ||
143 | + color: #888; | ||
144 | + text-decoration: line-through; | ||
145 | +} | ||
146 | + | ||
147 | +.money_icon2 { | ||
148 | + font-size: 22rpx; | ||
149 | + color: #f44; | ||
150 | +} | ||
151 | + | ||
152 | +.money2 { | ||
153 | + font-size: 38rpx; | ||
154 | + font-weight: bold; | ||
155 | + color: #f44; | ||
156 | +} | ||
157 | + | ||
158 | +.vip { | ||
159 | + color: #fff; | ||
160 | + background-color: #f44; | ||
161 | + margin-left: 5rpx; | ||
162 | +} | ||
163 | + | ||
164 | +.shop_car { | ||
165 | + width: 60rpx; | ||
166 | + height: 60rpx; | ||
167 | + border-radius: 50rpx; | ||
168 | + background-color: #ffda44; | ||
169 | + box-shadow: 5rpx 0rpx 5rpx rgba(255, 218, 68, 0.3); | ||
170 | + display: flex; | ||
171 | + justify-content: center; | ||
172 | + align-items: center; | ||
173 | +} | ||
174 | + | ||
175 | +.icon-gouwuche { | ||
176 | + font-size: 29rpx; | ||
177 | + color: #333; | ||
178 | +} |
pages/my/charger_code/charger_code.js
0 → 100644
1 | +// pages/my/charger_code/charger_code.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/my/charger_code/charger_code.json
0 → 100644
1 | +{} |
pages/my/charger_code/charger_code.wxml
0 → 100644
1 | +<!--pages/my/charger_code/charger_code.wxml--> | ||
2 | +<view class='container'> | ||
3 | + <view class='banner'> | ||
4 | + <view class='iconfont icon-fanhui'></view> | ||
5 | + <view class='title'>兑换码充值</view> | ||
6 | + </view> | ||
7 | + <view class='charge_code'> | ||
8 | + <view class='input_box'> | ||
9 | + <input type='text' placeholder='请输入兑换码' placeholder-class='input_font'></input> | ||
10 | + </view> | ||
11 | + <view class='iconfont icon-saoma'></view> | ||
12 | + </view> | ||
13 | + <view class='bottom_btn'>确认兑换</view> | ||
14 | + <view class='hint'>*每个兑换码仅可以使用一次</view> | ||
15 | +</view> |
-
请 注册 或 登录 后发表评论