提交 1bdaea7c552ebc47b301a5ce20abc02852b43f34

作者 wangyu
1 个父辈 1f7513c6

优化

@@ -118,7 +118,7 @@ @@ -118,7 +118,7 @@
118 </view> 118 </view>
119 <view style='height:90rpx;width:100%;clear:both;'> 119 <view style='height:90rpx;width:100%;clear:both;'>
120 <text class='text_left'>被赡养人证照类型</text> 120 <text class='text_left'>被赡养人证照类型</text>
121 - <text class='text_right_333'>{{datas.id_card_type=='1'?"身份证":datas.id_card_type}}</text> 121 + <text class='text_right_333'>{{datas.id_card_type=='1'?"居民身份证":datas.id_card_type}}</text>
122 </view> 122 </view>
123 <view style='height:90rpx;width:100%;clear:both;'> 123 <view style='height:90rpx;width:100%;clear:both;'>
124 <text class='text_left'>被赡养人证照号码</text> 124 <text class='text_left'>被赡养人证照号码</text>
@@ -372,6 +372,22 @@ Page({ @@ -372,6 +372,22 @@ Page({
372 godelete: function(e) { //删除 372 godelete: function(e) { //删除
373 var that = this; 373 var that = this;
374 console.log("godelete", e) 374 console.log("godelete", e)
  375 + wx.showModal({
  376 + title: '',
  377 + content: '确认要删除吗?',
  378 + success(res) {
  379 + if (res.confirm) {
  380 + console.log('用户点击确定')
  381 + that.deleteInfo(e)
  382 + } else if (res.cancel) {
  383 + console.log('用户点击取消')
  384 + }
  385 + }
  386 + })
  387 + },
  388 +
  389 + deleteInfo:function(e){
  390 + var that = this;
375 var new_id 391 var new_id
376 var statustype = this.data.cur_status 392 var statustype = this.data.cur_status
377 if (this.data.cur_status == "continuing_education") { 393 if (this.data.cur_status == "continuing_education") {
@@ -404,7 +420,7 @@ Page({ @@ -404,7 +420,7 @@ Page({
404 "Authorization": Authorization 420 "Authorization": Authorization
405 }, 421 },
406 method: "POST", 422 method: "POST",
407 - success: function(res) { 423 + success: function (res) {
408 console.log("success", res) 424 console.log("success", res)
409 if (res.statusCode == 200) { 425 if (res.statusCode == 200) {
410 that.getAdditionInfo() 426 that.getAdditionInfo()
@@ -416,7 +432,7 @@ Page({ @@ -416,7 +432,7 @@ Page({
416 } 432 }
417 433
418 }, 434 },
419 - fail: function(res) { 435 + fail: function (res) {
420 console.log("fail", res) 436 console.log("fail", res)
421 wx.showToast({ 437 wx.showToast({
422 title: res.data.message, 438 title: res.data.message,
注册登录 后发表评论