| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | <!-- | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |  * @Descripttion: | 
					
						
							|  |  |  |  * @version: | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  * @Author: kBank | 
					
						
							|  |  |  |  * @Date: 2022-11-21 15:11:22 | 
					
						
							|  |  |  | --> | 
					
						
							|  |  |  | <template> | 
					
						
							|  |  |  |   <view> | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  |     <!-- v-if="user.skin == 0" --> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |     <u-tabbar | 
					
						
							|  |  |  |       v-if="systemSkin === 0" | 
					
						
							|  |  |  |       :value="current ? current : 0" | 
					
						
							|  |  |  |       @change="tabbarChange" | 
					
						
							|  |  |  |       :fixed="true" | 
					
						
							|  |  |  |       :placeholder="false" | 
					
						
							|  |  |  |       :border="false" | 
					
						
							|  |  |  |       :safeAreaInsetBottom="true" | 
					
						
							|  |  |  |       inactiveColor="#666666" | 
					
						
							|  |  |  |       activeColor="#333333" | 
					
						
							|  |  |  |     > | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |       <u-tabbar-item :text="'首页'"> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/one1.png" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/one2.png" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |       <u-tabbar-item text="商城"> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/tab/mall-active.svg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/tab/mall.svg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |       <u-tabbar-item :text="'会员专区'"> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/five1.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/five2.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  |       <u-tabbar-item :text="'购物车'" :badge="shopCarLength"> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/three1.png" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/three2.png" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |       <u-tabbar-item :text="'我的'"> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/fore1.png" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/fore2.png" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							|  |  |  |     </u-tabbar> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |     <u-tabbar | 
					
						
							|  |  |  |       :value="current ? current : 0" | 
					
						
							|  |  |  |       class="greenEd" | 
					
						
							|  |  |  |       v-if="systemSkin === 2" | 
					
						
							|  |  |  |       @change="tabbarChange" | 
					
						
							|  |  |  |       :fixed="true" | 
					
						
							|  |  |  |       :placeholder="false" | 
					
						
							|  |  |  |       :border="false" | 
					
						
							|  |  |  |       :safeAreaInsetBottom="true" | 
					
						
							|  |  |  |       inactiveColor="#666666" | 
					
						
							|  |  |  |       activeColor="#333333" | 
					
						
							|  |  |  |     > | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |       <u-tabbar-item :text="'首页'"> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon1" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/one11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon1" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/one11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |       <u-tabbar-item text="商城"> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon1" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/two11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon1" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/two11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |       <u-tabbar-item :text="'会员专区'"> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon2" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/five11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon2" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/five11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  |       <u-tabbar-item :text="'购物车'" :badge="shopCarLength"> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon1" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/three11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon1" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/three11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |       <u-tabbar-item :text="'我的'"> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon1" | 
					
						
							|  |  |  |           slot="active-icon" | 
					
						
							|  |  |  |           src="@/static/images/fore11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							|  |  |  |         <image | 
					
						
							|  |  |  |           class="u-page__item__slot-icon1" | 
					
						
							|  |  |  |           slot="inactive-icon" | 
					
						
							|  |  |  |           src="@/static/images/fore11.jpg" | 
					
						
							|  |  |  |         ></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </u-tabbar-item> | 
					
						
							| 
									
										
										
										
											2025-04-02 23:13:16 +08:00
										 |  |  |     </u-tabbar> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |   </view> | 
					
						
							|  |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  | import { mapGetters } from 'vuex' | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | export default { | 
					
						
							|  |  |  |   props: { | 
					
						
							|  |  |  |     current: Number, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   data() { | 
					
						
							|  |  |  |     return { | 
					
						
							|  |  |  |       list: [ | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           text: '首页', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           path: 'pages/index/index', | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |           text: '商城', | 
					
						
							|  |  |  |           path: 'pages/mall/index', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           text: '会员专区', | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |           path: 'pages/specialArea/memberList', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           text: '购物车', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           path: 'pages/shoppingCar/index', | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |           text: '我的', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           path: 'pages/mine/index', | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |       ], | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   computed: { | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  |     ...mapGetters(['shopCarLength', 'user']), | 
					
						
							| 
									
										
										
										
											2025-04-02 23:13:16 +08:00
										 |  |  |     systemSkin() { | 
					
						
							|  |  |  |       return this.user.skin || 0 | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |   }, | 
					
						
							|  |  |  |   methods: { | 
					
						
							|  |  |  |     tabbarChange(e) { | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |       console.log(this.list[e].path, '....e?') | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       uni.switchTab({ | 
					
						
							|  |  |  |         url: '/' + this.list[e].path, | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style lang="scss"> | 
					
						
							|  |  |  | .u-page__item__slot-icon { | 
					
						
							|  |  |  |   width: 20px; | 
					
						
							|  |  |  |   height: 20px; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | .u-page__item__slot-icon1 { | 
					
						
							|  |  |  |   width: 35px; | 
					
						
							|  |  |  |   height: 35px; | 
					
						
							|  |  |  |   // margin-bottom: 20px
 | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | .u-page__item__slot-icon2 { | 
					
						
							|  |  |  |   width: 35px; | 
					
						
							|  |  |  |   height: 35px; | 
					
						
							|  |  |  |   // margin-bottom: 20px
 | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | .greenEd { | 
					
						
							|  |  |  |   ::v-deep .u-tabbar__content { | 
					
						
							|  |  |  |     background: linear-gradient(to bottom, #fff, #b6fdda); | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   ::v-deep .u-tabbar__content__item-wrapper { | 
					
						
							| 
									
										
										
										
											2025-06-03 11:47:06 +08:00
										 |  |  |     height: 80px; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2025-04-02 23:10:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   ::v-deep .u-tabbar-item { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     // margin-bottom: 30px;
 | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | </style> |