index.wxml 1.02 KB
<view class="modal">
  <view class="modal-content">
    <view class="radio-type" wx:key="index" wx:for-item="actionItem" wx:for-index="index" wx:for="{{items}}" style="background-color: {{ deploymentType === actionItem.value  ? '#3BB7FF' : '#fff' }}" bindtap="changeType" data-item="{{ actionItem }}">
      <view class="yuan" style="border: {{ deploymentType === actionItem.value ? '2rpx solid #fff' : '2rpx solid #3BB7FF' }}">
        <view class="yuan-n"></view>
      </view>
      <view style="color: {{ deploymentType === actionItem.value ? '#fff' : '#3BB7FF' }}">{{ actionItem.label }}</view>
    </view>
    <input wx:if="{{ deploymentType === 'private' }}" placeholder="输入私有部署地址" class="modal-input" value="{{ baseUrl }}" bindinput="changeBaseUrl" placeholder-style="color: rgba(0, 0, 0, 0.25)" />

    <view class="modal-button">
      <button class="modal-submit" disabled="{{ (deploymentType === 'private' && baseUrl === '') || deploymentType === '' }}" bindtap="hideModal">确认</button>
    </view>
  </view>
</view>