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>
This commit is contained in:
renjianbo
2026-05-13 22:44:07 +08:00
parent 909dfe3442
commit b8761b0741
2 changed files with 4 additions and 3 deletions

View File

@@ -121,8 +121,8 @@ Page({
var list = [{ text: '请选择医院', value: 0 }]; var list = [{ text: '请选择医院', value: 0 }];
hospitals.forEach(function (h) { hospitals.forEach(function (h) {
list.push({ list.push({
text: h.hospitalName, text: h.hospitalname,
value: h.hospitalId value: h.id
}); });
}); });
that.setData({ objectArray: list }); that.setData({ objectArray: list });

View File

@@ -23,7 +23,8 @@
</view> </view>
<view class="summary-row"> <view class="summary-row">
<text class="summary-label">服务类型</text> <text class="summary-label">服务类型</text>
<text class="summary-value">专业陪护服务({{item.userbName}})</text> <text wx:if="{{item.userbName}}" class="summary-value">专业陪护服务({{item.userbName}})</text>
<text wx:else class="summary-value">专业陪护服务</text>
</view> </view>
<view class="summary-row"> <view class="summary-row">
<text class="summary-label">服务医院</text> <text class="summary-label">服务医院</text>