更新记录

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

本项目仅开源 uni-app 用户端,基于 Vue3,适配 H5 网页与微信公众号。用 HBuilderX 导入本目录即可运行,供学习研究。


平台兼容性

uni-app(3.8.7)

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

其他

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

算命用户端

开源说明

本项目仅开源 uni-app 用户端,基于 Vue3,适配 H5 网页与微信公众号。用 HBuilderX 导入本目录即可运行,供学习研究。

产品是什么

面向个人用户的命理测算应用,主色为暖金米色系。底部两个主入口:首页、我的。

首页可进入八字排盘、姻缘配对、流年运势、手相解析等热门测算,以及紫微斗数、手相面相、合婚测算、周公解梦、星盘测算、五行测算、起名改名、风水布局等服务;填写生辰信息后可查看测算结果与订单。

游客能做什么

首页

  • 热门测算:八字排盘、姻缘配对、流年运势、手相解析。
  • 服务卡片:紫微斗数、手相面相、合婚测算、周公解梦、星盘测算、五行测算、起名改名、风水布局。
  • 点任意入口进入「确认信息」页,填写后开始测算。

开始测算

  • 填写姓名、性别、出生日期、出生时辰、出生地点。
  • 点「开始测算」进入结果页;页面提示信息仅供测算使用。

测算结果

  • 可查看文字报告与年度运势等内容(如八字、五行、性格/财运/感情等维度)。
  • 支持按结果页内的标签切换查看。

我的

  • 展示头像、昵称与生辰信息。
  • 菜单入口:测算订单、联系客服、意见反馈、关于我们、系统设置。

测算订单

  • 按「全部订单 / 已完成测算 / 待解锁报告」筛选。
  • 可查看报告、再次测算、解锁报告、保存图片、删除订单等(以页面按钮为准)。

客服、反馈与设置

  • 联系客服、提交意见反馈。
  • 关于我们:品牌介绍与版本号。
  • 系统设置:消息通知、隐私设置、清除缓存、关于我们、当前版本、退出登录。

体验

本地 H5 开发地址示例:http://192.168.0.110:5174/(以你本机实际运行地址为准)。

产品展示图见根目录 产品展示图.png。

技术栈

端 技术
用户端 uni-app + Vue3 + uview-plus

运行

开始前请准备

  1. 一台 Windows 或 macOS 电脑。
  2. 下载并安装 HBuilderX:打开 https://www.dcloud.io/hbuilderx.html,下载「正式版」并安装。
  3. 建议使用 Chrome 浏览器打开运行后的页面。

第一步:拿到文件夹

  1. 若是压缩包,先解压。
  2. 找到含有 pages.json、App.vue、common 的项目根目录(本仓库即 suanming-user)。
  3. 记住该文件夹路径,后面要选中整个目录打开。

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

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

第三步:用浏览器运行

  1. 顶部菜单点 「运行」→「运行到浏览器」→「Chrome」。
  2. 首次可能提示安装浏览器运行插件,按提示安装后再运行一次。
  3. 浏览器出现首页「热门测算」和底部「首页 / 我的」,即运行成功。
  4. 不要关闭 HBuilderX,关闭后页面可能断开。

常见情况说明

  • 点了运行没反应:确认打开的是整个项目根目录,不是某个单独页面文件。
  • 浏览器打开了但一直转圈:等十几秒;仍不行就关掉网页再重新运行。
  • 接口请求失败:common/config.js 中的接口地址需指向可用服务端;学习浏览页面时可先忽略接口报错。
  • 客服、短信等依赖服务端的能力:界面可点,功能是否可用取决于后端与第三方配置。

第一次建议怎么验收

  1. 按第三步在 Chrome 打开。
  2. 首页能看到「热门测算」和多个服务入口,底部有「首页 / 我的」。
  3. 点「我的」,能看到资料区和菜单列表。
  4. 点某个测算入口,能进入确认信息页。

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

隐私、权限声明

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.

暂无用户评论。