Browse Source

no message

feature/v1.3
xpz2018 5 years ago
parent
commit
4bbfd2e166
3 changed files with 6 additions and 3 deletions
  1. 3
      pages/home/customer-info/index.js
  2. 2
      pages/home/customer-info/index.wxml
  3. 4
      pages/home/employee-info/index.wxml

3
pages/home/customer-info/index.js

@ -110,6 +110,9 @@ Scene({
} }
}, },
chooseMember: function(){ chooseMember: function(){
if(!this.data.cardNo){
return
}
var that = this var that = this
wx.navigateTo({ wx.navigateTo({
url: `/pages/home/customer-list/index?type=1`, url: `/pages/home/customer-list/index?type=1`,

2
pages/home/customer-info/index.wxml

@ -2,7 +2,7 @@
<view slot="content">客户资料</view> <view slot="content">客户资料</view>
</cu-custom> </cu-custom>
<van-notice-bar color="#1989fa" background="#008AFF" left-icon="info-o" text="{{form.id ? '点击可以修改客户信息' : '添加客户信息'}}" />
<van-notice-bar color="#1989fa" background="#008AFF" left-icon="info-o" text="{{form.id ? '点击可以修改客户信息' : (cardNo ? '选择客户重新进行绑定' : '添加客户信息')}}" mode="{{ cardNo ? 'link' : '' }}" bind:click="chooseMember"/>
<van-field value="{{ form.cardNo }}" label="卡号:" disabled wx:if="{{ form.cardNo }}" /> <van-field value="{{ form.cardNo }}" label="卡号:" disabled wx:if="{{ form.cardNo }}" />
<van-field id="name" value="{{ form.name }}" label="客户姓名:" placeholder="请输入客户姓名" bind:input="bindInput" /> <van-field id="name" value="{{ form.name }}" label="客户姓名:" placeholder="请输入客户姓名" bind:input="bindInput" />
<van-field id="mobile" value="{{ form.mobile }}" type="number" label="手机号码:" placeholder="请输入手机号码" <van-field id="mobile" value="{{ form.mobile }}" type="number" label="手机号码:" placeholder="请输入手机号码"

4
pages/home/employee-info/index.wxml

@ -13,8 +13,8 @@
<view class="text-black">员工状态:</view> <view class="text-black">员工状态:</view>
<van-radio-group value="{{ form.status }}" bind:change="onChange" direction="horizontal"> <van-radio-group value="{{ form.status }}" bind:change="onChange" direction="horizontal">
<view class="flex flex-center"> <view class="flex flex-center">
<van-radio name="{{0}}">启用</van-radio>
<van-radio name="{{1}}" style="margin-left: 32rpx">停用</van-radio>
<van-radio name="{{0}}" icon-size="18px">启用</van-radio>
<van-radio name="{{1}}" icon-size="18px" style="margin-left: 32rpx">停用</van-radio>
</view> </view>
</van-radio-group> </van-radio-group>
</view> </view>

Loading…
Cancel
Save