提交 96d2666a8693dbb068b644a5a56fc158eea27118

作者 pangy
1 个父辈 fe685e4d

提交前弹窗提示

@@ -722,21 +722,35 @@ Page({ @@ -722,21 +722,35 @@ Page({
722 }, 722 },
723 723
724 addDatas: function (newdata){ 724 addDatas: function (newdata){
725 - var that = this;  
726 - var Authorization = app.globalData.Authorization;  
727 - wx.request({  
728 - url: baseUrl + 'persontax/v1/children-educations',  
729 - method: "POST",  
730 - header: {  
731 - 'content-type': 'application/json',  
732 - "Authorization": Authorization  
733 - },  
734 - data: newdata,  
735 - success(res){  
736 - if (res&&res.statusCode==200){  
737 - wx.navigateBack({  
738 - delta: 1 725 +
  726 + wx.showModal({
  727 + title: '确认要提交申报吗?',
  728 + content: '确认后将不能修改',
  729 + showCancel: true,
  730 + confirmColor:'#357AEB',
  731 + cancelColor:'#999',
  732 + success: function (res) {
  733 + if (res.confirm) {
  734 + var that = this;
  735 + var Authorization = app.globalData.Authorization;
  736 + wx.request({
  737 + url: baseUrl + 'persontax/v1/children-educations',
  738 + method: "POST",
  739 + header: {
  740 + 'content-type': 'application/json',
  741 + "Authorization": Authorization
  742 + },
  743 + data: newdata,
  744 + success(res) {
  745 + if (res && res.statusCode == 200) {
  746 + wx.navigateBack({
  747 + delta: 1
  748 + })
  749 + }
  750 + }
739 }) 751 })
  752 + } else if (res.cancel) {
  753 + return;
740 } 754 }
741 } 755 }
742 }) 756 })
@@ -308,7 +308,7 @@ @@ -308,7 +308,7 @@
308 <view class='text_999_30' style='text-align:center;margin:20rpx 30rpx'>{{extrainfo_arr[cur_index]}}</view> 308 <view class='text_999_30' style='text-align:center;margin:20rpx 30rpx'>{{extrainfo_arr[cur_index]}}</view>
309 </view> --> 309 </view> -->
310 <view class="btn_bottom"> 310 <view class="btn_bottom">
311 - <button class="btn_bottom" formType="submit"> 保存</button> 311 + <button class="btn_bottom" formType="submit">提交申报</button>
312 </view> 312 </view>
313 </form> 313 </form>
314 </view> 314 </view>
注册登录 后发表评论