This mining investment trading system from dajian168 is built with a separated frontend architecture: a standalone Vue PC client and a UniApp mobile client, both supporting multiple languages out of the box. When I first reviewed the codebase, I noticed it goes beyond typical 微盘理财 mining scripts by integrating a real-time K-line chart module that behaves like a proper exchange—prices tick live, not on page refresh. The source code download package includes pledge lock-up, global dividend distribution, daily check-in rewards, and a platform token market trading interface with WebSocket price updates.
What sets this apart from generic mining templates is the dual-client structure. The PC version runs as a separate Vue SPA, while the mobile side uses UniApp for cross-platform compilation. During deployment testing, I found the two clients share the same PHP backend API but maintain independent build pipelines, which means you can update the mobile UI without touching the desktop version. The trading module uses a custom K-line rendering library that updates candlesticks every 3 seconds via WebSocket, giving users the same visual feedback as major exchanges.
The platform token trading section runs on a WebSocket server that pushes price updates at 3-second intervals, avoiding the sluggish polling pattern seen in older 微盘理财 scripts. When I examined the backend code, I found the trading engine uses Redis to cache order book snapshots and Swoole to handle WebSocket connections. The K-line chart library is a customized version of ECharts with volume overlays and depth graphs. One thing to verify before going live: the Swoole extension must be installed on your PHP environment, and you need to open port 9502 for WebSocket traffic (check your firewall rules).
| Module | Technology | Update Frequency |
|---|---|---|
| K-Line Chart | ECharts + WebSocket | 3 seconds |
| Order Book | Redis Cache | Real-time |
| Price Feed | Swoole Push | Instant |
The admin panel includes a trading pair management section where you can set price fluctuation limits (e.g., ±10% daily cap) and minimum order amounts. In testing, I found the system automatically halts trading if Redis goes down, preventing order loss. One pitfall: if you enable multiple trading pairs, make sure your MySQL indexes cover the trading_pair + created_at columns, or the order history page will lag with over 10,000 records.
The pledge module supports three lock-up periods: 30 days, 90 days, and 180 days, each with a different APY rate you define in the admin dashboard. When users pledge tokens, the system creates a database record with a release timestamp and calculates interest daily using a cron job. During my deployment, I discovered the dividend distribution logic runs at midnight UTC—you need to set up a Linux cron task that hits /api/cron/dividend every 24 hours. The global dividend pool pulls from a configurable percentage of platform trading fees (default 20%) and distributes proportionally to all active pledge accounts.
/app/cron/dividend.php for SQL query performanceOne thing I found useful: the admin panel has a dividend history table that shows daily pool size and distribution records per user. Before launch, run a test with 100 dummy accounts to make sure the dividend calculation doesn’t time out. If you have over 5,000 users, consider adding a last_dividend_date index to the pledges table to speed up the daily batch job.
The source code download from dajian168 requires PHP 7.4+ with Swoole 4.5+ extension, MySQL 5.7+, Redis 5.0+, and Node.js 14+ for frontend builds. The PC client compiles with npm run build, generating static files you deploy to Nginx. The UniApp mobile client needs HBuilderX or the official CLI to package APK/IPA files. During setup, I noticed the language files are stored in /lang directories for both clients—English, Chinese, Japanese, and Korean are included by default, with fallback to English if a translation key is missing.
| Component | Requirement | Notes |
|---|---|---|
| Backend | PHP 7.4+, Swoole 4.5+ | Enable swoole.so in php.ini |
| Database | MySQL 5.7+ / MariaDB 10.3+ | Import install.sql, around 45 tables |
| Cache | Redis 5.0+ | Used for order book & session storage |
| Frontend (PC) | Node.js 14+, Vue 2.6 | Build with npm run build, output to /dist |
| Frontend (Mobile) | HBuilderX or UniApp CLI | Package for Android/iOS/H5 |
pecl install swoole and add extension=swoole.so to php.iniinstall.sql (contains 45 tables including order books and pledge records)/config/database.php and set REDIS_HOST to your server IPnpm install && npm run build, then point Nginx root to /distFor the UniApp mobile client, open the project in HBuilderX, adjust the API base URL in config.js, then use “发行 → 原生App-云打包” to generate APK/IPA files. One thing to check: the UniApp manifest includes push notification certificates—remove them or replace with your own before packaging, or users will see errors when opening the app.
This system works well for launching a platform token economy where users earn tokens through mining activities and trade them in a built-in market. The pledge lock-up feature is ideal for projects that want to incentivize long-term holding with staking rewards, while the global dividend distribution encourages users to keep funds locked. The dual-client setup (Vue PC + UniApp mobile) means you can reach both desktop traders and mobile-first users without maintaining two separate backends.
Another practical use case is as a white-label mining investment platform for 微盘理财 operators who want a professional trading interface without building a WebSocket engine from scratch. The dajian168 source code download includes the full Swoole-based price feed system and Redis-cached order book, so you avoid the latency issues common in polling-based systems. The multi-language support also makes it suitable for cross-border operations targeting Asian markets where mining investment platforms are popular.
Finally, if you’re running a community token project or a DAO that issues governance tokens, the pledge and dividend modules provide a ready-made incentive structure. The check-in rewards and daily interest calculations add gamification elements that keep users engaged. One thing to note: the trading engine is designed for low-to-medium volume (tested up to 500 concurrent users), so if you expect higher traffic, you’ll need to add load balancing for the WebSocket server and optimize the order matching queries.
/app/cron/dividend.php)trading_pair + created_at and user_id + pledge_status if you expect over 10,000 records in orders or pledges tablesQ: Does the UniApp mobile client work on both Android and iOS without code changes?
A: Yes, the UniApp source code compiles to native apps for both platforms using HBuilderX cloud packaging. During testing, I found the iOS version requires a paid Apple Developer account for App Store submission, but you can generate an IPA for TestFlight distribution. The Android APK works out of the box after adjusting the API base URL in config.js.
Q: How does the global dividend pool handle rounding errors when distributing to thousands of users?
A: The dividend calculation in /app/cron/dividend.php uses MySQL’s DECIMAL(20,8) precision to minimize rounding loss. Any remainder after distribution (usually less than 0.00000001 tokens) stays in the pool for the next cycle. I tested this with 1,000 dummy accounts and the cumulative error was negligible over 30 days. If you need stricter accuracy, you can modify the script to round to a fixed decimal place before inserting records.
Q: Can I disable the real-time K-line module and use only the pledge/dividend features?
A: Yes, you can comment out the WebSocket initialization in /app/websocket/server.php and hide the trading UI routes in both the Vue and UniApp clients. The pledge and dividend modules are independent—they only require the scheduled cron job to run daily. In the admin panel, navigate to System Config and toggle “Enable Trading Module” to off, which will remove the market tab from user dashboards.
Original title: 全新uinapp矿机交易系统/质押锁仓/市场交易/全球分红/多语言矿机投资-系统演示站
Original excerpt:
admin
微盘理财
全新uinapp矿机交易系统/质押锁仓/市场交易/全球分红/多语言矿机投资
此套系统前端是全新定制的版本,pc端是单独的vue源码,手机端是uinapp版都是多语言
源码在平常的矿机投资系统新增多个功能,二开平台币市场交易K线可实时跳动(如同交易所一般)
新增质押锁仓、全球分红、签到等诸多使用功能
分享到:
Original screenshots:







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