yuminge-app/yun-min-program-plugin-master/packageE/appointment/manager/add_technician.wxml

87 lines
4.3 KiB
Plaintext

<!--packageE/appointment/manager/add_technician.wxml-->
<view class="main">
<view style="position: relative">
<view class='p' class="title">会员</view>
<input class="input-class" value="{{text_id}}" type="text" bindinput="getMember" bindfocus="showUPMemberTap" placeholder="请输入会员ID/昵称"></input>
<view class="member-list" wx:if="{{showMember}}">
<view class='p' wx:for="{{member}}" wx:key="index" catchtap="chooseMember" data-item="{{item}}">{{item.nickname}} (id: {{item.uid}})</view>
<view class='p' wx:if="{{member.length <= 0}}" style="text-align: center;">搜索不到用户</view>
</view>
</view>
<view>
<view class='p' class="title">{{appointmentLang.worker}}姓名</view>
<input bindinput="getMember_name" class="input-class" value="{{applyModel.name}}" type="text" :placeholder="'请输入'+appointmentLang.worker+'姓名'"></input>
</view>
<view style="position: relative">
<view class='p' class="title">上级会员</view>
<input class="input-class" value="{{leader_uid}}" type="text" bindinput="getMember" data-up='up' bindfocus="showUPMemberTap_name" placeholder="请输入上级会员ID/昵称"></input>
<view class="member-list" wx:if="{{showUPMember}}">
<view class='p' wx:for="{{member}}" :key="index" catchtap="chooseMember" data-item='{{item}}' data-up='up'>{{item.nickname}} (id: {{item.uid}})</view>
<view class='p' wx:if="{{member.length <= 0}}" style="text-align: center;">搜索不到用户</view>
</view>
</view>
<view>
<view class='p' class="title">上级会员分润</view>
<view style="display:flex;align-items:center;">
<input class="input-class" style="width: 95%" value="{{applyModel.leader_commission}}" type="text" placeholder="请输入上级会员分润" bindinput="getMember" data-up="money"></input>%
</view>
</view>
<view style="display: flex; padding: 1rem 0; border-bottom: 1px solid #f5f5f5;" catchtap="getProject">
<span class="black">关联{{appointmentLang.project}}</span>
<i class="iconfont icon-advertise-next"></i>
</view>
<view>
<view class='p' class="title">{{appointmentLang.worker}}简介</view>
<textarea style="width:100%;" placeholder="{{'输入'+appointmentLang.worker+'简介'}}" value="{{applyModel.description}}" bindinput="description_inp"></textarea>
</view>
<view wx:if="{{!worker_id}}">
<view class='p' class="title">{{appointmentLang.worker}}介绍</view>
<view class="imgflex">
<view wx:for="{{applyModel.worker_content}}" wx:key="index" wx:if="{{applyModel.worker_content.length >0}}">
<view class="photobox">
<image src="{{item}}" style="width: 100%" mode="aspectFit"></image>
<icon catchtap="removeImg" data-ind='{{index}}'></icon>
</view>
</view>
<view class="addImgBox" style="width:160rpx;height: 160rpx; border: 2rpx dashed #c0ccda;display:flex;" catchtap="onRead_2">
<icon class="iconfont icon-life-game-plus"></icon>
</view>
</view>
</view>
<view>
<view class='p' class="title">头像</view>
<view style="margin: 0 0.5rem">
<view class="notID" catchtap="onRead">
<image src="{{applyModel.thumb}}" wx:if="{{applyModel.thumb}}"></image>
<icon class="iconfont icon-life-game-plus" wx:else></icon>
</view>
</view>
</view>
</view>
<view style="padding-bottom: 64rpx;text-align: center;">
<view class="add p" catchtap="editTechnician" wx:if="{{worker_id}}">编辑{{appointmentLang.worker}}</view>
<view class="add p" catchtap="addTechnician" wx:else>添加{{appointmentLang.worker}}</view>
</view>
<van-popup show="{{show}}" position="bottom" bind:close="showCloseBtn">
<view style="margin: 0.5rem 1rem">
<view class="top">
<view class='p' class="title">关联{{appointmentLang.project}}</view>
<view class='p' class="add-icon" catchtap="popupComfirm">确定</view>
</view>
<view style="height: 16rem;overflow-y: scroll">
<van-checkbox-group value="{{applyModel.project_ids}}" bind:change="allSelectHandle" wx:for="{{projects}}" wx:key="index" data-ind='{{index}}'>
<view class="item">
<van-checkbox name="{{item.id}}" checked-color="#f4a82e">
<view style="display: flex">
<view class="item-left">
<image src="{{item.thumb}}" alt=""></image>
</view>
<view class='p' class="item-right">{{item.title}}</view>
</view>
</van-checkbox>
</view>
</van-checkbox-group>
</view>
</view>
</van-popup>