更新记录

1.0.0(2026-10-23) 下载此版本

本项目仅开源 uni-app 用户端,适配 H5、微信公众号与微信小程序等。用 HBuilderX 导入本目录即可运行,供学习研究


平台兼容性

uni-app(3.8.7)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
- √ √ - - - √ √ -
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 小红书小程序 快应用-华为 快应用-联盟
√ - - - - - - - - - - -

其他

多语言 暗黑模式 宽屏模式 蒸汽模式
× × √ ×

AI商城

开源说明

本项目仅开源 uni-app 用户端,适配 H5、微信公众号与微信小程序等。用 HBuilderX 导入本目录即可运行,供学习研究。

产品是什么

「AI商城」是一套带 AI 购物顾问的自营电商用户端:首页可与专属顾问对话选品,商店按分类逛货,购物车结算下单,个人中心管理订单与常用工具。

底部有四个主入口:首页、商店、购物车、我的。主色为青绿 #97D424。

能在哪些地方使用

普通用户可在电脑或手机网页里使用,也可在微信里打开 H5 / 公众号使用,并支持打包为 App 或微信小程序。界面与接口已接到演示环境,打开后即可浏览商品与 AI 选品流程。

对接了哪些第三方

下面这些是用户日常能直接感受到的外部服务:

  • 微信支付:下单付款时可走微信支付(需在微信环境,并配置好商户号)。
  • 支付宝:下单付款、部分场景的支付选择。
  • 手机短信验证码:登录时发送验证码(由服务端发送);未注册手机号会自动创建账号。
  • 客服能力:可联系客服(小程序走微信客服入口,H5/App 可进客服页)。
  • 分享与海报:分享邀请链接、生成邀请海报。
  • 语音朗读:AI 回复支持朗读(依赖端侧语音能力)。
  • 手机系统能力:从相册选头像、复制邀请信息等。

用户能做什么

打开软件先看到什么

  • 首页品牌顶栏「智能商城」,可搜索商品。
  • AI 顾问人格卡(如「桃子」):问候语、角色说明、标签,可进商店或直接发起对话。
  • 「爆款抢购」横向商品列表,可进更多列表。
  • 轮播 / 运营 Banner,点进去可跳到对应内容。
  • 快捷提问芯片(如早餐推荐、办公室零食、性价比好物)。
  • 「购物助手」对话区:发消息让 AI 推荐商品,回复可复制、朗读,推荐商品可点进详情购买。
  • 底部输入框常驻,方便随时追问。

逛商品、下单

  • 商店:轮播与顾问信息;精选 / 全部商品;分类筛选与排序;促销条可进爆款列表。
  • 搜索:按关键字搜商品。
  • 商品详情:看图、价格、规格、评论;「AI 购物助手总结」与商品问答;加购、立即购买。
  • 购物车:加购、改数量、结算。
  • 确认订单 / 支付:选收货地址、优惠券后付款;可选微信或支付宝(按当前打开环境显示)。
  • 地址管理:新增、编辑收货地址。

订单与售后

  • 「我的订单」按状态看:待付款、待发货、待收货、待评价、退款/售后。
  • 待付款可继续支付或取消;收货后可评价。
  • 可申请退款等售后流程;可查询物流。

优惠券与常用工具

  • 我的优惠券里查看已领的券。
  • 我的足迹、购物车快捷入口。
  • 「分享好友」:分享邀请链接或海报。
  • 联系客服、系统设置。

账号和设置

  • 手机号 + 短信验证码快捷登录(未注册自动创建账号)。
  • 小程序等环境可走授权登录 / 绑定手机号。
  • 个人中心改头像、改昵称。
  • 设置中心:协议、隐私政策、关于、退出登录等。

体验

演示接口域名:https://aishop.xianmaxiong.com

本地 H5 运行后,在浏览器打开运行地址即可(例如本机局域网地址)。

技术栈

端 技术
用户端 uni-app + Vue 3(uView Plus)

运行

这份代码已经接到线上演示环境,一般不用改配置,用 HBuilderX 打开后直接运行即可。

开始前请准备

  1. 一台电脑(Windows / macOS 均可)。
  2. 下载并安装 HBuilderX:
    打开 https://www.dcloud.io/hbuilderx.html,下载「正式版」并安装。
  3. 建议再装一个 Chrome 浏览器,用来打开 H5。

第一步:拿到文件夹

  1. 如果是压缩包,先解压。
  2. 解压后找到本项目根目录(能看到 pages.json、App.vue、common 等)。
  3. 记住文件夹位置,后面要选中整个目录,不要只打开某一个文件。

第二步:用 HBuilderX 打开整个项目

  1. 打开 HBuilderX。
  2. 点 「文件」→「打开目录」。
  3. 选中本项目根目录,确定。
  4. 左侧出现完整文件树即表示打开正确。

第三步:用浏览器运行

  1. 顶部菜单点 「运行」→「运行到浏览器」→「Chrome」。
  2. 第一次若提示安装浏览器运行插件,按提示安装后再运行一次。
  3. 弹出网页后,看到首页与底部「首页 / 商店 / 购物车 / 我的」,即表示运行成功。
  4. 不要关闭 HBuilderX,关闭后网页可能断开。

常见情况说明

  • 点了运行没反应:确认打开的是整个项目根目录,且目录内有 pages.json。
  • 页面空白或接口失败:检查能否访问 https://aishop.xianmaxiong.com ;演示服务不可用时,用户端也会没数据。
  • 微信支付、支付宝点了没真正收款:需要商家自己的支付账号;开源演示一般只能看到支付流程界面。
  • 短信验证码收不到:依赖服务端与短信通道,界面可点,功能不一定通。
  • AI 对话无回复:依赖演示环境 AI 接口;网络或服务异常时可能只有本地提示。

第一次建议怎么验收

  1. 按第三步在 Chrome 打开。
  2. 能看到首页顾问卡、爆款抢购、Banner、快捷提问、底部四个 Tab。
  3. 点「我的」,能看到登录入口、我的订单、服务与工具。
  4. 点「商店」「购物车」能进入对应页面。
  5. 在首页输入框发一句「帮我挑几款好物」,能看到 AI 回复或加载状态。

做到这里,就说明「这份用户端代码已经在你电脑上跑起来了」。

隐私、权限声明

1. 本插件需要申请的系统权限列表:

无

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

无

许可协议

GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.

  1. Additional Definitions.

    As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License.

    "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.

    An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.

    A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version".

    The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.

    The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.

  2. Exception to Section 3 of the GNU GPL.

    You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.

  3. Conveying Modified Versions.

    If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:

    a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or

    b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.

  4. Object Code Incorporating Material from Library Header Files.

    The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:

    a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.

    b) Accompany the object code with a copy of the GNU GPL and this license document.

  5. Combined Works.

    You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:

    a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.

    b) Accompany the Combined Work with a copy of the GNU GPL and this license document.

    c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.

    d) Do one of the following:

    0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.

    1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.

    e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)

  6. Combined Libraries.

    You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:

    a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.

    b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.

  7. Revised Versions of the GNU Lesser General Public License.

    The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.

    Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.

    If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

暂无用户评论。