Commit 86fed16f authored by 汪欢's avatar 汪欢
parents 7f695184 1e07b1a4
......@@ -25,8 +25,8 @@ Page({
onLoad(props) {
// console.log('fuck', JSON.parse(props.data));
const datstr = decodeURIComponent( props.data);
const { prize, openPrizeStatus, isShowPrize } = JSON.parse(datstr);
const dat = JSON.parse(datstr);
const { prize, openPrizeStatus, isShowPrize } = dat;
// isShowPrize只展示一次
if (isShowPrize) {
// 有奖品
......
......@@ -101,7 +101,7 @@ Page({
// vipInfo..data.isVip = true;
if (isEnd(endTime) &&
(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);
my.redirectTo({ url: '/pages/pagejie_shu_ye/pagejie_shu_ye?data=' + datstr});
} 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