Browse Source

修改左侧样式

master
liaoxinyu 2 years ago
parent
commit
4099f67549
  1. 4
      config.js
  2. 17
      pages/category/index.vue

4
config.js

@ -12,8 +12,8 @@ module.exports = {
// product env // product env
// apiUrl: "http://10.24.4.14:80/", // apiUrl: "http://10.24.4.14:80/",
// apiUrl: "http://10.24.4.156/", // apiUrl: "http://10.24.4.156/",
apiUrl: "./kk/", // apiUrl: "./kk/",
// apiUrl: "http://192.168.66.219:8081/kk/", apiUrl: "http://192.168.66.219:8081/kk/",
/** /**
* 是否启用商城设置缓存 * 是否启用商城设置缓存

17
pages/category/index.vue

@ -12,8 +12,10 @@
<scroll-view class="cate-left" scroll-y="true"> <scroll-view class="cate-left" scroll-y="true">
<view class="type-nav" :class="{ selected: curIndex == index }" v-for="(item, index) in menus" :key="index" <view class="type-nav" :class="{ selected: curIndex == index }" v-for="(item, index) in menus" :key="index"
@click="handleSelectNav(index)"> @click="handleSelectNav(index)">
<view>
<image class="cate-left-image" :src="'./static/tabbar/recommend-cate.png'"></image> <image class="cate-left-image" :src="'./static/tabbar/recommend-cate.png'"></image>
<text class="cate-left-text">{{ item.name }}</text> <view class="cate-left-text">{{ item.name }}</view>
</view>
</view> </view>
</scroll-view> </scroll-view>
<!-- 右侧 二级分类 --> <!-- 右侧 二级分类 -->
@ -572,12 +574,13 @@
// //
.type-nav { .type-nav {
position: relative; // position: relative;
height: 180rpx; height: 180rpx;
z-index: 10; // z-index: 10;
font-size: 26rpx; font-size: 26rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
text-align: center;
align-items: center; align-items: center;
font-weight: bold; font-weight: bold;
@ -590,15 +593,15 @@
} }
.cate-left-image{ .cate-left-image{
position: absolute; // position: absolute;
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
border-radius: 10rpx; border-radius: 10rpx;
margin-bottom: 20rpx; margin-bottom: 10px;
} }
.cate-left-text{ .cate-left-text{
position: absolute; // position: absolute;
margin-top: 80rpx; // margin-top: 5px;
} }
} }

Loading…
Cancel
Save