Commit Graph

19 Commits

Author SHA1 Message Date
renjianbo
7c9cfff3cc feat: redesign my page with balance card, auth badge, and menu grid
- Add loadUserInfo() calling /system/user/getAppUserInfo for user profile
- Show real-name verification badge (已认证/未认证)
- Show balance card with amount from API
- Add menu: 我的钱包, 我的订单, 联系客服, 关于
- Clean up dead code and unused lifecycle hooks
- Refresh user info on every onShow when logged in

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 12:11:59 +08:00
renjianbo
ade42d9b27 fix: pre-process order userbAvatar in JS, simplify WXML image tags
Move image URL construction from WXML ternary to JS pre-processing.
This ensures fixImageUrl() is properly applied before template rendering.
Also reverts fixImageUrl to use API base URL (images served via backend).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 11:53:49 +08:00
renjianbo
f5024c0ed0 fix: image URLs incorrectly using API base URL instead of image base URL
Images are served from MinIO directly, not through /prod-api proxy.
Add imageBaseUrl to config and use it in fixImageUrl() and WXML templates.
This fixes images not loading on order list and detail pages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 11:34:33 +08:00
renjianbo
310dc6720f refactor: extract shared helpers, remove dead code, fix conventions
- Add getNavBarHeight() to App, replace 9x duplicate statusBarHeight calc
- Add fixImageUrl() helper, replace 3x duplicate image URL fixup
- Add STATUS_MAP and REFUND_REASONS to globalData, replace duplicates
- Replace hardcoded domain in WXML with {{url}} data binding (4 places)
- Delete dead backup file orderdetailbeifen.js (contained real phone number)
- Delete empty pages: tuiguang, subPackages/withdrawal, orderdetiltwo
- Remove unused import (Token in my.js)
- Convert paysuccess.js from raw wx.request to request() utility
- Remove unused baseUrl variables after switching to fixImageUrl()

Net: +81 / -917 lines

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 11:29:35 +08:00
renjianbo
e0fd538c9d fix: add missing closing tags for scroll-view and refund_box in orderdetail.wxml
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 10:48:13 +08:00
renjianbo
ea6a6087d4 fix: comprehensive mini program bug fixes - image URLs, API calls, UI issues
- Fix hospital/service/caregiver images blank by prepending baseUrl for relative paths
- Add icon name mapping and resolveIcon() for service icon fallback
- Fix login phone field: res.phone -> res.data.phoneNumber
- Fix pagination stuck at page 1 in mechanism.js and qianbao.js
- Fix response parsing to handle both {code:200} and {erro:0} formats
- Replace raw wx.request calls with unified request() utility (6+ instances)
- Fix hardcoded phone number exposure in orderdetail.js
- Fix broken privacy URL (http: -> https://)
- Fix expired date range in goddess.wxml (2025 -> 2030)
- Remove duplicate refund box in orderdetail.wxml
- Fix service icon fallback ternary logic
- Add proper error handling replacing empty .catch() blocks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 10:46:31 +08:00
renjianbo
1d0a0b9b04 feat: add request.js utility, service page, and fix hospital image URLs
- Add request.js for unified API calls with loading/error handling
- Add service page (service type listing)
- Fix hospital list to load from API with proper image URL construction
- Add service types dynamic loading on index page
- Various mini program improvements (order, care, wallet pages)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 10:13:26 +08:00
renjianbo
068c47925e fix: add default avatar placeholder and correct debug API URL
- orderdetail: add fallback avatar image and onAvatarError handler
- Android: point debug build to cloud server (101.43.95.130)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-22 00:27:52 +08:00
renjianbo
97ad453e89 feat: implement serve-first-pay-later order flow
- Redesign order status: 0待接单→1已接单→2服务中→3待支付→4已完成
- Backend: startService now requires status=1, completeOrder sets status=3
- Backend: payment callback sets status=4, only status=3 can pay
- Backend: cancel only allowed at status 0/1 (not during service)
- Mini-program: update status labels and payment button to status=3
- Android: TobeSerFragment queries status=1, SerFragment queries status=2
- Update all status comments and UI mappings across three platforms

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-21 23:16:27 +08:00
renjianbo
17e91fcf84 refactor: redesign order flow - serve first, pay later
- Redesign order status flow: 0待接单→1已接单→2服务中→3待支付→4已完成
- Allow service start from status 1 (removed payment barrier)
- Add payment entry after service completion (status 3)
- Update Android/miniprogram UI status mappings
- Add order flow design document to docs/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-21 00:56:17 +08:00
renjianbo
cccc88e2e2 refactor: de-submodule rlz backend and integrate all source code
Move rlz/ backend from git submodule to first-class source tree.
Includes all RuoYi 3.8.3 backend source, mapper XMLs, SQL scripts,
Dockerfile, and build configs. Also adds frontend enhancements:

- Order management: status filters, refund review, settlement (Issue #14)
- Hospital management: level/description/image fields (Issue #16)
- User management: type filter, userLevel, stats endpoint (Issue #17)
- Dev environment: application-dev.yml for rlz_dev database
- CI/CD: Drone pipeline configuration (.drone.yml)
- Mini program: API config extraction (coupon/utils/config.js)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-17 00:20:42 +08:00
renjianbo
3aa3bc5b27 fix: handle API response format with rows fallback in order list 2026-05-14 02:26:39 +08:00
renjianbo
f098c91844 chore: add new images, extension info page, and update project config 2026-05-14 02:03:06 +08:00
renjianbo
b8761b0741 fix: fix hospital field names and handle empty escort name in paysuccess
- Fix hospital field mapping: hospitalname (not hospitalName), id (not hospitalId)
- Add loading placeholder for hospital picker before API response
- Handle null userbName in paysuccess page when escort not yet assigned
- Create rlz_order table and order_view in MySQL database

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-13 22:44:07 +08:00
renjianbo
909dfe3442 fix: rewrite paysuccess page, dynamic hospital list, remove hardcoded values
#11: Rewrite paysuccess page - remove e-commerce template, show order summary
#12: Load hospital list dynamically from /system/hospital/list API
#13: Remove hardcoded bId and ID number, add optional ID card input field

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-13 01:08:27 +08:00
renjianbo
86c3965a1b fix: move payment button from status=1 to status=4 for pay-after-service flow 2026-05-13 00:55:00 +08:00
rjb
2ddbbb4886 fix: change mini-program backend URL to http://101.43.95.130:8039 2026-05-13 00:37:25 +08:00
rjb
d35c074569 chore: merge coupon as regular directory (replace submodule) 2026-05-11 07:36:26 +08:00
rjb
a02773e383 first commit 2026-01-26 15:02:59 +08:00