|
...
|
...
|
@@ -43,6 +43,7 @@ Page({ |
|
|
|
item.exp_date = item.exp_date ? util.determine(item.exp_date) : '';
|
|
|
|
item.arule = item.arule ? util.determine(item.arule) : '';
|
|
|
|
item.use = item.use ? util.determine(item.use) : '';
|
|
|
|
item.aexpiration = item.aexpiration ? util.determine(item.aexpiration) : '';
|
|
|
|
if ((item.use && (!item.use.is_cash || item.use.is_cash == '1'))) {
|
|
|
|
let cash = item.use.cash * 1;
|
|
|
|
let price = item.price * 1;
|
|
...
|
...
|
@@ -65,7 +66,7 @@ Page({ |
|
|
|
item.noShow = '0'
|
|
|
|
item.noShowTetxt = '已使用'
|
|
|
|
}
|
|
|
|
if(item.is_expire=='1'){
|
|
|
|
if(item.is_expire=='1' && item.aexpiration.valid_forever != '1'){
|
|
|
|
item.noShow = '0'
|
|
|
|
item.noShowTetxt = '已失效'
|
|
|
|
}
|
|
...
|
...
|
@@ -81,12 +82,12 @@ Page({ |
|
|
|
item.noShow = '0'
|
|
|
|
item.noShowTetxt = '已评价'
|
|
|
|
}
|
|
|
|
if(item.is_examine=='1' && item.is_expire=='0' && item.status!='4' && item.status!='5' && item.is_comment!='1'){
|
|
|
|
if(item.is_examine=='1' && (item.is_expire=='0' || item.aexpiration.valid_forever == '1') && item.status!='4' && item.status!='5' && item.is_comment!='1'){
|
|
|
|
item.noShow = '1'
|
|
|
|
}
|
|
|
|
})
|
|
|
|
list.sort((a, b) => a.is_examine - b.is_examine);
|
|
|
|
list.sort((a, b) => a.is_expire - b.is_expire);
|
|
|
|
list.sort((a, b) => b.noShow - a.noShow);
|
|
|
|
this.setData({
|
|
|
|
list,
|
|
|
|
isShow:true,
|
|
...
|
...
|
@@ -114,7 +115,7 @@ Page({ |
|
|
|
// 去详情或者去评价
|
|
|
|
todetail(e) {
|
|
|
|
let item=e.currentTarget.dataset['item'];
|
|
|
|
if(item.is_examine=='0' && item.is_expire=='0' && item.is_examine=='0' && item.status!='4' && item.status!='5'){
|
|
|
|
if(item.is_examine=='0' && (item.is_expire=='0' || item.aexpiration.valid_forever == '1') && item.status!='4' && item.status!='5'){
|
|
|
|
// 免费券 跳转到免费券详情
|
|
|
|
if(item.is_type == '3'){
|
|
|
|
wx.navigateTo({
|
...
|
...
|
|