This on-demand home service booking platform is a full-stack e-commerce mall system designed for local O2O businesses, including massage therapy, beauty salons, housekeeping, and home repair agencies. Built on a PHP 7.4 backend (ThinkPHP 6 framework), MySQL 5.7 database, and a cross-platform UniApp frontend (Vue.js), this source code download compiles natively into WeChat Mini Programs, Official Account H5 pages, and iOS/Android apps. Unlike older stripped-down versions circulating online, this release includes over 45 functional modules, full technician statistics, in-store and home-visit dual booking modes, e-signature contract integration, and an internal material supplies mall.
The updated backend introduces 4 distinct commission roles and dual material fee calculation rules to solve complex O2O settlement splits.
When I deployed this build from dajian168, the biggest improvement over legacy releases was the granular financial settlement engine. Many basic booking scripts fail because they cannot handle consumable material costs alongside multi-tier referrals. In testing I found a dedicated switch in the admin panel under Service Management that lets you toggle between 2 material cost formulas: deducting material fees before calculating the technician’s percentage, or calculating the technician’s gross cut first and subtracting the material cost afterward.
Actionable Criterion: Before purchasing or deploying any O2O booking code, check the admin sidebar for the “Technician Statistics” menu and verify that the H5 checkout page displays both “Home Service” and “In-Store Service” tabs. If those 2 elements are missing, you are looking at an outdated build that lacks order refund processing and salesman application workflows.
Running this system in production requires a LNMP stack with Redis caching and SSL enabled for real-time LBS map tracking.
| Component | Minimum Requirement | Recommended Production Spec |
|---|---|---|
| Web Server | Nginx 1.18+ | Nginx 1.22 with HTTP/2 & WSS |
| Backend Runtime | PHP 7.3 | PHP 7.4 (with Swoole / Redis ext) |
| Database | MySQL 5.6 | MySQL 5.7+ (InnoDB engine) |
| Frontend Compiler | HBuilderX 3.4+ | HBuilderX 3.8+ (UniApp Vue2/Vue3) |
When I configured the frontend project in HBuilderX, I noticed that location drift happens if you do not configure both the Tencent Map WebService key and the Mini Program location permission strings simultaneously. Follow these 5 steps to get a clean deployment:
.env configuration file./public and enable the standard ThinkPHP URL rewrite rule so API routes resolve properly.putenv, proc_open, and pcntl_signal in your PHP 7.4 configuration to allow asynchronous queue processing for SMS alerts.config/app.js, and compile the build for WeChat Mini Program and H5.This architecture fits multi-city service franchises that need automated ledger splitting and real-time GPS technician dispatching.
Because the system includes an internal material e-commerce mall system module alongside service booking, platform owners can sell uniforms, massage oils, or toolkits directly to registered service providers. It works straight out of the box for 4 specific business models: on-demand massage and SPA therapy, mobile nail and beauty studios, local housekeeping networks, and appliance repair dispatching.
In testing the payment split module, I found a critical compliance detail you must plan for before launch. The split-payment engine supports 2 modes: private account splitting (which binds instantly without review) and corporate account splitting (which requires uploading business licenses to the third-party payment gateway for verification). Always test the service countdown timer and audio recording upload limits on a staging server first; a 60-minute audio file requires adjusting Nginx client_max_body_size to at least 50M to prevent upload timeouts when a session finishes.
Q: How do I verify this is the updated version and not the older stripped-down script?
A: Check 3 specific places after logging in: the backend must have the “Technician Statistics” visual map menu, the user center on the frontend must show the “E-Contract” and “Salesman Application” icons, and the checkout flow must allow switching between home delivery and in-store appointments.
Q: Can I change the commission rate for one specific technician without affecting the rest of the agency?
A: Yes. The platform administrator can assign a fixed custom percentage to any individual technician. If a Regional Agent modifies a technician’s cut from their agent portal, the change enters a pending state and requires platform admin approval before taking effect.
Q: How does the system protect customer and technician phone privacy during an order?
A: The backend integrates with NetEase Yunxin and 7Moor virtual number services. Once configured in the SMS & Voice settings, clicking the call button inside the order detail page routes the call through a temporary masked middle number rather than exposing real mobile numbers.






⚠️ 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.