guhongwei před 2 roky
rodič
revize
c20cbda2f1
11 změnil soubory, kde provedl 21 přidání a 9 odebrání
  1. 21 9
      components/mobile-frame/index.vue
  2. binární
      static/market.png
  3. binární
      static/market_1.png
  4. binární
      static/my.png
  5. binární
      static/my_1.png
  6. binární
      static/shouye.png
  7. binární
      static/shouye_1.png
  8. binární
      static/store.png
  9. binární
      static/store_1.png
  10. binární
      static/week.png
  11. binární
      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 {

binární
static/market.png


binární
static/market_1.png


binární
static/my.png


binární
static/my_1.png


binární
static/shouye.png


binární
static/shouye_1.png


binární
static/store.png


binární
static/store_1.png


binární
static/week.png


binární
static/week_1.png