<!-- pages/tixian/tixian.wxml -->
<view class="tixian-container">

<!-- 加载中状态 -->
<view wx:if="{{pageMode === 0 && !loadError}}" class="loading-center">
    <view class="loading-spinner"></view>
    <text class="loading-text">加载中...</text>
</view>

<!-- 加载失败状态 -->
<view wx:elif="{{loadError}}" class="error-center">
    <text class="error-text">加载失败，请检查网络</text>
    <view class="retry-btn" bindtap="retryFetch">点击重试</view>
</view>

<!-- 模式1：收款码模式 -->
<mode1 
    wx:elif="{{pageMode === 2}}" 
    options="{{pageOptions}}"
    id="tixian-mode1"
/>

<!-- 模式2：微信零钱模式 -->
<mode2 
    wx:elif="{{pageMode === 1}}" 
    options="{{pageOptions}}"
    id="tixian-mode2"
/>
<!-- 弹窗组件（放在最外层，跟原来一样） -->
<global-notification id="global-notification" />
  <popup-notice id="popupNotice" />

</view>