uniapp 商城首页CSS代码

这篇博客分享了uni-app框架下商城首页的CSS代码实现,主要关注页面布局设计。内容包括index.vue、api.js(数据接口)、字体文件以及配置文件,虽然CSS复杂到需要复制,但其他部分相对简单。
摘要由CSDN通过智能技术生成

商马商城的首页代码,重点是页面布局,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:
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

youngcave2

等待第一笔打赏

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值