Skip to content

Commit

Permalink
下单的时候没设置收货地址增加提示
Browse files Browse the repository at this point in the history
  • Loading branch information
gooking committed May 22, 2017
1 parent 2e7a150 commit 385c852
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pages/to-pay-order/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ Page({
};
postData.aaaa = 1234;
if (that.data.isNeedLogistics > 0) {
if (!that.data.curAddressData) {
wx.hideLoading();
wx.showModal({
title: '错误',
content: '请选择您的收货地址',
showCancel: false
})
return;
}
postData.provinceId = that.data.curAddressData.provinceId;
postData.cityId = that.data.curAddressData.cityId;
postData.districtId = that.data.curAddressData.districtId;
Expand Down

0 comments on commit 385c852

Please sign in to comment.