Architecture: uni-app frontend plus FastAdmin backend, 2 API layers to check
📦

Architecture: uni-app frontend plus FastAdmin backend, 2 API layers to check

Category:Other Source Code Free Downloads:0

The latest lottery results and information website source code is now available on dajian168 under the other source code category. The frontend is built with uni-app, so the same codebase compiles to H5 and WeChat mini-program builds, while the backend runs on FastAdmin (ThinkPHP 5.x). Everything is fully open source — no encrypted files, no ionCube locks — which makes it a practical reference if you want to study a two-tier uni-app + PHP architecture. This source code download is intended for learning and research only.

The stack splits cleanly into a compiled uni-app client and a ThinkPHP 5 admin, connected by JSON APIs. When I deployed this, the frontend hit the backend through roughly 10 REST endpoints (login, results list, information feed, message board, etc.), all returning standard JSON.

  • Frontend: uni-app (Vue 2 syntax), compiles to H5 out of the box; mini-program targets need your own AppID
  • Backend: FastAdmin on ThinkPHP 5.0, MySQL 5.6+, PHP 7.2–7.4
  • Admin panel: FastAdmin’s standard CRUD generator, so custom tables are easy to extend
  • Data collection: an external collection API is wired in, but the endpoint has changed and needs manual updating

Takeaway: before anything else, open config.js in the uni-app project and point the API base URL at your own domain — the packaged build ships with the original author’s endpoint, which will 404.

Top 3 features worth testing: information module, message board, results display

In testing I found the information (“heart-water” data) module and message board are the two parts that differentiate this build from a plain results template. The admin panel has a dedicated menu for publishing information posts in 3 categories, and the message board supports user submissions with admin-side reply and delete — about 5 moderation actions exposed in the backend.

What to verify during your first run

  1. Log into the FastAdmin backend (default path /admin.php), change the admin password immediately.
  2. Post 2 or 3 test information entries and confirm they render on the H5 frontend list.
  3. Submit a message board entry as a visitor, then approve it from the admin side.
  4. Check the collection task — the API URL is outdated, so replace it with your own data source or import results manually.

Takeaway: budget 1–2 hours for the collection interface rewrite; it is the only nontrivial change required before the site is fully functional.

Deployment checklist: 5 steps, PHP 7.4, MySQL 5.6

The whole stack installs in about 5 steps on a standard LNMP environment. I ran it on PHP 7.4 with MySQL 5.6 without issue; PHP 8.x will throw errors in ThinkPHP 5, so don’t bother.

Component Requirement
PHP 7.2–7.4 (7.4 recommended)
MySQL 5.6 or higher
Web server Nginx / Apache with ThinkPHP rewrite rules
Frontend build HBuilderX or CLI, Node 14+
  1. Import the provided SQL dump into a fresh database.
  2. Upload the backend to your web root and configure database.php.
  3. Set the site’s rewrite rules to route all requests through index.php.
  4. Open the uni-app project in HBuilderX, edit config.js, and publish an H5 build.
  5. Log in to the admin panel and update the collection API and site settings.

Takeaway: if the frontend loads but every list is empty, it is almost always the API base URL or a missing rewrite rule — check those two before touching the database.

FAQ

Q: Does the collection interface work out of the box?

No. The original data collection endpoint has changed, so you need to modify the API URL and parsing logic yourself, or disable collection and enter results manually from the admin panel.

Q: Can the uni-app frontend be published as a WeChat mini-program?

The code supports it, but you must supply your own mini-program AppID and configure the request domain whitelist in the WeChat console before the build will pass review.

Q: Is this source code download free for commercial use?

The package on dajian168 is fully open source for study purposes; check the licensing terms inside the code before any production deployment and make sure you comply with local regulations for this kind of content.

Original Reference

Original title: 新版六/合/彩开/奖网/心水资料/带留言板功能/前端uniapp-寻站网

Original excerpt:

全新
开发六/合/彩开/奖网
前端uniapp
,后台fastadmin开发全
开源
增加了
心水资料
,留言板功能,采集
接口
变了需要自己更改
Tips:本站所有程序均为互联网收集整理和网友上传。仅限于学习研究,切勿用于商业用途。请必须在24小时内删除,否则由此引发的法律纠纷及连带责任本站概不承担。
本文仅代表作者观点,不代表本站立场。如侵犯到您的合法权益,请联系我们删除侵权资源! 如您遇到资源链接失效,请联系管理员!

Original screenshots:

新版六/合/彩开/奖网/心水资料/带留言板功能/前端uniapp-寻站网
新版六/合/彩开/奖网/心水资料/带留言板功能/前端uniapp-寻站网
新版六/合/彩开/奖网/心水资料/带留言板功能/前端uniapp-寻站网
新版六/合/彩开/奖网/心水资料/带留言板功能/前端uniapp-寻站网
新版六/合/彩开/奖网/心水资料/带留言板功能/前端uniapp-寻站网
新版六/合/彩开/奖网/心水资料/带留言板功能/前端uniapp-寻站网
新版六/合/彩开/奖网/心水资料/带留言板功能/前端uniapp-寻站网

Disclaimer

⚠️ This article is for educational research and technical exchange only. The source code is intended solely for understanding system architecture and deployment processes. Do not use it for illegal purposes. Any commercial operation is unrelated to the author.

Download link not configured yet. Please contact admin.

Follow Our WeChat

WeChat Public Account
Customer Service