Commit 5ec18909257d8fef22baff698dc22ba5b076d606

Authored by zhangyan
1 parent 01b6d5f7

no message

... ... @@ -6,7 +6,7 @@ Component({
selectphone:function (e) {
console.log(e)
var target=e.currentTarget.dataset;
this.triggerEvent('selectphone',{phone:target.phone,rname:target.rname,cusdem:target.cusdem})
this.triggerEvent('selectphone',{phone:target.phone,rname:target.rname,cusdem:target.cusdem,sex:target.sex})
}
}
})
\ No newline at end of file
... ...
... ... @@ -2,7 +2,7 @@
<view class="angel bg_white"></view>
<scroll-view class="search-list bg_white" scroll-y>
<block wx:for="{{searchlist}}">
<view class="list-single flex-lr black-font font30r" data-cusdem="{{item.cusdem}}" data-phone="{{item.phone}}" data-rname="{{item.rname}}" bindtap="selectphone">
<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">
<view>{{item.phone}}</view>
<view>{{item.rname}}</view>
</view>
... ...
... ... @@ -219,6 +219,7 @@ Page({
this.data.form.phone=e.detail.phone;
this.data.form.rname=e.detail.rname;
this.data.form.cusdem=e.detail.cusdem;
this.data.form.sex=e.detail.sex;
this.setData({
form:this.data.form,
searchlist:null
... ...