guhongwei 2 年之前
父節點
當前提交
c20cbda2f1
共有 11 個文件被更改,包括 21 次插入9 次删除
  1. 21 9
      components/mobile-frame/index.vue
  2. 二進制
      static/market.png
  3. 二進制
      static/market_1.png
  4. 二進制
      static/my.png
  5. 二進制
      static/my_1.png
  6. 二進制
      static/shouye.png
  7. 二進制
      static/shouye_1.png
  8. 二進制
      static/store.png
  9. 二進制
      static/store_1.png
  10. 二進制
      static/week.png
  11. 二進制
      static/week_1.png

+ 21 - 9
components/mobile-frame/index.vue

@@ -9,7 +9,8 @@
 		</view>
 		<view class="foot" v-if="frameStyle&&frameStyle.useBar||false">
 			<view class="list" v-for="(item,index) in barList" :key="index" @tap="toPath(index,item)">
-				<image class="image" src="../../static/logo.png" mode=""></image>
+				<image class="image" :src="item.normal" mode="" v-if="active!=index"></image>
+				<image class="image" :src="item.active" mode="" v-else></image>
 				<view class="name" :style="{color:active==index?frameStyle.barActive||'#FB1438':''}">{{item.name}}</view>
 			</view>
 		</view>
@@ -28,23 +29,33 @@
 				active: 0,
 				barList: [{
 						name: '首页',
-						route: 'pages/home/index'
+						route: 'pages/home/index',
+						normal: require('@/static/shouye.png'),
+						active: require('@/static/shouye_1.png')
 					},
 					{
 						name: '微店',
-						route: 'pages/store/index'
+						route: 'pages/store/index',
+						normal: require('@/static/store.png'),
+						active: require('@/static/store_1.png')
 					},
 					{
 						name: '周边',
-						route: 'pages/week/index'
+						route: 'pages/week/index',
+						normal: require('@/static/week.png'),
+						active: require('@/static/week_1.png')
 					},
 					{
 						name: '购物车',
-						route: 'pages/market/index'
+						route: 'pages/market/index',
+						normal: require('@/static/market.png'),
+						active: require('@/static/market_1.png')
 					},
 					{
 						name: '我的',
-						route: 'pages/my/index'
+						route: 'pages/my/index',
+						normal: require('@/static/my.png'),
+						active: require('@/static/my_1.png')
 					},
 				]
 			};
@@ -81,18 +92,19 @@
 		.foot {
 			height: 8vh;
 			overflow: hidden;
-			background-color: var(--footColor);
+			background-color: var(--fffColor);
 			display: flex;
 			flex-direction: row;
 			justify-content: space-around;
+			border-top: 1px solid var(--f1Color);
 
 			.list {
-				padding: 2vw 0;
+				padding: 1vw 0;
 				text-align: center;
 
 				.image {
 					width: 7vw;
-					height: 5vw;
+					height: 6vw;
 				}
 
 				.name {

二進制
static/market.png


二進制
static/market_1.png


二進制
static/my.png


二進制
static/my_1.png


二進制
static/shouye.png


二進制
static/shouye_1.png


二進制
static/store.png


二進制
static/store_1.png


二進制
static/week.png


二進制
static/week_1.png