|
|
@@ -27,7 +27,10 @@ Page({ |
|
|
|
detailPicture: [], |
|
|
|
coverPicture: [], |
|
|
|
swiperCurrent: 0, |
|
|
|
showTime: true |
|
|
|
showTime: true, |
|
|
|
limitCondition: "", |
|
|
|
minLimit: 0, |
|
|
|
maxLimit: 0 |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@@ -223,6 +226,21 @@ Page({ |
|
|
|
coverPicture: JSON.parse(res.data.coverPicture) |
|
|
|
}) |
|
|
|
} |
|
|
|
if (res && res.data && res.data.conditions) { |
|
|
|
that.setData({ |
|
|
|
limitCondition: JSON.parse(res.data.conditions).type |
|
|
|
}) |
|
|
|
if (JSON.parse(res.data.conditions).type == 2 && (JSON.parse(res.data.conditions).min || JSON.parse(res.data.conditions).min == 0)) { |
|
|
|
that.setData({ |
|
|
|
minLimit: JSON.parse(res.data.conditions).min |
|
|
|
}) |
|
|
|
} |
|
|
|
if (JSON.parse(res.data.conditions).type == 2 && (JSON.parse(res.data.conditions).max) || JSON.parse(res.data.conditions).max == 0) { |
|
|
|
that.setData({ |
|
|
|
maxLimit: JSON.parse(res.data.conditions).max |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
wx.setNavigationBarTitle({ |
|
|
|
title: res.data.title |
|
|
|
}) |
|
|
|