Commit ddb2f17a authored by wildfirecode13's avatar wildfirecode13

1

parent 0825a19e
...@@ -24,8 +24,8 @@ Page({ ...@@ -24,8 +24,8 @@ 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 datstr = decodeURIComponent( props.data);
const dat = JSON.parse(datstr);
const { prize, openPrizeStatus, isShowPrize } = JSON.parse(datstr); const { prize, openPrizeStatus, isShowPrize } = dat;
// isShowPrize只展示一次 // isShowPrize只展示一次
if (isShowPrize) { if (isShowPrize) {
// 有奖品 // 有奖品
......
...@@ -98,7 +98,7 @@ Page({ ...@@ -98,7 +98,7 @@ 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不开奖
let datstr = JSON.stringify({ prize:prize, openPrizeStatus:prize, isShowPrize:prize }); let datstr = JSON.stringify({ prize:prize, openPrizeStatus:prize, isShowPrize:isShowPrize });
datstr = encodeURIComponent(datstr); datstr = encodeURIComponent(datstr);
my.redirectTo({ url: '/pages/pagejie_shu_ye/pagejie_shu_ye?data=' + datstr}); my.redirectTo({ url: '/pages/pagejie_shu_ye/pagejie_shu_ye?data=' + datstr});
} else { } else {
......
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