支持店务修改客户联系方式和备注
This commit is contained in:
@@ -13,7 +13,21 @@
|
||||
<text class="customer-phone">{{customer.phone}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<button wx:if="{{canCreateAppointment}}" class="small-action" bindtap="createAppointment">新预约</button>
|
||||
<view class="customer-actions">
|
||||
<button class="small-action" bindtap="openEditModal">编辑</button>
|
||||
<button wx:if="{{canCreateAppointment}}" class="small-action" bindtap="createAppointment">新预约</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card info-card">
|
||||
<view class="info-row">
|
||||
<text>联系电话</text>
|
||||
<text>{{customer.phone}}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text>备注</text>
|
||||
<text>{{customer.remark || '未填写'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="stats">
|
||||
@@ -44,5 +58,25 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{editModalVisible}}" class="modal-mask" bindtap="closeEditModal">
|
||||
<view class="customer-modal" catchtap="stopTap">
|
||||
<view class="modal-head">
|
||||
<text class="modal-title">编辑客户</text>
|
||||
<view class="modal-close" bindtap="closeEditModal">×</view>
|
||||
</view>
|
||||
<view class="form-grid">
|
||||
<view class="modal-field">
|
||||
<text>联系电话</text>
|
||||
<input value="{{editForm.contactPhone}}" data-field="contactPhone" bindinput="onEditInput" type="text" placeholder="请输入联系电话" />
|
||||
</view>
|
||||
<view class="modal-field">
|
||||
<text>备注</text>
|
||||
<textarea value="{{editForm.remark}}" data-field="remark" bindinput="onEditInput" maxlength="200" placeholder="请输入客户备注" />
|
||||
</view>
|
||||
</view>
|
||||
<button class="primary-btn modal-submit" loading="{{saving}}" bindtap="saveCustomer">保存客户</button>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user