Commit 0112949c authored by 汪欢's avatar 汪欢
parents 31142a5f 0825a19e
...@@ -22,9 +22,10 @@ Page({ ...@@ -22,9 +22,10 @@ Page({
}, },
onLoad(props) { onLoad(props) {
console.log('fuck', JSON.parse(props.data)); // console.log('fuck', JSON.parse(props.data));
const datstr = decodeURIComponent( props.data);
const { prize, openPrizeStatus, isShowPrize } = JSON.parse(props.data); const { prize, openPrizeStatus, isShowPrize } = JSON.parse(datstr);
// isShowPrize只展示一次 // isShowPrize只展示一次
if (isShowPrize) { if (isShowPrize) {
// 有奖品 // 有奖品
......
...@@ -98,8 +98,10 @@ Page({ ...@@ -98,8 +98,10 @@ Page({
// vipInfo..data.isVip = true; // vipInfo..data.isVip = true;
if (isEnd(endTime) && if (isEnd(endTime) &&
(openPrizeStatus == OPEN_PRIZE_STATUS.SUCCESS || openPrizeStatus == OPEN_PRIZE_STATUS.NOT_OPEN)) {//活动结束,开奖成功or不开奖 (openPrizeStatus == OPEN_PRIZE_STATUS.SUCCESS || openPrizeStatus == OPEN_PRIZE_STATUS.NOT_OPEN)) {//活动结束,开奖成功or不开奖
my.redirectTo({ url: '/pages/pagejie_shu_ye/pagejie_shu_ye?data=' + JSON.stringify({ prize, openPrizeStatus, isShowPrize }) }); let datstr = JSON.stringify({ prize:prize, openPrizeStatus:prize, isShowPrize:prize });
} else { datstr = encodeURIComponent(datstr);
my.redirectTo({ url: '/pages/pagejie_shu_ye/pagejie_shu_ye?data=' + datstr});
} else {
my.redirectTo({ url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye' }); my.redirectTo({ url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye' });
// my.redirectTo({ url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye?data=' + JSON.stringify({endTime}) }); // my.redirectTo({ url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye?data=' + JSON.stringify({endTime}) });
} }
......
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