Commit 469f16fa authored by ziyu's avatar ziyu

添加身份证号

parent 04d623d6
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
<view class="address-cont"> <view class="address-cont">
<van-field value="{{name}}" data-form="name" placeholder="收货人" bind:input ="setValue"></van-field> <van-field value="{{name}}" data-form="name" placeholder="收货人" bind:input ="setValue"></van-field>
<van-field value="{{phone}}" data-form="phone" placeholder="手机号码" bind:input ="setValue"></van-field> <van-field value="{{phone}}" data-form="phone" placeholder="手机号码" bind:input ="setValue"></van-field>
<van-field value="{{idNumber}}" data-form="idNumber" placeholder="收货人身份证号" bind:input ="setValue"></van-field>
<van-field value="{{cityValue}}" placeholder="所在地区" bindtap="onClose" is-link readonly></van-field> <van-field value="{{cityValue}}" placeholder="所在地区" bindtap="onClose" is-link readonly></van-field>
<van-field value="{{address}}" data-form="address" placeholder="详细地址:如街道、小区、门牌号、楼栋号等" bind:input ="setValue"></van-field> <van-field value="{{address}}" data-form="address" placeholder="详细地址:如街道、小区、门牌号、楼栋号等" bind:input ="setValue"></van-field>
</view> </view>
...@@ -116,7 +117,8 @@ ...@@ -116,7 +117,8 @@
showAddress:false, showAddress:false,
joinRecordId:null, joinRecordId:null,
chance:'', chance:'',
btnfont:'领取' btnfont:'领取',
idNumber:''
}, },
methods: { methods: {
goprize() { goprize() {
...@@ -134,6 +136,10 @@ ...@@ -134,6 +136,10 @@
Notify({message: '请填写正确的手机号码', background:'#FF5D15'}); Notify({message: '请填写正确的手机号码', background:'#FF5D15'});
return; return;
} }
if(!this.idNumber) {
Notify({message: '请填写身份证号', background:'#FF5D15'});
return;
}
if(!this.city){ if(!this.city){
Notify({message: '请选择所在地区', background:'#FF5D15'}); Notify({message: '请选择所在地区', background:'#FF5D15'});
return; return;
...@@ -151,12 +157,13 @@ ...@@ -151,12 +157,13 @@
city:this.city, city:this.city,
county:this.county, county:this.county,
address:this.address, address:this.address,
idNumber:this.idNumber,
}; };
let message = '您所领取的奖品我们将在3到5个工作日内寄出,请您耐心等待,感谢您的参与!'; let message = '您所领取的奖品我们将在3到5个工作日内寄出,请您耐心等待,感谢您的参与!';
let cashmeg = '您所领取的奖品我们将会在几分钟内发出,请您耐心等待,感谢您的参与!'; let cashmeg = '您所领取的奖品我们将会在几分钟内发出,请您耐心等待,感谢您的参与!';
let that = this; let that = this;
this.btnfont = '提交中...'
if(this.btnfont!=='领取') return; if(this.btnfont!=='领取') return;
this.btnfont = '...';
getPrize(params).then(()=>{ getPrize(params).then(()=>{
this.btnfont = '领取'; this.btnfont = '领取';
Dialog.alert({ Dialog.alert({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment