Commit 5ec18909257d8fef22baff698dc22ba5b076d606

Authored by zhangyan
1 parent 01b6d5f7

no message

@@ -6,7 +6,7 @@ Component({ @@ -6,7 +6,7 @@ Component({
6 selectphone:function (e) { 6 selectphone:function (e) {
7 console.log(e) 7 console.log(e)
8 var target=e.currentTarget.dataset; 8 var target=e.currentTarget.dataset;
9 - this.triggerEvent('selectphone',{phone:target.phone,rname:target.rname,cusdem:target.cusdem}) 9 + this.triggerEvent('selectphone',{phone:target.phone,rname:target.rname,cusdem:target.cusdem,sex:target.sex})
10 } 10 }
11 } 11 }
12 }) 12 })
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <view class="angel bg_white"></view> 2 <view class="angel bg_white"></view>
3 <scroll-view class="search-list bg_white" scroll-y> 3 <scroll-view class="search-list bg_white" scroll-y>
4 <block wx:for="{{searchlist}}"> 4 <block wx:for="{{searchlist}}">
5 - <view class="list-single flex-lr black-font font30r" data-cusdem="{{item.cusdem}}" data-phone="{{item.phone}}" data-rname="{{item.rname}}" bindtap="selectphone"> 5 + <view class="list-single flex-lr black-font font30r" data-cusdem="{{item.cusdem}}" data-phone="{{item.phone}}" data-rname="{{item.rname}}" data-sex="{{item.sex}}" bindtap="selectphone">
6 <view>{{item.phone}}</view> 6 <view>{{item.phone}}</view>
7 <view>{{item.rname}}</view> 7 <view>{{item.rname}}</view>
8 </view> 8 </view>
@@ -219,6 +219,7 @@ Page({ @@ -219,6 +219,7 @@ Page({
219 this.data.form.phone=e.detail.phone; 219 this.data.form.phone=e.detail.phone;
220 this.data.form.rname=e.detail.rname; 220 this.data.form.rname=e.detail.rname;
221 this.data.form.cusdem=e.detail.cusdem; 221 this.data.form.cusdem=e.detail.cusdem;
  222 + this.data.form.sex=e.detail.sex;
222 this.setData({ 223 this.setData({
223 form:this.data.form, 224 form:this.data.form,
224 searchlist:null 225 searchlist:null