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:
@@ -121,8 +121,8 @@ Page({
|
||||
var list = [{ text: '请选择医院', value: 0 }];
|
||||
hospitals.forEach(function (h) {
|
||||
list.push({
|
||||
text: h.hospitalName,
|
||||
value: h.hospitalId
|
||||
text: h.hospitalname,
|
||||
value: h.id
|
||||
});
|
||||
});
|
||||
that.setData({ objectArray: list });
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
</view>
|
||||
<view class="summary-row">
|
||||
<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 class="summary-row">
|
||||
<text class="summary-label">服务医院</text>
|
||||
|
||||
Reference in New Issue
Block a user