Commit 4de364a7e9f677d57e8be90677e4cbf01c38629c

Authored by 李宇
2 parents cfbb0cd5 d24e35df

Merge branch 'master' of http://39.98.150.180/frontend-uniapp/Civil-Affairs-Bureau-WeChar

pages/funeralreport/funeralreport.vue
@@ -304,7 +304,6 @@ @@ -304,7 +304,6 @@
304 funeralresult(){ 304 funeralresult(){
305 this.from.accessLocation = this.area 305 this.from.accessLocation = this.area
306 this.from.accessTime = this.accessTime 306 this.from.accessTime = this.accessTime
307 - // this.info.obituaryType = "网上报丧"  
308 if(uni.getStorageSync('dh') == 2){ 307 if(uni.getStorageSync('dh') == 2){
309 this.from.obituaryType = "电话报丧" 308 this.from.obituaryType = "电话报丧"
310 }else{ 309 }else{
@@ -312,15 +311,18 @@ @@ -312,15 +311,18 @@
312 } 311 }
313 this.from.remarks = this.remarks 312 this.from.remarks = this.remarks
314 this.from.userId = uni.getStorageSync("USERS_KEY").userId 313 this.from.userId = uni.getStorageSync("USERS_KEY").userId
315 - // console.log(this.from);  
316 - if(this.from.deceasedName == '' || this.from.deceasedAge == '' || this.from.idCardNumber == '' || this.from.ethnicity == '' || this.from.contactName == '' || this.from.contactPhone == '' || this.from.deathCase == '' || this.from.deathdate == '请选择' || this.sex == '请选择' || this.area != '请输入详细地址' || this.accessTime != "请选择" || this.remarks != ''){ 314 + console.log("提交数据",this.from,this.sex,this.area,this.accessTime,this.remarks);
  315 + if(this.from.deceasedName != '' && this.from.deceasedAge != ''
  316 + && this.from.idCardNumber != '' && this.from.ethnicity != ''
  317 + && this.from.contactName != '' && this.from.contactPhone != ''
  318 + && this.from.deathCase != '' && this.from.deathdate == '请选择'
  319 + && this.deceasedSex != '请选择' && this.accessLocation != '请输入详细地址' && this.accessTime != "请选择" && this.remarks != ''){
317 uni.showToast({ 320 uni.showToast({
318 icon:"error", 321 icon:"error",
319 title:"请填写完整必填信息" 322 title:"请填写完整必填信息"
320 }) 323 })
321 }else{ 324 }else{
322 - // console.log(1123);  
323 - this.API.tjwsyy(this.info).then(res=>{ 325 + this.API.tjwsyy(this.from).then(res=>{
324 console.log("网上报丧",res); 326 console.log("网上报丧",res);
325 }) 327 })
326 uni.navigateTo({ 328 uni.navigateTo({
@@ -372,7 +374,10 @@ @@ -372,7 +374,10 @@
372 console.log("提交的数据",this.from,this.sex); 374 console.log("提交的数据",this.from,this.sex);
373 // return 375 // return
374 // deceasedName deceasedAge idCardNumber ethnicity contactName contactPhone deathCase deathdate sex 376 // deceasedName deceasedAge idCardNumber ethnicity contactName contactPhone deathCase deathdate sex
375 - if(this.from.deceasedName == '' || this.from.deceasedAge == '' || this.from.idCardNumber == '' || this.from.ethnicity == '' || this.from.contactName == '' || this.from.contactPhone == '' || this.from.deathCase == '' || this.from.deathdate == '请选择' || this.sex == '请选择'){ 377 + if(this.from.deceasedName == '' || this.from.deceasedAge == ''
  378 + || this.from.idCardNumber == '' || this.from.ethnicity == ''
  379 + || this.from.contactName == '' || this.from.contactPhone == ''
  380 + || this.from.deathCase == '' || this.from.deathdate == '请选择' || this.sex == '请选择'){
376 uni.showToast({ 381 uni.showToast({
377 title: '请输入完整必填', 382 title: '请输入完整必填',
378 //将值设置为 success 或者直接不用写icon这个参数 383 //将值设置为 success 或者直接不用写icon这个参数
pages/mydeathdetail/mydeathdetail.vue
@@ -109,7 +109,7 @@ @@ -109,7 +109,7 @@
109 return { 109 return {
110 OrderType: 0, 110 OrderType: 0,
111 nvConfig:{ 111 nvConfig:{
112 - title:"报丧订单详情", 112 + title:"报丧详情",
113 bgColor:"#ffffff", 113 bgColor:"#ffffff",
114 color:"#000000", 114 color:"#000000",
115 fixedAssist:{ 115 fixedAssist:{