纯静态微信小程序水果商城

首页代码

复制代码
<view class="container">
    <!-- 轮播图 -->
    <view class="swiper-container">
        <swiper class="screen-swiper" indicator-dots="true" circular="true" autoplay="true" interval="3000" duration="500">
            <swiper-item wx:for="{{banners}}" wx:key="id" bindtap="tapBanner" data-index="{{index}}" data-url="{{item.linkUrl}}">
                <image src="{{item.picUrl}}" mode="aspectFit"></image>
            </swiper-item>
        </swiper>
    </view>
    <!-- 菜单 -->
    <view class="index-menu">
        <view class="menu-list" wx:for="{{navigation}}" wx:key="id" bindtap="tapMenu" data-url="{{item.linkUrl}}">
            <image src="{{item.picUrl}}" />
            <view class="text">{{item.title}}</view>
        </view>
    </view>
    <!-- 人气推荐 -->
    <view class="goods-container">
        <view class="goods-title" style="margin-bottom: 30rpx;">
            <view class="line"></view>
            <view class="text">人气推荐</view>
            <view class="line"></view>
        </view>
        <view class="goods-list">
            <view class="list-item" wx:for="{{goodsRecommend}}" wx:key="id">
                <image src="{{item.pic}}" mode="aspectFill"></image>
                <view class="goods-list-title">{{item.name}}</view>
                <view class="goods-list-money">Ұ{{item.minPrice}}</view>
            </view>
        </view>
    </view>
</view>

个人中心代码

复制代码
<view class="container">
    <view class="my-avatar">
        <view class="avatar-wrapper">
            <image wx:if="{{is_login}}" src="{{ avatarUrl }}" mode="aspectFill"/>
        </view>
        <button class="login_btn" wx:if="{{!is_login}}" bindtap="login">请先登录</button>
        <text wx:else>{{nickName}}</text>
    </view> 
	<view class="cu-bar" style="width: 100%;">
		<view class="action">
			<text class="cuIcon-title text-green"></text> 工具
		</view>
	</view>
	<view class="cu-list">
		<view class="cu-item" bindtap="bindtap">
            <image src="/images/my/定位.png" mode="aspectFill"/>
			<text>地址管理</text>
		</view>
		<view class="cu-item" bindtap="bindtap">
            <image src="/images/my/店铺.png" mode="aspectFill"/>
			<text>优惠买单</text>
		</view>
		<view class="cu-item" bindtap="bindtap">
            <image src="/images/my/收藏.png" mode="aspectFill"/>
			<text>收藏记录</text>
		</view>
		<view class="cu-item" bindtap="bindtap">
            <image src="/images/my/拼团.png" mode="aspectFill"/>
			<text>我的拼团</text>
		</view>
		<view class="cu-item" bindtap="bindtap">
            <image src="/images/my/砍价.png" mode="aspectFill"/>
			<text>我的砍价</text>
		</view>
		<view class="cu-item" bindtap="bindtap">
            <image src="/images/my/客服.png" mode="aspectFill"/>
			<text>联系客服</text>
		</view>
	</view>
</view>

私聊获取源码

运行部分截图

相关推荐
中小企业实战军师刘孙亮9 小时前
实体店的小程序转型之路:拥抱新零售的密码-中小企实战运营和营销工作室博客
职场和发展·小程序·创业创新·学习方法·业界资讯·零售·内容运营
说私域10 小时前
基于开源技术体系的品牌赛道力重构:AI智能名片与S2B2C商城小程序源码驱动的品类创新机制研究
人工智能·小程序·重构·开源·零售
王哈哈的学习笔记12 小时前
uniapp小程序使用echarts
前端·小程序·uni-app
前端太佬15 小时前
小程序登录与授权功能全解析:从原理到设计的实战指南 (2025年最新规范实践版)
前端·微信·微信小程序
说私域17 小时前
颠覆传统微商!开源AI智能名片链动2+1模式S2B2C商城小程序:重构社交电商的“降维打击”革命
人工智能·小程序·开源·零售
ai大佬17 小时前
我是如何用AI编程制作一个AI表情包生成的小程序
人工智能·小程序·ai编程·api中转·apikey
2401_8906658618 小时前
免费送源码:Java+ssm+HTML 三分糖——甜品店网站设计与实现 计算机毕业设计原创定制
java·python·微信小程序·html·php·课程设计·android-studio
Maitians18 小时前
微信小程序 - 根据经纬度打开导航
微信小程序·小程序
前端太佬19 小时前
微信小程序支付全流程实战指南(Node.js后端篇)
前端·javascript·微信小程序
xuanjiong20 小时前
微信小程序,基于uni-app的轮播图制作,调用文件中图片
微信小程序·小程序·uni-app