正在显示
1 个修改的文件
包含
13 行增加
和
8 行删除
@@ -202,13 +202,6 @@ Page({ | @@ -202,13 +202,6 @@ Page({ | ||
202 | // shareMethodData: shareMethod_Data | 202 | // shareMethodData: shareMethod_Data |
203 | // }) | 203 | // }) |
204 | } else if (that.data.cur_status == "support_duty") { | 204 | } else if (that.data.cur_status == "support_duty") { |
205 | - var issinglechild_Data = this.data.issinglechildData; | ||
206 | - issinglechild_Data.disabled = true; | ||
207 | - issinglechild_Data.selected = data.is_single == 'y' ? "是" : "否"; | ||
208 | - | ||
209 | - var shareMethod_Data = this.data.shareMethodData; | ||
210 | - shareMethod_Data.disabled = true; | ||
211 | - shareMethod_Data.selected = data.share_method ? data.share_method : ""; | ||
212 | 205 | ||
213 | var supportlist = newdata[0].support_duties | 206 | var supportlist = newdata[0].support_duties |
214 | if (supportlist && supportlist.length > 0) { | 207 | if (supportlist && supportlist.length > 0) { |
@@ -229,9 +222,21 @@ Page({ | @@ -229,9 +222,21 @@ Page({ | ||
229 | } | 222 | } |
230 | } | 223 | } |
231 | } | 224 | } |
232 | - if (supportlist.length1 < 1 && supportlist.length<1){ | 225 | + |
226 | + var issinglechild_Data = this.data.issinglechildData; | ||
227 | + var shareMethod_Data = this.data.shareMethodData; | ||
228 | + if (supportlist.length < 1 && cosupportlist.length<1){ | ||
233 | btn_show = true | 229 | btn_show = true |
230 | + issinglechild_Data.disabled = false; | ||
231 | + shareMethod_Data.disabled = false; | ||
232 | + }else{ | ||
233 | + issinglechild_Data.disabled = true; | ||
234 | + issinglechild_Data.selected = data.is_single == 'y' ? "是" : "否"; | ||
235 | + | ||
236 | + shareMethod_Data.disabled = true; | ||
237 | + shareMethod_Data.selected = data.share_method ? data.share_method : ""; | ||
234 | } | 238 | } |
239 | + | ||
235 | this.setData({ | 240 | this.setData({ |
236 | issinglechildData: issinglechild_Data, | 241 | issinglechildData: issinglechild_Data, |
237 | shareMethodData: shareMethod_Data, | 242 | shareMethodData: shareMethod_Data, |
请
注册
或
登录
后发表评论