商马商城的首页代码,重点是页面布局,CSS代码
效果是这样子的,只有一页,只写了CSS,跳转都还没写
文件目录
index.vue
<template>
<view class="home">
<swiper>
<swiper-item v-for="item in swipers" :key="item.id">
<image :src="item.img"></image>
</swiper-item>
</swiper>
<!-- 放置整个导航模块-->
<view class="nav">
<!-- 单个小模块 复制四份 -->
<view class="nav_item">
<!-- 完全按照 -->
<view class="iconfont icon-ziyuan"></view>
<text>资源代码</text>
</view>
<view class="nav_item">
<view class="iconfont icon-guanyuwomen"></view>
<text>关于我们</text>
</view>
<view class="nav_item">
<view class="iconfont icon-tupian"></view>
<text>模板图片</text>
</view>
<view class="nav_item">
<view class="iconfont icon-shipin"></view>
<text>教学视频</text>
</view>
</view>
<view class="hot_goods">
<view class="tit">推荐商品</view>
<!-- 商品列表 -->
<view class="goods_list">
<!-- 单个商品 -->
<view class="goods_item">
<image src="https://img-blog.csdnimg.cn/img_convert/2d97212bbe73a31880ae9386db1de6c0.png"></image>
<view class="price">
<text>¥2199</text>
<text>¥2499</text>
</view>
<view class="name">
华为(HUAWEI) 荣耀6 Plus 16G 5G版
</view>
</view>
<view class="goods_item">
<image src="https: