提交 6603a3cf5fb735e429f7dbfeaaa865ce45e8aa63

作者 pangy
1 个父辈 6e53c69d

国籍初值优化

... ... @@ -117,11 +117,14 @@ Page({
117 117 if (countrys.indexOf('澳门') > -1) {
118 118 countrys.splice(countrys.indexOf('澳门'), 1);
119 119 }
120   - that.data.countryData.values = countrys
121 120 that.countrys = countrys
122   - that.setData({
123   - countryData: that.data.countryData,
124   - })
  121 + if (that.data.cardtypeData.selected && that.data.cardtypeData.selected.indexOf("外国人") != -1) {
  122 + that.data.countryData.values = countrys
  123 + that.setData({
  124 + countryData: that.data.countryData,
  125 + })
  126 + }
  127 +
125 128 },
126 129 fail(res) {
127 130 wx.hideLoading()
... ...
注册登录 后发表评论