<form catchsubmit="formSubmit">
  <view class="form-control">
      <view class="title">选择卡类别</view>
      <radio-group bindchange="radioChange" name="card_type">
        <label class="radiobox" wx:if="{{card_type==='petrochina'}}" >
          <image src="/image/postage/petrochina.png" class="radiobox-image"></image>
          <text class="radiobox-text">中国石油</text>
          <radio value="petrochina" checked="{{card_type === 'petrochina'}}" disabled="{{card_type && card_type !== 'petrochina'}}" class="radiobox-radio" /> 
        </label>
        <label class="radiobox" wx:if="{{card_type==='sinopec'}}">
          <image src="/image/postage/sinopec.png" class="radiobox-image"></image>
          <text class="radiobox-text">中国石化</text>
          <radio value="sinopec" checked="{{card_type === 'sinopec'}}" disabled="{{card_type && card_type !== 'sinopec'}}"  class="radiobox-radio" />
        </label>
        <label class="radiobox" wx:if="{{card_type==='phone'}}">
          <image src="/image/postage/phone.png" class="radiobox-image"></image>
          <text class="radiobox-text">手机号</text>
          <radio value="phone" checked="{{card_type === 'phone'}}" disabled="{{card_type && card_type !== 'phone'}}" class="radiobox-radio" /> 
        </label>
      </radio-group>
  </view>
  <view wx:if="{{card_type==='phone'}}">
    <view class="form-control form-control-flex">
      <label class="form-label">手机号码:</label>
      <input class="input-control" type="number" name="card_no" value="{{card_no}}"/>
    </view>
    <view class="form-control form-control-flex">
      <label class="form-label">确认号码:</label>
      <input class="input-control" type="number" name="confirm_card_no"  value="{{confirm_card_no}}"/>
    </view>
  </view>
  <view wx:if="{{card_type!=='phone'}}">
    <view class="form-control form-control-flex">
      <text class="form-label" space="emsp" decode="true">卡  号</text>:
      <input class="input-control" type="number" name="card_no" value="{{card_no}}"/>
    </view>
    <view class="form-control form-control-flex">
      <text class="form-label">确认卡号</text>:
      <input class="input-control" type="number" name="confirm_card_no"  value="{{confirm_card_no}}"/>
    </view>
  </view>
  <button class="add_postage_btn" formType="submit" type="primary">确认</button>
  <view class="tips">为了您的财产安全，请确认卡号正确无误！</view>
</form>