<!--pages/aid/consult/index.wxml-->
<navigator title="填写咨询信息" canBack="{{true}}" />

<van-cell-group>
    <van-field
        value="{{form.name}}"
        label="名字"
        placeholder="请输入名字"
        bind:change="onChange"
        data-name="name"
        title-width="140rpx"
        required
    />
    <van-field
        value="{{form.phone}}"
        label="手机号"
        bind:change="onChange"
        data-name="phone" 
        placeholder="请输入手机号"
        required  
        title-width="140rpx"
    />
    <van-field
        value="{{form.email}}"
        label="邮箱"
        bind:change="onChange"
        data-name="email" 
        placeholder="请输入邮箱"
        title-width="140rpx"
    />
    <van-field
        value="{{form.detail}}"
        label="咨询内容"
        bind:change="onChange"
        data-name="detail" 
        required  
        type="textarea"
        autosize="{{true}}"
        placeholder="请输入咨询内容"
        title-width="140rpx"
    />
    <view style="margin-top: 20rpx; margin-left: 30rpx;">
        <mp-html content="{{detail.detail}}" />
    </view>
</van-cell-group>

<view class="submit">
  <van-button block class="cancelEdit" bind:click="back">返回</van-button>
  <van-button type="info" block class="save" bind:click="submit">保存</van-button>
</view>