oak-general-business/lib/pages/userRelation/upsert/onUser/index.xml

27 lines
1.3 KiB
XML

<!-- index.wxml -->
<view class="page-body">
<view class="col">
<t-input placeholder="请输入" label="slot" size="medium" confirm-type="next" oak:value="name" bind:change="setValue">
<text slot="label">
<text style="color: #e34d59">*</text>姓名
</text>
</t-input>
<t-input placeholder="请输入" label="slot" size="medium" confirm-type="next" value="{{mobile}}" bind:change="onMobileChange">
<text slot="label">
<text style="color: #e34d59">*</text>手机号
</text>
</t-input>
<t-input placeholder="请输入" label="slot" size="medium" confirm-type="next" oak:value="password" bind:change="setValue">
<text slot="label">
<text style="color: #e34d59">*</text>密码
</text>
</t-input>
<t-checkbox-group bind:change="onCheckBoxChange">
<block wx:for="{{relations}}">
<t-checkbox value="{{item}}" label="{{t(entity + ':r.' + item)}}" />
</block>
</t-checkbox-group>
</view>
<view style="flex: 1" />
<t-button style="margin: 16rpx" theme="primary" bind:tap="onConfirm" block>确定</t-button>
</view>