Commit 52000307 authored by wildfirecode13's avatar wildfirecode13

1

parent 8d6bbf85
......@@ -79,6 +79,10 @@ Page({
myPrizeList: []
})
}) || {};
data.list.forEach(i => {
console.log('data list item', i);
i.image = i.image || '//yun.duiba.com.cn/aurora/assets/50886651a4b369800cad1e9b958b9edc86150533.png';
});
if (success && data && data.list) {
this.setData({
myPrizeList: data.list
......@@ -140,8 +144,8 @@ Page({
}
flag = true;
const { item:{strategyCode,code,channel} } = e.target.dataset;
this.cloudTBIssue({strategyCode,code,channel})
const { item: { strategyCode, code, channel } } = e.target.dataset;
this.cloudTBIssue({ strategyCode, code, channel })
// const { activityId } = app;
// console.log(item, '领取权益')
// const { success, data, message } = await API.receiveEnamePrize({ activityId, _id: item._id }).catch(res => {
......
......@@ -51,6 +51,7 @@ Page({
const { data: { list, happyCoin } } = await API.exchangeGoodList();
list.forEach(item => {
item.exchanged = item.status == EXCHANGE_STATUS.DONE;
item.image = item.image || '//yun.duiba.com.cn/aurora/assets/50886651a4b369800cad1e9b958b9edc86150533.png';
});
this.setData({ list, happyCoin });
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment