index.wxml 1.02 KB
<view class="info-board">
  <view class="cells">
    <block wx:for="{{displayItems}}" wx:key="index">
      <view class="cell {{item.full ? 'cell-full' : (item.span === 2 ? 'cell-span2' : '')}}">
        <view class="cell-label">{{item.label}}</view>
        <view class="cell-value {{item.highlight ? 'highlight' : ''}}" bindtap="onMoreTap" data-type="{{item.isLong}}" data-index="{{index}}">
          <text class="value-text">{{item.value || '-'}}</text>
          <image wx:if="{{item.isLong}}" class="more-icon" src="{{IMG_URL}}/customer/more-icon.png" mode="aspectFit" />
        </view>
      </view>
    </block>
  </view>

  <view wx:if="{{showPopup}}" class="board-modal" catchtouchmove="true">
    <view class="board-backdrop"></view>
    <view class="board-dialog">
      <view class="board-title">{{popupTitle}}</view>
      <view class="board-content">{{popupText}}</view>
      <view class="board-footer" bindtap="onPopupConfirm">
        <view class="board-confirm">我知道了</view>
      </view>
    </view>
  </view>
</view>