<page-plugin isAuth="1" loading="{{loading}}" is-login="{{isLogin}}" bind:handleLogin="handleLogin">
  <t-input placeholder="项目名称" focus value="{{params.item_name}}" data-key="item_name"
    bind:change="onChange" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="label" class="required">项目名称 </view>
  </t-input>
  <t-cell title="收支类型" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="note">
      <t-radio-group bind:change="onChange" data-key="item_type" borderless="1"
        value="{{params.item_type}}">
        <t-radio wx:for="{{FinanceItemTypeArr}}" wx:key="value" block="{{false}}"
          label="{{item.label}}" value="{{item.value}}"
          style="margin-right: {{index == FinanceItemTypeArr.length-1 ? 0: 16}}rpx;" />
      </t-radio-group>
    </view>
  </t-cell>
  <t-textarea placeholder="备注" autosize maxlength="255" bordered style="margin-top: 16rpx;"
    value="{{params.comments}}" data-key="comments" bind:change="onChange">
    <view slot="label" class="textarea-label">备注</view>
  </t-textarea>
  <view style="margin-top: 32rpx;display: flex;justify-content: center;">
    <t-button theme="primary" bind:tap="onSave">保存</t-button>
  </view>
</page-plugin>