| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | <!-- | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |  * @Descripttion: | 
					
						
							|  |  |  |  * @version: | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  * @Author: kBank | 
					
						
							|  |  |  |  * @Date: 2022-11-21 15:11:22 | 
					
						
							|  |  |  | --> | 
					
						
							|  |  |  | <template> | 
					
						
							|  |  |  |   <view class="content"> | 
					
						
							|  |  |  |     <view class="goods-sort"> | 
					
						
							|  |  |  |       <view class="goods-flexs"> | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |         <view | 
					
						
							| 
									
										
										
										
											2025-04-25 18:07:27 +08:00
										 |  |  |           class="goods-view" | 
					
						
							|  |  |  |           @click="navTap(item)" | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |           v-for="item in goodsList.recommendSpecialAreaList" | 
					
						
							| 
									
										
										
										
											2025-04-25 18:07:27 +08:00
										 |  |  |           :key="item.pkWares" | 
					
						
							|  |  |  |         > | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           <view class="bg-color"></view> | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |           <area-product-list | 
					
						
							|  |  |  |             v-if="item.waresList && item.waresList.length > 0" | 
					
						
							|  |  |  |             :list="item.waresList" | 
					
						
							|  |  |  |             :title="item.specialAreaName" | 
					
						
							|  |  |  |           ></area-product-list> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         </view> | 
					
						
							|  |  |  |       </view> | 
					
						
							|  |  |  |     </view> | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |     <cl-tabbar :current="1"></cl-tabbar> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |   </view> | 
					
						
							|  |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | import * as api from '@/config/goods' | 
					
						
							| 
									
										
										
										
											2025-04-27 14:05:28 +08:00
										 |  |  | import { getAreaGoods } from '@/config/special-area' | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | import * as apis from '@/config/index.js' | 
					
						
							|  |  |  | import clTabbar from '@/components/cl-tabbar.vue' | 
					
						
							|  |  |  | import * as ban from '@/config/balance.js' | 
					
						
							| 
									
										
										
										
											2025-04-25 18:07:27 +08:00
										 |  |  | import areaProductList from '@/components/area-product-list/index.vue' | 
					
						
							| 
									
										
										
										
											2025-07-25 16:00:11 +08:00
										 |  |  | import RaisedTabbar from '@/components/raised-tabbar.vue' | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | export default { | 
					
						
							|  |  |  |   components: { | 
					
						
							| 
									
										
										
										
											2025-07-25 16:00:11 +08:00
										 |  |  |     'cl-tabbar': RaisedTabbar, | 
					
						
							| 
									
										
										
										
											2025-04-25 18:07:27 +08:00
										 |  |  |     'area-product-list': areaProductList, | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |   }, | 
					
						
							|  |  |  |   data() { | 
					
						
							|  |  |  |     return { | 
					
						
							|  |  |  |       user: '', | 
					
						
							|  |  |  |       goodsList: [], | 
					
						
							|  |  |  |       specialImg: require('@/static/images/two2.jpg'), | 
					
						
							|  |  |  |       zoneList: [ | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '注册专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 1, | 
					
						
							|  |  |  |           name: 'regiest', | 
					
						
							|  |  |  |           children: [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '自营专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 1, | 
					
						
							|  |  |  |               name: 'regiestArea', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-25 09:28:54 +08:00
										 |  |  |               label: '注册专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 24, | 
					
						
							|  |  |  |               name: 'ezLearnReg', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '升级专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 2, | 
					
						
							|  |  |  |           name: 'upgrade', | 
					
						
							|  |  |  |           children: [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '自营专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 2, | 
					
						
							|  |  |  |               name: 'upgradeArea', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-25 09:28:54 +08:00
										 |  |  |               label: '升级专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 25, | 
					
						
							|  |  |  |               name: 'ezLearnUp', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '海粉专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 27, | 
					
						
							|  |  |  |               name: 'haiFunUpd', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-08-05 17:28:19 +08:00
										 |  |  |         { | 
					
						
							|  |  |  |           label: '秒杀专区', | 
					
						
							|  |  |  |           value: 14, | 
					
						
							|  |  |  |           name: 'live', | 
					
						
							|  |  |  |           isShow: true, | 
					
						
							|  |  |  |           children: [], | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '复购专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 3, | 
					
						
							|  |  |  |           name: 'repurchase', | 
					
						
							|  |  |  |           children: [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '自营专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 3, | 
					
						
							|  |  |  |               name: 'self', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-25 09:28:54 +08:00
										 |  |  |               label: '乐学甄选', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 26, | 
					
						
							|  |  |  |               name: 'ezLearnRep', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '免费注册', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 21, | 
					
						
							|  |  |  |               name: 'haiFans', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '复购合作', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 22, | 
					
						
							|  |  |  |               name: 'cooperation', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-08-06 11:59:03 +08:00
										 |  |  |               label: '秒杀专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 14, | 
					
						
							|  |  |  |               name: 'live', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '工具流', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 12, | 
					
						
							|  |  |  |               name: 'gongju', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '福利专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 13, | 
					
						
							|  |  |  |           children: [], | 
					
						
							|  |  |  |           name: 'welfare', | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '积分专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 11, | 
					
						
							|  |  |  |           children: [], | 
					
						
							|  |  |  |           name: 'integral', | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '重消专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 10, | 
					
						
							|  |  |  |           children: [], | 
					
						
							|  |  |  |           name: 'rescission', | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |           label: '专供专区', | 
					
						
							|  |  |  |           value: 31, | 
					
						
							|  |  |  |           children: [], | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |           name: 'wolesaleArea', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |           label: '续约专区', | 
					
						
							|  |  |  |           value: 30, | 
					
						
							|  |  |  |           children: [], | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |           name: 'renewalArea', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '创客空间专区', | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |           value: 28, | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           children: [], | 
					
						
							|  |  |  |           isShow: true, | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |           name: 'makerArea', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '架构管理', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 6, | 
					
						
							|  |  |  |           name: 'frame', | 
					
						
							|  |  |  |           children: [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '安置架构', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 6, | 
					
						
							|  |  |  |               name: 'architecture', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '推荐架构', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 7, | 
					
						
							|  |  |  |               name: 'recommend', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '分享专区', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 7, | 
					
						
							|  |  |  |           name: 'share', | 
					
						
							|  |  |  |           children: [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '海粉分享', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 7, | 
					
						
							|  |  |  |               name: 'hiFans', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '免费注册', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 21, | 
					
						
							|  |  |  |               name: 'haiFans', | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           label: '创客礼包', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           value: 18, | 
					
						
							|  |  |  |           isShow: true, | 
					
						
							|  |  |  |           children: [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '创客礼包', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 18, | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |               children: [], | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |               label: '赋能礼包', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               value: 19, | 
					
						
							|  |  |  |               isShow: true, | 
					
						
							|  |  |  |               children: [], | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |       ], | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   onLoad() { | 
					
						
							|  |  |  |     // this.getMenuList()
 | 
					
						
							|  |  |  |     this.getGoodsInfo() | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   onShow() { | 
					
						
							|  |  |  |     this.user = uni.getStorageSync('User') | 
					
						
							|  |  |  |     // user.registerShare
 | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   methods: { | 
					
						
							|  |  |  |     goUrl() { | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |       ban.agreementName().then(res => { | 
					
						
							|  |  |  |         if (res.data == 0) { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           uni.navigateTo({ | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |             url: | 
					
						
							|  |  |  |               '/pages/specialArea/list?label=续约专区' + | 
					
						
							|  |  |  |               '&specialArea=30' + | 
					
						
							|  |  |  |               '&children=[]', | 
					
						
							|  |  |  |           }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         } else { | 
					
						
							|  |  |  |           uni.showModal({ | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |             title: '提示', | 
					
						
							|  |  |  |             content: '请先进行实名认证', | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |             success: res => { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               if (res.confirm) { | 
					
						
							|  |  |  |                 uni.navigateTo({ | 
					
						
							|  |  |  |                   url: '/pages/selfService/realName/realName', | 
					
						
							|  |  |  |                 }) | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |           }) | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     navTap(item) { | 
					
						
							|  |  |  |       if (item.isShare) { | 
					
						
							|  |  |  |         uni.navigateTo({ | 
					
						
							|  |  |  |           url: '/pages/specialArea/share?specialArea=21', | 
					
						
							|  |  |  |         }) | 
					
						
							|  |  |  |         return false | 
					
						
							|  |  |  |       } else { | 
					
						
							|  |  |  |         let tapx = -1 | 
					
						
							|  |  |  |         this.zoneList.forEach((items, index) => { | 
					
						
							|  |  |  |           if (items.value == item.specialArea) { | 
					
						
							|  |  |  |             tapx = index | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }) | 
					
						
							|  |  |  |         if (tapx == -1) { | 
					
						
							|  |  |  |           this.zoneList.forEach((items, index) => { | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |             items.children.forEach(ctem => { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               if (ctem.value == item.specialArea) { | 
					
						
							|  |  |  |                 if (item.specialArea == 21) { | 
					
						
							|  |  |  |                   uni.navigateTo({ | 
					
						
							|  |  |  |                     url: | 
					
						
							|  |  |  |                       '/pages/specialArea/haIndex?label=' + | 
					
						
							|  |  |  |                       item.specialAreaName + | 
					
						
							|  |  |  |                       '&specialArea=21', | 
					
						
							|  |  |  |                   }) | 
					
						
							|  |  |  |                 } else { | 
					
						
							|  |  |  |                   uni.navigateTo({ | 
					
						
							|  |  |  |                     url: | 
					
						
							|  |  |  |                       '/pages/specialArea/list?label=' + | 
					
						
							|  |  |  |                       items.label + | 
					
						
							|  |  |  |                       '&specialArea=' + | 
					
						
							|  |  |  |                       items.value + | 
					
						
							|  |  |  |                       '&childArea=' + | 
					
						
							|  |  |  |                       item.specialArea + | 
					
						
							|  |  |  |                       '&children=' + | 
					
						
							|  |  |  |                       JSON.stringify(items.children), | 
					
						
							|  |  |  |                   }) | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             }) | 
					
						
							|  |  |  |           }) | 
					
						
							|  |  |  |         } else { | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |           if (item.specialArea == 30) { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |             this.goUrl() | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |           } else { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |             uni.navigateTo({ | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |               url: | 
					
						
							|  |  |  |                 '/pages/specialArea/list?label=' + | 
					
						
							|  |  |  |                 item.specialAreaName + | 
					
						
							|  |  |  |                 '&specialArea=' + | 
					
						
							|  |  |  |                 item.specialArea + | 
					
						
							|  |  |  |                 '&children=' + | 
					
						
							|  |  |  |                 JSON.stringify(this.zoneList[tapx].children), | 
					
						
							|  |  |  |             }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     getGoodsInfo() { | 
					
						
							|  |  |  |       let userInfo = uni.getStorageSync('User') | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |       getAreaGoods().then(res => { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         this.goodsList = res.data | 
					
						
							|  |  |  |         this.$forceUpdate() | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     getMenuList() { | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |       api.menuList().then(res => { | 
					
						
							|  |  |  |         res.data.forEach(item => { | 
					
						
							|  |  |  |           this.zoneList.forEach(ctem => { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |             if (ctem.name == item.menuKey) { | 
					
						
							|  |  |  |               ctem.isShow = true | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             if (ctem.children.length > 0) { | 
					
						
							| 
									
										
										
										
											2025-07-22 16:07:00 +08:00
										 |  |  |               ctem.children.forEach(stem => { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |                 if (stem.name == item.menuKey) { | 
					
						
							|  |  |  |                   stem.isShow = true | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               }) | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           }) | 
					
						
							|  |  |  |         }) | 
					
						
							|  |  |  |         this.$forceUpdate() | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     goGoodList(item) { | 
					
						
							|  |  |  |       uni.navigateTo({ | 
					
						
							|  |  |  |         url: | 
					
						
							|  |  |  |           '/pages/specialArea/list?specialArea=' + | 
					
						
							|  |  |  |           item.value + | 
					
						
							|  |  |  |           '&label=' + | 
					
						
							|  |  |  |           item.label + | 
					
						
							|  |  |  |           '&children=' + | 
					
						
							|  |  |  |           JSON.stringify(item.children), | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style lang="scss" scoped> | 
					
						
							|  |  |  | .content { | 
					
						
							|  |  |  |   background: #f2f2f2; | 
					
						
							|  |  |  |   // padding: 0 20rpx;
 | 
					
						
							|  |  |  |   min-height: 94vh; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .kuang { | 
					
						
							|  |  |  |   padding-top: 28rpx; | 
					
						
							|  |  |  |   display: flex; | 
					
						
							|  |  |  |   flex-wrap: wrap; | 
					
						
							|  |  |  |   justify-content: space-between; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .kuang_i { | 
					
						
							|  |  |  |   background: #ffffff; | 
					
						
							|  |  |  |   border-radius: 20px; | 
					
						
							|  |  |  |   padding: 46rpx 23rpx; | 
					
						
							|  |  |  |   margin-bottom: 25rpx; | 
					
						
							|  |  |  |   width: 42%; | 
					
						
							|  |  |  |   display: flex; | 
					
						
							|  |  |  |   align-items: center; | 
					
						
							|  |  |  |   justify-content: space-between; | 
					
						
							|  |  |  |   img { | 
					
						
							|  |  |  |     width: 55rpx; | 
					
						
							|  |  |  |     height: 55rpx; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .goods-sort { | 
					
						
							|  |  |  |   padding-bottom: 130rpx; | 
					
						
							|  |  |  |   .goods-flexs { | 
					
						
							| 
									
										
										
										
											2025-04-27 10:59:43 +08:00
										 |  |  |     padding: 30rpx 20rpx 20rpx; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     position: relative; | 
					
						
							|  |  |  |     .bg-color { | 
					
						
							| 
									
										
										
										
											2025-04-25 18:07:27 +08:00
										 |  |  |       width: 100%; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       background: linear-gradient( | 
					
						
							|  |  |  |         -180deg, | 
					
						
							|  |  |  |         rgba(255, 226, 226, 0.85) 0%, | 
					
						
							|  |  |  |         rgba(254, 240, 229, 0.45) 38% | 
					
						
							|  |  |  |       ); | 
					
						
							|  |  |  |       border-radius: 15rpx 15rpx 0 0; | 
					
						
							|  |  |  |       position: absolute; | 
					
						
							|  |  |  |       top: 0; | 
					
						
							|  |  |  |       left: 0rpx; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     .goods-view { | 
					
						
							|  |  |  |       position: relative; | 
					
						
							|  |  |  |       background: #ffffff; | 
					
						
							|  |  |  |       border-radius: 15rpx; | 
					
						
							|  |  |  |       margin-bottom: 20rpx; | 
					
						
							|  |  |  |       .goods-top { | 
					
						
							|  |  |  |         z-index: 1; | 
					
						
							|  |  |  |         position: relative; | 
					
						
							|  |  |  |         display: flex; | 
					
						
							|  |  |  |         .title { | 
					
						
							|  |  |  |           color: #333; | 
					
						
							|  |  |  |           font-size: 32rpx; | 
					
						
							|  |  |  |           font-weight: bold; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         .lables { | 
					
						
							|  |  |  |           height: 28rpx; | 
					
						
							|  |  |  |           background: #f82c1a; | 
					
						
							|  |  |  |           border-radius: 10rpx; | 
					
						
							|  |  |  |           line-height: 24rpx; | 
					
						
							|  |  |  |           font-size: 22rpx; | 
					
						
							|  |  |  |           padding: 5rpx 15rpx; | 
					
						
							|  |  |  |           color: #fff; | 
					
						
							|  |  |  |           max-width: 100rpx; | 
					
						
							|  |  |  |           margin: 5rpx 0 0 10rpx; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     .lefts { | 
					
						
							|  |  |  |       margin-left: 15rpx; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   .goods-cen { | 
					
						
							|  |  |  |     display: flex; | 
					
						
							|  |  |  |     margin-top: 20rpx; | 
					
						
							|  |  |  |     justify-content: space-between; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   .goods-list { | 
					
						
							|  |  |  |     // display: flex;
 | 
					
						
							|  |  |  |     margin-right: 20rpx; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   .goods-content { | 
					
						
							|  |  |  |     width: 140rpx; | 
					
						
							|  |  |  |     text-align: center; | 
					
						
							|  |  |  |     .goods { | 
					
						
							|  |  |  |       image { | 
					
						
							|  |  |  |         width: 140rpx; | 
					
						
							|  |  |  |         height: 140rpx; | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   .price { | 
					
						
							|  |  |  |     height: 40rpx; | 
					
						
							|  |  |  |     line-height: 40rpx; | 
					
						
							|  |  |  |     background: #fde9e9; | 
					
						
							|  |  |  |     border-radius: 14rpx; | 
					
						
							|  |  |  |     color: #e7141a; | 
					
						
							|  |  |  |     font-size: 22rpx; | 
					
						
							|  |  |  |     text-align: center; | 
					
						
							|  |  |  |     width: max-content; | 
					
						
							|  |  |  |     padding: 0 10rpx; | 
					
						
							|  |  |  |     margin: 0 auto; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | </style> |