@@ -70,6 +70,9 @@ Page({ | |||||
* 跳转到门店列表的详情页面 | * 跳转到门店列表的详情页面 | ||||
*/ | */ | ||||
gotoDetail(e) { | gotoDetail(e) { | ||||
if (e.currentTarget.dataset.id == undefined) { | |||||
return | |||||
} | |||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}` | url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}` | ||||
}) | }) | ||||
@@ -128,9 +131,13 @@ Page({ | |||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
let that = this; | let that = this; | ||||
console.log(options.cardId) | |||||
that.cardpayList(options.cardId); | |||||
that.cardDetail(options.cardId); | |||||
let cardId = options.cardId | |||||
console.log(cardId) | |||||
if (cardId == undefined) { | |||||
cardId = 0; | |||||
} | |||||
that.cardpayList(cardId); | |||||
that.cardDetail(cardId); | |||||
if (options.from){ | if (options.from){ | ||||
this.setData({ | this.setData({ | ||||
showIndexReuturn:true | showIndexReuturn:true | ||||
@@ -117,6 +117,9 @@ Page({ | |||||
}, | }, | ||||
// 跳转到详情 | // 跳转到详情 | ||||
gotoConsumeDetail: function(e) { | gotoConsumeDetail: function(e) { | ||||
if (e.currentTarget.dataset.id == undefined) { | |||||
return; | |||||
} | |||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: `/pages/ConsumeDetail/ConsumeDetail?cardId=${e.currentTarget.dataset.id}`, | url: `/pages/ConsumeDetail/ConsumeDetail?cardId=${e.currentTarget.dataset.id}`, | ||||
}) | }) | ||||
@@ -128,6 +131,9 @@ Page({ | |||||
} else { | } else { | ||||
var mystatus = this.data.mystatus; | var mystatus = this.data.mystatus; | ||||
} | } | ||||
if (e.currentTarget.dataset.quancode == undefined) { | |||||
return; | |||||
} | |||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: `/pages/couponorder/detail/index?quancode=${ | url: `/pages/couponorder/detail/index?quancode=${ | ||||
e.currentTarget.dataset.quancode}&couponorderstatus=${mystatus}` | e.currentTarget.dataset.quancode}&couponorderstatus=${mystatus}` | ||||
@@ -181,11 +181,6 @@ Page({ | |||||
/** | /** | ||||
* 获取多商铺列表 | * 获取多商铺列表 | ||||
*/ | */ | ||||
// shopList: function(e) { | |||||
// wx.navigateTo({ | |||||
// url: `/pages/index/merchantList/index?id=${e.currentTarget.dataset.id}` | |||||
// }) | |||||
// }, | |||||
onShareAppMessage: function(res) { | onShareAppMessage: function(res) { | ||||
let that = this; | let that = this; | ||||
let shareObj = { | let shareObj = { | ||||
@@ -75,6 +75,9 @@ Page({ | |||||
// }, | // }, | ||||
getList(key, pageNum) { | getList(key, pageNum) { | ||||
let that = this; | let that = this; | ||||
if (key == undefined) { | |||||
key = 'all' | |||||
} | |||||
/** | /** | ||||
* key==0 | * key==0 | ||||
* 不发送该字段 | * 不发送该字段 | ||||