nantai-erp-wechat-mobile/dispatcher/pages/driver/add/add.wxml
2024-10-31 21:29:57 +08:00

48 lines
2.7 KiB
Plaintext

<!--dispatcher/pages/dirver/add/add.wxml-->
<view class="container setting-container rel">
<view class="mine-list">
<view class="group request flex flex-alignitem-center">
<text class="input-title">司机姓名</text>
<!-- <view class="input">老司机</view> -->
<input class="input" type="text" placeholder="请输入司机姓名" placeholder-class="color-grayc input-placeholder" value="{{driverData.driver_name}}" data-key="driver_name" bindblur="bindChangeValue" bindinput="bindChangeValue"/>
</view>
<view class="group request flex flex-alignitem-center select">
<text class="input-title">司机性别</text>
<picker class="input" bindchange="selectGender" value="{{genderIndex}}" range="{{genderArray}}" range-key="name">
<view class="input-inner {{!genderArray[genderIndex].id ? 'color-grayc' : ''}}">
{{genderArray[genderIndex].name}}
</view>
</picker>
</view>
<view class="group request flex flex-alignitem-center">
<text class="input-title">联系电话</text>
<input class="input" type="text" maxlength="11" placeholder="请输入联系电话" placeholder-class="color-grayc input-placeholder" value="{{driverData.driver_phone}}" data-key="driver_phone" bindblur="bindChangeValue" bindinput="bindChangeValue" />
</view>
<view class="group request flex flex-alignitem-center">
<text class="input-title">车牌号码</text>
<input class="input" type="text" placeholder="请输入车牌号码" placeholder-class="color-grayc input-placeholder" value="{{driverData.account}}" data-key="account" bindblur="bindChangeValue" bindinput="bindChangeValue" />
</view>
<view class="group request flex flex-alignitem-center">
<text class="input-title">登录密码</text>
<input class="input" type="password" placeholder="请输入登录密码" placeholder-class="color-grayc input-placeholder" value="{{driverData.password}}" data-key="password" bindblur="bindChangeValue" bindinput="bindChangeValue" />
</view>
</view>
<view class="btn middle primary save-btn" bindtap="editDriverData">保存</view>
<view class="btn middle gray delete-btn" bindtap="openDeleteDialog" wx:if="{{driverData.driver_id}}">删除司机</view>
</view>
<van-dialog
use-slot
show="{{showDeleteDialog}}"
showConfirmButton="{{false}}"
customStyle="width: 520rpx;border-radius: 20rpx;"
>
<view class="dialog-inner">
<view class="dialog-tips font-32 text-center">请确认是否删除该司机?</view>
<view class="dialog-btn-group flex flex-justify-spacebetween">
<button class="cancel font-32" bindtap="closeDeleteDialog">否</button>
<button class="sure font-32" bindtap="deleteDriver">是</button>
</view>
</view>
</van-dialog>