正在显示
42 个修改的文件
包含
2554 行增加
和
1399 行删除
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | onShow: function() { | 6 | onShow: function() { |
7 | console.log('App Show') | 7 | console.log('App Show') |
8 | }, | 8 | }, |
9 | - post: function(url, data,method) { | ||
10 | - | 9 | + post: function(url, data, method) { |
10 | + | ||
11 | // (showLoad == undefined || showLoad) ? | 11 | // (showLoad == undefined || showLoad) ? |
12 | // wx.showLoading({ | 12 | // wx.showLoading({ |
13 | // title: '加载中', | 13 | // title: '加载中', |
@@ -21,30 +21,30 @@ | @@ -21,30 +21,30 @@ | ||
21 | token: token || '' | 21 | token: token || '' |
22 | }, | 22 | }, |
23 | postData; | 23 | postData; |
24 | - | ||
25 | - // console.log(token,"token") | 24 | + |
25 | + // console.log(token,"token") | ||
26 | //网络请求 | 26 | //网络请求 |
27 | uni.request({ | 27 | uni.request({ |
28 | url: this.globalData.baseUrl + url, | 28 | url: this.globalData.baseUrl + url, |
29 | data: data, | 29 | data: data, |
30 | method: method, | 30 | method: method, |
31 | header: header, | 31 | header: header, |
32 | - success: function(res) { | ||
33 | - // console.log(res)//返回取得的数据 | 32 | + success: function(res) { |
33 | + // console.log(res)//返回取得的数据 | ||
34 | // console.log(res) | 34 | // console.log(res) |
35 | - if (res.data.code ==1) { | 35 | + if (res.data.code == 1) { |
36 | console.log(8888) | 36 | console.log(8888) |
37 | resolve(res); | 37 | resolve(res); |
38 | - | ||
39 | - | ||
40 | - }else{ | 38 | + |
39 | + | ||
40 | + } else { | ||
41 | reject(res.data) | 41 | reject(res.data) |
42 | - | 42 | + |
43 | } | 43 | } |
44 | - | 44 | + |
45 | }, | 45 | }, |
46 | fail: function(e) { | 46 | fail: function(e) { |
47 | - console.log(e) | 47 | + console.log(e) |
48 | reject('网络出错'); | 48 | reject('网络出错'); |
49 | // (showLoad || showLoad == undefined) ? wx.hideLoading() : ""; | 49 | // (showLoad || showLoad == undefined) ? wx.hideLoading() : ""; |
50 | wx.hideNavigationBarLoading() | 50 | wx.hideNavigationBarLoading() |
@@ -58,9 +58,9 @@ | @@ -58,9 +58,9 @@ | ||
58 | }, | 58 | }, |
59 | globalData: { | 59 | globalData: { |
60 | userInfo: null, | 60 | userInfo: null, |
61 | - baseUrl:'http://zhongmian.w.brotop.cn/api/' | 61 | + baseUrl: 'http://zhongmian.w.brotop.cn/api/' |
62 | }, | 62 | }, |
63 | - | 63 | + |
64 | onHide: function() { | 64 | onHide: function() { |
65 | console.log('App Hide') | 65 | console.log('App Hide') |
66 | } | 66 | } |
@@ -73,6 +73,20 @@ | @@ -73,6 +73,20 @@ | ||
73 | width: 100%; | 73 | width: 100%; |
74 | height: 100%; | 74 | height: 100%; |
75 | } | 75 | } |
76 | + | ||
77 | + .content.title { | ||
78 | + padding-top: var(--status-bar-height); | ||
79 | + box-sizing: border-box; | ||
80 | + } | ||
81 | + .status_bar { | ||
82 | + height: var(--status-bar-height); | ||
83 | + width: 100%; | ||
84 | + background: #C29445; | ||
85 | + position: fixed; | ||
86 | + top: 0; | ||
87 | + left: 0; | ||
88 | + z-index: 3; | ||
89 | + } | ||
76 | 90 | ||
77 | page { | 91 | page { |
78 | background: #fff; | 92 | background: #fff; |
@@ -199,6 +213,7 @@ | @@ -199,6 +213,7 @@ | ||
199 | width: 32rpx; | 213 | width: 32rpx; |
200 | height: 32rpx; | 214 | height: 32rpx; |
201 | font-size: 0; | 215 | font-size: 0; |
216 | + flex: 0 0 auto; | ||
202 | } | 217 | } |
203 | 218 | ||
204 | .middleenter { | 219 | .middleenter { |
@@ -208,10 +223,10 @@ | @@ -208,10 +223,10 @@ | ||
208 | } | 223 | } |
209 | 224 | ||
210 | .middleenter input { | 225 | .middleenter input { |
211 | - width: 600rpx; | 226 | + width: 100%; |
212 | height: 60rpx; | 227 | height: 60rpx; |
213 | line-height: 60rpx; | 228 | line-height: 60rpx; |
214 | - padding:0 12rpx; | 229 | + padding: 0 12rpx; |
215 | box-sizing: border-box; | 230 | box-sizing: border-box; |
216 | color: #BDC4CE; | 231 | color: #BDC4CE; |
217 | font-size: 24rpx; | 232 | font-size: 24rpx; |
@@ -332,7 +347,7 @@ | @@ -332,7 +347,7 @@ | ||
332 | text-align: center; | 347 | text-align: center; |
333 | line-height: 36rpx; | 348 | line-height: 36rpx; |
334 | margin-top: 4rpx; | 349 | margin-top: 4rpx; |
335 | - | 350 | + |
336 | padding: 0 5rpx; | 351 | padding: 0 5rpx; |
337 | box-sizing: border-box; | 352 | box-sizing: border-box; |
338 | } | 353 | } |
@@ -1020,15 +1035,16 @@ | @@ -1020,15 +1035,16 @@ | ||
1020 | height: 37rpx; | 1035 | height: 37rpx; |
1021 | font-size: 0; | 1036 | font-size: 0; |
1022 | } | 1037 | } |
1023 | - .activename{ | ||
1024 | - color:#FF9417; | 1038 | + |
1039 | + .activename { | ||
1040 | + color: #FF9417; | ||
1025 | } | 1041 | } |
1026 | - | 1042 | + |
1027 | /* 暂无数据 */ | 1043 | /* 暂无数据 */ |
1028 | - .nodata{ | ||
1029 | - color:#999; | 1044 | + .nodata { |
1045 | + color: #999; | ||
1030 | font-size: 32rpx; | 1046 | font-size: 32rpx; |
1031 | text-align: center; | 1047 | text-align: center; |
1032 | - margin-top:30rpx; | 1048 | + margin-top: 30rpx; |
1033 | } | 1049 | } |
1034 | </style> | 1050 | </style> |
@@ -319,6 +319,7 @@ | @@ -319,6 +319,7 @@ | ||
319 | font-size: 24rpx; | 319 | font-size: 24rpx; |
320 | 320 | ||
321 | } | 321 | } |
322 | + | ||
322 | .usertop { | 323 | .usertop { |
323 | width: 550rpx; | 324 | width: 550rpx; |
324 | margin-top: 2rpx; | 325 | margin-top: 2rpx; |
@@ -420,7 +421,7 @@ | @@ -420,7 +421,7 @@ | ||
420 | 421 | ||
421 | .shuxingwrap { | 422 | .shuxingwrap { |
422 | width: 750rpx; | 423 | width: 750rpx; |
423 | - height: 920rpx; | 424 | + /* height: 920rpx; */ |
424 | background: #fff; | 425 | background: #fff; |
425 | padding: 32rpx; | 426 | padding: 32rpx; |
426 | box-sizing: border-box; | 427 | box-sizing: border-box; |
@@ -428,12 +429,14 @@ | @@ -428,12 +429,14 @@ | ||
428 | left: 0; | 429 | left: 0; |
429 | bottom: 0 | 430 | bottom: 0 |
430 | } | 431 | } |
432 | + | ||
431 | .shucha { | 433 | .shucha { |
432 | width: 52rpx; | 434 | width: 52rpx; |
433 | height: 52rpx; | 435 | height: 52rpx; |
434 | font-size: 0; | 436 | font-size: 0; |
435 | margin-left: 22rpx; | 437 | margin-left: 22rpx; |
436 | } | 438 | } |
439 | + | ||
437 | .shuname { | 440 | .shuname { |
438 | width: 370rpx; | 441 | width: 370rpx; |
439 | height: 120rpx; | 442 | height: 120rpx; |
@@ -548,7 +551,7 @@ | @@ -548,7 +551,7 @@ | ||
548 | font-size: 28rpx; | 551 | font-size: 28rpx; |
549 | text-align: center; | 552 | text-align: center; |
550 | line-height: 88rpx; | 553 | line-height: 88rpx; |
551 | - margin-top:30rpx; | 554 | + margin-top: 30rpx; |
552 | } | 555 | } |
553 | 556 | ||
554 | 557 | ||
@@ -597,6 +600,14 @@ | @@ -597,6 +600,14 @@ | ||
597 | border-bottom: 16rpx solid #f5f5f5; | 600 | border-bottom: 16rpx solid #f5f5f5; |
598 | background: #fff; | 601 | background: #fff; |
599 | } | 602 | } |
603 | +.sureshopk{ | ||
604 | + padding: 0 0rpx 32rpx; | ||
605 | +} | ||
606 | +.bigbox{ | ||
607 | + padding: 0 32rpx; | ||
608 | + box-sizing: border-box; | ||
609 | +} | ||
610 | + | ||
600 | 611 | ||
601 | .sureorderbox { | 612 | .sureorderbox { |
602 | padding: 22rpx 0; | 613 | padding: 22rpx 0; |
@@ -606,7 +617,7 @@ | @@ -606,7 +617,7 @@ | ||
606 | 617 | ||
607 | .sureorderitem { | 618 | .sureorderitem { |
608 | margin-top: 30rpx; | 619 | margin-top: 30rpx; |
609 | - | 620 | + |
610 | } | 621 | } |
611 | 622 | ||
612 | .sureorderitemleft { | 623 | .sureorderitemleft { |
@@ -626,6 +637,17 @@ | @@ -626,6 +637,17 @@ | ||
626 | height: 76rpx; | 637 | height: 76rpx; |
627 | } | 638 | } |
628 | 639 | ||
640 | +.suregoodnamek { | ||
641 | + color: #3C444C; | ||
642 | + font-size: 28rpx; | ||
643 | + margin-bottom: 20rpx; | ||
644 | +} | ||
645 | + | ||
646 | +.spec { | ||
647 | + color: #3D454C; | ||
648 | + font-size: 28rpx; | ||
649 | +} | ||
650 | + | ||
629 | .surebot { | 651 | .surebot { |
630 | margin-top: 20rpx; | 652 | margin-top: 20rpx; |
631 | } | 653 | } |
@@ -640,15 +662,38 @@ | @@ -640,15 +662,38 @@ | ||
640 | font-size: 28rpx; | 662 | font-size: 28rpx; |
641 | margin-right: 24rpx; | 663 | margin-right: 24rpx; |
642 | } | 664 | } |
665 | +.dikouname{ | ||
666 | + width:200rpx; | ||
667 | +} | ||
668 | +.dikouname input{ | ||
669 | + width:100%; | ||
670 | + height:100%; | ||
671 | + color: #3D454C; | ||
672 | + font-size: 28rpx; | ||
673 | +} | ||
674 | +.dikouinput{ | ||
675 | + color: #3D454C; | ||
676 | + font-size: 28rpx; | ||
677 | +} | ||
678 | + | ||
643 | 679 | ||
644 | .delivery { | 680 | .delivery { |
645 | - padding: 34rpx 32rpx; | 681 | + padding: 34rpx 0; |
646 | box-sizing: border-box; | 682 | box-sizing: border-box; |
647 | background: #fff; | 683 | background: #fff; |
648 | } | 684 | } |
649 | 685 | ||
650 | .markcontent { | 686 | .markcontent { |
651 | - border-top: 16rpx solid #F0EFF2; | 687 | + /* border-top: 16rpx solid #F0EFF2; */ |
688 | +} | ||
689 | +.botbox{ | ||
690 | + width:100%; | ||
691 | + height:16rpx; | ||
692 | + background:#F0EFF2; | ||
693 | +} | ||
694 | + | ||
695 | +.bigbox { | ||
696 | + | ||
652 | } | 697 | } |
653 | 698 | ||
654 | .markname { | 699 | .markname { |
@@ -678,6 +723,9 @@ | @@ -678,6 +723,9 @@ | ||
678 | font-size: 0; | 723 | font-size: 0; |
679 | matign-left: 16rpx; | 724 | matign-left: 16rpx; |
680 | } | 725 | } |
726 | +.youimg{ | ||
727 | + margin-left:16rpx; | ||
728 | +} | ||
681 | 729 | ||
682 | .deliveryitemname { | 730 | .deliveryitemname { |
683 | color: #3D444C; | 731 | color: #3D444C; |
@@ -764,4 +812,3 @@ | @@ -764,4 +812,3 @@ | ||
764 | margin-top: 42rpx; | 812 | margin-top: 42rpx; |
765 | border-top: 1rpx solid #f5f5f5; | 813 | border-top: 1rpx solid #f5f5f5; |
766 | } | 814 | } |
767 | - |
icons/.DS_Store
0 → 100644
不能预览此文件类型
icons/banner.png
0 → 100644
419.8 KB
icons/close.png
0 → 100644
2.2 KB
icons/del.png
0 → 100644
802 字节
icons/down.png
0 → 100644
154 字节
icons/edit.png
0 → 100644
870 字节
icons/map.png
0 → 100644
1019 字节
icons/nav2.png
0 → 100644
2.0 KB
icons/thumbs.png
0 → 100644
509 字节
icons/thumbs1.png
0 → 100644
548 字节
1 | { | 1 | { |
2 | "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages | 2 | "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages |
3 | + | ||
3 | { | 4 | { |
4 | "path": "pages/homepage/homepage", | 5 | "path": "pages/homepage/homepage", |
5 | "style": { | 6 | "style": { |
6 | "navigationBarTitleText": "", | 7 | "navigationBarTitleText": "", |
7 | "navigationBarBackgroundColor": "#C29445", | 8 | "navigationBarBackgroundColor": "#C29445", |
8 | "navigationBarTextStyle": "white", | 9 | "navigationBarTextStyle": "white", |
10 | + "navigationStyle": "custom", | ||
9 | "app-plus": { | 11 | "app-plus": { |
10 | - "titleNView": { | ||
11 | - "titleSize": "12" | ||
12 | - } | 12 | + "bounce": "none" |
13 | } | 13 | } |
14 | } | 14 | } |
15 | }, | 15 | }, |
16 | - | ||
17 | { | 16 | { |
18 | - "path": "pages/nearshop/cartlist", | 17 | + "path": "pages/nearshop/selectcoupon", |
19 | "style": { | 18 | "style": { |
20 | - "navigationBarTitleText": "购物车", | 19 | + "navigationBarTitleText": "选择优惠券", |
20 | + "navigationBarBackgroundColor": "#fff", | ||
21 | + "navigationBarTextStyle": "black" | ||
22 | + } | ||
23 | + }, | ||
24 | + { | ||
25 | + "path": "pages/nearshop/cartbox", | ||
26 | + "style": { | ||
27 | + "navigationBarTitleText": "", | ||
21 | "navigationBarBackgroundColor": "#fff", | 28 | "navigationBarBackgroundColor": "#fff", |
22 | "navigationBarTextStyle": "black" | 29 | "navigationBarTextStyle": "black" |
23 | } | 30 | } |
24 | }, | 31 | }, |
25 | 32 | ||
26 | 33 | ||
34 | + { | ||
35 | + "path": "pages/login/loginindex", | ||
36 | + "style": { | ||
37 | + "navigationBarTitleText": "", | ||
38 | + "navigationBarBackgroundColor": "#fff", | ||
39 | + "navigationBarTextStyle": "black" | ||
40 | + } | ||
41 | + }, | ||
27 | 42 | ||
28 | { | 43 | { |
44 | + "path": "pages/nearshop/cartlist", | ||
45 | + "style": { | ||
46 | + "navigationBarTitleText": "购物车", | ||
47 | + "navigationBarBackgroundColor": "#fff", | ||
48 | + "navigationBarTextStyle": "black" | ||
49 | + } | ||
50 | + }, | ||
51 | + | ||
52 | + { | ||
29 | "path": "pages/homepage/collectshop", | 53 | "path": "pages/homepage/collectshop", |
30 | "style": { | 54 | "style": { |
31 | "navigationBarTitleText": "店铺收藏", | 55 | "navigationBarTitleText": "店铺收藏", |
@@ -33,7 +57,7 @@ | @@ -33,7 +57,7 @@ | ||
33 | "navigationBarTextStyle": "black" | 57 | "navigationBarTextStyle": "black" |
34 | } | 58 | } |
35 | }, | 59 | }, |
36 | - | 60 | + |
37 | { | 61 | { |
38 | "path": "pages/luntan/examineresult", | 62 | "path": "pages/luntan/examineresult", |
39 | "style": { | 63 | "style": { |
@@ -66,17 +90,7 @@ | @@ -66,17 +90,7 @@ | ||
66 | "navigationBarTextStyle": "black" | 90 | "navigationBarTextStyle": "black" |
67 | } | 91 | } |
68 | }, | 92 | }, |
69 | - | ||
70 | - | ||
71 | - | ||
72 | - { | ||
73 | - "path": "pages/login/loginindex", | ||
74 | - "style": { | ||
75 | - "navigationBarTitleText": "", | ||
76 | - "navigationBarBackgroundColor": "#fff", | ||
77 | - "navigationBarTextStyle": "black" | ||
78 | - } | ||
79 | - }, | 93 | + |
80 | { | 94 | { |
81 | "path": "pages/login/accountpassword", | 95 | "path": "pages/login/accountpassword", |
82 | "style": { | 96 | "style": { |
@@ -85,8 +99,8 @@ | @@ -85,8 +99,8 @@ | ||
85 | "navigationBarTextStyle": "black" | 99 | "navigationBarTextStyle": "black" |
86 | } | 100 | } |
87 | }, | 101 | }, |
88 | - | ||
89 | - | 102 | + |
103 | + | ||
90 | { | 104 | { |
91 | "path": "pages/login/registercode", | 105 | "path": "pages/login/registercode", |
92 | "style": { | 106 | "style": { |
@@ -111,7 +125,7 @@ | @@ -111,7 +125,7 @@ | ||
111 | "navigationBarTextStyle": "black" | 125 | "navigationBarTextStyle": "black" |
112 | } | 126 | } |
113 | }, | 127 | }, |
114 | - | 128 | + |
115 | { | 129 | { |
116 | "path": "pages/login/finishregister", | 130 | "path": "pages/login/finishregister", |
117 | "style": { | 131 | "style": { |
@@ -185,7 +199,7 @@ | @@ -185,7 +199,7 @@ | ||
185 | "navigationBarTextStyle": "black" | 199 | "navigationBarTextStyle": "black" |
186 | } | 200 | } |
187 | }, | 201 | }, |
188 | - | 202 | + |
189 | 203 | ||
190 | { | 204 | { |
191 | "path": "pages/nearshop/goodtail", | 205 | "path": "pages/nearshop/goodtail", |
@@ -261,19 +275,30 @@ | @@ -261,19 +275,30 @@ | ||
261 | 275 | ||
262 | { | 276 | { |
263 | "path": "pages/homepage/search", | 277 | "path": "pages/homepage/search", |
264 | - | ||
265 | - | ||
266 | "style": { | 278 | "style": { |
267 | "navigationBarTitleText": "", | 279 | "navigationBarTitleText": "", |
268 | "navigationBarBackgroundColor": "#fff", | 280 | "navigationBarBackgroundColor": "#fff", |
269 | "navigationBarTextStyle": "white", | 281 | "navigationBarTextStyle": "white", |
270 | "app-plus": { | 282 | "app-plus": { |
271 | "titleNView": { | 283 | "titleNView": { |
272 | - "titleSize": "12" | ||
273 | - | ||
274 | - | 284 | + "type": "transparent", //透明渐变导航栏 App-nvue 2.4.4+ 支持 |
285 | + "searchInput": { | ||
286 | + "backgroundColor": "#fff", | ||
287 | + "borderRadius": "6px", //输入框圆角 | ||
288 | + "placeholder": "请输入搜索内容", | ||
289 | + "disabled": false, //disable时点击输入框不置焦,可以跳到新页面搜索 | ||
290 | + "align":"left" | ||
291 | + }, | ||
292 | + "buttons": [{ | ||
293 | + "float": "right", | ||
294 | + "fontSize": "12", | ||
295 | + "text": "搜索" | ||
296 | + | ||
297 | + }] | ||
275 | } | 298 | } |
276 | } | 299 | } |
300 | + | ||
301 | + | ||
277 | } | 302 | } |
278 | 303 | ||
279 | }, | 304 | }, |
@@ -285,7 +310,7 @@ | @@ -285,7 +310,7 @@ | ||
285 | "navigationBarTextStyle": "black" | 310 | "navigationBarTextStyle": "black" |
286 | } | 311 | } |
287 | }, | 312 | }, |
288 | - | 313 | + |
289 | 314 | ||
290 | { | 315 | { |
291 | "path": "pages/login/setmima", | 316 | "path": "pages/login/setmima", |
@@ -313,7 +338,7 @@ | @@ -313,7 +338,7 @@ | ||
313 | "navigationBarTextStyle": "black" | 338 | "navigationBarTextStyle": "black" |
314 | } | 339 | } |
315 | }, | 340 | }, |
316 | - | 341 | + |
317 | { | 342 | { |
318 | "path": "pages/index/index", | 343 | "path": "pages/index/index", |
319 | "style": { | 344 | "style": { |
@@ -170,7 +170,7 @@ | @@ -170,7 +170,7 @@ | ||
170 | font-family: uniicons; | 170 | font-family: uniicons; |
171 | font-weight: normal; | 171 | font-weight: normal; |
172 | font-style: normal; | 172 | font-style: normal; |
173 | - src: url('~@/static/uni.ttf') format('truetype'); | 173 | + /* src: url('~@/static/uni.ttf') format('truetype'); */ |
174 | } | 174 | } |
175 | 175 | ||
176 | /* #endif */ | 176 | /* #endif */ |
1 | <template> | 1 | <template> |
2 | - <view class="content"> | 2 | + <view class="content title"> |
3 | + <view class="status_bar"></view> | ||
3 | <view class='navhead flextwo'> | 4 | <view class='navhead flextwo'> |
4 | <view class="navheadleft"> | 5 | <view class="navheadleft"> |
5 | <view class="addimg"> | 6 | <view class="addimg"> |
@@ -15,7 +16,7 @@ | @@ -15,7 +16,7 @@ | ||
15 | <input type="text" placeholder="请输入商品,店铺搜索" placeholder-class="enterk" /> | 16 | <input type="text" placeholder="请输入商品,店铺搜索" placeholder-class="enterk" /> |
16 | </view> | 17 | </view> |
17 | </view> | 18 | </view> |
18 | - <view class="navright"> | 19 | + <view class="navright" @click="cartlist"> |
19 | <image src="../../static/cart.png" mode=""></image> | 20 | <image src="../../static/cart.png" mode=""></image> |
20 | <view class="cartnum">16</view> | 21 | <view class="cartnum">16</view> |
21 | </view> | 22 | </view> |
@@ -100,7 +101,7 @@ | @@ -100,7 +101,7 @@ | ||
100 | </view> | 101 | </view> |
101 | </view> | 102 | </view> |
102 | <view class="homeshoplist flexone"> | 103 | <view class="homeshoplist flexone"> |
103 | - <view class="homeshopitem" v-for="(item,index) in shoplist" :key="index"> | 104 | + <view class="homeshopitem" v-for="(item,index) in shoplist" :key="index" @click="goodtail" :data-id="item.id"> |
104 | <view class="gooditemimg"> | 105 | <view class="gooditemimg"> |
105 | <image :src="item.image" mode=""></image> | 106 | <image :src="item.image" mode=""></image> |
106 | <view class="sale">已售{{item.sales}}件</view> | 107 | <view class="sale">已售{{item.sales}}件</view> |
@@ -206,10 +207,10 @@ | @@ -206,10 +207,10 @@ | ||
206 | showbanben: false, | 207 | showbanben: false, |
207 | footersel: 1, | 208 | footersel: 1, |
208 | jifenshow: false, | 209 | jifenshow: false, |
209 | - keyword:'', | ||
210 | - order:'', | ||
211 | - page:1, | ||
212 | - shoplist:[] | 210 | + keyword: '', |
211 | + order: '', | ||
212 | + page: 1, | ||
213 | + shoplist: [] | ||
213 | } | 214 | } |
214 | }, | 215 | }, |
215 | onLoad() { | 216 | onLoad() { |
@@ -217,9 +218,15 @@ | @@ -217,9 +218,15 @@ | ||
217 | }, | 218 | }, |
218 | methods: { | 219 | methods: { |
219 | // 抽奖专区 | 220 | // 抽奖专区 |
220 | - choujiang(){ | 221 | + choujiang() { |
221 | uni.navigateTo({ | 222 | uni.navigateTo({ |
222 | - url:'/pages/homepage/drawlottery' | 223 | + url: '/pages/homepage/drawlottery' |
224 | + }) | ||
225 | + }, | ||
226 | + // 购物车列表 | ||
227 | + cartlist(){ | ||
228 | + uni.navigateTo({ | ||
229 | + url:'/pages/nearshop/cartlist' | ||
223 | }) | 230 | }) |
224 | }, | 231 | }, |
225 | // 获取面访商品列表 | 232 | // 获取面访商品列表 |
@@ -234,15 +241,23 @@ | @@ -234,15 +241,23 @@ | ||
234 | } | 241 | } |
235 | app.post(url, params).then((res) => { | 242 | app.post(url, params).then((res) => { |
236 | console.log(res); | 243 | console.log(res); |
237 | - that.shoplist=res.data.data | 244 | + that.shoplist = res.data.data |
238 | 245 | ||
239 | }).catch((err) => { | 246 | }).catch((err) => { |
240 | 247 | ||
241 | }) | 248 | }) |
242 | }, | 249 | }, |
243 | - | ||
244 | - | ||
245 | - | 250 | + // 商品详情 |
251 | + goodtail(e) { | ||
252 | + let id = e.currentTarget.dataset.id; | ||
253 | + // type 1 面访商品 | ||
254 | + uni.navigateTo({ | ||
255 | + url: '/pages/nearshop/goodtail?id=' + id + '&type=' + 1 | ||
256 | + }) | ||
257 | + }, | ||
258 | + | ||
259 | + | ||
260 | + | ||
246 | hidebanben() { | 261 | hidebanben() { |
247 | this.showbanben = false | 262 | this.showbanben = false |
248 | }, | 263 | }, |
@@ -303,8 +318,6 @@ | @@ -303,8 +318,6 @@ | ||
303 | }) | 318 | }) |
304 | } | 319 | } |
305 | }, | 320 | }, |
306 | - | ||
307 | - | ||
308 | } | 321 | } |
309 | 322 | ||
310 | } | 323 | } |
@@ -312,6 +325,15 @@ | @@ -312,6 +325,15 @@ | ||
312 | 325 | ||
313 | <style> | 326 | <style> |
314 | @import url('../../base/homepage'); | 327 | @import url('../../base/homepage'); |
328 | + | ||
329 | + .content { | ||
330 | + padding-top: calc(var(--status-bar-height) + 88rpx); | ||
331 | + } | ||
332 | + | ||
333 | + .status_bar { | ||
334 | + background: ; | ||
335 | + } | ||
336 | + | ||
315 | 337 | ||
316 | .lianxu { | 338 | .lianxu { |
317 | color: #3D444C; | 339 | color: #3D444C; |
@@ -375,7 +397,7 @@ | @@ -375,7 +397,7 @@ | ||
375 | .navhead { | 397 | .navhead { |
376 | width: 750rpx; | 398 | width: 750rpx; |
377 | position: fixed; | 399 | position: fixed; |
378 | - top: 0rpx; | 400 | + top: var(--status-bar-height); |
379 | left: 0; | 401 | left: 0; |
380 | z-index: 99 | 402 | z-index: 99 |
381 | } | 403 | } |
1 | <template> | 1 | <template> |
2 | <view class="content"> | 2 | <view class="content"> |
3 | - <view class='navhead flextwo searchnav'> | ||
4 | - <view class="navheadleft"> | 3 | + <!-- <view class='navhead flextwo searchnav'> |
4 | + <view class="navheadleft" @click="back"> | ||
5 | <view class="yourow"> | 5 | <view class="yourow"> |
6 | <image src="../../static/zuorow.png" mode=""></image> | 6 | <image src="../../static/zuorow.png" mode=""></image> |
7 | </view> | 7 | </view> |
@@ -19,223 +19,467 @@ | @@ -19,223 +19,467 @@ | ||
19 | 搜索 | 19 | 搜索 |
20 | </view> | 20 | </view> |
21 | </view> | 21 | </view> |
22 | - <!-- 历史搜索 --> | ||
23 | - <view class="commnonpadding" v-if="history"> | ||
24 | - <view class="zuijin flextwo"> | ||
25 | - <view class="zuititle">最近搜索</view> | ||
26 | - <view class="zuiyou">清除历史搜索</view> | ||
27 | - </view> | ||
28 | - <view class="searchbox flexone"> | ||
29 | - <view class="searchitem">龙须面</view> | ||
30 | - <view class="searchitem">龙须面</view> | ||
31 | - <view class="searchitem">龙须面</view> | ||
32 | - <view class="searchitem">龙须面</view> | 22 | + --> |
33 | 23 | ||
34 | - </view> | 24 | + <view class="searchbox"> |
25 | + <!-- 历史搜索 --> | ||
26 | + <view class="commnonpadding" v-if="history"> | ||
27 | + <view class="zuijin flextwo"> | ||
28 | + <view class="zuititle">最近搜索</view> | ||
29 | + <view class="zuiyou">清除历史搜索</view> | ||
30 | + </view> | ||
31 | + <view class="searchbox flexone"> | ||
32 | + <view class="searchitem">龙须面</view> | ||
33 | + <view class="searchitem">龙须面</view> | ||
34 | + <view class="searchitem">龙须面</view> | ||
35 | + <view class="searchitem">龙须面</view> | ||
35 | 36 | ||
36 | - <view class="zuijin flextwo"> | ||
37 | - <view class="zuititle">热门搜索</view> | 37 | + </view> |
38 | 38 | ||
39 | - </view> | ||
40 | - <view class="searchbox flexone"> | ||
41 | - <view class="searchitem">龙须面</view> | ||
42 | - <view class="searchitem">龙须面</view> | ||
43 | - <view class="searchitem">龙须面</view> | ||
44 | - <view class="searchitem">龙须面</view> | 39 | + <view class="zuijin flextwo"> |
40 | + <view class="zuititle">热门搜索</view> | ||
45 | 41 | ||
46 | - </view> | ||
47 | - </view> | 42 | + </view> |
43 | + <view class="searchbox flexone"> | ||
44 | + <view class="searchitem">龙须面</view> | ||
45 | + <view class="searchitem">龙须面</view> | ||
46 | + <view class="searchitem">龙须面</view> | ||
47 | + <view class="searchitem">龙须面</view> | ||
48 | 48 | ||
49 | - <!-- 搜索店铺 --> | ||
50 | - <view class="commnonpadding" v-if="shopshow"> | ||
51 | - <view class="searchshopitem flexone"> | ||
52 | - <view class="searchitemimg"> | ||
53 | - <image src="../../static/searchshop.png" mode=""></image> | ||
54 | </view> | 49 | </view> |
55 | - <view class="searchname">“南阳面”店铺</view> | ||
56 | </view> | 50 | </view> |
57 | - <view class="searchshopitem"> | ||
58 | - <view class="searchname">南阳面粉糕</view> | ||
59 | - </view> | ||
60 | - <view class="searchshopitem"> | ||
61 | - <view class="searchname">南阳面粉糕</view> | ||
62 | - </view> | ||
63 | - </view> | ||
64 | 51 | ||
65 | - <!-- 搜索商品 --> | ||
66 | - <view class="searchgood commnonpadding" v-if="searchgood"> | ||
67 | - <view class="searchgooditem flexone boxsizing"> | ||
68 | - <view class="gooditemleft"> | ||
69 | - <image src="../../static/goopic.png" mode=""></image> | 52 | + <!-- 搜索店铺 --> |
53 | + <view class="commnonpadding" v-if="shopshow"> | ||
54 | + <view class="searchshopitem flexone"> | ||
55 | + <view class="searchitemimg"> | ||
56 | + <image src="../../static/searchshop.png" mode=""></image> | ||
57 | + </view> | ||
58 | + <view class="searchname">“南阳面”店铺</view> | ||
70 | </view> | 59 | </view> |
71 | - <view class="gooditemright "> | ||
72 | - <view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view> | ||
73 | - <view class="saleprice">¥288</view> | ||
74 | - <view class="hui flextwo"> | ||
75 | - <view class="huiyuanprice">会员价:¥200</view> | ||
76 | - <view class="yisale">已售76件</view> | 60 | + <view class="searchshopitem"> |
61 | + <view class="searchname">南阳面粉糕</view> | ||
62 | + </view> | ||
63 | + <view class="searchshopitem"> | ||
64 | + <view class="searchname">南阳面粉糕</view> | ||
65 | + </view> | ||
66 | + </view> | ||
67 | + | ||
68 | + <!-- 搜索商品 --> | ||
69 | + <view class="searchgood commnonpadding" v-if="searchgood"> | ||
70 | + <view class="searchgooditem flexone boxsizing"> | ||
71 | + <view class="gooditemleft"> | ||
72 | + <image src="../../static/goopic.png" mode=""></image> | ||
77 | </view> | 73 | </view> |
78 | - <view class="goodaddress flextwo"> | ||
79 | - <view class="goodaddressleft flexone"> | ||
80 | - <view class='addressimg'> | ||
81 | - <image src="../../static/goodshop.png" mode=""></image> | ||
82 | - </view> | ||
83 | - <view class="addressname">湖北省南阳市南阳面粉厂</view> | 74 | + <view class="gooditemright "> |
75 | + <view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view> | ||
76 | + <view class="saleprice">¥288</view> | ||
77 | + <view class="hui flextwo"> | ||
78 | + <view class="huiyuanprice">会员价:¥200</view> | ||
79 | + <view class="yisale">已售76件</view> | ||
84 | </view> | 80 | </view> |
85 | - <view class="goodaddressright"> | ||
86 | - 265km | 81 | + <view class="goodaddress flextwo"> |
82 | + <view class="goodaddressleft flexone"> | ||
83 | + <view class='addressimg'> | ||
84 | + <image src="../../static/goodshop.png" mode=""></image> | ||
85 | + </view> | ||
86 | + <view class="addressname">湖北省南阳市南阳面粉厂</view> | ||
87 | + </view> | ||
88 | + <view class="goodaddressright"> | ||
89 | + 265km | ||
90 | + </view> | ||
91 | + | ||
87 | </view> | 92 | </view> |
88 | 93 | ||
89 | </view> | 94 | </view> |
90 | - | ||
91 | </view> | 95 | </view> |
92 | - </view> | ||
93 | 96 | ||
94 | - <view class="searchgooditem flexone boxsizing"> | ||
95 | - <view class="gooditemleft"> | ||
96 | - <image src="../../static/goopic.png" mode=""></image> | ||
97 | - </view> | ||
98 | - <view class="gooditemright "> | ||
99 | - <view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view> | ||
100 | - <view class="saleprice">¥288</view> | ||
101 | - <view class="hui flextwo"> | ||
102 | - <view class="huiyuanprice">会员价:¥200</view> | ||
103 | - <view class="yisale">已售76件</view> | 97 | + <view class="searchgooditem flexone boxsizing"> |
98 | + <view class="gooditemleft"> | ||
99 | + <image src="../../static/goopic.png" mode=""></image> | ||
104 | </view> | 100 | </view> |
105 | - <view class="goodaddress flextwo"> | ||
106 | - <view class="goodaddressleft flexone"> | ||
107 | - <view class='addressimg'> | ||
108 | - <image src="../../static/goodshop.png" mode=""></image> | ||
109 | - </view> | ||
110 | - <view class="addressname">湖北省南阳市南阳面粉厂</view> | 101 | + <view class="gooditemright "> |
102 | + <view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view> | ||
103 | + <view class="saleprice">¥288</view> | ||
104 | + <view class="hui flextwo"> | ||
105 | + <view class="huiyuanprice">会员价:¥200</view> | ||
106 | + <view class="yisale">已售76件</view> | ||
111 | </view> | 107 | </view> |
112 | - <view class="goodaddressright"> | ||
113 | - 265km | 108 | + <view class="goodaddress flextwo"> |
109 | + <view class="goodaddressleft flexone"> | ||
110 | + <view class='addressimg'> | ||
111 | + <image src="../../static/goodshop.png" mode=""></image> | ||
112 | + </view> | ||
113 | + <view class="addressname">湖北省南阳市南阳面粉厂</view> | ||
114 | + </view> | ||
115 | + <view class="goodaddressright"> | ||
116 | + 265km | ||
117 | + </view> | ||
118 | + | ||
114 | </view> | 119 | </view> |
115 | 120 | ||
116 | </view> | 121 | </view> |
117 | - | ||
118 | </view> | 122 | </view> |
119 | - </view> | ||
120 | 123 | ||
121 | - <view class="searchgooditem flexone boxsizing"> | ||
122 | - <view class="gooditemleft"> | ||
123 | - <image src="../../static/goopic.png" mode=""></image> | ||
124 | - </view> | ||
125 | - <view class="gooditemright "> | ||
126 | - <view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view> | ||
127 | - <view class="saleprice">¥288</view> | ||
128 | - <view class="hui flextwo"> | ||
129 | - <view class="huiyuanprice">会员价:¥200</view> | ||
130 | - <view class="yisale">已售76件</view> | 124 | + <view class="searchgooditem flexone boxsizing"> |
125 | + <view class="gooditemleft"> | ||
126 | + <image src="../../static/goopic.png" mode=""></image> | ||
131 | </view> | 127 | </view> |
132 | - <view class="goodaddress flextwo"> | ||
133 | - <view class="goodaddressleft flexone"> | ||
134 | - <view class='addressimg'> | ||
135 | - <image src="../../static/goodshop.png" mode=""></image> | ||
136 | - </view> | ||
137 | - <view class="addressname">湖北省南阳市南阳面粉厂</view> | 128 | + <view class="gooditemright "> |
129 | + <view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view> | ||
130 | + <view class="saleprice">¥288</view> | ||
131 | + <view class="hui flextwo"> | ||
132 | + <view class="huiyuanprice">会员价:¥200</view> | ||
133 | + <view class="yisale">已售76件</view> | ||
138 | </view> | 134 | </view> |
139 | - <view class="goodaddressright"> | ||
140 | - 265km | 135 | + <view class="goodaddress flextwo"> |
136 | + <view class="goodaddressleft flexone"> | ||
137 | + <view class='addressimg'> | ||
138 | + <image src="../../static/goodshop.png" mode=""></image> | ||
139 | + </view> | ||
140 | + <view class="addressname">湖北省南阳市南阳面粉厂</view> | ||
141 | + </view> | ||
142 | + <view class="goodaddressright"> | ||
143 | + 265km | ||
144 | + </view> | ||
145 | + | ||
141 | </view> | 146 | </view> |
142 | 147 | ||
143 | </view> | 148 | </view> |
144 | - | ||
145 | </view> | 149 | </view> |
146 | - </view> | ||
147 | 150 | ||
148 | 151 | ||
149 | 152 | ||
150 | - </view> | ||
151 | - | ||
152 | - | ||
153 | - <!-- 搜索店铺 --> | ||
154 | - <view class="searchshop commnonpadding"> | ||
155 | - <view class="searchgooditem flex boxsizing"> | ||
156 | - <view class="shopleftimg"> | ||
157 | - <image src="../../static/shop.png" mode=""></image> | ||
158 | - </view> | ||
159 | - <view class="shopright"> | ||
160 | - <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
161 | - <view class="shopmiddle flexone"> | ||
162 | - <view class="shopmiddleleft"> | ||
163 | - 8.2 | ||
164 | - </view> | ||
165 | - <view class="shopmiddleright"> | ||
166 | - <view class="star flex"> | ||
167 | - <view class="starimg"> | ||
168 | - <image src="../../static/shixing.png" mode=""></image> | ||
169 | - </view> | ||
170 | - <view class="starimg"> | ||
171 | - <image src="../../static/shixing.png" mode=""></image> | ||
172 | - </view> | ||
173 | - <view class="starimg"> | ||
174 | - <image src="../../static/shixing.png" mode=""></image> | ||
175 | - </view> | ||
176 | - <view class="starimg"> | ||
177 | - <image src="../../static/shixing.png" mode=""></image> | ||
178 | - </view> | ||
179 | - <view class="starimg"> | ||
180 | - <image src="../../static/kongxing.png" mode=""></image> | 153 | + </view> |
154 | + | ||
155 | + | ||
156 | + <!-- 搜索店铺 --> | ||
157 | + <view class="searchshop commnonpadding"> | ||
158 | + <view class="searchgooditem flex boxsizing"> | ||
159 | + <view class="shopleftimg"> | ||
160 | + <image src="../../static/shop.png" mode=""></image> | ||
161 | + </view> | ||
162 | + <view class="shopright"> | ||
163 | + <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
164 | + <view class="shopmiddle flexone"> | ||
165 | + <view class="shopmiddleleft"> | ||
166 | + 8.2 | ||
167 | + </view> | ||
168 | + <view class="shopmiddleright"> | ||
169 | + <view class="star flex"> | ||
170 | + <view class="starimg"> | ||
171 | + <image src="../../static/shixing.png" mode=""></image> | ||
172 | + </view> | ||
173 | + <view class="starimg"> | ||
174 | + <image src="../../static/shixing.png" mode=""></image> | ||
175 | + </view> | ||
176 | + <view class="starimg"> | ||
177 | + <image src="../../static/shixing.png" mode=""></image> | ||
178 | + </view> | ||
179 | + <view class="starimg"> | ||
180 | + <image src="../../static/shixing.png" mode=""></image> | ||
181 | + </view> | ||
182 | + <view class="starimg"> | ||
183 | + <image src="../../static/kongxing.png" mode=""></image> | ||
184 | + </view> | ||
181 | </view> | 185 | </view> |
186 | + <view class="haoping">好评率96%</view> | ||
182 | </view> | 187 | </view> |
183 | - <view class="haoping">好评率96%</view> | ||
184 | </view> | 188 | </view> |
185 | - </view> | ||
186 | - <view class="shopdizhi flexone"> | ||
187 | - <view class="shopdiimg"> | ||
188 | - <image src="../../static/shopaddress.png" mode=""></image> | 189 | + <view class="shopdizhi flexone"> |
190 | + <view class="shopdiimg"> | ||
191 | + <image src="../../static/shopaddress.png" mode=""></image> | ||
192 | + </view> | ||
193 | + <view class='shopli'>距离256km</view> | ||
189 | </view> | 194 | </view> |
190 | - <view class='shopli'>距离256km</view> | ||
191 | </view> | 195 | </view> |
192 | </view> | 196 | </view> |
193 | - </view> | ||
194 | - | ||
195 | - | ||
196 | - <view class="searchgooditem flex boxsizing"> | ||
197 | - <view class="shopleftimg"> | ||
198 | - <image src="../../static/shop.png" mode=""></image> | ||
199 | - </view> | ||
200 | - <view class="shopright"> | ||
201 | - <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
202 | - <view class="shopmiddle flexone"> | ||
203 | - <view class="shopmiddleleft"> | ||
204 | - 8.2 | 197 | + |
198 | + | ||
199 | + <view class="searchgooditem flex boxsizing"> | ||
200 | + <view class="shopleftimg"> | ||
201 | + <image src="../../static/shop.png" mode=""></image> | ||
202 | + </view> | ||
203 | + <view class="shopright"> | ||
204 | + <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
205 | + <view class="shopmiddle flexone"> | ||
206 | + <view class="shopmiddleleft"> | ||
207 | + 8.2 | ||
208 | + </view> | ||
209 | + <view class="shopmiddleright"> | ||
210 | + <view class="star flex"> | ||
211 | + <view class="starimg"> | ||
212 | + <image src="../../static/shixing.png" mode=""></image> | ||
213 | + </view> | ||
214 | + <view class="starimg"> | ||
215 | + <image src="../../static/shixing.png" mode=""></image> | ||
216 | + </view> | ||
217 | + <view class="starimg"> | ||
218 | + <image src="../../static/shixing.png" mode=""></image> | ||
219 | + </view> | ||
220 | + <view class="starimg"> | ||
221 | + <image src="../../static/shixing.png" mode=""></image> | ||
222 | + </view> | ||
223 | + <view class="starimg"> | ||
224 | + <image src="../../static/kongxing.png" mode=""></image> | ||
225 | + </view> | ||
226 | + </view> | ||
227 | + <view class="haoping">好评率96%</view> | ||
228 | + </view> | ||
229 | + </view> | ||
230 | + <view class="shopdizhi flexone"> | ||
231 | + <view class="shopdiimg"> | ||
232 | + <image src="../../static/shopaddress.png" mode=""></image> | ||
233 | + </view> | ||
234 | + <view class='shopli'>距离256km</view> | ||
205 | </view> | 235 | </view> |
206 | - <view class="shopmiddleright"> | ||
207 | - <view class="star flex"> | ||
208 | - <view class="starimg"> | ||
209 | - <image src="../../static/shixing.png" mode=""></image> | 236 | + </view> |
237 | + </view> | ||
238 | + <view class="searchgooditem flex boxsizing"> | ||
239 | + <view class="shopleftimg"> | ||
240 | + <image src="../../static/shop.png" mode=""></image> | ||
241 | + </view> | ||
242 | + <view class="shopright"> | ||
243 | + <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
244 | + <view class="shopmiddle flexone"> | ||
245 | + <view class="shopmiddleleft"> | ||
246 | + 8.2 | ||
247 | + </view> | ||
248 | + <view class="shopmiddleright"> | ||
249 | + <view class="star flex"> | ||
250 | + <view class="starimg"> | ||
251 | + <image src="../../static/shixing.png" mode=""></image> | ||
252 | + </view> | ||
253 | + <view class="starimg"> | ||
254 | + <image src="../../static/shixing.png" mode=""></image> | ||
255 | + </view> | ||
256 | + <view class="starimg"> | ||
257 | + <image src="../../static/shixing.png" mode=""></image> | ||
258 | + </view> | ||
259 | + <view class="starimg"> | ||
260 | + <image src="../../static/shixing.png" mode=""></image> | ||
261 | + </view> | ||
262 | + <view class="starimg"> | ||
263 | + <image src="../../static/kongxing.png" mode=""></image> | ||
264 | + </view> | ||
210 | </view> | 265 | </view> |
211 | - <view class="starimg"> | ||
212 | - <image src="../../static/shixing.png" mode=""></image> | 266 | + <view class="haoping">好评率96%</view> |
267 | + </view> | ||
268 | + </view> | ||
269 | + <view class="shopdizhi flexone"> | ||
270 | + <view class="shopdiimg"> | ||
271 | + <image src="../../static/shopaddress.png" mode=""></image> | ||
272 | + </view> | ||
273 | + <view class='shopli'>距离256km</view> | ||
274 | + </view> | ||
275 | + </view> | ||
276 | + </view> | ||
277 | + | ||
278 | + <view class="searchgooditem flex boxsizing"> | ||
279 | + <view class="shopleftimg"> | ||
280 | + <image src="../../static/shop.png" mode=""></image> | ||
281 | + </view> | ||
282 | + <view class="shopright"> | ||
283 | + <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
284 | + <view class="shopmiddle flexone"> | ||
285 | + <view class="shopmiddleleft"> | ||
286 | + 8.2 | ||
287 | + </view> | ||
288 | + <view class="shopmiddleright"> | ||
289 | + <view class="star flex"> | ||
290 | + <view class="starimg"> | ||
291 | + <image src="../../static/shixing.png" mode=""></image> | ||
292 | + </view> | ||
293 | + <view class="starimg"> | ||
294 | + <image src="../../static/shixing.png" mode=""></image> | ||
295 | + </view> | ||
296 | + <view class="starimg"> | ||
297 | + <image src="../../static/shixing.png" mode=""></image> | ||
298 | + </view> | ||
299 | + <view class="starimg"> | ||
300 | + <image src="../../static/shixing.png" mode=""></image> | ||
301 | + </view> | ||
302 | + <view class="starimg"> | ||
303 | + <image src="../../static/kongxing.png" mode=""></image> | ||
304 | + </view> | ||
213 | </view> | 305 | </view> |
214 | - <view class="starimg"> | ||
215 | - <image src="../../static/shixing.png" mode=""></image> | 306 | + <view class="haoping">好评率96%</view> |
307 | + </view> | ||
308 | + </view> | ||
309 | + <view class="shopdizhi flexone"> | ||
310 | + <view class="shopdiimg"> | ||
311 | + <image src="../../static/shopaddress.png" mode=""></image> | ||
312 | + </view> | ||
313 | + <view class='shopli'>距离256km</view> | ||
314 | + </view> | ||
315 | + </view> | ||
316 | + </view> | ||
317 | + | ||
318 | + <view class="searchgooditem flex boxsizing"> | ||
319 | + <view class="shopleftimg"> | ||
320 | + <image src="../../static/shop.png" mode=""></image> | ||
321 | + </view> | ||
322 | + <view class="shopright"> | ||
323 | + <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
324 | + <view class="shopmiddle flexone"> | ||
325 | + <view class="shopmiddleleft"> | ||
326 | + 8.2 | ||
327 | + </view> | ||
328 | + <view class="shopmiddleright"> | ||
329 | + <view class="star flex"> | ||
330 | + <view class="starimg"> | ||
331 | + <image src="../../static/shixing.png" mode=""></image> | ||
332 | + </view> | ||
333 | + <view class="starimg"> | ||
334 | + <image src="../../static/shixing.png" mode=""></image> | ||
335 | + </view> | ||
336 | + <view class="starimg"> | ||
337 | + <image src="../../static/shixing.png" mode=""></image> | ||
338 | + </view> | ||
339 | + <view class="starimg"> | ||
340 | + <image src="../../static/shixing.png" mode=""></image> | ||
341 | + </view> | ||
342 | + <view class="starimg"> | ||
343 | + <image src="../../static/kongxing.png" mode=""></image> | ||
344 | + </view> | ||
216 | </view> | 345 | </view> |
217 | - <view class="starimg"> | ||
218 | - <image src="../../static/shixing.png" mode=""></image> | 346 | + <view class="haoping">好评率96%</view> |
347 | + </view> | ||
348 | + </view> | ||
349 | + <view class="shopdizhi flexone"> | ||
350 | + <view class="shopdiimg"> | ||
351 | + <image src="../../static/shopaddress.png" mode=""></image> | ||
352 | + </view> | ||
353 | + <view class='shopli'>距离256km</view> | ||
354 | + </view> | ||
355 | + </view> | ||
356 | + </view> | ||
357 | + <view class="searchgooditem flex boxsizing"> | ||
358 | + <view class="shopleftimg"> | ||
359 | + <image src="../../static/shop.png" mode=""></image> | ||
360 | + </view> | ||
361 | + <view class="shopright"> | ||
362 | + <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
363 | + <view class="shopmiddle flexone"> | ||
364 | + <view class="shopmiddleleft"> | ||
365 | + 8.2 | ||
366 | + </view> | ||
367 | + <view class="shopmiddleright"> | ||
368 | + <view class="star flex"> | ||
369 | + <view class="starimg"> | ||
370 | + <image src="../../static/shixing.png" mode=""></image> | ||
371 | + </view> | ||
372 | + <view class="starimg"> | ||
373 | + <image src="../../static/shixing.png" mode=""></image> | ||
374 | + </view> | ||
375 | + <view class="starimg"> | ||
376 | + <image src="../../static/shixing.png" mode=""></image> | ||
377 | + </view> | ||
378 | + <view class="starimg"> | ||
379 | + <image src="../../static/shixing.png" mode=""></image> | ||
380 | + </view> | ||
381 | + <view class="starimg"> | ||
382 | + <image src="../../static/kongxing.png" mode=""></image> | ||
383 | + </view> | ||
219 | </view> | 384 | </view> |
220 | - <view class="starimg"> | ||
221 | - <image src="../../static/kongxing.png" mode=""></image> | 385 | + <view class="haoping">好评率96%</view> |
386 | + </view> | ||
387 | + </view> | ||
388 | + <view class="shopdizhi flexone"> | ||
389 | + <view class="shopdiimg"> | ||
390 | + <image src="../../static/shopaddress.png" mode=""></image> | ||
391 | + </view> | ||
392 | + <view class='shopli'>距离256km</view> | ||
393 | + </view> | ||
394 | + </view> | ||
395 | + </view> | ||
396 | + | ||
397 | + <view class="searchgooditem flex boxsizing"> | ||
398 | + <view class="shopleftimg"> | ||
399 | + <image src="../../static/shop.png" mode=""></image> | ||
400 | + </view> | ||
401 | + <view class="shopright"> | ||
402 | + <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
403 | + <view class="shopmiddle flexone"> | ||
404 | + <view class="shopmiddleleft"> | ||
405 | + 8.2 | ||
406 | + </view> | ||
407 | + <view class="shopmiddleright"> | ||
408 | + <view class="star flex"> | ||
409 | + <view class="starimg"> | ||
410 | + <image src="../../static/shixing.png" mode=""></image> | ||
411 | + </view> | ||
412 | + <view class="starimg"> | ||
413 | + <image src="../../static/shixing.png" mode=""></image> | ||
414 | + </view> | ||
415 | + <view class="starimg"> | ||
416 | + <image src="../../static/shixing.png" mode=""></image> | ||
417 | + </view> | ||
418 | + <view class="starimg"> | ||
419 | + <image src="../../static/shixing.png" mode=""></image> | ||
420 | + </view> | ||
421 | + <view class="starimg"> | ||
422 | + <image src="../../static/kongxing.png" mode=""></image> | ||
423 | + </view> | ||
222 | </view> | 424 | </view> |
425 | + <view class="haoping">好评率96%</view> | ||
223 | </view> | 426 | </view> |
224 | - <view class="haoping">好评率96%</view> | 427 | + </view> |
428 | + <view class="shopdizhi flexone"> | ||
429 | + <view class="shopdiimg"> | ||
430 | + <image src="../../static/shopaddress.png" mode=""></image> | ||
431 | + </view> | ||
432 | + <view class='shopli'>距离256km</view> | ||
225 | </view> | 433 | </view> |
226 | </view> | 434 | </view> |
227 | - <view class="shopdizhi flexone"> | ||
228 | - <view class="shopdiimg"> | ||
229 | - <image src="../../static/shopaddress.png" mode=""></image> | 435 | + </view> |
436 | + | ||
437 | + <view class="searchgooditem flex boxsizing"> | ||
438 | + <view class="shopleftimg"> | ||
439 | + <image src="../../static/shop.png" mode=""></image> | ||
440 | + </view> | ||
441 | + <view class="shopright"> | ||
442 | + <view class="shopname">湖北省南阳市南阳面粉厂</view> | ||
443 | + <view class="shopmiddle flexone"> | ||
444 | + <view class="shopmiddleleft"> | ||
445 | + 8.2 | ||
446 | + </view> | ||
447 | + <view class="shopmiddleright"> | ||
448 | + <view class="star flex"> | ||
449 | + <view class="starimg"> | ||
450 | + <image src="../../static/shixing.png" mode=""></image> | ||
451 | + </view> | ||
452 | + <view class="starimg"> | ||
453 | + <image src="../../static/shixing.png" mode=""></image> | ||
454 | + </view> | ||
455 | + <view class="starimg"> | ||
456 | + <image src="../../static/shixing.png" mode=""></image> | ||
457 | + </view> | ||
458 | + <view class="starimg"> | ||
459 | + <image src="../../static/shixing.png" mode=""></image> | ||
460 | + </view> | ||
461 | + <view class="starimg"> | ||
462 | + <image src="../../static/kongxing.png" mode=""></image> | ||
463 | + </view> | ||
464 | + </view> | ||
465 | + <view class="haoping">好评率96%</view> | ||
466 | + </view> | ||
467 | + </view> | ||
468 | + <view class="shopdizhi flexone"> | ||
469 | + <view class="shopdiimg"> | ||
470 | + <image src="../../static/shopaddress.png" mode=""></image> | ||
471 | + </view> | ||
472 | + <view class='shopli'>距离256km</view> | ||
230 | </view> | 473 | </view> |
231 | - <view class='shopli'>距离256km</view> | ||
232 | </view> | 474 | </view> |
233 | </view> | 475 | </view> |
476 | + | ||
234 | </view> | 477 | </view> |
235 | - | 478 | + |
479 | + | ||
236 | </view> | 480 | </view> |
237 | - | ||
238 | - | 481 | + |
482 | + | ||
239 | </view> | 483 | </view> |
240 | </template> | 484 | </template> |
241 | 485 | ||
@@ -246,7 +490,7 @@ | @@ -246,7 +490,7 @@ | ||
246 | return { | 490 | return { |
247 | history: false, | 491 | history: false, |
248 | shopshow: false, | 492 | shopshow: false, |
249 | - searchgood:false | 493 | + searchgood: false |
250 | } | 494 | } |
251 | }, | 495 | }, |
252 | onLoad() { | 496 | onLoad() { |
@@ -254,11 +498,25 @@ | @@ -254,11 +498,25 @@ | ||
254 | 498 | ||
255 | 499 | ||
256 | }, | 500 | }, |
257 | - methods: {} | 501 | + methods: { |
502 | + back() { | ||
503 | + uni.navigateBack({ | ||
504 | + checked: true | ||
505 | + }) | ||
506 | + }, | ||
507 | + onNavigationBarButtonTap(e) { | ||
508 | + console.log(e) | ||
509 | + console.log("success") | ||
510 | + }, | ||
511 | + } | ||
258 | 512 | ||
259 | } | 513 | } |
260 | </script> | 514 | </script> |
261 | 515 | ||
262 | <style> | 516 | <style> |
263 | @import url('../../base/homepage'); | 517 | @import url('../../base/homepage'); |
518 | + | ||
519 | + .searchbox { | ||
520 | + margin-top: 120rpx; | ||
521 | + } | ||
264 | </style> | 522 | </style> |
@@ -138,19 +138,18 @@ | @@ -138,19 +138,18 @@ | ||
138 | title:"登录成功", | 138 | title:"登录成功", |
139 | icon:'none' | 139 | icon:'none' |
140 | }) | 140 | }) |
141 | + uni.setStorageSync("token",res.data.data.token); | ||
141 | setTimeout(function() { | 142 | setTimeout(function() { |
142 | uni.navigateTo({ | 143 | uni.navigateTo({ |
143 | url:'/pages/homepage/homepage' | 144 | url:'/pages/homepage/homepage' |
144 | }) | 145 | }) |
145 | }, 1500); | 146 | }, 1500); |
146 | - | ||
147 | - | ||
148 | }).catch((err) => { | 147 | }).catch((err) => { |
149 | console.log(err) | 148 | console.log(err) |
150 | 149 | ||
151 | console.log(err.data) | 150 | console.log(err.data) |
152 | uni.showToast({ | 151 | uni.showToast({ |
153 | - title:err.data.msg, | 152 | + title:err.msg, |
154 | icon:'none' | 153 | icon:'none' |
155 | }) | 154 | }) |
156 | }) | 155 | }) |
@@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
104 | }, | 104 | }, |
105 | // 获取验证码 | 105 | // 获取验证码 |
106 | getcode() { | 106 | getcode() { |
107 | - console.log(9999) | 107 | + |
108 | let that = this; | 108 | let that = this; |
109 | that.disable = true; | 109 | that.disable = true; |
110 | if (that.phone == '') { | 110 | if (that.phone == '') { |
@@ -137,7 +137,8 @@ | @@ -137,7 +137,8 @@ | ||
137 | that.setcode = r.data.data.code | 137 | that.setcode = r.data.data.code |
138 | interval = setInterval(function() { | 138 | interval = setInterval(function() { |
139 | currentTime--; | 139 | currentTime--; |
140 | - that.time = currentTime + '秒' | 140 | + that.time = currentTime + '秒'; |
141 | + console.log(that.time) | ||
141 | 142 | ||
142 | if (currentTime <= 0) { | 143 | if (currentTime <= 0) { |
143 | clearInterval(interval) | 144 | clearInterval(interval) |
@@ -148,7 +149,8 @@ | @@ -148,7 +149,8 @@ | ||
148 | }, 1000) | 149 | }, 1000) |
149 | 150 | ||
150 | }).catch(err => { | 151 | }).catch(err => { |
151 | - console.log(err) | 152 | + console.log(err); |
153 | + | ||
152 | }) | 154 | }) |
153 | }, | 155 | }, |
154 | 156 | ||
@@ -195,17 +197,28 @@ | @@ -195,17 +197,28 @@ | ||
195 | app.post(url, params, "post").then((res) => { | 197 | app.post(url, params, "post").then((res) => { |
196 | console.log(res, '37443'); | 198 | console.log(res, '37443'); |
197 | uni.showToast({ | 199 | uni.showToast({ |
198 | - title: res.data.msg, | 200 | + title: '录成功', |
199 | icon: 'none' | 201 | icon: 'none' |
200 | }) | 202 | }) |
201 | - | ||
202 | - | 203 | + uni.setStorageSync("token",res.data.data.token); |
204 | + | ||
205 | + clearInterval(interval); | ||
206 | + setTimeout(function() { | ||
207 | + uni.navigateTo({ | ||
208 | + url:'/pages/homepage/homepage' | ||
209 | + }) | ||
210 | + }, 1500); | ||
203 | }).catch((err) => { | 211 | }).catch((err) => { |
204 | console.log(err) | 212 | console.log(err) |
205 | uni.showToast({ | 213 | uni.showToast({ |
206 | title: err.msg, | 214 | title: err.msg, |
207 | icon: 'none' | 215 | icon: 'none' |
208 | }) | 216 | }) |
217 | + | ||
218 | + clearInterval(interval); | ||
219 | + that.time = '发送验证码'; | ||
220 | + that.currentTime = 61; | ||
221 | + that.disable = false; | ||
209 | }) | 222 | }) |
210 | }, | 223 | }, |
211 | // istestcode(){ | 224 | // istestcode(){ |
1 | <template> | 1 | <template> |
2 | <view class="content"> | 2 | <view class="content"> |
3 | <view class="home-wrap"> | 3 | <view class="home-wrap"> |
4 | - <!-- 搜索 --> | ||
5 | - <view class="search-wrap navigator"> | ||
6 | - <view class="homeimg" open-type="navigate" @click="homeback"> | ||
7 | - <image class="home-ico" src="../../static/home.png" mode="widthFix"/> | ||
8 | - </view> | ||
9 | - <view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate"> | ||
10 | - <icon type="search" size="20" color="#BDC4CE"/> | ||
11 | - 请输入关键词搜索 | ||
12 | - </view> | ||
13 | - <view class="map navigator" url="/pages/city/index" open-type="navigate"> | ||
14 | - <text class="">北京</text> | ||
15 | - <image class="down-ico" src="../../static/xiala.png" /> | ||
16 | - </view> | ||
17 | - </view> | ||
18 | - <!-- nav --> | ||
19 | - <view class="nav-wrap"> | ||
20 | - <view class="navigator" @click="zhaopin"> | ||
21 | - <image src="../../static/helppeople.png" ></image> | ||
22 | - <text>帮工招聘求职</text> | ||
23 | - </view> | ||
24 | - <view class="navigator"> | ||
25 | - <image src="../../static/mianturn.png" ></image> | ||
26 | - <text>面坊求购转让</text> | ||
27 | - </view> | ||
28 | - <view class="navigator"> | ||
29 | - <image src="../../static/friend.png" ></image> | ||
30 | - <text>征婚交友</text> | ||
31 | - </view> | ||
32 | - <view class="navigator"> | ||
33 | - <image src="../../static/zhonglogo.png" ></image> | ||
34 | - <text>中面集团</text> | ||
35 | - </view> | ||
36 | - </view> | ||
37 | - <!-- 最新发布 --> | ||
38 | - <view class="new-release-wrap"> | ||
39 | - <!-- title --> | ||
40 | - <view class="new-release-title">最新发布</view> | ||
41 | - <!-- content --> | ||
42 | - <view class="new-release-content"> | ||
43 | - <!-- 头像,名称,等级 --> | ||
44 | - <view class="userinfo-wrap" @click="usercenter"> | ||
45 | - <image src="../../static/userpic.png"></image> | ||
46 | - <text class="title">我是用户昵称</text> | ||
47 | - <view class="VIP"> | ||
48 | - <image src="../../static/huiyuan.png"></image> | ||
49 | - VIP5 | ||
50 | - </view> | ||
51 | - </view> | ||
52 | - <!-- type --> | ||
53 | - <view class="type-wrap"> | ||
54 | - 帮工招聘求职 | ||
55 | - <text>帮工</text> | ||
56 | - <text>配送员</text> | ||
57 | - <text>销售员</text> | ||
58 | - </view> | ||
59 | - <!-- content --> | ||
60 | - <view class="release-text"> | ||
61 | - <view class="release-text-title"> | ||
62 | - 帖子标题帖子标题帖子标题帖子标题帖子帖子 | ||
63 | - </view> | ||
64 | - <view class="release-text-content"> | ||
65 | - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容... | ||
66 | - </view> | ||
67 | - </view> | ||
68 | - <!-- 点赞, 人数 --> | ||
69 | - <view class="thumbs-number"> | ||
70 | - <view class="thumbs"> | ||
71 | - <image src="../../static/tienozan.png"></image> | ||
72 | - 399 | ||
73 | - </view> | ||
74 | - <view class="number"> | ||
75 | - <image src="../../static/userpeopel.png"></image> | ||
76 | - 399 | ||
77 | - </view> | ||
78 | - </view> | ||
79 | - </view> | ||
80 | - <view class="new-release-content"> | ||
81 | - <!-- 头像,名称,等级 --> | ||
82 | - <view class="userinfo-wrap"> | ||
83 | - <image src="../../icons/nav2.png"></image> | ||
84 | - <text class="title">我是用户昵称</text> | ||
85 | - <view class="VIP"> | ||
86 | - <image src="../../icons/vip.png"></image> | ||
87 | - VIP5 | ||
88 | - </view> | ||
89 | - </view> | ||
90 | - <!-- type --> | ||
91 | - <view class="type-wrap"> | ||
92 | - 帮工招聘求职 | ||
93 | - <text>帮工</text> | ||
94 | - <text>配送员</text> | ||
95 | - <text>销售员</text> | ||
96 | - </view> | ||
97 | - <!-- content --> | ||
98 | - <view class="release-text"> | ||
99 | - <view class="release-text-title"> | ||
100 | - 帖子标题帖子标题帖子标题帖子标题帖子帖子 | ||
101 | - </view> | ||
102 | - <view class="release-text-content"> | ||
103 | - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容... | ||
104 | - </view> | ||
105 | - </view> | ||
106 | - <!-- 点赞, 人数 --> | ||
107 | - <view class="thumbs-number"> | ||
108 | - <view class="thumbs"> | ||
109 | - <image src="../../icons/thumbs1.png"></image> | ||
110 | - 399 | ||
111 | - </view> | ||
112 | - <view class="number"> | ||
113 | - <image src="../../icons/number.png"></image> | ||
114 | - 399 | ||
115 | - </view> | ||
116 | - </view> | ||
117 | - </view> | ||
118 | - <view class="new-release-content"> | ||
119 | - <!-- 头像,名称,等级 --> | ||
120 | - <view class="userinfo-wrap"> | ||
121 | - <image src="../../icons/nav2.png"></image> | ||
122 | - <text class="title">我是用户昵称</text> | ||
123 | - <view class="VIP"> | ||
124 | - <image src="../../icons/vip.png"></image> | ||
125 | - VIP5 | ||
126 | - </view> | ||
127 | - </view> | ||
128 | - <!-- type --> | ||
129 | - <view class="type-wrap"> | ||
130 | - 帮工招聘求职 | ||
131 | - <text>帮工</text> | ||
132 | - <text>配送员</text> | ||
133 | - <text>销售员</text> | ||
134 | - </view> | ||
135 | - <!-- content --> | ||
136 | - <view class="release-text"> | ||
137 | - <view class="release-text-title"> | ||
138 | - 帖子标题帖子标题帖子标题帖子标题帖子帖子 | ||
139 | - </view> | ||
140 | - <view class="release-text-content"> | ||
141 | - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容 | ||
142 | - <image src="../../icons/banner.png" mode="widthFix" /> | ||
143 | - <image src="../../icons/banner.png" mode="widthFix" /> | ||
144 | - <image src="../../icons/banner.png" mode="widthFix" /> | ||
145 | - </view> | ||
146 | - </view> | ||
147 | - <!-- 点赞, 人数 --> | ||
148 | - <view class="thumbs-number"> | ||
149 | - <view class="thumbs"> | ||
150 | - <image src="../../icons/thumbs1.png"></image> | ||
151 | - 399 | ||
152 | - </view> | ||
153 | - <view class="number"> | ||
154 | - <image src="../../icons/number.png"></image> | ||
155 | - 399 | ||
156 | - </view> | ||
157 | - </view> | ||
158 | - </view> | ||
159 | - </view> | 4 | + <!-- 搜索 --> |
5 | + <view class="search-wrap navigator"> | ||
6 | + <view class="homeimg" open-type="navigate" @click="homeback"> | ||
7 | + <image class="home-ico" src="../../static/home.png" mode="widthFix" /> | ||
8 | + </view> | ||
9 | + <view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate"> | ||
10 | + <icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;"/> | ||
11 | + 请输入关键词搜索 | ||
12 | + </view> | ||
13 | + <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name"> | ||
14 | + <!-- <view class="uni-input">{{array[index]}}</view> --> | ||
15 | + <view class="proselect flexthree"> | ||
16 | + <text class="proname">{{provincename}}</text> | ||
17 | + <image class="down-ico" src="../../static/xiala.png" /> | ||
18 | + </view> | ||
19 | + </picker> | ||
20 | + </view> | ||
21 | + <!-- nav --> | ||
22 | + <view class="nav-wrap"> | ||
23 | + <view class="navigator" @click="zhaopin"> | ||
24 | + <image src="../../static/helppeople.png"></image> | ||
25 | + <text>帮工招聘求职</text> | ||
26 | + </view> | ||
27 | + <view class="navigator"> | ||
28 | + <image src="../../static/mianturn.png"></image> | ||
29 | + <text>面坊求购转让</text> | ||
30 | + </view> | ||
31 | + <view class="navigator"> | ||
32 | + <image src="../../static/friend.png"></image> | ||
33 | + <text>征婚交友</text> | ||
34 | + </view> | ||
35 | + <view class="navigator"> | ||
36 | + <image src="../../static/zhonglogo.png"></image> | ||
37 | + <text>中面集团</text> | ||
38 | + </view> | ||
39 | + </view> | ||
40 | + <!-- 最新发布 --> | ||
41 | + <view class="new-release-wrap"> | ||
42 | + <!-- title --> | ||
43 | + <view class="new-release-title">最新发布</view> | ||
44 | + <!-- content --> | ||
45 | + <view class="new-release-content" v-for="(item,index) in luntanlist" :key="index"> | ||
46 | + <!-- 头像,名称,等级 --> | ||
47 | + <view class="userinfo-wrap" @click="usercenter"> | ||
48 | + <image src="../../static/userpic.png"></image> | ||
49 | + <text class="title">{{item.nickname}}</text> | ||
50 | + <view class="VIP"> | ||
51 | + <image src="../../static/huiyuan.png"></image> | ||
52 | + VIP5 | ||
53 | + </view> | ||
54 | + </view> | ||
55 | + <!-- type --> | ||
56 | + <view class="type-wrap"> | ||
57 | + 帮工招聘求职 | ||
58 | + <text>帮工</text> | ||
59 | + <text>配送员</text> | ||
60 | + <text>销售员</text> | ||
61 | + </view> | ||
62 | + <!-- content --> | ||
63 | + <view class="release-text"> | ||
64 | + <view class="release-text-title"> | ||
65 | + 帖子标题帖子标题帖子标题帖子标题帖子帖子 | ||
66 | + </view> | ||
67 | + <view class="release-text-content"> | ||
68 | + 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容... | ||
69 | + </view> | ||
70 | + </view> | ||
71 | + <!-- 点赞, 人数 --> | ||
72 | + <view class="thumbs-number"> | ||
73 | + <view class="thumbs"> | ||
74 | + <image src="../../static/tienozan.png"></image> | ||
75 | + 399 | ||
76 | + </view> | ||
77 | + <view class="number"> | ||
78 | + <image src="../../static/userpeopel.png"></image> | ||
79 | + 399 | ||
80 | + </view> | ||
81 | + </view> | ||
82 | + </view> | ||
83 | + | ||
84 | + | ||
85 | + </view> | ||
160 | </view> | 86 | </view> |
161 | - | 87 | + |
162 | <!-- 发布 --> | 88 | <!-- 发布 --> |
163 | <view class="release-news" v-if="publish"> | 89 | <view class="release-news" v-if="publish"> |
164 | - <view class="release-content"> | ||
165 | - <view class="nav-wrap publishnav"> | ||
166 | - <view class="navigator" @click="zhaopin"> | ||
167 | - <image src="../../static/helppeople.png" ></image> | ||
168 | - <text>帮工招聘求职</text> | ||
169 | - </view> | ||
170 | - <view class="navigator"> | ||
171 | - <image src="../../static/mianturn.png" ></image> | ||
172 | - <text>面坊求购转让</text> | ||
173 | - </view> | ||
174 | - <view class="navigator"> | ||
175 | - <image src="../../static/friend.png" ></image> | ||
176 | - <text>征婚交友</text> | ||
177 | - </view> | ||
178 | - <view class="navigator"> | ||
179 | - <image src="../../static/zhonglogo.png" ></image> | ||
180 | - <text>中面集团</text> | ||
181 | - </view> | ||
182 | - </view> | ||
183 | - <!-- close --> | ||
184 | - <view class="close" @click="hidepublish"> | ||
185 | - <image src="../../static/publishchahao.png" /> | ||
186 | - </view> | ||
187 | - </view> | 90 | + <view class="release-content"> |
91 | + <view class="nav-wrap publishnav"> | ||
92 | + <view class="navigator" @click="zhaopin"> | ||
93 | + <image src="../../static/helppeople.png"></image> | ||
94 | + <text>帮工招聘求职</text> | ||
95 | + </view> | ||
96 | + <view class="navigator"> | ||
97 | + <image src="../../static/mianturn.png"></image> | ||
98 | + <text>面坊求购转让</text> | ||
99 | + </view> | ||
100 | + <view class="navigator"> | ||
101 | + <image src="../../static/friend.png"></image> | ||
102 | + <text>征婚交友</text> | ||
103 | + </view> | ||
104 | + <view class="navigator"> | ||
105 | + <image src="../../static/zhonglogo.png"></image> | ||
106 | + <text>中面集团</text> | ||
107 | + </view> | ||
108 | + </view> | ||
109 | + <!-- close --> | ||
110 | + <view class="close" @click="hidepublish"> | ||
111 | + <image src="../../static/publishchahao.png" /> | ||
112 | + </view> | ||
113 | + </view> | ||
188 | </view> | 114 | </view> |
189 | - | ||
190 | <!-- 底部导航 --> | 115 | <!-- 底部导航 --> |
191 | <view class="teacherfooter"> | 116 | <view class="teacherfooter"> |
192 | - <view class="teacherfootitem" @click="footerseljump" :data-id="1"> | ||
193 | - <view class="teacherfootitemtop shou"> | ||
194 | - <image :src="footersel==1?'../../static/tieziactive.png':'../../static/tiezi.png'"></image> | ||
195 | - </view> | ||
196 | - <view class="teacherfootname " :class="footersel==1?'activename':''">帖子</view> | ||
197 | - </view> | ||
198 | - <view class="teacherfootitem" @click="footerseljump" :data-id="2"> | ||
199 | - <view class="teacherfootitemtop shou"> | ||
200 | - <image :src="footersel==2?'../../static/fabu.png':'../../static/fabu.png'"></image> | ||
201 | - </view> | ||
202 | - <view class="teacherfootname" :class="footersel==2?'activename':''">发布</view> | ||
203 | - </view> | ||
204 | - <view class="teacherfootitem" @click="footerseljump" :data-id="3"> | ||
205 | - <view class="teacherfootitemtop shou"> | ||
206 | - <image :src="footersel==3?'../../static/examineactive.png':'../../static/examine.png'"></image> | ||
207 | - </view> | ||
208 | - <view class="teacherfootname" :class="footersel==3?'activename':''">考试</view> | ||
209 | - </view> | ||
210 | - </view> | 117 | + <view class="teacherfootitem" @click="footerseljump" :data-id="1"> |
118 | + <view class="teacherfootitemtop shou"> | ||
119 | + <image :src="footersel==1?'../../static/tieziactive.png':'../../static/tiezi.png'"></image> | ||
120 | + </view> | ||
121 | + <view class="teacherfootname " :class="footersel==1?'activename':''">帖子</view> | ||
122 | + </view> | ||
123 | + <view class="teacherfootitem" @click="footerseljump" :data-id="2"> | ||
124 | + <view class="teacherfootitemtop shou"> | ||
125 | + <image :src="footersel==2?'../../static/fabu.png':'../../static/fabu.png'"></image> | ||
126 | + </view> | ||
127 | + <view class="teacherfootname" :class="footersel==2?'activename':''">发布</view> | ||
128 | + </view> | ||
129 | + <view class="teacherfootitem" @click="footerseljump" :data-id="3"> | ||
130 | + <view class="teacherfootitemtop shou"> | ||
131 | + <image :src="footersel==3?'../../static/examineactive.png':'../../static/examine.png'"></image> | ||
132 | + </view> | ||
133 | + <view class="teacherfootname" :class="footersel==3?'activename':''">考试</view> | ||
134 | + </view> | ||
135 | + </view> | ||
211 | </view> | 136 | </view> |
212 | </template> | 137 | </template> |
213 | 138 | ||
@@ -217,22 +142,54 @@ | @@ -217,22 +142,54 @@ | ||
217 | data() { | 142 | data() { |
218 | return { | 143 | return { |
219 | publish: false, | 144 | publish: false, |
220 | - footersel:1, | ||
221 | - province_id:'', | ||
222 | - type:1, | ||
223 | - page:1 | 145 | + footersel: 1, |
146 | + province_id: '', | ||
147 | + type: 1, | ||
148 | + page: 1, | ||
149 | + provincelist: [], | ||
150 | + provincename:'', | ||
151 | + index:0, | ||
152 | + luntanlist:[] | ||
153 | + | ||
224 | } | 154 | } |
225 | }, | 155 | }, |
226 | onLoad() { | 156 | onLoad() { |
227 | - this.getluntanlist() | ||
228 | - | 157 | + // 获取省份列表 |
158 | + this.getprovincelist(); | ||
229 | }, | 159 | }, |
230 | methods: { | 160 | methods: { |
231 | - hidepublish(){ | ||
232 | - this.publish=false | 161 | + hidepublish() { |
162 | + this.publish = false | ||
163 | + }, | ||
164 | + // 获取身份列表 | ||
165 | + getprovincelist() { | ||
166 | + let that = this; | ||
167 | + var url = 'forum/get_province'; | ||
168 | + var params = { | ||
169 | + is_forum_hot: '' | ||
170 | + } | ||
171 | + console.log('7766554', params) | ||
172 | + app.post(url, params).then((res) => { | ||
173 | + console.log(res); | ||
174 | + that.provincelist = res.data.data; | ||
175 | + this.provincename=res.data.data[0].name; | ||
176 | + that.province_id=res.data.data[0].id; | ||
177 | + // 获取论坛列表 | ||
178 | + this.getluntanlist() | ||
179 | + | ||
180 | + }).catch((err) => { | ||
181 | + | ||
182 | + }) | ||
183 | + }, | ||
184 | + bindproChange(e){ | ||
185 | + this.index = e.target.value; | ||
186 | + this.provincename=this.provincelist[e.target.value].name; | ||
187 | + this.province_id=this.provincelist[e.target.value].id; | ||
188 | + // 获取论坛列表 | ||
189 | + this.getluntanlist(); | ||
233 | }, | 190 | }, |
234 | // 获取论坛列表 | 191 | // 获取论坛列表 |
235 | - getluntanlist(){ | 192 | + getluntanlist() { |
236 | let that = this; | 193 | let that = this; |
237 | var url = 'forum/get_forum'; | 194 | var url = 'forum/get_forum'; |
238 | var params = { | 195 | var params = { |
@@ -241,166 +198,217 @@ | @@ -241,166 +198,217 @@ | ||
241 | page: that.page, | 198 | page: that.page, |
242 | pageNum: 10 | 199 | pageNum: 10 |
243 | } | 200 | } |
244 | - console.log('7766554',params) | ||
245 | app.post(url, params).then((res) => { | 201 | app.post(url, params).then((res) => { |
246 | console.log(res); | 202 | console.log(res); |
247 | - | ||
248 | - | 203 | + that.luntanlist=that.luntanlist.concat(res.data.data); |
204 | + console.log('9999',this.luntanlist) | ||
205 | + | ||
206 | + | ||
249 | }).catch((err) => { | 207 | }).catch((err) => { |
250 | - | 208 | + console.log(err) |
209 | + | ||
251 | }) | 210 | }) |
252 | }, | 211 | }, |
253 | // 返回首页 | 212 | // 返回首页 |
254 | - homeback(){ | 213 | + homeback() { |
255 | console.log(43898934894) | 214 | console.log(43898934894) |
256 | uni.navigateTo({ | 215 | uni.navigateTo({ |
257 | - url:'/pages/homepage/homepage' | 216 | + url: '/pages/homepage/homepage' |
258 | }) | 217 | }) |
259 | }, | 218 | }, |
260 | // 论坛列表 | 219 | // 论坛列表 |
261 | - zhaopin(){ | 220 | + zhaopin() { |
262 | uni.navigateTo({ | 221 | uni.navigateTo({ |
263 | - url:'../luntan/luntanlist' | 222 | + url: '../luntan/luntanlist' |
264 | }) | 223 | }) |
265 | }, | 224 | }, |
266 | // 底部导航跳转 | 225 | // 底部导航跳转 |
267 | - footerseljump(e){ | 226 | + footerseljump(e) { |
268 | console.log(e) | 227 | console.log(e) |
269 | - let id=e.currentTarget.dataset.id; | 228 | + let id = e.currentTarget.dataset.id; |
270 | console.log(id) | 229 | console.log(id) |
271 | - if(id==1){ | 230 | + if (id == 1) { |
272 | uni.navigateTo({ | 231 | uni.navigateTo({ |
273 | - url:'/pages/luntan/luntan' | 232 | + url: '/pages/luntan/luntan' |
274 | }) | 233 | }) |
275 | - }else if(id==3){ | 234 | + } else if (id == 3) { |
276 | uni.navigateTo({ | 235 | uni.navigateTo({ |
277 | - url:"/pages/luntan/examine" | 236 | + url: "/pages/luntan/examine" |
278 | }) | 237 | }) |
279 | - }else{ | ||
280 | - this.publish=true | 238 | + } else { |
239 | + this.publish = true | ||
281 | } | 240 | } |
282 | } | 241 | } |
283 | } | 242 | } |
284 | - | 243 | + |
285 | } | 244 | } |
286 | - | ||
287 | - | ||
288 | </script> | 245 | </script> |
289 | 246 | ||
290 | <style> | 247 | <style> |
291 | - | ||
292 | page { | 248 | page { |
293 | - background: #F9F9F9; | 249 | + background: #F9F9F9; |
250 | + } | ||
251 | + .proselect{ | ||
252 | + width:120rpx; | ||
253 | + height:60rpx; | ||
254 | + border:2rpx solid rgba(238,238,238,1); | ||
255 | + color:#fff; | ||
256 | + font-size:24rpx; | ||
257 | + border-radius: 40rpx; | ||
258 | + padding: 0 10rpx; | ||
259 | + box-sizing: border-box; | ||
260 | + margin-left:16rpx; | ||
261 | + } | ||
262 | + .proname{ | ||
263 | + width:90rpx; | ||
264 | + overflow: hidden; | ||
265 | + text-overflow: ellipsis; | ||
266 | + white-space: nowrap; | ||
267 | + margin-right:5rpx; | ||
268 | + } | ||
269 | + .down-ico{ | ||
270 | + width:16rpx; | ||
271 | + height:16rpx; | ||
272 | + font-size: 0; | ||
294 | } | 273 | } |
295 | - .publishnav{ | ||
296 | - padding: 0!important; | 274 | + .publishnav { |
275 | + padding: 0 !important; | ||
297 | } | 276 | } |
298 | - .homeimg{ | ||
299 | - width:88rpx; | ||
300 | - height:88rpx; | 277 | + |
278 | + .homeimg { | ||
279 | + width: 88rpx; | ||
280 | + height: 88rpx; | ||
301 | font-size: 0; | 281 | font-size: 0; |
302 | } | 282 | } |
303 | - .search-input{ | ||
304 | - width:470rpx!important; | 283 | + |
284 | + .search-input { | ||
285 | + width: 470rpx !important; | ||
305 | } | 286 | } |
287 | + | ||
306 | /* 搜素 */ | 288 | /* 搜素 */ |
307 | - .search-wrap{ | ||
308 | - width:750rpx; | 289 | + .search-wrap { |
290 | + width: 750rpx; | ||
309 | padding: 14rpx 0; | 291 | padding: 14rpx 0; |
310 | box-sizing: border-box; | 292 | box-sizing: border-box; |
311 | background: #C29445; | 293 | background: #C29445; |
312 | 294 | ||
313 | - | 295 | + position: fixed; |
296 | + top: 0; | ||
297 | + left: 0; | ||
298 | + | ||
314 | } | 299 | } |
300 | + | ||
315 | .nav-wrap { | 301 | .nav-wrap { |
316 | - background: #fff; | ||
317 | - display: flex; | ||
318 | - justify-content: space-between; | ||
319 | - padding: 32rpx 64rpx; | ||
320 | - margin-bottom: 16rpx; | 302 | + background: #fff; |
303 | + display: flex; | ||
304 | + justify-content: space-between; | ||
305 | + padding: 32rpx 64rpx; | ||
306 | + margin-bottom: 16rpx; | ||
307 | + margin-top: 100rpx; | ||
321 | } | 308 | } |
309 | + | ||
322 | .nav-wrap .navigator { | 310 | .nav-wrap .navigator { |
323 | - text-align: center; | 311 | + text-align: center; |
324 | } | 312 | } |
313 | + | ||
325 | .nav-wrap .navigator image { | 314 | .nav-wrap .navigator image { |
326 | - width: 88rpx; | ||
327 | - height: 88rpx; | ||
328 | - margin: auto; | 315 | + width: 88rpx; |
316 | + height: 88rpx; | ||
317 | + margin: auto; | ||
329 | } | 318 | } |
319 | + | ||
330 | .nav-wrap .navigator text { | 320 | .nav-wrap .navigator text { |
331 | - width: 104rpx; | ||
332 | - display: block; | ||
333 | - color: #3D454C; | ||
334 | - font-size: 26rpx; | 321 | + width: 104rpx; |
322 | + display: block; | ||
323 | + color: #3D454C; | ||
324 | + font-size: 26rpx; | ||
335 | } | 325 | } |
326 | + | ||
336 | .new-release-wrap .new-release-title { | 327 | .new-release-wrap .new-release-title { |
337 | - height: 84rpx; | ||
338 | - line-height: 84rpx; | ||
339 | - padding-left: 32rpx; | ||
340 | - position: relative; | ||
341 | - background: #fff; | ||
342 | - font-size: 32rpx; | ||
343 | - color: #061220; | ||
344 | - border-bottom: 1px solid #E3E2E1; | 328 | + height: 84rpx; |
329 | + line-height: 84rpx; | ||
330 | + padding-left: 32rpx; | ||
331 | + position: relative; | ||
332 | + background: #fff; | ||
333 | + font-size: 32rpx; | ||
334 | + color: #061220; | ||
335 | + border-bottom: 1px solid #E3E2E1; | ||
345 | } | 336 | } |
337 | + | ||
346 | .new-release-wrap .new-release-title:after { | 338 | .new-release-wrap .new-release-title:after { |
347 | - content: ""; | ||
348 | - position: absolute; | ||
349 | - top: 20rpx; | ||
350 | - left: 0; | ||
351 | - height: 44rpx; | ||
352 | - width: 8rpx; | ||
353 | - background: var(--themeColor); | ||
354 | - border-top-right-radius: 6rpx; | ||
355 | - border-bottom-right-radius: 6rpx; | 339 | + content: ""; |
340 | + position: absolute; | ||
341 | + top: 20rpx; | ||
342 | + left: 0; | ||
343 | + height: 44rpx; | ||
344 | + width: 8rpx; | ||
345 | + background: var(--themeColor); | ||
346 | + border-top-right-radius: 6rpx; | ||
347 | + border-bottom-right-radius: 6rpx; | ||
356 | } | 348 | } |
349 | + | ||
357 | .release-news { | 350 | .release-news { |
358 | - position: fixed; | ||
359 | - width: 750rpx; | ||
360 | - height: 100%; | ||
361 | - bottom: 0; | ||
362 | - left: 0; | ||
363 | - background: rgba(0, 0, 0, 0.5); | ||
364 | - z-index: 10; | 351 | + position: fixed; |
352 | + width: 750rpx; | ||
353 | + height: 100%; | ||
354 | + bottom: 0; | ||
355 | + left: 0; | ||
356 | + background: rgba(0, 0, 0, 0.5); | ||
357 | + z-index: 10; | ||
365 | } | 358 | } |
359 | + | ||
366 | .release-news .release-content { | 360 | .release-news .release-content { |
367 | - position: absolute; | ||
368 | - width: 750rpx; | ||
369 | - bottom: 0; | ||
370 | - left: 0; | ||
371 | - background: #fff; | ||
372 | - z-index: 1000; | ||
373 | - padding: 60rpx; | ||
374 | - box-sizing: border-box; | ||
375 | - border-top-left-radius: 40rpx; | ||
376 | - border-top-right-radius: 40rpx; | 361 | + position: absolute; |
362 | + width: 750rpx; | ||
363 | + bottom: 0; | ||
364 | + left: 0; | ||
365 | + background: #fff; | ||
366 | + z-index: 1000; | ||
367 | + padding: 60rpx; | ||
368 | + box-sizing: border-box; | ||
369 | + border-top-left-radius: 40rpx; | ||
370 | + border-top-right-radius: 40rpx; | ||
377 | } | 371 | } |
372 | + | ||
378 | .release-news .meun-lists { | 373 | .release-news .meun-lists { |
379 | - display: flex; | ||
380 | - justify-content: space-between; | 374 | + display: flex; |
375 | + justify-content: space-between; | ||
381 | } | 376 | } |
377 | + | ||
382 | .release-news .meun-lists navigator { | 378 | .release-news .meun-lists navigator { |
383 | - text-align: center; | 379 | + text-align: center; |
384 | } | 380 | } |
381 | + | ||
385 | .release-news .meun-lists navigator image { | 382 | .release-news .meun-lists navigator image { |
386 | - width: 88rpx; | ||
387 | - height: 88rpx; | ||
388 | - margin: auto; | 383 | + width: 88rpx; |
384 | + height: 88rpx; | ||
385 | + margin: auto; | ||
389 | } | 386 | } |
387 | + | ||
390 | .release-news .meun-lists navigator text { | 388 | .release-news .meun-lists navigator text { |
391 | - width: 104rpx; | ||
392 | - display: block; | ||
393 | - color: #3D454C; | ||
394 | - font-size: 26rpx; | 389 | + width: 104rpx; |
390 | + display: block; | ||
391 | + color: #3D454C; | ||
392 | + font-size: 26rpx; | ||
395 | } | 393 | } |
394 | + | ||
396 | .release-news .close { | 395 | .release-news .close { |
397 | - display: flex; | ||
398 | - justify-content: center; | ||
399 | - margin-top: 38rpx; | 396 | + display: flex; |
397 | + justify-content: center; | ||
398 | + margin-top: 38rpx; | ||
400 | } | 399 | } |
400 | + | ||
401 | .release-news .close image { | 401 | .release-news .close image { |
402 | - width: 60rpx; | ||
403 | - height: 60rpx; | 402 | + width: 60rpx; |
403 | + height: 60rpx; | ||
404 | } | 404 | } |
405 | - | 405 | + .search-wrap .navigator:nth-child(3){ |
406 | + /* font-size: 20rpx; */ | ||
407 | + } | ||
408 | + /* .proname{ | ||
409 | + | ||
410 | + overflow: hidden; | ||
411 | + text-overflow: ellipsis; | ||
412 | + white-space: nowrap; | ||
413 | + } */ | ||
406 | </style> | 414 | </style> |
pages/nearshop/cartbox.vue
0 → 100644
1 | +<template> | ||
2 | + <view class="content"> | ||
3 | + <view class="sureshop"> | ||
4 | + | ||
5 | + | ||
6 | + </view> | ||
7 | + <!-- 面坊商品 --> | ||
8 | + <view> | ||
9 | + <view class="sureorderbox flexone" @click="mianfang"> | ||
10 | + <view class="sureimg"> | ||
11 | + <image src="../../static/nearshop.png" mode=""></image> | ||
12 | + </view> | ||
13 | + <view class="sureshopname">面坊商品</view> | ||
14 | + </view> | ||
15 | + <view class='cartlist'> | ||
16 | + <view class="sureorderitem flexone" v-for="(item,index) in data2" :key="index"> | ||
17 | + <view class="cartselimg" @click="selectcart(item)"> | ||
18 | + <image src="../../static/cartnosel.png" mode="" v-if="item.sel==false"></image> | ||
19 | + <image src="../../static/cartsel.png" mode="" v-else></image> | ||
20 | + </view> | ||
21 | + <view class="sureorderitemleft"> | ||
22 | + <image :src="item.flour_goods.flour_goods_spec.spec_image" mode=""></image> | ||
23 | + </view> | ||
24 | + <view class='shuright'> | ||
25 | + <view class="suregoodname">{{item.flour_goods.name}}{{item.sel}} | ||
26 | + </view> | ||
27 | + <view class="surebot flextwo"> | ||
28 | + <view class="saleprice">¥{{item.flour_goods.price}}</view> | ||
29 | + <view class="weightnumk flexone"> | ||
30 | + <view class="weightnumkleft leftk" @click="reducecart(item)"> | ||
31 | + <image src="../../static/reduceimg.png" mode=""></image> | ||
32 | + </view> | ||
33 | + <view class="detailnum">{{item.number}}</view> | ||
34 | + <view class="weightnumkleft rightk" @click='addcart(item)'> | ||
35 | + <image src="../../static/addimg.png" mode=""></image> | ||
36 | + </view> | ||
37 | + </view> | ||
38 | + </view> | ||
39 | + </view> | ||
40 | + </view> | ||
41 | + </view> | ||
42 | + </view> | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + </view> | ||
48 | + </view> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | + export default { | ||
52 | + data() { | ||
53 | + return { | ||
54 | + data1: [], //店铺商品 | ||
55 | + | ||
56 | + data3: [], //积分商品 | ||
57 | + selall: false, | ||
58 | + sel: false, | ||
59 | + data2: [{ | ||
60 | + "id": 12, | ||
61 | + "type": "1", | ||
62 | + "store_id": null, | ||
63 | + "goods_id": 2, | ||
64 | + "user_id": 5, | ||
65 | + "spec_sku_id": "", | ||
66 | + "number": 2, | ||
67 | + "createtime": 1586225601, | ||
68 | + "flour_goods": { | ||
69 | + "id": 2, | ||
70 | + "name": "商品名称(单规格)", | ||
71 | + "image": "http://zhongmian.w.brotop.cn", | ||
72 | + "images": null, | ||
73 | + "content": "详细描述详细描述", | ||
74 | + "spec_type": "1", | ||
75 | + "sales_initial": 20, | ||
76 | + "sales_actual": 0, | ||
77 | + "weigh": 2, | ||
78 | + "publishtime": 1584694198, | ||
79 | + "createtime": 1584694198, | ||
80 | + "updatetime": 1584694198, | ||
81 | + "status": "1", | ||
82 | + "is_seckill": "2", | ||
83 | + "is_sales": "2", | ||
84 | + "is_distribution": "2", | ||
85 | + "sales": 20, | ||
86 | + "flour_goods_spec": { | ||
87 | + "id": 5, | ||
88 | + "flour_goods_id": 2, | ||
89 | + "goods_no": "CH-56", | ||
90 | + "goods_price": "5.00", | ||
91 | + "seckill_price": "3.00", | ||
92 | + "stock_num": 20, | ||
93 | + "goods_sales": 0, | ||
94 | + "spec_sku_id": null, | ||
95 | + "spec_image": "http://zhongmian.w.brotop.cn", | ||
96 | + "createtime": 0, | ||
97 | + "updatetime": 0 | ||
98 | + }, | ||
99 | + "goods_price": "5.00", | ||
100 | + "seckill_price": "3.00", | ||
101 | + "spec": [], | ||
102 | + "price": "5.00" | ||
103 | + }, | ||
104 | + "sel": 0 | ||
105 | + }] | ||
106 | + } | ||
107 | + }, | ||
108 | + | ||
109 | + methods: { | ||
110 | + //面坊商品选择购物车 | ||
111 | + selectcart(item) { | ||
112 | + let that = this | ||
113 | + if (item.type == 2) { | ||
114 | + let newdata=that.data3 | ||
115 | + newdata.forEach(function(value, index, array) { | ||
116 | + if (value.id == item.id) { | ||
117 | + value.sel =!value.sel | ||
118 | + // value.number=8 | ||
119 | + } | ||
120 | + }) | ||
121 | + console.log(newdata) | ||
122 | + that.data3 = newdata | ||
123 | + }else if(item.type==1){ | ||
124 | + | ||
125 | + let newdata=that.data2 | ||
126 | + newdata.forEach(function(value, index, array) { | ||
127 | + if (value.id == item.id) { | ||
128 | + value.sel =!value.sel | ||
129 | + // value.sel = !value.sel | ||
130 | + } | ||
131 | + }) | ||
132 | + that.data2 = newdata; | ||
133 | + } | ||
134 | + | ||
135 | + }, | ||
136 | + } | ||
137 | + | ||
138 | + } | ||
139 | +</script> | ||
140 | + | ||
141 | +<style> | ||
142 | + @import url('../../base/nearshop'); | ||
143 | + @import url('../../base/homepage'); | ||
144 | + | ||
145 | + page { | ||
146 | + background: #F8F6F9; | ||
147 | + } | ||
148 | + | ||
149 | + .cartlist { | ||
150 | + /* padding-bottom: 120rpx; */ | ||
151 | + } | ||
152 | + | ||
153 | + .cartselimg { | ||
154 | + width: 30rpx; | ||
155 | + height: 30rpx; | ||
156 | + font-size: 0; | ||
157 | + margin-right: 30rpx; | ||
158 | + flex: 0 0 auto; | ||
159 | + } | ||
160 | + | ||
161 | + .sureorderitem { | ||
162 | + padding-bottom: 30rpx; | ||
163 | + box-sizing: border-box; | ||
164 | + } | ||
165 | + | ||
166 | + .cartbottom { | ||
167 | + width: 750rpx; | ||
168 | + position: fixed; | ||
169 | + bottom: 0; | ||
170 | + left: 0; | ||
171 | + padding: 38rpx 32rpx; | ||
172 | + box-sizing: border-box; | ||
173 | + background: #fff; | ||
174 | + } | ||
175 | + | ||
176 | + .totalnum { | ||
177 | + color: #3D454C; | ||
178 | + font-size: 28rpx; | ||
179 | + /* margin-left:12rpx; */ | ||
180 | + } | ||
181 | + | ||
182 | + .totalmoney { | ||
183 | + color: #E26335; | ||
184 | + font-size: 28rpx; | ||
185 | + /* margin-left:12rpx; */ | ||
186 | + } | ||
187 | + | ||
188 | + .jiesuan { | ||
189 | + width: 280rpx; | ||
190 | + height: 88rpx; | ||
191 | + background: rgba(194, 148, 69, 1); | ||
192 | + border-radius: 16rpx; | ||
193 | + color: #fff; | ||
194 | + font-size: 28rpx; | ||
195 | + text-align: center; | ||
196 | + line-height: 88rpx; | ||
197 | + } | ||
198 | +</style> |
1 | <template> | 1 | <template> |
2 | <view class="content"> | 2 | <view class="content"> |
3 | <view class="sureshop"> | 3 | <view class="sureshop"> |
4 | - <view class="sureorderbox flexone"> | ||
5 | - <view class="sureimg"> | ||
6 | - <image src="../../static/nearshop.png" mode=""></image> | 4 | + <!-- 店铺商品--> |
5 | + <view v-if="data1.length!=0"> | ||
6 | + <view class="sureorderbox flexone"> | ||
7 | + <view class="sureimg"> | ||
8 | + <image src="../../static/nearshop.png" mode=""></image> | ||
9 | + </view> | ||
10 | + <view class="sureshopname">红大地面品厂</view> | ||
7 | </view> | 11 | </view> |
8 | - <view class="sureshopname">红大地面品厂</view> | ||
9 | - | ||
10 | - </view> | ||
11 | - <view class='cartlist'> | ||
12 | - <view class="sureorderitem flexone"> | ||
13 | - <view class="cartselimg"> | ||
14 | - <image src="../../static/cartsel.png" mode=""></image> | 12 | + <view class='cartlist'> |
13 | + <view class="sureorderitem flexone"> | ||
14 | + <view class="cartselimg"> | ||
15 | + <image src="../../static/cartsel.png" mode=""></image> | ||
16 | + </view> | ||
17 | + <view class="sureorderitemleft"> | ||
18 | + <image src="../../static/goodtailtop.png" mode=""></image> | ||
19 | + </view> | ||
20 | + <view class='shuright'> | ||
21 | + <view class="suregoodnamek">商品名称商品名称商品名称商 | ||
22 | + 品名称商品名称商品名称商品名称商品名称 | ||
23 | + </view> | ||
24 | + <view class="surebot flextwo"> | ||
25 | + <view class="saleprice">¥288</view> | ||
26 | + <view class="weightnumk flexone"> | ||
27 | + <view class="weightnumkleft leftk"> | ||
28 | + <image src="../../static/addimg.png" mode=""></image> | ||
29 | + </view> | ||
30 | + <view class="detailnum">1</view> | ||
31 | + <view class="weightnumkleft rightk"> | ||
32 | + <image src="../../static/reduceimg.png" mode=""></image> | ||
33 | + </view> | ||
34 | + </view> | ||
35 | + </view> | ||
36 | + </view> | ||
15 | </view> | 37 | </view> |
16 | - <view class="sureorderitemleft"> | ||
17 | - <image src="../../static/goodtailtop.png" mode=""></image> | 38 | + </view> |
39 | + | ||
40 | + </view> | ||
41 | + <!-- 面坊商品 --> | ||
42 | + <view v-if="data2.length!=0"> | ||
43 | + <view class="sureorderbox flexone"> | ||
44 | + <view class="sureimg"> | ||
45 | + <image src="../../static/nearshop.png" mode=""></image> | ||
18 | </view> | 46 | </view> |
19 | - <view class='shuright'> | ||
20 | - <view class="suregoodname">商品名称商品名称商品名称商 | ||
21 | - 品名称商品名称商品名称商品名称商品名称 | 47 | + <view class="sureshopname">面坊商品</view> |
48 | + </view> | ||
49 | + <view class='cartlist'> | ||
50 | + <view class="sureorderitem flexone" v-for="(item,index) in data2" :key="index"> | ||
51 | + <view class="cartselimg" @click="selectcart(item,index)"> | ||
52 | + | ||
53 | + <image src="../../static/cartnosel.png" mode="" v-if="item.sel==false"></image> | ||
54 | + <image src="../../static/cartsel.png" mode="" v-else></image> | ||
22 | </view> | 55 | </view> |
23 | - <view class="surebot flextwo"> | ||
24 | - <view class="saleprice">¥288</view> | ||
25 | - <view class="weightnumk flexone"> | ||
26 | - <view class="weightnumkleft leftk"> | ||
27 | - <image src="../../static/addimg.png" mode=""></image> | ||
28 | - </view> | ||
29 | - <view class="detailnum">1</view> | ||
30 | - <view class="weightnumkleft rightk"> | ||
31 | - <image src="../../static/reduceimg.png" mode=""></image> | 56 | + <view class="sureorderitemleft"> |
57 | + <image :src="item.flour_goods.flour_goods_spec.spec_image" mode=""></image> | ||
58 | + </view> | ||
59 | + <view class='shuright'> | ||
60 | + <view class="suregoodnamek"> | ||
61 | + {{item.flour_goods.name}} | ||
62 | + </view> | ||
63 | + <!-- 商品属性 --> | ||
64 | + <view v-if="item.flour_goods.spec.length!=0"> | ||
65 | + <view class="spec" v-for="(item,index) in item.flour_goods.spec" :key="index">{{item.spec_name}}:{{item.spec_value}}</view> | ||
66 | + </view> | ||
67 | + | ||
68 | + <view class="surebot flextwo"> | ||
69 | + <view class="saleprice">¥{{item.flour_goods.price}}</view> | ||
70 | + <view class="weightnumk flexone"> | ||
71 | + <view class="weightnumkleft rightk" @click="reducecart(item)"> | ||
72 | + <image src="../../static/reduceimg.png" mode=""></image> | ||
73 | + </view> | ||
74 | + <view class="detailnum">{{item.number}}</view> | ||
75 | + <view class="weightnumkleft leftk" @click="addcart(item)"> | ||
76 | + <image src="../../static/addimg.png" mode=""></image> | ||
77 | + </view> | ||
32 | </view> | 78 | </view> |
33 | </view> | 79 | </view> |
34 | </view> | 80 | </view> |
35 | </view> | 81 | </view> |
36 | - | ||
37 | </view> | 82 | </view> |
38 | - <view class="sureorderitem flexone"> | ||
39 | - <view class="cartselimg"> | ||
40 | - <image src="../../static/cartnosel.png" mode=""></image> | ||
41 | - </view> | ||
42 | - <view class="sureorderitemleft"> | ||
43 | - <image src="../../static/goodtailtop.png" mode=""></image> | 83 | + </view> |
84 | + <!-- 积分商品 --> | ||
85 | + <view v-if="data3.length!=0"> | ||
86 | + <view class="sureorderbox flexone" @click="jifenshop"> | ||
87 | + <view class="sureimg"> | ||
88 | + <image src="../../static/nearshop.png" mode=""></image> | ||
44 | </view> | 89 | </view> |
45 | - <view class='shuright'> | ||
46 | - <view class="suregoodname">商品名称商品名称商品名称商 | ||
47 | - 品名称商品名称商品名称商品名称商品名称 | 90 | + <view class="sureshopname">积分商品</view> |
91 | + </view> | ||
92 | + <view class='cartlist'> | ||
93 | + <view class="sureorderitem flexone" v-for="(item,index) in data3" :key="index"> | ||
94 | + <view class="flexone" @click="selectcart(item)"> | ||
95 | + <view class="cartselimg"> | ||
96 | + {{item.sel}} | ||
97 | + <image src="../../static/cartsel.png" mode="" v-if="item.sel==true"></image> | ||
98 | + <image src="../../static/cartnosel.png" mode="" v-else></image> | ||
99 | + </view> | ||
100 | + <view class="sureorderitemleft"> | ||
101 | + <image src="" mode=""></image> | ||
102 | + </view> | ||
48 | </view> | 103 | </view> |
49 | - <view class="surebot flextwo"> | ||
50 | - <view class="saleprice">¥288</view> | ||
51 | - <view class="weightnumk flexone"> | ||
52 | - <view class="weightnumkleft leftk"> | ||
53 | - <image src="../../static/addimg.png" mode=""></image> | ||
54 | - </view> | ||
55 | - <view class="detailnum">1</view> | ||
56 | - <view class="weightnumkleft rightk"> | ||
57 | - <image src="../../static/reduceimg.png" mode=""></image> | 104 | + <view class='shuright'> |
105 | + <!-- {{item.score_goods.name}} {{item.sel}} --> | ||
106 | + <view class="suregoodnamek"> | ||
107 | + {{item.score_goods.name}} | ||
108 | + </view> | ||
109 | + <view v-if="item.score_goods.spec.length!=0"> | ||
110 | + <view class="spec" v-for="(item,index) in item.score_goods.spec" :key="index">{{item.spec_name}}:{{item.spec_value}}</view> | ||
111 | + </view> | ||
112 | + | ||
113 | + <view class="surebot flextwo"> | ||
114 | + <view class="saleprice">¥{{item.score_goods.price}}</view> | ||
115 | + <view class="weightnumk flexone"> | ||
116 | + <view class="weightnumkleft rightk" @click="reducecart(item)"> | ||
117 | + <image src="../../static/reduceimg.png" mode=""></image> | ||
118 | + </view> | ||
119 | + <view class="detailnum">{{item.number}}</view> | ||
120 | + <view class="weightnumkleft leftk" @click='addcart(item)'> | ||
121 | + <image src="../../static/addimg.png" mode=""></image> | ||
122 | + </view> | ||
58 | </view> | 123 | </view> |
59 | </view> | 124 | </view> |
60 | </view> | 125 | </view> |
61 | </view> | 126 | </view> |
62 | </view> | 127 | </view> |
63 | </view> | 128 | </view> |
64 | - | ||
65 | <view class="cartbottom flextwo"> | 129 | <view class="cartbottom flextwo"> |
66 | - <view class="cartbotleft flexone"> | 130 | + <view class="cartbotleft flexone" @click="selectall"> |
67 | <view class="cartselimg"> | 131 | <view class="cartselimg"> |
68 | - <image src="../../static/cartnosel.png" mode=""></image> | 132 | + <image src="../../static/cartsel.png" mode="" v-if="selall"></image> |
133 | + <image src="../../static/cartnosel.png" mode="" v-else></image> | ||
69 | </view> | 134 | </view> |
70 | <view class="totalnum">总计:</view> | 135 | <view class="totalnum">总计:</view> |
71 | - <view class="totalmoney">¥28880</view> | 136 | + <view class="totalmoney">¥{{total}}</view> |
72 | </view> | 137 | </view> |
73 | - <view class='jiesuan'>去结算(2件)</view> | 138 | + <view class='jiesuan' @click="jiesuan">去结算({{arr.length}}件)</view> |
74 | </view> | 139 | </view> |
75 | - | ||
76 | - | ||
77 | </view> | 140 | </view> |
78 | </view> | 141 | </view> |
79 | </template> | 142 | </template> |
80 | - | ||
81 | <script> | 143 | <script> |
144 | + import app from "../../App.vue"; | ||
145 | + export default { | ||
146 | + data() { | ||
147 | + return { | ||
148 | + data1: [], //店铺商品 | ||
149 | + data2: [], //面坊商品 | ||
150 | + data3: [], //积分商品 | ||
151 | + selall: false, | ||
152 | + total: 0, | ||
153 | + arr:[], | ||
154 | + data:[] | ||
155 | + } | ||
156 | + }, | ||
157 | + onLoad() { | ||
158 | + // 获取购物车列表 | ||
159 | + this.getcartlist() | ||
160 | + console.log(uni.getStorageSync("token")) | ||
161 | + }, | ||
162 | + methods: { | ||
163 | + // 积分商品 | ||
164 | + jifenshop() { | ||
165 | + uni.navigateTo({ | ||
166 | + url: '/pages/homepage/jifenshop' | ||
167 | + }) | ||
168 | + }, | ||
169 | + //面坊商品 | ||
170 | + mianfang() { | ||
171 | + uni.navigateTo({ | ||
172 | + url: '/pages/homepage/shoplist' | ||
173 | + }) | ||
174 | + }, | ||
175 | + | ||
176 | + // 获取购物车列表 | ||
177 | + getcartlist() { | ||
178 | + let that = this; | ||
179 | + var url = 'car/get_all'; | ||
180 | + var params = { | ||
181 | + } | ||
182 | + console.log(params) | ||
183 | + app.post(url, params).then((res) => { | ||
184 | + console.log(res); | ||
185 | + that.data1 = res.data.data.data3; | ||
186 | + that.data2 = res.data.data.data1; | ||
187 | + that.data3 = res.data.data.data2; | ||
188 | + // 面坊商品 | ||
189 | + that.data2.forEach(function(value, index, array) { | ||
190 | + value.sel = false; | ||
191 | + }) | ||
192 | + that.data2 = that.data2; | ||
193 | + console.log('738932893', that.data2) | ||
194 | + // 积分商品 | ||
195 | + that.data3.forEach(function(value, index, array) { | ||
196 | + value.sel = false | ||
197 | + }) | ||
198 | + that.data3 = that.data3; | ||
199 | + }).catch((err) => { | ||
200 | + console.log(err) | ||
201 | + }) | ||
202 | + }, | ||
203 | + | ||
204 | + //面坊商品选择购物车 | ||
205 | + selectcart(item, index) { | ||
206 | + console.log(item, index) | ||
207 | + let that = this; | ||
208 | + let obj={} | ||
209 | + if (item.type == 2) { | ||
210 | + that.data3.forEach(function(value, index, array) { | ||
211 | + if (value.id == item.id) { | ||
212 | + value.sel = !value.sel; | ||
213 | + if (value.sel == true) { | ||
214 | + that.arr.push(1) | ||
215 | + that.total = that.total * 100 / 100 + value.score_goods.price * 100 / 100 * value.number; | ||
216 | + console.log(6666); | ||
217 | + obj.type=item.type; | ||
218 | + obj.goods_id=item.goods_id; | ||
219 | + obj.spec_sku_id=item.spec_sku_id; | ||
220 | + obj.number=item.number; | ||
221 | + console.log('34898348',obj); | ||
222 | + that.data.push(obj) | ||
223 | + } else { | ||
224 | + that.arr.splice(0,1) | ||
225 | + that.total = that.total * 100 / 100 - value.score_goods.price * 100 / 100 * value.number; | ||
226 | + that.data.forEach(function(value,index,array){ | ||
227 | + console.log(value.goods_id); | ||
228 | + console.log(item.goods_id) | ||
229 | + if(item.goods_id==value.goods_id){ | ||
230 | + console.log(34349349043) | ||
231 | + that.data.splice(index,1) | ||
232 | + } | ||
233 | + }) | ||
234 | + } | ||
235 | + that.data=that.data; | ||
236 | + console.log(that.data) | ||
237 | + } | ||
238 | + }) | ||
239 | + that.data3 = that.data3 | ||
240 | + } else if (item.type == 1) { | ||
241 | + console.log(88888) | ||
242 | + that.data2.forEach(function(value, index, array) { | ||
243 | + if (value.id == item.id) { | ||
244 | + value.sel = !value.sel; | ||
245 | + if (value.sel == true) { | ||
246 | + that.arr.push(1) | ||
247 | + that.total = that.total * 100 / 100 + value.flour_goods.price * 100 / 100 * value.number; | ||
248 | + obj.type=item.type; | ||
249 | + obj.goods_id=item.goods_id; | ||
250 | + obj.spec_sku_id=item.spec_sku_id; | ||
251 | + obj.number=item.number; | ||
252 | + that.data.push(obj) | ||
253 | + | ||
254 | + } else { | ||
255 | + that.total = that.total * 100 / 100 - value.flour_goods.price * 100 / 100 * value.number; | ||
256 | + that.arr.splice(0,1); | ||
257 | + that.data.forEach(function(value,index,array){ | ||
258 | + if(item.goods_id==value.goods_id){ | ||
259 | + that.data.splice(index,1) | ||
260 | + } | ||
261 | + }) | ||
262 | + } | ||
263 | + } | ||
264 | + }) | ||
265 | + that.data2 = that.data2; | ||
266 | + that.data=that.data; | ||
267 | + console.log(that.data) | ||
268 | + } | ||
269 | + | ||
270 | + }, | ||
271 | + // 选择全部购物车 | ||
272 | + selectall() { | ||
273 | + let that=this; | ||
274 | + this.selall = !this.selall; | ||
275 | + let newarr=[]; | ||
276 | + let newtotal=0 | ||
277 | + if (this.selall == true) { | ||
278 | + this.data3.forEach(function(value, index, array) { | ||
279 | + value.sel = true; | ||
280 | + newarr.push(1); | ||
281 | + newtotal=newtotal+value.score_goods.price * 100 / 100 * value.number | ||
282 | + // this.total = this.total * 100 / 100 + value.score_goods.price * 100 / 100 * value.number | ||
283 | + }) | ||
284 | + this.data2.forEach(function(value, index, array){ | ||
285 | + value.sel = true; | ||
286 | + newtotal=newtotal+value.flour_goods.price * 100 / 100 * value.number | ||
287 | + // this.total = this.total * 100 / 100 + value.flour_goods.price * 100 / 100 * value.number; | ||
288 | + newarr.push(1) | ||
289 | + }) | ||
290 | + | ||
291 | + } else { | ||
292 | + this.data3.forEach(function(value, index, array) { | ||
293 | + value.sel = false; | ||
294 | + }) | ||
295 | + this.data2.forEach(function(value, index, array){ | ||
296 | + value.sel =false | ||
297 | + }) | ||
298 | + newarr=[]; | ||
299 | + newtotal=0 | ||
300 | + } | ||
301 | + this.data3 = this.data3; | ||
302 | + this.total=newtotal; | ||
303 | + this.arr=newarr; | ||
304 | + | ||
305 | + }, | ||
306 | + //购物车增加 | ||
307 | + addcart(item) { | ||
308 | + let that = this | ||
309 | + if (item.type == 2) { | ||
310 | + that.data3.forEach(function(value, index, array) { | ||
311 | + if (value.id == item.id) { | ||
312 | + value.number++; | ||
313 | + if (item.sel == true) { | ||
314 | + that.total = that.total * 100 / 100 + value.score_goods.price * 100 / 100 * 1; | ||
315 | + } | ||
316 | + } | ||
317 | + }) | ||
318 | + that.data3 = that.data3; | ||
319 | + | ||
320 | + } else if (item.type == 1) { | ||
321 | + that.data2.forEach(function(value, index, array) { | ||
322 | + if (value.id == item.id) { | ||
323 | + value.number++; | ||
324 | + if (item.sel == true) { | ||
325 | + that.total = that.total * 100 / 100 + value.flour_goods.price * 100 / 100 * 1; | ||
326 | + } | ||
327 | + | ||
328 | + } | ||
329 | + }) | ||
330 | + that.data2 = that.data2; | ||
331 | + | ||
332 | + } | ||
333 | + that.addcartk(item.id) | ||
334 | + | ||
335 | + }, | ||
336 | + // 购物车增加 | ||
337 | + addcartk(id) { | ||
338 | + let that = this; | ||
339 | + var url = 'car/update_car'; | ||
340 | + var params = { | ||
341 | + type: 1, | ||
342 | + car_id: id | ||
343 | + } | ||
344 | + console.log(params) | ||
345 | + app.post(url, params).then((res) => { | ||
346 | + console.log(res); | ||
347 | + | ||
348 | + }).catch((err) => { | ||
349 | + console.log(err) | ||
350 | + | ||
351 | + }) | ||
352 | + }, | ||
353 | + // 购物车减少 | ||
354 | + reducecart(item) { | ||
355 | + let that = this; | ||
356 | + if (item.type == 2) { | ||
357 | + that.data3.forEach(function(value, index, array) { | ||
358 | + if (value.id == item.id) { | ||
359 | + if (value.number > 1) { | ||
360 | + value.number = value.number - 1; | ||
361 | + if (item.sel == true) { | ||
362 | + that.total = that.total * 100 / 100 - value.score_goods.price * 100 / 100 * 1; | ||
363 | + } | ||
364 | + that.reducecartk(item.id) | ||
365 | + } else { | ||
366 | + uni.showToast({ | ||
367 | + title: '不能再减少了~', | ||
368 | + icon: 'none' | ||
369 | + }) | ||
370 | + } | ||
371 | + } | ||
372 | + }) | ||
373 | + that.data3 = that.data3; | ||
374 | + | ||
375 | + } else if (item.type == 1) { | ||
376 | + that.data2.forEach(function(value, index, array) { | ||
377 | + if (value.id == item.id) { | ||
378 | + if (value.number > 1) { | ||
379 | + value.number = value.number - 1; | ||
380 | + that.reducecartk(item.id); | ||
381 | + if (item.sel == true) { | ||
382 | + that.total = that.total * 100 / 100 - value.flour_goods.price * 100 / 100 * 1; | ||
383 | + } | ||
384 | + }else{ | ||
385 | + uni.showToast({ | ||
386 | + title: '不能再减少了~', | ||
387 | + icon: 'none' | ||
388 | + }) | ||
389 | + } | ||
390 | + } | ||
391 | + }) | ||
392 | + that.data2 = that.data2; | ||
393 | + } | ||
394 | + }, | ||
395 | + reducecartk(id) { | ||
396 | + let that = this; | ||
397 | + var url = 'car/update_car'; | ||
398 | + var params = { | ||
399 | + type: 2, | ||
400 | + car_id: id | ||
401 | + } | ||
402 | + console.log(params) | ||
403 | + app.post(url, params).then((res) => { | ||
404 | + console.log(res); | ||
405 | + | ||
406 | + }).catch((err) => { | ||
407 | + console.log(err) | ||
408 | + | ||
409 | + }) | ||
410 | + }, | ||
411 | + // 去结算 | ||
412 | + jiesuan(){ | ||
413 | + let that = this; | ||
414 | + if(that.data.length==0){ | ||
415 | + uni.showToast({ | ||
416 | + title:'请选择商品', | ||
417 | + icon:'none' | ||
418 | + }) | ||
419 | + return false | ||
420 | + } | ||
421 | + var url = 'order/confirm_order'; | ||
422 | + console.log('获取的参数',that.data) | ||
423 | + var params = { | ||
424 | + data: JSON.stringify(that.data), | ||
425 | + | ||
426 | + } | ||
427 | + console.log(params) | ||
428 | + app.post(url, params,"post").then((res) => { | ||
429 | + console.log(res); | ||
430 | + console.log(res.data.data) | ||
431 | + uni.setStorageSync("goodinfo",res.data.data); | ||
432 | + uni.navigateTo({ | ||
433 | + url:'/pages/nearshop/sureorder' | ||
434 | + }) | ||
435 | + | ||
436 | + }).catch((err) => { | ||
437 | + console.log(err) | ||
438 | + | ||
439 | + }) | ||
440 | + }, | ||
441 | + | ||
442 | + }, | ||
443 | + } | ||
82 | </script> | 444 | </script> |
83 | 445 | ||
84 | <style> | 446 | <style> |
85 | @import url('../../base/nearshop'); | 447 | @import url('../../base/nearshop'); |
86 | @import url('../../base/homepage'); | 448 | @import url('../../base/homepage'); |
87 | - page{ | 449 | + |
450 | + page { | ||
88 | background: #F8F6F9; | 451 | background: #F8F6F9; |
89 | } | 452 | } |
90 | - .cartlist{ | ||
91 | - padding-bottom: 120rpx; | 453 | + |
454 | + .cartlist { | ||
455 | + /* padding-bottom: 120rpx; */ | ||
456 | + } | ||
457 | + .spec{ | ||
458 | + color:#3D454C; | ||
459 | + font-size: 28rpx; | ||
92 | } | 460 | } |
93 | - .cartselimg{ | ||
94 | - width:30rpx; | ||
95 | - height:30rpx; | 461 | + .cartselimg { |
462 | + width: 30rpx; | ||
463 | + height: 30rpx; | ||
96 | font-size: 0; | 464 | font-size: 0; |
97 | - margin-right:30rpx; | 465 | + margin-right: 30rpx; |
466 | + flex: 0 0 auto; | ||
98 | } | 467 | } |
99 | - .sureorderitem{ | 468 | + |
469 | + .sureorderitem { | ||
100 | padding-bottom: 30rpx; | 470 | padding-bottom: 30rpx; |
101 | box-sizing: border-box; | 471 | box-sizing: border-box; |
102 | } | 472 | } |
103 | - .cartbottom{ | ||
104 | - width:750rpx; | ||
105 | - position:fixed; | ||
106 | - bottom:0; | ||
107 | - left:0; | 473 | + |
474 | + .cartbottom { | ||
475 | + width: 750rpx; | ||
476 | + position: fixed; | ||
477 | + bottom: 0; | ||
478 | + left: 0; | ||
108 | padding: 38rpx 32rpx; | 479 | padding: 38rpx 32rpx; |
109 | box-sizing: border-box; | 480 | box-sizing: border-box; |
110 | background: #fff; | 481 | background: #fff; |
111 | } | 482 | } |
112 | - .totalnum{ | ||
113 | - color:#3D454C; | 483 | + |
484 | + .totalnum { | ||
485 | + color: #3D454C; | ||
114 | font-size: 28rpx; | 486 | font-size: 28rpx; |
115 | /* margin-left:12rpx; */ | 487 | /* margin-left:12rpx; */ |
116 | } | 488 | } |
117 | - .totalmoney{ | ||
118 | - color:#E26335; | 489 | + |
490 | + .totalmoney { | ||
491 | + color: #E26335; | ||
119 | font-size: 28rpx; | 492 | font-size: 28rpx; |
120 | /* margin-left:12rpx; */ | 493 | /* margin-left:12rpx; */ |
121 | } | 494 | } |
122 | - .jiesuan{ | ||
123 | - width:280rpx; | ||
124 | - height:88rpx; | ||
125 | - background:rgba(194,148,69,1); | ||
126 | - border-radius:16rpx; | ||
127 | - color:#fff; | 495 | + |
496 | + .jiesuan { | ||
497 | + width: 280rpx; | ||
498 | + height: 88rpx; | ||
499 | + background: rgba(194, 148, 69, 1); | ||
500 | + border-radius: 16rpx; | ||
501 | + color: #fff; | ||
128 | font-size: 28rpx; | 502 | font-size: 28rpx; |
129 | text-align: center; | 503 | text-align: center; |
130 | line-height: 88rpx; | 504 | line-height: 88rpx; |
@@ -13,7 +13,8 @@ | @@ -13,7 +13,8 @@ | ||
13 | <view class="huiyuanprice">会员价:¥{{goodtail.vip_price}}</view> | 13 | <view class="huiyuanprice">会员价:¥{{goodtail.vip_price}}</view> |
14 | </view> | 14 | </view> |
15 | <view class="heziright flexone"> | 15 | <view class="heziright flexone"> |
16 | - <view class="heziprice stock">库存:{{goodtail.flour_goods_spec.stock_num}}件</view> | 16 | + <!-- {{goodtail.flour_goods_spec.stock_num}} --> |
17 | + <view class="heziprice stock">库存:件</view> | ||
17 | <view class="heziprice">已售{{goodtail.sales}}件</view> | 18 | <view class="heziprice">已售{{goodtail.sales}}件</view> |
18 | </view> | 19 | </view> |
19 | </view> | 20 | </view> |
@@ -62,7 +63,7 @@ | @@ -62,7 +63,7 @@ | ||
62 | </view> | 63 | </view> |
63 | 64 | ||
64 | <view class="send"> | 65 | <view class="send"> |
65 | - {{item.postage}} | 66 | + {{goodtail.postage}} |
66 | <!-- 包邮 店铺满100元包邮 --> | 67 | <!-- 包邮 店铺满100元包邮 --> |
67 | </view> | 68 | </view> |
68 | <view class="tapnav flextwo"> | 69 | <view class="tapnav flextwo"> |
@@ -154,10 +155,14 @@ | @@ -154,10 +155,14 @@ | ||
154 | <view class="shuxingwrap"> | 155 | <view class="shuxingwrap"> |
155 | <view class="goodtailtopk flex"> | 156 | <view class="goodtailtopk flex"> |
156 | <view class="shuxingimg"> | 157 | <view class="shuxingimg"> |
157 | - <view class="shusmallimg"> | ||
158 | - <image :src="goodtail.image" mode=""></image> | 158 | + <!-- 面坊商品 --> |
159 | + <view class="shusmallimg" v-if="type==1"> | ||
160 | + <image :src="goodtail.flour_goods_spec.spec_image" mode=""></image> | ||
161 | + </view> | ||
162 | + <!-- 积分商品 --> | ||
163 | + <view class="shusmallimg" v-if="type==2"> | ||
164 | + <image :src="goodtail.score_goods_spec.spec_image" mode=""></image> | ||
159 | </view> | 165 | </view> |
160 | - | ||
161 | </view> | 166 | </view> |
162 | <view class='shuright'> | 167 | <view class='shuright'> |
163 | <view class="shutop flex"> | 168 | <view class="shutop flex"> |
@@ -167,7 +172,10 @@ | @@ -167,7 +172,10 @@ | ||
167 | <image src="../../static/goodtaicha.png" mode=""></image> | 172 | <image src="../../static/goodtaicha.png" mode=""></image> |
168 | </view> | 173 | </view> |
169 | </view> | 174 | </view> |
170 | - <view class="saleprice">¥{{goodtail.goodp_price}}</view> | 175 | + <!-- 面坊商品 --> |
176 | + <view class="saleprice" v-if="type==1">¥{{goodtail.price}}</view> | ||
177 | + <!-- 积分商品 --> | ||
178 | + <view class="saleprice" v-if="type==2">¥{{goodtail.score_goods_spec.goods_price}}</view> | ||
171 | </view> | 179 | </view> |
172 | </view> | 180 | </view> |
173 | <view v-for="(item,parindex) in specarr" :key="parindex" > | 181 | <view v-for="(item,parindex) in specarr" :key="parindex" > |
@@ -206,6 +214,7 @@ | @@ -206,6 +214,7 @@ | ||
206 | export default { | 214 | export default { |
207 | data() { | 215 | data() { |
208 | return { | 216 | return { |
217 | + footersel:1, | ||
209 | sel: 2, | 218 | sel: 2, |
210 | shuwrap:false, | 219 | shuwrap:false, |
211 | goodid:'', | 220 | goodid:'', |
@@ -213,7 +222,7 @@ | @@ -213,7 +222,7 @@ | ||
213 | goodtail:'', | 222 | goodtail:'', |
214 | tapnavactive:'', | 223 | tapnavactive:'', |
215 | selnav:1, | 224 | selnav:1, |
216 | - sel:1, | 225 | + |
217 | // 商品规格 | 226 | // 商品规格 |
218 | specarr:[], | 227 | specarr:[], |
219 | // 商品规格id | 228 | // 商品规格id |
@@ -279,7 +288,7 @@ | @@ -279,7 +288,7 @@ | ||
279 | }, | 288 | }, |
280 | // 获取积分商城商品详情 | 289 | // 获取积分商城商品详情 |
281 | getjifengoodtail(){ | 290 | getjifengoodtail(){ |
282 | - console.log(4334) | 291 | + |
283 | let that = this; | 292 | let that = this; |
284 | var url = 'score_goods/get_score_goods_detail'; | 293 | var url = 'score_goods/get_score_goods_detail'; |
285 | var params = { | 294 | var params = { |
@@ -319,15 +328,18 @@ | @@ -319,15 +328,18 @@ | ||
319 | console.log(res); | 328 | console.log(res); |
320 | that.specarr=res.data.data; | 329 | that.specarr=res.data.data; |
321 | that.specarr.forEach(function(value,index,array){ | 330 | that.specarr.forEach(function(value,index,array){ |
322 | - value.selindex=-1; | ||
323 | - value.selid=''; | 331 | + value.selindex=0; |
332 | + | ||
324 | value.spec_value.forEach(function(valuek,indexk,arrayk){ | 333 | value.spec_value.forEach(function(valuek,indexk,arrayk){ |
334 | + if(indexk==0){ | ||
335 | + value.selid=valuek.id; | ||
336 | + } | ||
325 | valuek.sel=false | 337 | valuek.sel=false |
326 | }) | 338 | }) |
327 | }) | 339 | }) |
328 | - that.specarr=that.specarr; | ||
329 | 340 | ||
330 | - console.log(JSON.stringify(this.specarr)) | 341 | + that.specarr=that.specarr; |
342 | + | ||
331 | }).catch((err) => { | 343 | }).catch((err) => { |
332 | console.log(err) | 344 | console.log(err) |
333 | }) | 345 | }) |
@@ -345,6 +357,36 @@ | @@ -345,6 +357,36 @@ | ||
345 | 357 | ||
346 | // console.log(this.specarr[parindex].spec_value[childindex].sel) | 358 | // console.log(this.specarr[parindex].spec_value[childindex].sel) |
347 | console.log(JSON.stringify(this.specarr)) | 359 | console.log(JSON.stringify(this.specarr)) |
360 | + this.changspec() | ||
361 | + }, | ||
362 | + // 更换商品的图片和价格 | ||
363 | + changspec(){ | ||
364 | + let that = this; | ||
365 | + let newspec_sku_id=[] | ||
366 | + | ||
367 | + that.specarr.forEach(function(value,index,array){ | ||
368 | + newspec_sku_id.push(value.selid) | ||
369 | + }) | ||
370 | + that.spec_sku_id=newspec_sku_id | ||
371 | + var url = 'score_goods/get_spec_sku2'; | ||
372 | + var params = { | ||
373 | + score_goods_id:that.goodid, | ||
374 | + spec_sku_id:that.spec_sku_id.join("_") | ||
375 | + } | ||
376 | + console.log(params) | ||
377 | + app.post(url, params).then((res) => { | ||
378 | + console.log(res); | ||
379 | + if(that.type==1){ | ||
380 | + that.goodtail.flour_goods_spec=res.data.data; | ||
381 | + that.goodtail.price=res.data.data.price; | ||
382 | + }else if(that.type==2){ | ||
383 | + that.goodtail.score_goods_spec=res.data.data | ||
384 | + } | ||
385 | + that.goodtail=that.goodtail; | ||
386 | + }).catch((err) => { | ||
387 | + console.log(err) | ||
388 | + | ||
389 | + }) | ||
348 | }, | 390 | }, |
349 | sure(){ | 391 | sure(){ |
350 | if(this.addtype==1){ | 392 | if(this.addtype==1){ |
@@ -362,17 +404,26 @@ | @@ -362,17 +404,26 @@ | ||
362 | newspec_sku_id.push(value.selid) | 404 | newspec_sku_id.push(value.selid) |
363 | }) | 405 | }) |
364 | that.spec_sku_id=newspec_sku_id | 406 | that.spec_sku_id=newspec_sku_id |
365 | - | ||
366 | var url = 'car/join_car'; | 407 | var url = 'car/join_car'; |
367 | var params = { | 408 | var params = { |
368 | type:this.type, | 409 | type:this.type, |
369 | goods_id:this.goodid, | 410 | goods_id:this.goodid, |
370 | - spec_sku_id:that.spec_sku_id.join(","), | 411 | + spec_sku_id:that.spec_sku_id.join("_"), |
371 | number: that.cartnumber, | 412 | number: that.cartnumber, |
372 | } | 413 | } |
373 | console.log(params) | 414 | console.log(params) |
374 | app.post(url, params).then((res) => { | 415 | app.post(url, params).then((res) => { |
375 | console.log(res); | 416 | console.log(res); |
417 | + uni.showToast({ | ||
418 | + title:"加入购物车成功", | ||
419 | + icon:'none' | ||
420 | + }) | ||
421 | + | ||
422 | + setTimeout(function(){ | ||
423 | + uni.navigateTo({ | ||
424 | + url:'/pages/nearshop/cartlist' | ||
425 | + }) | ||
426 | + },1500) | ||
376 | 427 | ||
377 | 428 | ||
378 | }).catch((err) => { | 429 | }).catch((err) => { |
1 | +<template> | ||
2 | + <view class="page"> | ||
3 | + <view class="boxb"> | ||
4 | + <view class="container"> | ||
5 | + <view class="bitem"> | ||
6 | + <view class="top"> | ||
7 | + <view class="price">¥1</view> | ||
8 | + <view class="right"> | ||
9 | + <view class="bname"> | ||
10 | + <text>抵用卷</text> | ||
11 | + <!-- <text>待使用</text> --> | ||
12 | + </view> | ||
13 | + <view class="tips">满6元可用</view> | ||
14 | + </view> | ||
15 | + </view> | ||
16 | + <view class="btime"> | ||
17 | + 有效期至:2019-10-10 19:30:30 | ||
18 | + </view> | ||
19 | + </view> | ||
20 | + <view class="bitem borderactive"> | ||
21 | + <view class="top"> | ||
22 | + <view class="price wordacticve">¥1</view> | ||
23 | + <view class="right"> | ||
24 | + <view class="bname"> | ||
25 | + <text class="wordacticve">抵用卷</text> | ||
26 | + <!-- <text>待使用</text> --> | ||
27 | + </view> | ||
28 | + <view class="tips wordacticve">满6元可用</view> | ||
29 | + </view> | ||
30 | + </view> | ||
31 | + <view class="btime wordacticve"> | ||
32 | + 有效期至:2019-10-10 19:30:30 | ||
33 | + </view> | ||
34 | + </view> | ||
35 | + </view> | ||
36 | + </view> | ||
37 | + </view> | ||
38 | +</template> | ||
1 | 39 | ||
2 | -page{ | ||
3 | - background: #F7F7F7; | ||
4 | -} | ||
5 | -.navbox{ | ||
6 | - height: 88rpx; | ||
7 | - background: #fff; | ||
8 | - display: -webkit-box; | ||
9 | - display: -webkit-flex; | ||
10 | - display: flex; | ||
11 | -} | ||
12 | -.navitem{ | ||
13 | - width: 50%; | ||
14 | - height: 100%; | ||
15 | - font-size:32rpx; | ||
16 | - font-family:PingFangSC-Regular,PingFang SC; | ||
17 | - font-weight:400; | ||
18 | - color:rgba(35,35,35,1); | ||
19 | - display: -webkit-box; | ||
20 | - display: -webkit-flex; | ||
21 | - display: flex; | ||
22 | - -webkit-box-align: center; | ||
23 | - -webkit-align-items: center; | ||
24 | - align-items: center; | ||
25 | - -webkit-box-pack: center; | ||
26 | - -webkit-justify-content: center; | ||
27 | - justify-content: center; | ||
28 | -} | ||
29 | -.boxa{ | ||
30 | - margin-top: 16rpx; | ||
31 | - background: #fff; | ||
32 | - overflow: hidden; | ||
33 | - padding: 0 36rpx; | ||
34 | - box-sizing: border-box; | ||
35 | -} | ||
36 | -.aitem{ | ||
37 | - height: 150rpx; | ||
38 | - border-bottom: 1px solid #FEFEFE; | ||
39 | - display: -webkit-box; | ||
40 | - display: -webkit-flex; | ||
41 | - display: flex; | ||
42 | - -webkit-box-align: center; | ||
43 | - -webkit-align-items: center; | ||
44 | - align-items: center; | ||
45 | - -webkit-box-pack: justify; | ||
46 | - -webkit-justify-content: space-between; | ||
47 | - justify-content: space-between; | ||
48 | -} | ||
49 | -.left{ | ||
50 | - width: 340rpx; | ||
51 | -} | ||
52 | -.left .name{ | ||
53 | - font-size:32rpx; | ||
54 | - font-family:PingFangSC-Medium,PingFang SC; | ||
55 | - font-weight:500; | ||
56 | - color:rgba(35,35,35,1); | ||
57 | -} | ||
58 | -.left .time{ | ||
59 | - font-size:24rpx; | ||
60 | - font-family:PingFangSC-Medium,PingFang SC; | ||
61 | - font-weight:500; | ||
62 | - color:rgba(91,94,100,1); | ||
63 | - margin-top: 8rpx; | ||
64 | -} | ||
65 | -.btn{ | ||
66 | - width:160rpx; | ||
67 | - height:64rpx; | ||
68 | - border-radius:8rpx; | ||
69 | - border:1px solid rgba(255,148,23,1); | ||
70 | - font-size:24rpx; | ||
71 | - font-family:PingFangSC-Regular,PingFang SC; | ||
72 | - font-weight:400; | ||
73 | - color:rgba(255,148,23,1); | ||
74 | - display: -webkit-box; | ||
75 | - display: -webkit-flex; | ||
76 | - display: flex; | ||
77 | - -webkit-box-align: center; | ||
78 | - -webkit-align-items: center; | ||
79 | - align-items: center; | ||
80 | - -webkit-box-pack: center; | ||
81 | - -webkit-justify-content: center; | ||
82 | - justify-content: center; | ||
83 | -} | ||
84 | -.activeA{ | ||
85 | - color: #BDC4CE; | ||
86 | - border-color: #BDC4CE; | ||
87 | -} | ||
88 | -.boxb{ | ||
89 | - padding: 0 32rpx; | ||
90 | - box-sizing: border-box; | ||
91 | -} | ||
92 | -.xnavbox{ | ||
93 | - display: -webkit-box; | ||
94 | - display: -webkit-flex; | ||
95 | - display: flex; | ||
96 | - -webkit-box-align: center; | ||
97 | - -webkit-align-items: center; | ||
98 | - align-items: center; | ||
99 | - -webkit-box-pack: justify; | ||
100 | - -webkit-justify-content: space-between; | ||
101 | - justify-content: space-between; | ||
102 | - margin-top: 16rpx; | ||
103 | -} | ||
104 | -.xnavitem{ | ||
105 | - width:212rpx; | ||
106 | - height:62rpx; | ||
107 | - font-size:28rpx; | ||
108 | - font-family:PingFangSC-Regular,PingFang SC; | ||
109 | - font-weight:400; | ||
110 | - color:rgba(61,69,76,1); | ||
111 | - display: -webkit-box; | ||
112 | - display: -webkit-flex; | ||
113 | - display: flex; | ||
114 | - -webkit-box-align: center; | ||
115 | - -webkit-align-items: center; | ||
116 | - align-items: center; | ||
117 | - -webkit-box-pack: center; | ||
118 | - -webkit-justify-content: center; | ||
119 | - justify-content: center; | ||
120 | - background: #fff; | ||
121 | -} | ||
122 | -.xactive{ | ||
123 | - background: #C29445; | ||
124 | - color: #fff; | ||
125 | -} | ||
126 | -.container{ | ||
127 | - margin-top: 12rpx; | ||
128 | -} | ||
129 | -.bitem{ | ||
130 | - margin-top: 16rpx; | ||
131 | - border-left: 8rpx solid #C29445; | ||
132 | - padding: 40rpx 32rpx 20rpx; | ||
133 | - box-sizing: border-box; | ||
134 | - background: #fff; | ||
135 | -} | ||
136 | -.top{ | ||
137 | - height: 156rpx; | ||
138 | - border-bottom: 1px solid #EEEEEE; | ||
139 | - display: -webkit-box; | ||
140 | - display: -webkit-flex; | ||
141 | - display: flex; | ||
142 | - -webkit-box-align: center; | ||
143 | - -webkit-align-items: center; | ||
144 | - align-items: center; | ||
145 | -} | ||
146 | -.price{ | ||
147 | - font-size:72rpx; | ||
148 | - font-family:PingFangSC-Medium,PingFang SC; | ||
149 | - font-weight:500; | ||
150 | - color:rgba(194,148,69,1); | ||
151 | - margin-right: 32rpx; | ||
152 | -} | ||
153 | -.right{ | ||
154 | - width: 100%; | ||
155 | -} | ||
156 | -.bname{ | ||
157 | - width: 100%; | ||
158 | - display: -webkit-box; | ||
159 | - display: -webkit-flex; | ||
160 | - display: flex; | ||
161 | - -webkit-box-align: center; | ||
162 | - -webkit-align-items: center; | ||
163 | - align-items: center; | ||
164 | - -webkit-box-pack: justify; | ||
165 | - -webkit-justify-content: space-between; | ||
166 | - justify-content: space-between; | ||
167 | - font-size:28rpx; | ||
168 | - font-family:PingFangSC-Regular,PingFang SC; | ||
169 | - font-weight:400; | ||
170 | - color:rgba(91,94,100,1); | ||
171 | -} | ||
172 | -.bname text:first-child{ | ||
173 | - font-size:36rpx; | ||
174 | - font-family:PingFangSC-Medium,PingFang SC; | ||
175 | - font-weight:600; | ||
176 | - color:rgba(6,18,32,1); | ||
177 | -} | ||
178 | -.tips{ | ||
179 | - font-size:32rpx; | ||
180 | - font-family:PingFangSC-Regular,PingFang SC; | ||
181 | - font-weight:400; | ||
182 | - color:rgba(61,68,76,1); | ||
183 | - margin-top: 16rpx; | ||
184 | -} | ||
185 | -.btime{ | ||
186 | - font-size:28rpx; | ||
187 | - font-family:PingFangSC-Regular,PingFang SC; | ||
188 | - font-weight:400; | ||
189 | - color:rgba(61,69,76,1); | ||
190 | - margin-top: 40rpx; | ||
191 | -} | ||
192 | -.borderactive{ | ||
193 | - border-color: #BDC4CE; | ||
194 | -} | ||
195 | -.wordacticve{ | ||
196 | - font-weight:500 !important; | ||
197 | - color:rgba(189,196,206,1) !important; | ||
198 | -} | 40 | +<script> |
41 | + export default { | ||
42 | + data() { | ||
43 | + return { | ||
44 | + | ||
45 | + } | ||
46 | + }, | ||
47 | + methods: { | ||
48 | + | ||
49 | + } | ||
50 | + } | ||
51 | +</script> | ||
199 | 52 | ||
53 | +<style> | ||
54 | + page{ | ||
55 | + background: #F7F7F7; | ||
56 | + } | ||
57 | + .navbox{ | ||
58 | + height: 88rpx; | ||
59 | + background: #fff; | ||
60 | + display: flex; | ||
61 | + } | ||
62 | + .navitem{ | ||
63 | + width: 50%; | ||
64 | + height: 100%; | ||
65 | + font-size:32rpx; | ||
66 | + font-family:PingFangSC-Regular,PingFang SC; | ||
67 | + font-weight:400; | ||
68 | + color:rgba(35,35,35,1); | ||
69 | + display: flex; | ||
70 | + align-items: center; | ||
71 | + justify-content: center; | ||
72 | + } | ||
73 | + .boxa{ | ||
74 | + margin-top: 16rpx; | ||
75 | + background: #fff; | ||
76 | + overflow: hidden; | ||
77 | + padding: 0 36rpx; | ||
78 | + box-sizing: border-box; | ||
79 | + } | ||
80 | + .aitem{ | ||
81 | + height: 150rpx; | ||
82 | + border-bottom: 1px solid #FEFEFE; | ||
83 | + display: flex; | ||
84 | + align-items: center; | ||
85 | + justify-content: space-between; | ||
86 | + } | ||
87 | + .left{ | ||
88 | + width: 340rpx; | ||
89 | + } | ||
90 | + .left .name{ | ||
91 | + font-size:32rpx; | ||
92 | + font-family:PingFangSC-Medium,PingFang SC; | ||
93 | + font-weight:500; | ||
94 | + color:rgba(35,35,35,1); | ||
95 | + } | ||
96 | + .left .time{ | ||
97 | + font-size:24rpx; | ||
98 | + font-family:PingFangSC-Medium,PingFang SC; | ||
99 | + font-weight:500; | ||
100 | + color:rgba(91,94,100,1); | ||
101 | + margin-top: 8rpx; | ||
102 | + } | ||
103 | + .btn{ | ||
104 | + width:160rpx; | ||
105 | + height:64rpx; | ||
106 | + border-radius:8rpx; | ||
107 | + border:1px solid rgba(255,148,23,1); | ||
108 | + font-size:24rpx; | ||
109 | + font-family:PingFangSC-Regular,PingFang SC; | ||
110 | + font-weight:400; | ||
111 | + color:rgba(255,148,23,1); | ||
112 | + display: flex; | ||
113 | + align-items: center; | ||
114 | + justify-content: center; | ||
115 | + } | ||
116 | + .activeA{ | ||
117 | + color: #BDC4CE; | ||
118 | + border-color: #BDC4CE; | ||
119 | + } | ||
120 | + .boxb{ | ||
121 | + padding: 0 32rpx; | ||
122 | + box-sizing: border-box; | ||
123 | + } | ||
124 | + .xnavbox{ | ||
125 | + display: flex; | ||
126 | + align-items: center; | ||
127 | + justify-content: space-between; | ||
128 | + margin-top: 16rpx; | ||
129 | + } | ||
130 | + .xnavitem{ | ||
131 | + width:212rpx; | ||
132 | + height:62rpx; | ||
133 | + font-size:28rpx; | ||
134 | + font-family:PingFangSC-Regular,PingFang SC; | ||
135 | + font-weight:400; | ||
136 | + color:rgba(61,69,76,1); | ||
137 | + display: flex; | ||
138 | + align-items: center; | ||
139 | + justify-content: center; | ||
140 | + background: #fff; | ||
141 | + } | ||
142 | + .xactive{ | ||
143 | + background: #C29445; | ||
144 | + color: #fff; | ||
145 | + } | ||
146 | + .container{ | ||
147 | + margin-top: 12rpx; | ||
148 | + } | ||
149 | + .bitem{ | ||
150 | + margin-top: 16rpx; | ||
151 | + border-left: 8rpx solid #C29445; | ||
152 | + padding: 40rpx 32rpx 20rpx; | ||
153 | + box-sizing: border-box; | ||
154 | + background: #fff; | ||
155 | + } | ||
156 | + .top{ | ||
157 | + height: 156rpx; | ||
158 | + border-bottom: 1px solid #EEEEEE; | ||
159 | + display: flex; | ||
160 | + align-items: center; | ||
161 | + } | ||
162 | + .price{ | ||
163 | + font-size:72rpx; | ||
164 | + font-family:PingFangSC-Medium,PingFang SC; | ||
165 | + font-weight:500; | ||
166 | + color:rgba(194,148,69,1); | ||
167 | + margin-right: 32rpx; | ||
168 | + } | ||
169 | + .right{ | ||
170 | + width: 100%; | ||
171 | + } | ||
172 | + .bname{ | ||
173 | + width: 100%; | ||
174 | + display: flex; | ||
175 | + align-items: center; | ||
176 | + justify-content: space-between; | ||
177 | + font-size:28rpx; | ||
178 | + font-family:PingFangSC-Regular,PingFang SC; | ||
179 | + font-weight:400; | ||
180 | + color:rgba(91,94,100,1); | ||
181 | + } | ||
182 | + .bname text:first-child{ | ||
183 | + font-size:36rpx; | ||
184 | + font-family:PingFangSC-Medium,PingFang SC; | ||
185 | + font-weight:600; | ||
186 | + color:rgba(6,18,32,1); | ||
187 | + } | ||
188 | + .tips{ | ||
189 | + font-size:32rpx; | ||
190 | + font-family:PingFangSC-Regular,PingFang SC; | ||
191 | + font-weight:400; | ||
192 | + color:rgba(61,68,76,1); | ||
193 | + margin-top: 16rpx; | ||
194 | + } | ||
195 | + .btime{ | ||
196 | + font-size:28rpx; | ||
197 | + font-family:PingFangSC-Regular,PingFang SC; | ||
198 | + font-weight:400; | ||
199 | + color:rgba(61,69,76,1); | ||
200 | + margin-top: 40rpx; | ||
201 | + } | ||
202 | + .borderactive{ | ||
203 | + border-color: #BDC4CE; | ||
204 | + } | ||
205 | + .wordacticve{ | ||
206 | + font-weight:500 !important; | ||
207 | + color:rgba(189,196,206,1) !important; | ||
208 | + } | ||
209 | +</style> |
1 | <template> | 1 | <template> |
2 | <view class="content"> | 2 | <view class="content"> |
3 | - <view class="sureordertop flextwo"> | ||
4 | - <view class="addresstop "> | 3 | + <view class="sureordertop flextwo" @click="addaddress"> |
4 | + <!-- @click="addaddress" --> | ||
5 | + <view class="sureordername" v-if="addressitem==''">请选择地址</view> | ||
6 | + <view class="addresstop" v-else> | ||
5 | <view class="addressname flexone"> | 7 | <view class="addressname flexone"> |
6 | <view class="sureordername"> | 8 | <view class="sureordername"> |
7 | - 名字XX | 9 | + {{addressitem.name}} |
8 | </view> | 10 | </view> |
9 | - <view class="sureorderphone">15822187563</view> | 11 | + <view class="sureorderphone">{{addressitem.phone}}</view> |
10 | </view> | 12 | </view> |
11 | <view class="addresstitle"> | 13 | <view class="addresstitle"> |
12 | - 天津西青区XXXXXXXXXXXXXXXXXXXXXXXX | 14 | + {{addressitem.province_name}}{{addressitem.city_name}}{{addressitem.county_name}}{{addressitem.address}} |
13 | </view> | 15 | </view> |
14 | - | ||
15 | </view> | 16 | </view> |
16 | <view class="yourowk"> | 17 | <view class="yourowk"> |
17 | <image src="../../static/yourowk.png" mode=""></image> | 18 | <image src="../../static/yourowk.png" mode=""></image> |
18 | </view> | 19 | </view> |
19 | - | ||
20 | </view> | 20 | </view> |
21 | - <view class="sureshop"> | ||
22 | - <view class="sureorderbox flexone"> | ||
23 | - <view class="sureimg"> | ||
24 | - <image src="../../static/nearshop.png" mode=""></image> | 21 | + <view class="sureshop sureshopk"> |
22 | + <!-- 店铺商品 --> | ||
23 | + <view class="bigbox"> | ||
24 | + <view class="sureorderbox flexone"> | ||
25 | + <view class="sureimg"> | ||
26 | + <image src="../../static/nearshop.png" mode=""></image> | ||
27 | + </view> | ||
28 | + <view class="sureshopname">红大地面品厂</view> | ||
25 | </view> | 29 | </view> |
26 | - <view class="sureshopname">红大地面品厂</view> | ||
27 | - | ||
28 | - </view> | ||
29 | - <view class="sureorderitem flex"> | ||
30 | - <view class="sureorderitemleft"> | ||
31 | - <image src="../../static/goodtailtop.png" mode=""></image> | ||
32 | - </view> | ||
33 | - <view class='shuright'> | ||
34 | - <view class="suregoodname">商品名称商品名称商品名称商 | ||
35 | - 品名称商品名称商品名称商品名称商品名称 | ||
36 | - </view> | ||
37 | - <view class="surebot flextwo"> | ||
38 | - <view class="saleprice">¥288</view> | ||
39 | - <view class="weightnumk flexone"> | ||
40 | - <view class="weightnumkleft leftk"> | ||
41 | - <image src="../../static/addimg.png" mode=""></image> | 30 | + <view class="boxbox"> |
31 | + <view class="sureorderitem flex"> | ||
32 | + <view class="sureorderitemleft"> | ||
33 | + <image src="../../static/goodtailtop.png" mode=""></image> | ||
34 | + </view> | ||
35 | + <view class='shuright'> | ||
36 | + <view class="suregoodname">商品名称商品名称商品名称商 | ||
37 | + 品名称商品名称商品名称商品名称商品名称 | ||
42 | </view> | 38 | </view> |
43 | - <view class="detailnum">1</view> | ||
44 | - <view class="weightnumkleft rightk"> | ||
45 | - <image src="../../static/reduceimg.png" mode=""></image> | 39 | + <view class="surebot flextwo"> |
40 | + <view class="saleprice">¥288</view> | ||
41 | + <view class="weightnumk flexone"> | ||
42 | + <view class="weightnumkleft leftk"> | ||
43 | + <image src="../../static/addimg.png" mode=""></image> | ||
44 | + </view> | ||
45 | + <view class="detailnum">1</view> | ||
46 | + <view class="weightnumkleft rightk"> | ||
47 | + <image src="../../static/reduceimg.png" mode=""></image> | ||
48 | + </view> | ||
49 | + </view> | ||
46 | </view> | 50 | </view> |
47 | </view> | 51 | </view> |
48 | </view> | 52 | </view> |
49 | </view> | 53 | </view> |
50 | 54 | ||
51 | </view> | 55 | </view> |
52 | - </view> | ||
53 | 56 | ||
54 | - <view class="delivery flextwo"> | ||
55 | - <view class="deliveryleft">配送服务</view> | ||
56 | - <view class="deliveryright flexone"> | ||
57 | - <view class="deliveryname">快递配送</view> | ||
58 | - <view class='yourow'> | ||
59 | - <image src="../../static/yourowk.png" mode=""></image> | 57 | + <div class="botbox" v-if="goodinfo.data1.flour_goods!=undefined"></div> |
58 | + <!-- 面坊商品 --> | ||
59 | + <view class="bigbox" v-if="goodinfo.data1.flour_goods!=undefined"> | ||
60 | + <view class="sureorderbox flexone"> | ||
61 | + <view class="sureimg"> | ||
62 | + <image src="../../static/nearshop.png" mode=""></image> | ||
63 | + </view> | ||
64 | + <view class="sureshopname">面坊商品</view> | ||
65 | + </view> | ||
66 | + <view class="boxbox"> | ||
67 | + <view class="sureorderitem flex" v-for="(item,index) in goodinfo.data1.flour_goods" :key="index"> | ||
68 | + <view class="sureorderitemleft"> | ||
69 | + <!-- <image :src="item.score_goods_spec.spec_image" mode=""></image> --> | ||
70 | + </view> | ||
71 | + <view class='shuright'> | ||
72 | + <view class="suregoodnamek">{{item.name}} | ||
73 | + </view> | ||
74 | + <view v-if="item.spec.length!=0"> | ||
75 | + <view class="spec" v-for="(item,index) in item.spec" :key="index">{{item.spec_name}}:{{item.spec_value}}</view> | ||
76 | + </view> | ||
77 | + <view class="surebot flexone"> | ||
78 | + <view class="saleprice">¥{{item.price}}</view> | ||
79 | + <view class="detailnum">x{{item.number}}</view> | ||
80 | + </view> | ||
81 | + </view> | ||
82 | + </view> | ||
83 | + </view> | ||
84 | + <view class="delivery flextwo"> | ||
85 | + <view class="deliveryleft">配送服务</view> | ||
86 | + <view class="deliveryright flexone"> | ||
87 | + <picker @change="bindmianChange" :value="mianindex" :range="servicearr" range-key="name"> | ||
88 | + <view class="deliveryname">{{mianpeiname}}</view> | ||
89 | + </picker> | ||
90 | + | ||
91 | + <view class='yourow'> | ||
92 | + <image src="../../static/yourowk.png" mode=""></image> | ||
93 | + </view> | ||
94 | + </view> | ||
95 | + </view> | ||
96 | + <view class="delivery markcontent"> | ||
97 | + <view class='markname'>店铺备注</view> | ||
98 | + <view class="marktext"> | ||
99 | + <textarea value="" placeholder="选填,给商家留言" /> | ||
100 | + </view> | ||
101 | + </view> | ||
102 | + <!-- <view class="delivery flextwo markcontent"> | ||
103 | + <view class="deliveryleft flexone"> | ||
104 | + <view class='jifen'>可用积分抵扣50</view> | ||
105 | + <view class="jifenimg"> | ||
106 | + <image src="../../static/gantan.png" mode=""></image> | ||
107 | + </view> | ||
108 | + </view> | ||
109 | + <view class="deliveryname">请输入抵扣积分</view> | ||
110 | + </view> --> | ||
111 | + <view class="delivery flextwo markcontent" @click="selectcoupon"> | ||
112 | + <view class="deliveryleft flexone"> | ||
113 | + <view class='jifen'>优惠劵</view> | ||
114 | + <view class="jifenimg youimg"> | ||
115 | + <image src="../../static/gantan.png" mode=""></image> | ||
116 | + </view> | ||
117 | + </view> | ||
118 | + <view class="deliveryname">{{couponname}}</view> | ||
60 | </view> | 119 | </view> |
61 | </view> | 120 | </view> |
62 | - </view> | ||
63 | - <view class="delivery markcontent"> | ||
64 | - <view class='markname'>店铺备注</view> | ||
65 | - <view class="marktext"> | ||
66 | - <textarea value="" placeholder="选填,给商家留言" /> | 121 | + <div class="botbox" v-if="goodinfo.data2.score_goods!=undefined"></div> |
122 | + <!-- 积分商品 --> | ||
123 | + <view class="bigbox jibox" v-if="goodinfo.data2.score_goods!=undefined"> | ||
124 | + <view class="sureorderbox flexone"> | ||
125 | + <view class="sureimg"> | ||
126 | + <image src="../../static/nearshop.png" mode=""></image> | ||
127 | + </view> | ||
128 | + <view class="sureshopname">积分商品</view> | ||
67 | </view> | 129 | </view> |
68 | - </view> | ||
69 | - <view class="delivery flextwo markcontent"> | ||
70 | - <view class="deliveryleft flexone"> | ||
71 | - <view class='jifen'>可用积分抵扣50</view> | ||
72 | - <view class="jifenimg"> | ||
73 | - <image src="../../static/gantan.png" mode=""></image> | 130 | + <view class="boxbox"> |
131 | + <view class="sureorderitem flex" v-for="(item,index) in goodinfo.data2.score_goods" :key="index"> | ||
132 | + <view class="sureorderitemleft"> | ||
133 | + <image :src="item.score_goods_spec.spec_image" mode=""></image> | ||
134 | + </view> | ||
135 | + <view class='shuright'> | ||
136 | + <view class="suregoodnamek">{{item.name}} | ||
137 | + </view> | ||
138 | + <view v-if="item.spec.length!=0"> | ||
139 | + <view class="spec" v-for="(item,index) in item.spec" :key="index">{{item.spec_name}}:{{item.spec_value}}</view> | ||
140 | + </view> | ||
141 | + <view class="surebot flexone"> | ||
142 | + <view class="saleprice">¥{{item.price}}</view> | ||
143 | + <view class="weightnumk flexone"> | ||
144 | + <view class="detailnum">x{{item.number}}</view> | ||
145 | + </view> | ||
146 | + </view> | ||
147 | + </view> | ||
148 | + </view> | ||
149 | + </view> | ||
150 | + | ||
151 | + <view class="delivery flextwo"> | ||
152 | + <view class="deliveryleft">配送服务</view> | ||
153 | + <view class="deliveryright flexone"> | ||
154 | + <view class="deliveryname">快递配送</view> | ||
155 | + <view class='yourow'> | ||
156 | + <image src="../../static/yourowk.png" mode=""></image> | ||
157 | + </view> | ||
74 | </view> | 158 | </view> |
75 | </view> | 159 | </view> |
76 | - <view class="deliveryname">请输入抵扣积分</view> | ||
77 | - </view> | ||
78 | - <view class="delivery flextwo markcontent"> | ||
79 | - <view class="deliveryleft flexone"> | ||
80 | - <view class='jifen'>优惠劵</view> | ||
81 | - <view class="jifenimg"> | ||
82 | - <image src="../../static/gantan.png" mode=""></image> | 160 | + <view class="delivery markcontent"> |
161 | + <view class='markname'>店铺备注</view> | ||
162 | + <view class="marktext"> | ||
163 | + <textarea value="" placeholder="选填,给商家留言" /> | ||
164 | + </view> | ||
165 | + </view> | ||
166 | + <view class="delivery flextwo markcontent"> | ||
167 | + <view class="deliveryleft flexone"> | ||
168 | + <view class='jifen'>可用积分抵扣50</view> | ||
169 | + <view class="jifenimg youimg"> | ||
170 | + <image src="../../static/gantan.png" mode=""></image> | ||
171 | + </view> | ||
172 | + </view> | ||
173 | + <view class="deliveryname dikouname"> | ||
174 | + <input type="text" value="" placeholder="请输入抵扣积分" placeholder-class="dikouinput" @input="enterjifen"/> | ||
175 | + | ||
176 | + </view> | ||
177 | + </view> | ||
178 | + <!-- <view class="delivery flextwo markcontent"> | ||
179 | + <view class="deliveryleft flexone"> | ||
180 | + <view class='jifen'>优惠劵</view> | ||
181 | + <view class="jifenimg"> | ||
182 | + <image src="../../static/gantan.png" mode=""></image> | ||
183 | + </view> | ||
83 | </view> | 184 | </view> |
185 | + <view class="deliveryname">满200减99优惠券</view> | ||
186 | + </view> --> | ||
84 | </view> | 187 | </view> |
85 | - <view class="deliveryname">满200减99优惠券</view> | ||
86 | </view> | 188 | </view> |
87 | - <view class="delivery markcontent"> | 189 | + <!-- <view class="delivery markcontent"> |
88 | <view class="deliveryitem flextwo"> | 190 | <view class="deliveryitem flextwo"> |
89 | <view class='deliveryitemname'>商品金额</view> | 191 | <view class='deliveryitemname'>商品金额</view> |
90 | <view class='deliveryitemname moneyright'>¥2600.00</view> | 192 | <view class='deliveryitemname moneyright'>¥2600.00</view> |
@@ -106,11 +208,10 @@ | @@ -106,11 +208,10 @@ | ||
106 | <view class="deliveryleft">配送服务</view> | 208 | <view class="deliveryleft">配送服务</view> |
107 | <view class="deliverymoney">¥2560.00</view> | 209 | <view class="deliverymoney">¥2560.00</view> |
108 | </view> | 210 | </view> |
109 | - | ||
110 | <view class="huiyuanbot boxsizing"> | 211 | <view class="huiyuanbot boxsizing"> |
111 | <view class="behuiyuanbtn">确认支付</view> | 212 | <view class="behuiyuanbtn">确认支付</view> |
112 | </view> | 213 | </view> |
113 | - | 214 | + --> |
114 | <!-- 购买弹层 --> | 215 | <!-- 购买弹层 --> |
115 | <view class="register" @click="hidebuy" v-if="buyshow"> | 216 | <view class="register" @click="hidebuy" v-if="buyshow"> |
116 | <view class="buywrap boxsizing"> | 217 | <view class="buywrap boxsizing"> |
@@ -187,20 +288,93 @@ | @@ -187,20 +288,93 @@ | ||
187 | data() { | 288 | data() { |
188 | return { | 289 | return { |
189 | buyshow: false, | 290 | buyshow: false, |
190 | - couponrule:false | 291 | + couponrule:false, |
292 | + goodinfo:'', | ||
293 | + addressitem:'', | ||
294 | + addresssel:'请选择地址', | ||
295 | + mianindex:0, | ||
296 | + servicearr:[{ | ||
297 | + id:1, | ||
298 | + name:'快递配送' | ||
299 | + }, | ||
300 | + { | ||
301 | + id:2, | ||
302 | + name:'上门自提' | ||
303 | + }, | ||
304 | + ], | ||
305 | + mianpeiname:'请选择配送方式', | ||
306 | + jifen:'', | ||
307 | + couponname:'请选择优惠券' | ||
308 | + // data1 面坊 data2 积分 data3 店铺 | ||
191 | } | 309 | } |
192 | }, | 310 | }, |
193 | - onLoad() { | ||
194 | - | ||
195 | - | ||
196 | - | 311 | + onLoad(options) { |
312 | + console.log(38349403) | ||
313 | + this.goodinfo=uni.getStorageSync("goodinfo"); | ||
314 | + | ||
315 | + console.log(this.goodinfo) | ||
197 | }, | 316 | }, |
317 | + | ||
198 | methods: { | 318 | methods: { |
319 | + // 面访商品配送方式 | ||
320 | + bindmianChange(e){ | ||
321 | + this.mianpeiname=this.servicearr[e.target.value].name; | ||
322 | + this.mianindex=e.target.value | ||
323 | + }, | ||
324 | + // 输入积分 | ||
325 | + enterjifen(e){ | ||
326 | + this.jifen=e.detail.vlaue | ||
327 | + }, | ||
328 | + // 选择优惠券 | ||
329 | + selectcoupon(){ | ||
330 | + uni.navigateTo({ | ||
331 | + url:'/pages/nearshop/selectcoupon' | ||
332 | + }) | ||
333 | + }, | ||
334 | + // 添加地址 | ||
335 | + addaddress(){ | ||
336 | + console.log(334439090) | ||
337 | + uni.navigateTo({ | ||
338 | + url:"/pages/usercenter/address" | ||
339 | + }) | ||
340 | + }, | ||
199 | know(){ | 341 | know(){ |
200 | this.couponrule=false | 342 | this.couponrule=false |
343 | + }, | ||
344 | + getordertail(){ | ||
345 | + let that = this; | ||
346 | + if(that.data.length==0){ | ||
347 | + uni.showToast({ | ||
348 | + title:'请选择商品', | ||
349 | + icon:'none' | ||
350 | + }) | ||
351 | + return false | ||
352 | + } | ||
353 | + var url = 'order/confirm_order'; | ||
354 | + var params = { | ||
355 | + data: JSON.stringify(that.data), | ||
356 | + | ||
357 | + } | ||
358 | + console.log(params) | ||
359 | + app.post(url, params,"post").then((res) => { | ||
360 | + console.log(res); | ||
361 | + uni.navigateTo({ | ||
362 | + url:'/pages/nearshop/sureorder' | ||
363 | + }) | ||
364 | + | ||
365 | + }).catch((err) => { | ||
366 | + console.log(err) | ||
367 | + | ||
368 | + }) | ||
201 | } | 369 | } |
370 | + | ||
202 | 371 | ||
203 | - } | 372 | + }, |
373 | + onShow() { | ||
374 | + this.addressitem = uni.getStorageSync("addressitem"); | ||
375 | + console.log(this.addressitem) | ||
376 | + | ||
377 | + } | ||
204 | 378 | ||
205 | } | 379 | } |
206 | </script> | 380 | </script> |
@@ -4,48 +4,364 @@ | @@ -4,48 +4,364 @@ | ||
4 | <view class="item"> | 4 | <view class="item"> |
5 | <view class="left">姓名</view> | 5 | <view class="left">姓名</view> |
6 | <view class="right"> | 6 | <view class="right"> |
7 | - <input type="text" value="" placeholder="请输入姓名"/> | ||
8 | - <image src="../../static/right.png" mode="widthFix" /> | 7 | + <input type="text" :value="name" placeholder="请输入姓名" @input="entername" /> |
8 | + <!-- <image src="../../static/right.png" mode="widthFix" /> --> | ||
9 | </view> | 9 | </view> |
10 | </view> | 10 | </view> |
11 | + | ||
11 | <view class="item"> | 12 | <view class="item"> |
12 | <view class="left">联系方式</view> | 13 | <view class="left">联系方式</view> |
13 | <view class="right"> | 14 | <view class="right"> |
14 | - <input type="text" value="" placeholder="请输入手机号码" /> | ||
15 | - <image src="../../static/right.png" mode="widthFix" /> | 15 | + <input type="text" :value="phone" placeholder="请输入手机号码" @input="enterphone" /> |
16 | + <!-- <image src="../../static/right.png" mode="widthFix" /> --> | ||
16 | </view> | 17 | </view> |
17 | </view> | 18 | </view> |
18 | <view class="item"> | 19 | <view class="item"> |
19 | <view class="left">地区</view> | 20 | <view class="left">地区</view> |
20 | <view class="right"> | 21 | <view class="right"> |
21 | - <input type="text" value="" placeholder="请选择所在地区"/> | 22 | + <picker @change="bindproChange" :value="proindex" :range="proarray" range-key="name"> |
23 | + <view class="uni-input">{{proname}}</view> | ||
24 | + </picker> | ||
25 | + <view class="uni-input" v-if="province_id==''" @click="selectcity">{{cityname}}</view> | ||
26 | + <picker @change="bindcityChange" :value="cityindex" :range="cityarray" range-key="name" v-else> | ||
27 | + <view class="uni-input">{{cityname}}</view> | ||
28 | + </picker> | ||
29 | + <view class="uni-input" v-if="city_id==''" @click="selarea">{{areaname}}</view> | ||
30 | + <picker @change="bindareaChange" :value="areaindex" :range="arearray" range-key="name" v-else> | ||
31 | + <view class="uni-input">{{areaname}}</view> | ||
32 | + </picker> | ||
33 | + | ||
34 | + <!-- <input type="text" value="" placeholder="请选择所在地区" /> --> | ||
22 | <image src="../../static/right.png" mode="widthFix" /> | 35 | <image src="../../static/right.png" mode="widthFix" /> |
23 | </view> | 36 | </view> |
24 | </view> | 37 | </view> |
25 | <view class="item"> | 38 | <view class="item"> |
26 | <view class="left">详细地址</view> | 39 | <view class="left">详细地址</view> |
27 | <view class="right"> | 40 | <view class="right"> |
28 | - <input type="text" value="" placeholder="详细地址须填写楼栋楼层或房间号信息"/> | ||
29 | - <image src="../../static/right.png" mode="widthFix" /> | 41 | + <input type="text" :value="address" placeholder="详细地址须填写楼栋楼层或房间号信息" @input="enteraddress" /> |
42 | + <!-- <image src="../../static/right.png" mode="widthFix" /> --> | ||
30 | </view> | 43 | </view> |
31 | </view> | 44 | </view> |
32 | - | ||
33 | - | ||
34 | - | ||
35 | </view> | 45 | </view> |
36 | - <view class="btn">确认</view> | 46 | + <view class="btn" @click="sureadd">确认</view> |
37 | </view> | 47 | </view> |
38 | </template> | 48 | </template> |
39 | 49 | ||
40 | <script> | 50 | <script> |
51 | + import app from "../../App.vue"; | ||
41 | export default { | 52 | export default { |
42 | data() { | 53 | data() { |
43 | return { | 54 | return { |
44 | - | 55 | + name: '', |
56 | + phone: '', | ||
57 | + province_id: '', | ||
58 | + city_id: '', | ||
59 | + county_id: '', | ||
60 | + address: '', | ||
61 | + proarray:[], | ||
62 | + proindex:'', | ||
63 | + proname:'请选择省', | ||
64 | + cityname:'请选择市', | ||
65 | + cityindex:'', | ||
66 | + cityarray:[], | ||
67 | + arearray:[], | ||
68 | + areaindex:'', | ||
69 | + areaname:'请选择区', | ||
70 | + type:'', | ||
71 | + addressid:'', | ||
72 | + item:'' | ||
73 | + | ||
74 | + | ||
75 | + } | ||
76 | + }, | ||
77 | + onLoad(options) { | ||
78 | + if(options.type!=undefined){ | ||
79 | + this.type=options.type; | ||
80 | + this.addressid=options.id; | ||
81 | + this.item=JSON.parse(options.item); | ||
82 | + this.name=this.item.name; | ||
83 | + this.phone=this.item.phone; | ||
84 | + this.address=this.item.address; | ||
85 | + this.province_id=this.item.province_id; | ||
86 | + this.city_id=this.item.city_id; | ||
87 | + this.county_id=this.item.county_id; | ||
88 | + this.proname=this.item.province_name; | ||
89 | + this.cityname=this.item.city_name; | ||
90 | + this.areaname=this.item.county_name; | ||
91 | + this.getprovince(); | ||
92 | + this.getcity(); | ||
93 | + this.getarea(); | ||
45 | } | 94 | } |
95 | + this.getprovince(); | ||
46 | }, | 96 | }, |
47 | methods: { | 97 | methods: { |
48 | - | 98 | + // 输入姓名 |
99 | + entername(e) { | ||
100 | + this.name = e.detail.value | ||
101 | + }, | ||
102 | + // 输入电话号 | ||
103 | + enterphone(e) { | ||
104 | + this.phone = e.detail.value | ||
105 | + }, | ||
106 | + // 输入地址 | ||
107 | + enteraddress(e) { | ||
108 | + this.address = e.detail.value | ||
109 | + }, | ||
110 | + | ||
111 | + //获取省 | ||
112 | + getprovince(){ | ||
113 | + let that=this; | ||
114 | + var url = 'user_address/get_province'; | ||
115 | + var params = { | ||
116 | + | ||
117 | + | ||
118 | + } | ||
119 | + console.log(params) | ||
120 | + app.post(url, params, "post").then((res) => { | ||
121 | + console.log(res); | ||
122 | + that.proarray=res.data.data; | ||
123 | + that.proarray.forEach(function(value,index,array){ | ||
124 | + if(that.province_id==value.id){ | ||
125 | + that.proindex=index | ||
126 | + } | ||
127 | + | ||
128 | + }) | ||
129 | + | ||
130 | + | ||
131 | + }).catch((err) => { | ||
132 | + console.log(err) | ||
133 | + | ||
134 | + }) | ||
135 | + }, | ||
136 | + bindproChange(e){ | ||
137 | + this.proname=this.proarray[e.target.value].name; | ||
138 | + this.proindex=e.target.value; | ||
139 | + this.province_id=this.proarray[e.target.value].id | ||
140 | + this.getcity(); | ||
141 | + }, | ||
142 | + // 获取市 | ||
143 | + getcity(){ | ||
144 | + let that=this; | ||
145 | + var url = 'user_address/get_city'; | ||
146 | + var params = { | ||
147 | + province_id:that.province_id, | ||
148 | + } | ||
149 | + | ||
150 | + app.post(url, params, "post").then((res) => { | ||
151 | + console.log(res); | ||
152 | + that.cityarray=res.data.data; | ||
153 | + console.log(that.cityarray); | ||
154 | + console.log('2393883843',that.city_id); | ||
155 | + that.cityarray.forEach(function(value,index,array){ | ||
156 | + if(that.city_id==value.id){ | ||
157 | + that.cityindex=index | ||
158 | + } | ||
159 | + | ||
160 | + }) | ||
161 | + | ||
162 | + | ||
163 | + }).catch((err) => { | ||
164 | + console.log(err) | ||
165 | + | ||
166 | + }) | ||
167 | + }, | ||
168 | + selectcity(){ | ||
169 | + if(this.province_id==''){ | ||
170 | + uni.showToast({ | ||
171 | + title:'请选择省', | ||
172 | + icon:'none' | ||
173 | + }) | ||
174 | + return false | ||
175 | + } | ||
176 | + }, | ||
177 | + | ||
178 | + //选择市 | ||
179 | + bindcityChange(e){ | ||
180 | + | ||
181 | + this.cityname=this.cityarray[e.target.value].name; | ||
182 | + this.cityindex=e.target.value; | ||
183 | + this.city_id=this.cityarray[e.target.value].id | ||
184 | + this.getarea(); | ||
185 | + }, | ||
186 | + // 获取区 | ||
187 | + getarea(){ | ||
188 | + let that=this; | ||
189 | + var url = 'user_address/get_county'; | ||
190 | + var params = { | ||
191 | + city_id:that.city_id, | ||
192 | + } | ||
193 | + | ||
194 | + app.post(url, params, "post").then((res) => { | ||
195 | + console.log(res); | ||
196 | + that.arearray=res.data.data; | ||
197 | + that.arearray.forEach(function(value,index,array){ | ||
198 | + if(that.county_id==value.id){ | ||
199 | + that.areaindex=index | ||
200 | + } | ||
201 | + | ||
202 | + }) | ||
203 | + | ||
204 | + | ||
205 | + }).catch((err) => { | ||
206 | + console.log(err) | ||
207 | + | ||
208 | + }) | ||
209 | + }, | ||
210 | + selarea(){ | ||
211 | + if(this.city_id==''){ | ||
212 | + uni.showToast({ | ||
213 | + title:'请选择市', | ||
214 | + icon:'none' | ||
215 | + }) | ||
216 | + return false | ||
217 | + } | ||
218 | + }, | ||
219 | + | ||
220 | + //选择区 | ||
221 | + bindareaChange(e){ | ||
222 | + this.areaname=this.arearray[e.target.value].name; | ||
223 | + this.areaindex=e.target.value; | ||
224 | + this.county_id=this.arearray[e.target.value].id | ||
225 | + | ||
226 | + }, | ||
227 | + | ||
228 | + //确认添加地址 | ||
229 | + sureadd() { | ||
230 | + let that = this; | ||
231 | + if(that.name==''){ | ||
232 | + uni.showToast({ | ||
233 | + title:'请输入姓名', | ||
234 | + icon:'none' | ||
235 | + }) | ||
236 | + return false | ||
237 | + } | ||
238 | + | ||
239 | + if(that.phone==''){ | ||
240 | + uni.showToast({ | ||
241 | + title:'请输入联系方式', | ||
242 | + icon:'none' | ||
243 | + }) | ||
244 | + return false | ||
245 | + } | ||
246 | + if(that.phone!=''){ | ||
247 | + var reg=/^[1][3,4,5,6,,7,8,9][0-9]{9}$/; | ||
248 | + if(!reg.test(that.phone)){ | ||
249 | + uni.showToast({ | ||
250 | + title:'请输入正确的手机号', | ||
251 | + icon:'none' | ||
252 | + }) | ||
253 | + | ||
254 | + return false | ||
255 | + } | ||
256 | + } | ||
257 | + if(that.province_id==''){ | ||
258 | + uni.showToast({ | ||
259 | + title:'请选择省', | ||
260 | + icon:'none' | ||
261 | + }) | ||
262 | + return false | ||
263 | + } | ||
264 | + if(that.city_id==''){ | ||
265 | + uni.showToast({ | ||
266 | + title:'请选择市', | ||
267 | + icon:'none' | ||
268 | + }) | ||
269 | + return false | ||
270 | + } | ||
271 | + if(that.county_id==''){ | ||
272 | + uni.showToast({ | ||
273 | + title:'请选择区', | ||
274 | + icon:'none' | ||
275 | + }) | ||
276 | + return false | ||
277 | + } | ||
278 | + if(that.address==''){ | ||
279 | + uni.showToast({ | ||
280 | + title:'请输入详细地址', | ||
281 | + icon:'none' | ||
282 | + }) | ||
283 | + return false | ||
284 | + } | ||
285 | + if(that.type==1){ | ||
286 | + that.editaddress(); | ||
287 | + }else{ | ||
288 | + that.adddizhi() | ||
289 | + } | ||
290 | + | ||
291 | + }, | ||
292 | + //添加地址 | ||
293 | + adddizhi(){ | ||
294 | + let that=this; | ||
295 | + var url = 'user_address/add_user_address'; | ||
296 | + var params = { | ||
297 | + name: that.name, | ||
298 | + phone: that.phone, | ||
299 | + province_id: that.province_id, | ||
300 | + city_id: that.city_id, | ||
301 | + county_id: that.county_id, | ||
302 | + address: that.address, | ||
303 | + | ||
304 | + } | ||
305 | + console.log(params) | ||
306 | + app.post(url, params, "post").then((res) => { | ||
307 | + console.log(res); | ||
308 | + uni.showToast({ | ||
309 | + title:'添加地址成功', | ||
310 | + icon:'none' | ||
311 | + }) | ||
312 | + | ||
313 | + setTimeout(function(){ | ||
314 | + uni.navigateBack({ | ||
315 | + checked:true | ||
316 | + }) | ||
317 | + },1500) | ||
318 | + | ||
319 | + | ||
320 | + | ||
321 | + }).catch((err) => { | ||
322 | + console.log(err) | ||
323 | + | ||
324 | + }) | ||
325 | + }, | ||
326 | + | ||
327 | + // 编辑地址 | ||
328 | + editaddress(){ | ||
329 | + let that=this; | ||
330 | + var url = 'user_address/edit_user_address'; | ||
331 | + var params = { | ||
332 | + user_address_id:that.addressid, | ||
333 | + name: that.name, | ||
334 | + phone: that.phone, | ||
335 | + province_id: that.province_id, | ||
336 | + city_id: that.city_id, | ||
337 | + county_id: that.county_id, | ||
338 | + address: that.address, | ||
339 | + | ||
340 | + } | ||
341 | + console.log(params) | ||
342 | + app.post(url, params, "post").then((res) => { | ||
343 | + console.log(res); | ||
344 | + uni.showToast({ | ||
345 | + title:'修改地址成功', | ||
346 | + icon:'none' | ||
347 | + }) | ||
348 | + | ||
349 | + setTimeout(function(){ | ||
350 | + uni.navigateBack({ | ||
351 | + checked:true | ||
352 | + }) | ||
353 | + },1500) | ||
354 | + | ||
355 | + | ||
356 | + | ||
357 | + }).catch((err) => { | ||
358 | + console.log(err) | ||
359 | + | ||
360 | + }) | ||
361 | + }, | ||
362 | + | ||
363 | + | ||
364 | + | ||
49 | } | 365 | } |
50 | } | 366 | } |
51 | </script> | 367 | </script> |
@@ -55,7 +371,9 @@ | @@ -55,7 +371,9 @@ | ||
55 | background: #F7F7F7; | 371 | background: #F7F7F7; |
56 | 372 | ||
57 | } | 373 | } |
58 | - | 374 | + .uni-input{ |
375 | + margin-right:20rpx; | ||
376 | + } | ||
59 | .box { | 377 | .box { |
60 | padding: 0 32rpx; | 378 | padding: 0 32rpx; |
61 | box-sizing: border-box; | 379 | box-sizing: border-box; |
@@ -97,12 +415,13 @@ | @@ -97,12 +415,13 @@ | ||
97 | width: 32rpx; | 415 | width: 32rpx; |
98 | margin-left: 16rpx; | 416 | margin-left: 16rpx; |
99 | } | 417 | } |
100 | - .right input{ | 418 | + |
419 | + .right input { | ||
101 | max-width: 476rpx; | 420 | max-width: 476rpx; |
102 | - font-size:28rpx; | ||
103 | - font-family:PingFangHK-Regular,PingFangHK; | ||
104 | - font-weight:400; | ||
105 | - color:rgba(61,69,76,1); | 421 | + font-size: 28rpx; |
422 | + font-family: PingFangHK-Regular, PingFangHK; | ||
423 | + font-weight: 400; | ||
424 | + color: rgba(61, 69, 76, 1); | ||
106 | } | 425 | } |
107 | 426 | ||
108 | .btn { | 427 | .btn { |
@@ -118,8 +437,8 @@ | @@ -118,8 +437,8 @@ | ||
118 | justify-content: center; | 437 | justify-content: center; |
119 | align-items: center; | 438 | align-items: center; |
120 | /* margin: 100rpx auto; */ | 439 | /* margin: 100rpx auto; */ |
121 | - position:fixed; | ||
122 | - bottom:30rpx; | ||
123 | - left:32rpx; | 440 | + position: fixed; |
441 | + bottom: 30rpx; | ||
442 | + left: 32rpx; | ||
124 | } | 443 | } |
125 | </style> | 444 | </style> |
1 | <template> | 1 | <template> |
2 | <view class="page"> | 2 | <view class="page"> |
3 | <view class="box"> | 3 | <view class="box"> |
4 | - <view class="item"> | 4 | + <view class="item" v-for="(item,index) in addresslist" :key="index" @click="selectaddress(item)"> |
5 | <view class="left"> | 5 | <view class="left"> |
6 | <view class="top"> | 6 | <view class="top"> |
7 | - <text class="name">名字XX</text> | ||
8 | - <text class="tel">1566666666</text> | 7 | + <text class="name">{{item.name}}</text> |
8 | + <text class="tel">{{item.phone}}</text> | ||
9 | </view> | 9 | </view> |
10 | - <view class="address">天津西青区天津西青区天津西青区天津西青区天津西青区</view> | 10 | + <view class="address">{{item.province_name}}{{item.city_name}}{{item.county_name}}{{item.address}}</view> |
11 | </view> | 11 | </view> |
12 | - <view class="right"> | ||
13 | - <image src="../../static/edit.png" mode="widthFix"/> | ||
14 | - </view> | ||
15 | - </view> | ||
16 | - <view class="item"> | ||
17 | - <view class="left"> | ||
18 | - <view class="top"> | ||
19 | - <text class="name">名字XX</text> | ||
20 | - <text class="tel">1566666666</text> | ||
21 | - </view> | ||
22 | - <view class="address">天津西青区天津西青区天津西青区天津西青区天津西青区</view> | ||
23 | - </view> | ||
24 | - <view class="right"> | ||
25 | - <image src="../../static/edit.png" mode="widthFix"/> | ||
26 | - </view> | ||
27 | - </view> | ||
28 | - <view class="item"> | ||
29 | - <view class="left"> | ||
30 | - <view class="top"> | ||
31 | - <text class="name">名字XX</text> | ||
32 | - <text class="tel">1566666666</text> | ||
33 | - </view> | ||
34 | - <view class="address">天津西青区天津西青区天津西青区天津西青区天津西青区</view> | ||
35 | - </view> | ||
36 | - <view class="right"> | ||
37 | - <image src="../../static/edit.png" mode="widthFix"/> | 12 | + <view class="right" @click.stop="editaddress(item)"> |
13 | + <image src="../../static/edit.png" mode="widthFix" /> | ||
38 | </view> | 14 | </view> |
39 | </view> | 15 | </view> |
40 | </view> | 16 | </view> |
@@ -43,19 +19,86 @@ | @@ -43,19 +19,86 @@ | ||
43 | </template> | 19 | </template> |
44 | 20 | ||
45 | <script> | 21 | <script> |
22 | + import app from "../../App.vue"; | ||
46 | export default { | 23 | export default { |
47 | data() { | 24 | data() { |
48 | return { | 25 | return { |
49 | - | 26 | + addresslist: [], |
27 | + showaddress: [] | ||
50 | } | 28 | } |
51 | }, | 29 | }, |
30 | + onLoad() { | ||
31 | + | ||
32 | + }, | ||
52 | methods: { | 33 | methods: { |
53 | - addaddress(){ | 34 | + addaddress() { |
35 | + uni.navigateTo({ | ||
36 | + url: "/pages/usercenter/addAddress" | ||
37 | + }) | ||
38 | + }, | ||
39 | + // 获取地址列表 | ||
40 | + getaddresslist() { | ||
41 | + let that = this; | ||
42 | + | ||
43 | + var url = 'user_address/get_list'; | ||
44 | + var params = { | ||
45 | + page: that.page, | ||
46 | + pageNum: 10 | ||
47 | + | ||
48 | + } | ||
49 | + console.log(params) | ||
50 | + app.post(url, params, "post").then((res) => { | ||
51 | + console.log(res); | ||
52 | + this.addresslist = this.addresslist.concat(res.data.data); | ||
53 | + this.showaddress = res.data.data; | ||
54 | + console.log(that.addresslist) | ||
55 | + | ||
56 | + }).catch((err) => { | ||
57 | + console.log(err) | ||
58 | + | ||
59 | + }) | ||
60 | + }, | ||
61 | + // 选择地址 | ||
62 | + selectaddress(item) { | ||
63 | + | ||
64 | + uni.setStorageSync("addressitem",item) | ||
65 | + uni.navigateBack({ | ||
66 | + checked:true | ||
67 | + }) | ||
68 | + }, | ||
69 | + // 编辑地址 | ||
70 | + editaddress(item) { | ||
71 | + var newitem = JSON.stringify(item); | ||
72 | + console.log(item) | ||
54 | uni.navigateTo({ | 73 | uni.navigateTo({ |
55 | - url:"/pages/usercenter/addAddress" | 74 | + url: '/pages/usercenter/addAddress?id=' + item.id + '&type=' + 1 + '&item=' + newitem |
56 | }) | 75 | }) |
76 | + }, | ||
77 | + }, | ||
78 | + | ||
79 | + onShow() { | ||
80 | + this.page = 1; | ||
81 | + this.addresslist = [] | ||
82 | + this.getaddresslist(); | ||
83 | + }, | ||
84 | + onReachBottom: function() { | ||
85 | + let newpage = this.data.page; | ||
86 | + newpage++; | ||
87 | + this.setData({ | ||
88 | + page: newpage | ||
89 | + }) | ||
90 | + | ||
91 | + if (this.showaddress.length == 0) { | ||
92 | + uni.showToast({ | ||
93 | + title: '没有更多了~', | ||
94 | + icon: "none" | ||
95 | + }) | ||
96 | + } else { | ||
97 | + this.getaddresslist(); | ||
57 | } | 98 | } |
58 | - } | 99 | + |
100 | + | ||
101 | + }, | ||
59 | } | 102 | } |
60 | </script> | 103 | </script> |
61 | 104 | ||
@@ -91,32 +134,37 @@ | @@ -91,32 +134,37 @@ | ||
91 | font-weight: 400; | 134 | font-weight: 400; |
92 | color: rgba(8, 18, 31, 1); | 135 | color: rgba(8, 18, 31, 1); |
93 | } | 136 | } |
94 | - .top{ | 137 | + |
138 | + .top { | ||
95 | width: 100%; | 139 | width: 100%; |
96 | display: flex; | 140 | display: flex; |
97 | align-items: center; | 141 | align-items: center; |
98 | } | 142 | } |
99 | - .name{ | ||
100 | - font-size:32rpx; | ||
101 | - font-family:PingFangSC-Medium,PingFang SC; | ||
102 | - font-weight:500; | ||
103 | - color:rgba(6,18,32,1); | 143 | + |
144 | + .name { | ||
145 | + font-size: 32rpx; | ||
146 | + font-family: PingFangSC-Medium, PingFang SC; | ||
147 | + font-weight: 500; | ||
148 | + color: rgba(6, 18, 32, 1); | ||
104 | } | 149 | } |
105 | - .tel{ | ||
106 | - font-size:28rpx; | ||
107 | - font-family:PingFangSC-Regular,PingFang SC; | ||
108 | - font-weight:400; | ||
109 | - color:rgba(61,69,76,1); | 150 | + |
151 | + .tel { | ||
152 | + font-size: 28rpx; | ||
153 | + font-family: PingFangSC-Regular, PingFang SC; | ||
154 | + font-weight: 400; | ||
155 | + color: rgba(61, 69, 76, 1); | ||
110 | margin-left: 48rpx; | 156 | margin-left: 48rpx; |
111 | } | 157 | } |
112 | - .address{ | 158 | + |
159 | + .address { | ||
113 | width: 100%; | 160 | width: 100%; |
114 | - font-size:28rpx; | ||
115 | - font-family:PingFangSC-Regular,PingFang SC; | ||
116 | - font-weight:400; | ||
117 | - color:rgba(61,69,76,1); | 161 | + font-size: 28rpx; |
162 | + font-family: PingFangSC-Regular, PingFang SC; | ||
163 | + font-weight: 400; | ||
164 | + color: rgba(61, 69, 76, 1); | ||
118 | margin-top: 20rpx; | 165 | margin-top: 20rpx; |
119 | } | 166 | } |
167 | + | ||
120 | .right { | 168 | .right { |
121 | width: 168rpx; | 169 | width: 168rpx; |
122 | font-size: 28rpx; | 170 | font-size: 28rpx; |
@@ -128,7 +176,7 @@ | @@ -128,7 +176,7 @@ | ||
128 | justify-content: flex-end; | 176 | justify-content: flex-end; |
129 | } | 177 | } |
130 | 178 | ||
131 | - .right image{ | 179 | + .right image { |
132 | width: 32rpx; | 180 | width: 32rpx; |
133 | } | 181 | } |
134 | 182 | ||
@@ -144,10 +192,10 @@ | @@ -144,10 +192,10 @@ | ||
144 | display: flex; | 192 | display: flex; |
145 | justify-content: center; | 193 | justify-content: center; |
146 | align-items: center; | 194 | align-items: center; |
147 | - position:fixed; | ||
148 | - bottom:30rpx; | ||
149 | - left:32rpx; | ||
150 | - | 195 | + position: fixed; |
196 | + bottom: 30rpx; | ||
197 | + left: 32rpx; | ||
198 | + | ||
151 | /* margin: 300rpx auto; */ | 199 | /* margin: 300rpx auto; */ |
152 | } | 200 | } |
153 | </style> | 201 | </style> |
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | <view class="companyitem"> | 23 | <view class="companyitem"> |
24 | <view class="companyitemleft">营业执照</view> | 24 | <view class="companyitemleft">营业执照</view> |
25 | <view class="compantphoto"> | 25 | <view class="compantphoto"> |
26 | - <image src="../../static/addpic.png" mode=""></image> | 26 | + <image src="" mode=""></image> |
27 | </view> | 27 | </view> |
28 | </view> | 28 | </view> |
29 | <view class="companyitem flextwo"> | 29 | <view class="companyitem flextwo"> |
static/cartnosel.png
0 → 100644
162 字节
static/cartsel.png
0 → 100644
460 字节
1 | { | 1 | { |
2 | "pages": [ | 2 | "pages": [ |
3 | "pages/homepage/homepage", | 3 | "pages/homepage/homepage", |
4 | + "pages/login/loginindex", | ||
4 | "pages/nearshop/cartlist", | 5 | "pages/nearshop/cartlist", |
5 | "pages/homepage/collectshop", | 6 | "pages/homepage/collectshop", |
6 | "pages/luntan/examineresult", | 7 | "pages/luntan/examineresult", |
7 | "pages/luntan/examintext", | 8 | "pages/luntan/examintext", |
8 | "pages/luntan/examine", | 9 | "pages/luntan/examine", |
9 | "pages/nearshop/sureorder", | 10 | "pages/nearshop/sureorder", |
10 | - "pages/login/loginindex", | ||
11 | "pages/login/accountpassword", | 11 | "pages/login/accountpassword", |
12 | "pages/login/registercode", | 12 | "pages/login/registercode", |
13 | "pages/homepage/mygift", | 13 | "pages/homepage/mygift", |
@@ -83,6 +83,6 @@ | @@ -83,6 +83,6 @@ | ||
83 | "autoclose": false | 83 | "autoclose": false |
84 | }, | 84 | }, |
85 | "appname": "zhongmian", | 85 | "appname": "zhongmian", |
86 | - "compilerVersion": "2.6.5", | 86 | + "compilerVersion": "2.4.6", |
87 | "usingComponents": {} | 87 | "usingComponents": {} |
88 | } | 88 | } |
此 diff 太大无法显示。
@@ -215,6 +215,9 @@ image { | @@ -215,6 +215,9 @@ image { | ||
215 | width: 32rpx; | 215 | width: 32rpx; |
216 | height: 32rpx; | 216 | height: 32rpx; |
217 | font-size: 0; | 217 | font-size: 0; |
218 | + -webkit-box-flex:0; | ||
219 | + -webkit-flex:0 0 auto; | ||
220 | + flex:0 0 auto; | ||
218 | } | 221 | } |
219 | .middleenter { | 222 | .middleenter { |
220 | width: 600rpx; | 223 | width: 600rpx; |
@@ -222,7 +225,7 @@ image { | @@ -222,7 +225,7 @@ image { | ||
222 | font-size: 0; | 225 | font-size: 0; |
223 | } | 226 | } |
224 | .middleenter input { | 227 | .middleenter input { |
225 | - width: 600rpx; | 228 | + width: 100%; |
226 | height: 60rpx; | 229 | height: 60rpx; |
227 | line-height: 60rpx; | 230 | line-height: 60rpx; |
228 | padding:0 12rpx; | 231 | padding:0 12rpx; |
此 diff 太大无法显示。
1 | -(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/uni-section/uni-section"],{ | ||
2 | - | ||
3 | -/***/ 503: | ||
4 | -/*!***************************************************************************!*\ | ||
5 | - !*** D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue ***! | ||
6 | - \***************************************************************************/ | ||
7 | -/*! no static exports found */ | ||
8 | -/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
9 | - | ||
10 | -"use strict"; | ||
11 | -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uni-section.vue?vue&type=template&id=43bdfe2c&scoped=true& */ 504);\n/* harmony import */ var _uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uni-section.vue?vue&type=script&lang=js& */ 506);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n/* harmony import */ var _uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uni-section.vue?vue&type=style&index=0&id=43bdfe2c&lang=scss&scoped=true& */ 508);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 15);\n\nvar renderjs\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n \"43bdfe2c\",\n null,\n false,\n _uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"components\"],\n renderjs\n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFvSTtBQUNwSTtBQUMrRDtBQUNMO0FBQ3NDOzs7QUFHaEc7QUFDeUs7QUFDekssZ0JBQWdCLCtLQUFVO0FBQzFCLEVBQUUsaUZBQU07QUFDUixFQUFFLGtHQUFNO0FBQ1IsRUFBRSwyR0FBZTtBQUNqQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsRUFBRSxzR0FBVTtBQUNaO0FBQ0E7O0FBRUE7QUFDQSxJQUFJLEtBQVUsRUFBRSxZQWlCZjtBQUNEO0FBQ2UsZ0YiLCJmaWxlIjoiNTAzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMsIHJlY3ljbGFibGVSZW5kZXIsIGNvbXBvbmVudHMgfSBmcm9tIFwiLi91bmktc2VjdGlvbi52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NDNiZGZlMmMmc2NvcGVkPXRydWUmXCJcbnZhciByZW5kZXJqc1xuaW1wb3J0IHNjcmlwdCBmcm9tIFwiLi91bmktc2VjdGlvbi52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcbmV4cG9ydCAqIGZyb20gXCIuL3VuaS1zZWN0aW9uLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuaW1wb3J0IHN0eWxlMCBmcm9tIFwiLi91bmktc2VjdGlvbi52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZpZD00M2JkZmUyYyZsYW5nPXNjc3Mmc2NvcGVkPXRydWUmXCJcblxuXG4vKiBub3JtYWxpemUgY29tcG9uZW50ICovXG5pbXBvcnQgbm9ybWFsaXplciBmcm9tIFwiIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXHJ1bnRpbWVcXFxcY29tcG9uZW50Tm9ybWFsaXplci5qc1wiXG52YXIgY29tcG9uZW50ID0gbm9ybWFsaXplcihcbiAgc2NyaXB0LFxuICByZW5kZXIsXG4gIHN0YXRpY1JlbmRlckZucyxcbiAgZmFsc2UsXG4gIG51bGwsXG4gIFwiNDNiZGZlMmNcIixcbiAgbnVsbCxcbiAgZmFsc2UsXG4gIGNvbXBvbmVudHMsXG4gIHJlbmRlcmpzXG4pXG5cbi8qIGhvdCByZWxvYWQgKi9cbmlmIChtb2R1bGUuaG90KSB7XG4gIHZhciBhcGkgPSByZXF1aXJlKFwiRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXHZ1ZS1ob3QtcmVsb2FkLWFwaVxcXFxkaXN0XFxcXGluZGV4LmpzXCIpXG4gIGFwaS5pbnN0YWxsKHJlcXVpcmUoJ3Z1ZScpKVxuICBpZiAoYXBpLmNvbXBhdGlibGUpIHtcbiAgICBtb2R1bGUuaG90LmFjY2VwdCgpXG4gICAgaWYgKCFhcGkuaXNSZWNvcmRlZCgnNDNiZGZlMmMnKSkge1xuICAgICAgYXBpLmNyZWF0ZVJlY29yZCgnNDNiZGZlMmMnLCBjb21wb25lbnQub3B0aW9ucylcbiAgICB9IGVsc2Uge1xuICAgICAgYXBpLnJlbG9hZCgnNDNiZGZlMmMnLCBjb21wb25lbnQub3B0aW9ucylcbiAgICB9XG4gICAgbW9kdWxlLmhvdC5hY2NlcHQoXCIuL3VuaS1zZWN0aW9uLnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD00M2JkZmUyYyZzY29wZWQ9dHJ1ZSZcIiwgZnVuY3Rpb24gKCkge1xuICAgICAgYXBpLnJlcmVuZGVyKCc0M2JkZmUyYycsIHtcbiAgICAgICAgcmVuZGVyOiByZW5kZXIsXG4gICAgICAgIHN0YXRpY1JlbmRlckZuczogc3RhdGljUmVuZGVyRm5zXG4gICAgICB9KVxuICAgIH0pXG4gIH1cbn1cbmNvbXBvbmVudC5vcHRpb25zLl9fZmlsZSA9IFwiRDovZnViZW4v6aG555uuL3pob25nbWlhbnByb2dyYW0vY29tcG9uZW50cy91bmktc2VjdGlvbi91bmktc2VjdGlvbi52dWVcIlxuZXhwb3J0IGRlZmF1bHQgY29tcG9uZW50LmV4cG9ydHMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///503\n"); | ||
12 | - | ||
13 | -/***/ }), | ||
14 | - | ||
15 | -/***/ 504: | ||
16 | -/*!**********************************************************************************************************************!*\ | ||
17 | - !*** D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=template&id=43bdfe2c&scoped=true& ***! | ||
18 | - \**********************************************************************************************************************/ | ||
19 | -/*! exports provided: render, staticRenderFns, recyclableRender, components */ | ||
20 | -/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
21 | - | ||
22 | -"use strict"; | ||
23 | -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-section.vue?vue&type=template&id=43bdfe2c&scoped=true& */ 505);\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"recyclableRender\", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"recyclableRender\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"components\", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"components\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwiZmlsZSI6IjUwNC5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCItIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXGxvYWRlcnNcXFxcdGVtcGxhdGVMb2FkZXIuanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHZ1ZS1jbGktcGx1Z2luLXVuaVxcXFxwYWNrYWdlc1xcXFx3ZWJwYWNrLXByZXByb2Nlc3MtbG9hZGVyXFxcXGluZGV4LmpzPz9yZWYtLTE2LTAhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXEBkY2xvdWRpb1xcXFx3ZWJwYWNrLXVuaS1tcC1sb2FkZXJcXFxcbGliXFxcXHRlbXBsYXRlLmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHdlYnBhY2stdW5pLWFwcC1sb2FkZXJcXFxccGFnZS1tZXRhLmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXGluZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXEBkY2xvdWRpb1xcXFx3ZWJwYWNrLXVuaS1tcC1sb2FkZXJcXFxcbGliXFxcXHN0eWxlLmpzIS4vdW5pLXNlY3Rpb24udnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTQzYmRmZTJjJnNjb3BlZD10cnVlJlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///504\n"); | ||
24 | - | ||
25 | -/***/ }), | ||
26 | - | ||
27 | -/***/ 505: | ||
28 | -/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ | ||
29 | - !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=template&id=43bdfe2c&scoped=true& ***! | ||
30 | - \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ | ||
31 | -/*! exports provided: render, staticRenderFns, recyclableRender, components */ | ||
32 | -/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
33 | - | ||
34 | -"use strict"; | ||
35 | -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"recyclableRender\", function() { return recyclableRender; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"components\", function() { return components; });\nvar components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiNTA1LmpzIiwic291cmNlc0NvbnRlbnQiOlsidmFyIGNvbXBvbmVudHNcbnZhciByZW5kZXIgPSBmdW5jdGlvbigpIHtcbiAgdmFyIF92bSA9IHRoaXNcbiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50XG4gIHZhciBfYyA9IF92bS5fc2VsZi5fYyB8fCBfaFxufVxudmFyIHJlY3ljbGFibGVSZW5kZXIgPSBmYWxzZVxudmFyIHN0YXRpY1JlbmRlckZucyA9IFtdXG5yZW5kZXIuX3dpdGhTdHJpcHBlZCA9IHRydWVcblxuZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMsIHJlY3ljbGFibGVSZW5kZXIsIGNvbXBvbmVudHMgfSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///505\n"); | ||
36 | - | ||
37 | -/***/ }), | ||
38 | - | ||
39 | -/***/ 506: | ||
40 | -/*!****************************************************************************************************!*\ | ||
41 | - !*** D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=script&lang=js& ***! | ||
42 | - \****************************************************************************************************/ | ||
43 | -/*! no static exports found */ | ||
44 | -/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
45 | - | ||
46 | -"use strict"; | ||
47 | -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-section.vue?vue&type=script&lang=js& */ 507);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQXluQixDQUFnQiwrbkJBQUcsRUFBQyIsImZpbGUiOiI1MDYuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxiYWJlbC1sb2FkZXJcXFxcbGliXFxcXGluZGV4LmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHdlYnBhY2stcHJlcHJvY2Vzcy1sb2FkZXJcXFxcaW5kZXguanM/P3JlZi0tMTItMSFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHdlYnBhY2stdW5pLW1wLWxvYWRlclxcXFxsaWJcXFxcc2NyaXB0LmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXGluZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXEBkY2xvdWRpb1xcXFx3ZWJwYWNrLXVuaS1tcC1sb2FkZXJcXFxcbGliXFxcXHN0eWxlLmpzIS4vdW5pLXNlY3Rpb24udnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiOyBleHBvcnQgZGVmYXVsdCBtb2Q7IGV4cG9ydCAqIGZyb20gXCItIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxiYWJlbC1sb2FkZXJcXFxcbGliXFxcXGluZGV4LmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHdlYnBhY2stcHJlcHJvY2Vzcy1sb2FkZXJcXFxcaW5kZXguanM/P3JlZi0tMTItMSFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHdlYnBhY2stdW5pLW1wLWxvYWRlclxcXFxsaWJcXFxcc2NyaXB0LmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXGluZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXEBkY2xvdWRpb1xcXFx3ZWJwYWNrLXVuaS1tcC1sb2FkZXJcXFxcbGliXFxcXHN0eWxlLmpzIS4vdW5pLXNlY3Rpb24udnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///506\n"); | ||
48 | - | ||
49 | -/***/ }), | ||
50 | - | ||
51 | -/***/ 507: | ||
52 | -/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ | ||
53 | - !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=script&lang=js& ***! | ||
54 | - \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ | ||
55 | -/*! no static exports found */ | ||
56 | -/***/ (function(module, exports, __webpack_require__) { | ||
57 | - | ||
58 | -"use strict"; | ||
59 | -eval("/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, \"__esModule\", { value: true });exports.default = void 0; //\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/**\n * Section 标题栏\n * @description 标题栏\n * @property {String} type = [line|circle] 标题装饰类型\n * \t@value line 竖线\n * \t@value circle 圆形\n * @property {String} title 主标题\n * @property {String} subTitle 副标题\n */var _default =\n\n{\n name: 'UniTitle',\n props: {\n type: {\n type: String,\n default: '' },\n\n title: {\n type: String,\n default: '' },\n\n subTitle: {\n type: String,\n default: '' } },\n\n\n data: function data() {\n return {};\n },\n watch: {\n title: function title(newVal) {\n if (uni.report && newVal !== '') {\n uni.report('title', newVal);\n }\n } },\n\n methods: {\n onClick: function onClick() {\n this.$emit('click');\n } } };exports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-app-plus/dist/index.js */ 1)[\"default\"]))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vY29tcG9uZW50cy91bmktc2VjdGlvbi91bmktc2VjdGlvbi52dWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBZUE7Ozs7Ozs7Ozs7QUFVQTtBQUNBLGtCQURBO0FBRUE7QUFDQTtBQUNBLGtCQURBO0FBRUEsaUJBRkEsRUFEQTs7QUFLQTtBQUNBLGtCQURBO0FBRUEsaUJBRkEsRUFMQTs7QUFTQTtBQUNBLGtCQURBO0FBRUEsaUJBRkEsRUFUQSxFQUZBOzs7QUFnQkEsTUFoQkEsa0JBZ0JBO0FBQ0E7QUFDQSxHQWxCQTtBQW1CQTtBQUNBLFNBREEsaUJBQ0EsTUFEQSxFQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FMQSxFQW5CQTs7QUEwQkE7QUFDQSxXQURBLHFCQUNBO0FBQ0E7QUFDQSxLQUhBLEVBMUJBLEUiLCJmaWxlIjoiNTA3LmpzIiwic291cmNlc0NvbnRlbnQiOlsiPHRlbXBsYXRlPlxyXG5cdDx2aWV3IGNsYXNzPVwidW5pLXNlY3Rpb25cIj5cclxuXHRcdDx2aWV3IHYtaWY9XCJ0eXBlXCIgY2xhc3M9XCJ1bmktc2VjdGlvbl9faGVhZFwiPlxyXG5cdFx0XHQ8dmlldyA6Y2xhc3M9XCJ0eXBlXCIgY2xhc3M9XCJ1bmktc2VjdGlvbl9faGVhZC10YWdcIiAvPlxyXG5cdFx0PC92aWV3PlxyXG5cdFx0PHZpZXcgY2xhc3M9XCJ1bmktc2VjdGlvbl9fY29udGVudFwiPlxyXG5cdFx0XHQ8dGV4dCA6Y2xhc3M9XCJ7J2Rpc3RyYWN0aW9uJzohc3ViVGl0bGV9XCIgY2xhc3M9XCJ1bmktc2VjdGlvbl9fY29udGVudC10aXRsZVwiPnt7IHRpdGxlIH19PC90ZXh0PlxyXG5cdFx0XHQ8dGV4dCB2LWlmPVwic3ViVGl0bGVcIiBjbGFzcz1cInVuaS1zZWN0aW9uX19jb250ZW50LXN1YlwiPnt7IHN1YlRpdGxlIH19PC90ZXh0PlxyXG5cdFx0PC92aWV3PlxyXG5cdFx0PHNsb3QgLz5cclxuXHQ8L3ZpZXc+XHJcbjwvdGVtcGxhdGU+XHJcblxyXG48c2NyaXB0PlxyXG5cclxuXHQvKipcclxuXHQgKiBTZWN0aW9uIOagh+mimOagj1xyXG5cdCAqIEBkZXNjcmlwdGlvbiDmoIfpopjmoI9cclxuXHQgKiBAcHJvcGVydHkge1N0cmluZ30gdHlwZSA9IFtsaW5lfGNpcmNsZV0g5qCH6aKY6KOF6aWw57G75Z6LXHJcblx0ICogXHRAdmFsdWUgbGluZSDnq5bnur9cclxuXHQgKiBcdEB2YWx1ZSBjaXJjbGUg5ZyG5b2iXHJcblx0ICogQHByb3BlcnR5IHtTdHJpbmd9IHRpdGxlIOS4u+agh+mimFxyXG5cdCAqIEBwcm9wZXJ0eSB7U3RyaW5nfSBzdWJUaXRsZSDlia/moIfpophcclxuXHQgKi9cclxuXHJcblx0ZXhwb3J0IGRlZmF1bHQge1xyXG5cdFx0bmFtZTogJ1VuaVRpdGxlJyxcclxuXHRcdHByb3BzOiB7XHJcblx0XHRcdHR5cGU6IHtcclxuXHRcdFx0XHR0eXBlOiBTdHJpbmcsXHJcblx0XHRcdFx0ZGVmYXVsdDogJydcclxuXHRcdFx0fSxcclxuXHRcdFx0dGl0bGU6IHtcclxuXHRcdFx0XHR0eXBlOiBTdHJpbmcsXHJcblx0XHRcdFx0ZGVmYXVsdDogJydcclxuXHRcdFx0fSxcclxuXHRcdFx0c3ViVGl0bGU6IHtcclxuXHRcdFx0XHR0eXBlOiBTdHJpbmcsXHJcblx0XHRcdFx0ZGVmYXVsdDogJydcclxuXHRcdFx0fVxyXG5cdFx0fSxcclxuXHRcdGRhdGEoKSB7XHJcblx0XHRcdHJldHVybiB7fVxyXG5cdFx0fSxcclxuXHRcdHdhdGNoOiB7XHJcblx0XHRcdHRpdGxlKG5ld1ZhbCkge1xyXG5cdFx0XHRcdGlmICh1bmkucmVwb3J0ICYmIG5ld1ZhbCAhPT0gJycpIHtcclxuXHRcdFx0XHRcdHVuaS5yZXBvcnQoJ3RpdGxlJywgbmV3VmFsKVxyXG5cdFx0XHRcdH1cclxuXHRcdFx0fVxyXG5cdFx0fSxcclxuXHRcdG1ldGhvZHM6IHtcclxuXHRcdFx0b25DbGljaygpIHtcclxuXHRcdFx0XHR0aGlzLiRlbWl0KCdjbGljaycpXHJcblx0XHRcdH1cclxuXHRcdH1cclxuXHR9XHJcbjwvc2NyaXB0PlxyXG48c3R5bGUgbGFuZz1cInNjc3NcIiBzY29wZWQ+XHJcblx0LnVuaS1zZWN0aW9uIHtcclxuXHRcdHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuXHRcdC8qICNpZm5kZWYgQVBQLU5WVUUgKi9cclxuXHRcdGRpc3BsYXk6IGZsZXg7XHJcblx0XHQvKiAjZW5kaWYgKi9cclxuXHRcdG1hcmdpbi10b3A6IDEwcHg7XHJcblx0XHRmbGV4LWRpcmVjdGlvbjogcm93O1xyXG5cdFx0YWxpZ24taXRlbXM6IGNlbnRlcjtcclxuXHRcdHBhZGRpbmc6IDAgMTBweDtcclxuXHRcdGhlaWdodDogNTBweDtcclxuXHRcdGJhY2tncm91bmQtY29sb3I6ICR1bmktYmctY29sb3ItZ3JleTtcclxuXHRcdC8qICNpZmRlZiBBUFAtTlZVRSAqL1xyXG5cdFx0Ym9yZGVyLWJvdHRvbS1jb2xvcjogJHVuaS1ib3JkZXItY29sb3I7XHJcblx0XHRib3JkZXItYm90dG9tLXN0eWxlOiBzb2xpZDtcclxuXHRcdGJvcmRlci1ib3R0b20td2lkdGg6IDAuNXB4O1xyXG5cdFx0LyogI2VuZGlmICovXHJcblx0XHRmb250LXdlaWdodDogbm9ybWFsO1xyXG5cdH1cclxuXHQvKiAjaWZuZGVmIEFQUC1OVlVFICovXHJcblx0LnVuaS1zZWN0aW9uOmFmdGVyIHtcclxuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuXHRcdGJvdHRvbTogMDtcclxuXHRcdHJpZ2h0OiAwO1xyXG5cdFx0bGVmdDogMDtcclxuXHRcdGhlaWdodDogMXB4O1xyXG5cdFx0Y29udGVudDogJyc7XHJcblx0XHQtd2Via2l0LXRyYW5zZm9ybTogc2NhbGVZKC41KTtcclxuXHRcdHRyYW5zZm9ybTogc2NhbGVZKC41KTtcclxuXHRcdGJhY2tncm91bmQtY29sb3I6ICR1bmktYm9yZGVyLWNvbG9yO1xyXG5cdH1cclxuXHQvKiAjZW5kaWYgKi9cclxuXHJcblx0LnVuaS1zZWN0aW9uX19oZWFkIHtcclxuXHRcdGZsZXgtZGlyZWN0aW9uOiByb3c7XHJcblx0XHRqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcclxuXHRcdGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcblx0XHRtYXJnaW4tcmlnaHQ6IDEwcHg7XHJcblx0fVxyXG5cclxuXHQubGluZSB7XHJcblx0XHRoZWlnaHQ6IDE1cHg7XHJcblx0XHRiYWNrZ3JvdW5kLWNvbG9yOiAkdW5pLXRleHQtY29sb3ItZGlzYWJsZTtcclxuXHRcdGJvcmRlci1yYWRpdXM6IDVweDtcclxuXHRcdHdpZHRoOiAzcHg7XHJcblx0fVxyXG5cclxuXHQuY2lyY2xlIHtcclxuXHRcdHdpZHRoOiA4cHg7XHJcblx0XHRoZWlnaHQ6IDhweDtcclxuXHRcdGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiA1MHB4O1xyXG5cdFx0Ym9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNTBweDtcclxuXHRcdGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDUwcHg7XHJcblx0XHRib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogNTBweDtcclxuXHRcdGJhY2tncm91bmQtY29sb3I6ICR1bmktdGV4dC1jb2xvci1kaXNhYmxlO1xyXG5cdH1cclxuXHJcblx0LnVuaS1zZWN0aW9uX19jb250ZW50IHtcclxuXHRcdGZsZXg6IDE7XHJcblx0XHRjb2xvcjogJHVuaS10ZXh0LWNvbG9yO1xyXG5cdH1cclxuXHJcblx0LnVuaS1zZWN0aW9uX19jb250ZW50LXRpdGxlIHtcclxuXHRcdGZvbnQtc2l6ZTogJHVuaS1mb250LXNpemUtYmFzZTtcclxuXHRcdGNvbG9yOiAkdW5pLXRleHQtY29sb3I7XHJcblx0fVxyXG5cclxuXHQuZGlzdHJhY3Rpb24ge1xyXG5cdFx0ZmxleC1kaXJlY3Rpb246IHJvdztcclxuXHRcdGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcblx0fVxyXG5cclxuXHQudW5pLXNlY3Rpb25fX2NvbnRlbnQtc3ViIHtcclxuXHRcdGZvbnQtc2l6ZTogJHVuaS1mb250LXNpemUtc207XHJcblx0XHRjb2xvcjogJHVuaS10ZXh0LWNvbG9yLWdyZXk7XHJcblx0fVxyXG48L3N0eWxlPlxyXG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///507\n"); | ||
60 | - | ||
61 | -/***/ }), | ||
62 | - | ||
63 | -/***/ 508: | ||
64 | -/*!*************************************************************************************************************************************!*\ | ||
65 | - !*** D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=style&index=0&id=43bdfe2c&lang=scss&scoped=true& ***! | ||
66 | - \*************************************************************************************************************************************/ | ||
67 | -/*! no static exports found */ | ||
68 | -/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
69 | - | ||
70 | -"use strict"; | ||
71 | -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-1!./node_modules/css-loader??ref--8-oneOf-1-2!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-section.vue?vue&type=style&index=0&id=43bdfe2c&lang=scss&scoped=true& */ 509);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQWlxQyxDQUFnQix3bUNBQUcsRUFBQyIsImZpbGUiOiI1MDguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxcXFxkaXN0XFxcXGxvYWRlci5qcz8/cmVmLS04LW9uZU9mLTEtMCFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHZ1ZS1jbGktcGx1Z2luLXVuaVxcXFxwYWNrYWdlc1xcXFx3ZWJwYWNrLXByZXByb2Nlc3MtbG9hZGVyXFxcXGluZGV4LmpzPz9yZWYtLTgtb25lT2YtMS0xIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxjc3MtbG9hZGVyXFxcXGluZGV4LmpzPz9yZWYtLTgtb25lT2YtMS0yIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXGxvYWRlcnNcXFxcc3R5bGVQb3N0TG9hZGVyLmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxwb3N0Y3NzLWxvYWRlclxcXFxzcmNcXFxcaW5kZXguanM/P3JlZi0tOC1vbmVPZi0xLTMhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXHNhc3MtbG9hZGVyXFxcXGxpYlxcXFxsb2FkZXIuanM/P3JlZi0tOC1vbmVPZi0xLTQhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXEBkY2xvdWRpb1xcXFx2dWUtY2xpLXBsdWdpbi11bmlcXFxccGFja2FnZXNcXFxcd2VicGFjay1wcmVwcm9jZXNzLWxvYWRlclxcXFxpbmRleC5qcz8/cmVmLS04LW9uZU9mLTEtNSFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHZ1ZS1jbGktcGx1Z2luLXVuaVxcXFxwYWNrYWdlc1xcXFx2dWUtbG9hZGVyXFxcXGxpYlxcXFxpbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcd2VicGFjay11bmktbXAtbG9hZGVyXFxcXGxpYlxcXFxzdHlsZS5qcyEuL3VuaS1zZWN0aW9uLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPTQzYmRmZTJjJmxhbmc9c2NzcyZzY29wZWQ9dHJ1ZSZcIjsgZXhwb3J0IGRlZmF1bHQgbW9kOyBleHBvcnQgKiBmcm9tIFwiLSFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cXFxcZGlzdFxcXFxsb2FkZXIuanM/P3JlZi0tOC1vbmVPZi0xLTAhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXEBkY2xvdWRpb1xcXFx2dWUtY2xpLXBsdWdpbi11bmlcXFxccGFja2FnZXNcXFxcd2VicGFjay1wcmVwcm9jZXNzLWxvYWRlclxcXFxpbmRleC5qcz8/cmVmLS04LW9uZU9mLTEtMSFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcY3NzLWxvYWRlclxcXFxpbmRleC5qcz8/cmVmLS04LW9uZU9mLTEtMiFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHZ1ZS1jbGktcGx1Z2luLXVuaVxcXFxwYWNrYWdlc1xcXFx2dWUtbG9hZGVyXFxcXGxpYlxcXFxsb2FkZXJzXFxcXHN0eWxlUG9zdExvYWRlci5qcyFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxccG9zdGNzcy1sb2FkZXJcXFxcc3JjXFxcXGluZGV4LmpzPz9yZWYtLTgtb25lT2YtMS0zIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxzYXNzLWxvYWRlclxcXFxsaWJcXFxcbG9hZGVyLmpzPz9yZWYtLTgtb25lT2YtMS00IUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHdlYnBhY2stcHJlcHJvY2Vzcy1sb2FkZXJcXFxcaW5kZXguanM/P3JlZi0tOC1vbmVPZi0xLTUhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXEBkY2xvdWRpb1xcXFx2dWUtY2xpLXBsdWdpbi11bmlcXFxccGFja2FnZXNcXFxcdnVlLWxvYWRlclxcXFxsaWJcXFxcaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHdlYnBhY2stdW5pLW1wLWxvYWRlclxcXFxsaWJcXFxcc3R5bGUuanMhLi91bmktc2VjdGlvbi52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZpZD00M2JkZmUyYyZsYW5nPXNjc3Mmc2NvcGVkPXRydWUmXCIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///508\n"); | ||
72 | - | ||
73 | -/***/ }), | ||
74 | - | ||
75 | -/***/ 509: | ||
76 | -/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ | ||
77 | - !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-1!./node_modules/css-loader??ref--8-oneOf-1-2!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=style&index=0&id=43bdfe2c&lang=scss&scoped=true& ***! | ||
78 | - \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ | ||
79 | -/*! no static exports found */ | ||
80 | -/***/ (function(module, exports, __webpack_require__) { | ||
81 | - | ||
82 | -eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIiwiZmlsZSI6IjUwOS5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///509\n"); | ||
83 | - | ||
84 | -/***/ }) | ||
85 | - | ||
86 | -}]); | ||
87 | -;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ | ||
88 | - 'components/uni-section/uni-section-create-component', | ||
89 | - { | ||
90 | - 'components/uni-section/uni-section-create-component':(function(module, exports, __webpack_require__){ | ||
91 | - __webpack_require__('1')['createComponent'](__webpack_require__(503)) | ||
92 | - }) | ||
93 | - }, | ||
94 | - [['components/uni-section/uni-section-create-component']] | ||
95 | -]); |
1 | -<view class="uni-section data-v-43bdfe2c"><block wx:if="{{type}}"><view class="uni-section__head data-v-43bdfe2c"><view class="{{['uni-section__head-tag data-v-43bdfe2c',type]}}"></view></view></block><view class="uni-section__content data-v-43bdfe2c"><text class="{{['uni-section__content-title data-v-43bdfe2c',(!subTitle)?'distraction':'']}}">{{title}}</text><block wx:if="{{subTitle}}"><text class="uni-section__content-sub data-v-43bdfe2c">{{subTitle}}</text></block></view><slot></slot></view> |
1 | -@charset "UTF-8"; | ||
2 | -/** | ||
3 | - * 这里是uni-app内置的常用样式变量 | ||
4 | - * | ||
5 | - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 | ||
6 | - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App | ||
7 | - * | ||
8 | - */ | ||
9 | -/** | ||
10 | - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 | ||
11 | - * | ||
12 | - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 | ||
13 | - */ | ||
14 | -/* 颜色变量 */ | ||
15 | -/* 行为相关颜色 */ | ||
16 | -/* 文字基本颜色 */ | ||
17 | -/* 背景颜色 */ | ||
18 | -/* 边框颜色 */ | ||
19 | -/* 尺寸变量 */ | ||
20 | -/* 文字尺寸 */ | ||
21 | -/* 图片尺寸 */ | ||
22 | -/* Border Radius */ | ||
23 | -/* 水平间距 */ | ||
24 | -/* 垂直间距 */ | ||
25 | -/* 透明度 */ | ||
26 | -/* 文章场景相关 */ | ||
27 | -.uni-section.data-v-43bdfe2c { | ||
28 | - position: relative; | ||
29 | - display: -webkit-box; | ||
30 | - display: -webkit-flex; | ||
31 | - display: flex; | ||
32 | - margin-top: 10px; | ||
33 | - -webkit-box-orient: horizontal; | ||
34 | - -webkit-box-direction: normal; | ||
35 | - -webkit-flex-direction: row; | ||
36 | - flex-direction: row; | ||
37 | - -webkit-box-align: center; | ||
38 | - -webkit-align-items: center; | ||
39 | - align-items: center; | ||
40 | - padding: 0 10px; | ||
41 | - height: 50px; | ||
42 | - background-color: #f8f8f8; | ||
43 | - font-weight: normal; | ||
44 | -} | ||
45 | -.uni-section.data-v-43bdfe2c:after { | ||
46 | - position: absolute; | ||
47 | - bottom: 0; | ||
48 | - right: 0; | ||
49 | - left: 0; | ||
50 | - height: 1px; | ||
51 | - content: ''; | ||
52 | - -webkit-transform: scaleY(0.5); | ||
53 | - transform: scaleY(0.5); | ||
54 | - background-color: #c8c7cc; | ||
55 | -} | ||
56 | -.uni-section__head.data-v-43bdfe2c { | ||
57 | - -webkit-box-orient: horizontal; | ||
58 | - -webkit-box-direction: normal; | ||
59 | - -webkit-flex-direction: row; | ||
60 | - flex-direction: row; | ||
61 | - -webkit-box-pack: center; | ||
62 | - -webkit-justify-content: center; | ||
63 | - justify-content: center; | ||
64 | - -webkit-box-align: center; | ||
65 | - -webkit-align-items: center; | ||
66 | - align-items: center; | ||
67 | - margin-right: 10px; | ||
68 | -} | ||
69 | -.line.data-v-43bdfe2c { | ||
70 | - height: 15px; | ||
71 | - background-color: #c0c0c0; | ||
72 | - border-radius: 5px; | ||
73 | - width: 3px; | ||
74 | -} | ||
75 | -.circle.data-v-43bdfe2c { | ||
76 | - width: 8px; | ||
77 | - height: 8px; | ||
78 | - border-top-right-radius: 50px; | ||
79 | - border-top-left-radius: 50px; | ||
80 | - border-bottom-left-radius: 50px; | ||
81 | - border-bottom-right-radius: 50px; | ||
82 | - background-color: #c0c0c0; | ||
83 | -} | ||
84 | -.uni-section__content.data-v-43bdfe2c { | ||
85 | - -webkit-box-flex: 1; | ||
86 | - -webkit-flex: 1; | ||
87 | - flex: 1; | ||
88 | - color: #333; | ||
89 | -} | ||
90 | -.uni-section__content-title.data-v-43bdfe2c { | ||
91 | - font-size: 28rpx; | ||
92 | - color: #333; | ||
93 | -} | ||
94 | -.distraction.data-v-43bdfe2c { | ||
95 | - -webkit-box-orient: horizontal; | ||
96 | - -webkit-box-direction: normal; | ||
97 | - -webkit-flex-direction: row; | ||
98 | - flex-direction: row; | ||
99 | - -webkit-box-align: center; | ||
100 | - -webkit-align-items: center; | ||
101 | - align-items: center; | ||
102 | -} | ||
103 | -.uni-section__content-sub.data-v-43bdfe2c { | ||
104 | - font-size: 24rpx; | ||
105 | - color: #999; | ||
106 | -} | ||
107 | - |
1 | -/** | ||
2 | - * 监听页面内值的变化,主要用于动态开关swipe-action | ||
3 | - * @param {Object} newValue | ||
4 | - * @param {Object} oldValue | ||
5 | - * @param {Object} ownerInstance | ||
6 | - * @param {Object} instance | ||
7 | - */ | ||
8 | -function sizeReady(newValue, oldValue, ownerInstance, instance) { | ||
9 | - var state = instance.getState() | ||
10 | - state.position = JSON.parse(newValue) | ||
11 | - if (!state.position || state.position.length === 0) return | ||
12 | - var show = state.position[0].show | ||
13 | - state.left = state.left || state.position[0].left; | ||
14 | - // 通过用户变量,开启或关闭 | ||
15 | - if (show) { | ||
16 | - openState(true, instance, ownerInstance) | ||
17 | - } else { | ||
18 | - openState(false, instance, ownerInstance) | ||
19 | - } | ||
20 | -} | ||
21 | - | ||
22 | -/** | ||
23 | - * 开始触摸操作 | ||
24 | - * @param {Object} e | ||
25 | - * @param {Object} ins | ||
26 | - */ | ||
27 | -function touchstart(e, ins) { | ||
28 | - var instance = e.instance; | ||
29 | - var state = instance.getState(); | ||
30 | - var pageX = e.touches[0].pageX; | ||
31 | - // 开始触摸时移除动画类 | ||
32 | - instance.removeClass('ani'); | ||
33 | - var owner = ins.selectAllComponents('.button-hock') | ||
34 | - for (var i = 0; i < owner.length; i++) { | ||
35 | - owner[i].removeClass('ani'); | ||
36 | - } | ||
37 | - // state.position = JSON.parse(instance.getDataset().position); | ||
38 | - state.left = state.left || state.position[0].left; | ||
39 | - // 获取最终按钮组的宽度 | ||
40 | - state.width = pageX - state.left; | ||
41 | - ins.callMethod('closeSwipe') | ||
42 | -} | ||
43 | - | ||
44 | -/** | ||
45 | - * 开始滑动操作 | ||
46 | - * @param {Object} e | ||
47 | - * @param {Object} ownerInstance | ||
48 | - */ | ||
49 | -function touchmove(e, ownerInstance) { | ||
50 | - var instance = e.instance; | ||
51 | - var disabled = instance.getDataset().disabled | ||
52 | - var state = instance.getState() | ||
53 | - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 | ||
54 | - disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; | ||
55 | - | ||
56 | - if (disabled) return | ||
57 | - var pageX = e.touches[0].pageX; | ||
58 | - move(pageX - state.width, instance, ownerInstance) | ||
59 | -} | ||
60 | - | ||
61 | -/** | ||
62 | - * 结束触摸操作 | ||
63 | - * @param {Object} e | ||
64 | - * @param {Object} ownerInstance | ||
65 | - */ | ||
66 | -function touchend(e, ownerInstance) { | ||
67 | - var instance = e.instance; | ||
68 | - var disabled = instance.getDataset().disabled | ||
69 | - var state = instance.getState() | ||
70 | - | ||
71 | - // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复 | ||
72 | - disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false; | ||
73 | - | ||
74 | - if (disabled) return | ||
75 | - // 滑动过程中触摸结束,通过阙值判断是开启还是关闭 | ||
76 | - moveDirection(state.left, -40, instance, ownerInstance) | ||
77 | -} | ||
78 | - | ||
79 | -/** | ||
80 | - * 设置移动距离 | ||
81 | - * @param {Object} value | ||
82 | - * @param {Object} instance | ||
83 | - * @param {Object} ownerInstance | ||
84 | - */ | ||
85 | -function move(value, instance, ownerInstance) { | ||
86 | - var state = instance.getState() | ||
87 | - // 获取可滑动范围 | ||
88 | - var x = Math.max(-state.position[1].width, Math.min((value), 0)); | ||
89 | - state.left = x; | ||
90 | - instance.setStyle({ | ||
91 | - transform: 'translateX(' + x + 'px)', | ||
92 | - '-webkit-transform': 'translateX(' + x + 'px)' | ||
93 | - }) | ||
94 | - // 折叠按钮动画 | ||
95 | - buttonFold(x, instance, ownerInstance) | ||
96 | -} | ||
97 | - | ||
98 | -/** | ||
99 | - * 移动方向判断 | ||
100 | - * @param {Object} left | ||
101 | - * @param {Object} value | ||
102 | - * @param {Object} ownerInstance | ||
103 | - * @param {Object} ins | ||
104 | - */ | ||
105 | -function moveDirection(left, value, ins, ownerInstance) { | ||
106 | - var state = ins.getState() | ||
107 | - var position = state.position | ||
108 | - var isopen = state.isopen | ||
109 | - if (!position[1].width) { | ||
110 | - openState(false, ins, ownerInstance) | ||
111 | - return | ||
112 | - } | ||
113 | - // 如果已经是打开状态,进行判断是否关闭,还是保留打开状态 | ||
114 | - if (isopen) { | ||
115 | - if (-left <= position[1].width) { | ||
116 | - openState(false, ins, ownerInstance) | ||
117 | - } else { | ||
118 | - openState(true, ins, ownerInstance) | ||
119 | - } | ||
120 | - return | ||
121 | - } | ||
122 | - // 如果是关闭状态,进行判断是否打开,还是保留关闭状态 | ||
123 | - if (left <= value) { | ||
124 | - openState(true, ins, ownerInstance) | ||
125 | - } else { | ||
126 | - openState(false, ins, ownerInstance) | ||
127 | - } | ||
128 | -} | ||
129 | - | ||
130 | -/** | ||
131 | - * 设置按钮移动距离 | ||
132 | - * @param {Object} value | ||
133 | - * @param {Object} instance | ||
134 | - * @param {Object} ownerInstance | ||
135 | - */ | ||
136 | -function buttonFold(value, instance, ownerInstance) { | ||
137 | - var ins = ownerInstance.selectAllComponents('.button-hock'); | ||
138 | - var state = instance.getState(); | ||
139 | - var position = state.position; | ||
140 | - var arr = []; | ||
141 | - var w = 0; | ||
142 | - for (var i = 0; i < ins.length; i++) { | ||
143 | - if (!ins[i].getDataset().button) return | ||
144 | - var btnData = JSON.parse(ins[i].getDataset().button) | ||
145 | - | ||
146 | - // fix by mehaotian TODO 在 app-vue 中,字符串转对象,需要转两次,这里先这么兼容 | ||
147 | - if (typeof(btnData) === 'string') { | ||
148 | - btnData = JSON.parse(btnData) | ||
149 | - } | ||
150 | - | ||
151 | - var button = btnData[i] && btnData[i].width || 0 | ||
152 | - w += button | ||
153 | - arr.push(-w) | ||
154 | - // 动态计算按钮组每个按钮的折叠动画移动距离 | ||
155 | - var distance = arr[i - 1] + value * (arr[i - 1] / position[1].width) | ||
156 | - if (i != 0) { | ||
157 | - ins[i].setStyle({ | ||
158 | - transform: 'translateX(' + distance + 'px)', | ||
159 | - }) | ||
160 | - } | ||
161 | - } | ||
162 | -} | ||
163 | - | ||
164 | -/** | ||
165 | - * 开启状态 | ||
166 | - * @param {Boolean} type | ||
167 | - * @param {Object} ins | ||
168 | - * @param {Object} ownerInstance | ||
169 | - */ | ||
170 | -function openState(type, ins, ownerInstance) { | ||
171 | - var state = ins.getState() | ||
172 | - var position = state.position | ||
173 | - if (state.isopen === undefined) { | ||
174 | - state.isopen = false | ||
175 | - } | ||
176 | - // 只有状态有改变才会通知页面改变状态 | ||
177 | - if (state.isopen !== type) { | ||
178 | - // 通知页面,已经打开 | ||
179 | - ownerInstance.callMethod('change', { | ||
180 | - open: type | ||
181 | - }) | ||
182 | - } | ||
183 | - // 设置打开和移动状态 | ||
184 | - state.isopen = type | ||
185 | - | ||
186 | - | ||
187 | - // 添加动画类 | ||
188 | - ins.addClass('ani'); | ||
189 | - var owner = ownerInstance.selectAllComponents('.button-hock') | ||
190 | - for (var i = 0; i < owner.length; i++) { | ||
191 | - owner[i].addClass('ani'); | ||
192 | - } | ||
193 | - // 设置最终移动位置 | ||
194 | - move(type ? -position[1].width : 0, ins, ownerInstance) | ||
195 | - | ||
196 | -} | ||
197 | - | ||
198 | -module.exports = { | ||
199 | - sizeReady: sizeReady, | ||
200 | - touchstart: touchstart, | ||
201 | - touchmove: touchmove, | ||
202 | - touchend: touchend | ||
203 | -} |
-
请 注册 或 登录 后发表评论