feat(escort): 微信支付入口与取消状态展示
- 下单改为提交预约后弹窗选择支付方式,默认微信支付 - 预约详情支持发起微信支付、查单确认与待支付期间切换支付方式 - 预约列表展示支付渠道、待支付/超时状态并提供去支付入口 - 取消状态与 status 解耦,展示状态优先取 cancelStatus - 详情页医院选择回传字段同步移除 manual
This commit is contained in:
@@ -36,10 +36,10 @@
|
||||
<view class="patient-chip {{selectedProfileId === item._id ? 'active' : ''}}" wx:for="{{profiles}}" wx:key="_id"
|
||||
data-id="{{item._id}}" bindtap="onSelectProfile">
|
||||
<text class="patient-chip-name">{{item.name}}</text>
|
||||
<text class="patient-chip-phone">{{item.mobile}}</text>
|
||||
</view>
|
||||
<view class="patient-chip patient-chip-add" bindtap="goToAddProfile">
|
||||
<text class="patient-chip-name">+ 添加就诊人</text>
|
||||
<view class="patient-chip patient-chip-add" bindtap="goToAddProfile" aria-role="button" aria-label="增加就诊人">
|
||||
<t-icon name="add" size="28rpx" color="#9B4508" />
|
||||
<text class="patient-chip-name">增加</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -70,7 +70,6 @@
|
||||
<hospital-select
|
||||
label="就诊医院"
|
||||
value="{{hospital}}"
|
||||
manual="{{hospitalManual}}"
|
||||
options="{{hospitalOptions}}"
|
||||
placeholder="请选择就诊医院"
|
||||
disabled="{{submitting}}"
|
||||
@@ -136,4 +135,48 @@
|
||||
<text class="page-state-text">{{pageError}}</text>
|
||||
<button class="page-retry" bindtap="retryLoad">重新加载</button>
|
||||
</view>
|
||||
|
||||
<!-- 支付方式选择弹窗:点击「提交预约」后出现,默认微信支付 -->
|
||||
<view class="popup-mask {{showPayPopup ? 'show' : ''}}" bindtap="onClosePayPopup"></view>
|
||||
<view class="popup-content {{showPayPopup ? 'show' : ''}}">
|
||||
<view class="popup-header">
|
||||
<text class="popup-title">选择支付方式</text>
|
||||
<view class="popup-close" aria-role="button" aria-label="关闭弹窗" bindtap="onClosePayPopup">
|
||||
<t-icon name="close" size="40rpx" color="#6F655C" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="popup-body">
|
||||
<view class="pay-channel-options">
|
||||
<view
|
||||
class="pay-channel-option {{payChannel === 'online_wechat' ? 'active' : ''}}"
|
||||
data-channel="online_wechat"
|
||||
bindtap="onPayChannelChange"
|
||||
>
|
||||
<view class="pay-channel-text">
|
||||
<text class="pay-channel-title">微信支付</text>
|
||||
<text class="pay-channel-desc">提交后立即拉起收银台</text>
|
||||
</view>
|
||||
<view class="pay-channel-radio {{payChannel === 'online_wechat' ? 'checked' : ''}}"></view>
|
||||
</view>
|
||||
<view
|
||||
class="pay-channel-option {{payChannel === 'offline' ? 'active' : ''}}"
|
||||
data-channel="offline"
|
||||
bindtap="onPayChannelChange"
|
||||
>
|
||||
<view class="pay-channel-text">
|
||||
<text class="pay-channel-title">线下支付</text>
|
||||
<text class="pay-channel-desc">平台收款后确认订单</text>
|
||||
</view>
|
||||
<view class="pay-channel-radio {{payChannel === 'offline' ? 'checked' : ''}}"></view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="pay-popup-tip">微信支付可立即完成付款;线下支付由平台收款后再确认订单。</text>
|
||||
</view>
|
||||
<view class="popup-footer">
|
||||
<view class="popup-btn popup-btn-ghost" bindtap="onClosePayPopup">取消</view>
|
||||
<view class="popup-btn popup-btn-primary" bindtap="onConfirmPay">
|
||||
{{submitting ? '提交中...' : '确认提交'}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user