예제 #1
0
     if (ppsy_sum('shiyong', 'm', 1) >= $ZBK['M_sy_m_pt_sum']) {
         $arry["id"] = 0;
         $arry["msg"] = "你本月申请的试用数已超过" . $ZBK['M_sy_m_pt_sum'] . "个,不能再申请";
         echo json_encode($arry);
         exit;
     }
     if (pp_m_sy_sum('shiyong', 'd', $Hdxx['create_user_id'], 1) >= $ZBK['M_sy_t_mj_sum']) {
         $arry["id"] = 0;
         $arry["msg"] = "你今天申请同一个商家的免费试用数已超过" . $ZBK['M_sy_t_mj_sum'] . "个,不能再申请";
         echo json_encode($arry);
         exit;
     }
 }
 if ($Hdxx['shiyongtype'] == 2) {
     if ($ZBK['M_hs_vip'] == 1) {
         if (Getvip($_SESSION['usnamese']) < 1) {
             $arry["id"] = 128;
             $arry["msg"] = "只有VIP会员才有权参与";
             echo json_encode($arry);
             exit;
         }
     }
     if (ppsy_sum('shiyong', 'd', 2) >= $ZBK['M_hs_t_pt_sum']) {
         $arry["id"] = 0;
         $arry["msg"] = "你今天申请的抢白菜数已超过" . $ZBK['M_hs_t_pt_sum'] . "个,不能再申请";
         echo json_encode($arry);
         exit;
     }
     if (ppsy_sum('shiyong', 'm', 2) >= $ZBK['M_hs_m_pt_sum']) {
         $arry["id"] = 0;
         $arry["msg"] = "你本月申请的抢白菜数已超过" . $ZBK['M_hs_m_pt_sum'] . "个,不能再申请";
예제 #2
0
				if(num) {
					if(isNaN(num)) {
						message('商品数量请输入数字',4);
						return;
					}
					gongshi.find('.num').html(':'+num);
					gongshi.find('.shuamoneypt').html(':'+shuamoneypt);
				}
				if(hongbao && taobaoPrice && num) {
					<?php 
        if (Getvip($_SESSION['usnamese']) < 1 && $ZBK['syhs_money_type'] == 2) {
            ?>
					var totalMoney = (taobaoPrice)*num+shuamoneypt*num+(hongbao)*num;
					<?php 
        } else {
            if (Getvip($_SESSION['usnamese']) < 1 && $ZBK['syhs_money_type'] == 1) {
                ?>
					var totalMoney = (taobaoPrice)*num+(hongbao)*num;
					<?php 
            } else {
                ?>
					var totalMoney = (taobaoPrice)*num+(hongbao)*num;
					<?php 
            }
        }
        ?>
					totalMoney = totalMoney * 100;
					totalMoney = parseInt(totalMoney)/100;
					gongshi.find('.total').html( totalMoney+"元");
				} else {
					gongshi.find('.total').html('');
예제 #3
0
         echo json_encode($arry);
         exit;
     } else {
         $count1 = Kmoney($_SESSION['usnamese'], -$duihuanmoney, $mingxi, 'publish', 2, 1, 0);
         $count2 = Kmoney($_SESSION['usnamese'], -$SK['duihuanmoney'], $SK['MingxiJ'], 'debited', 0, 1, 0);
         $count3 = GetUpdate('duihuan', 'xianshi=3', $aid, 'create_user_id=' . $create_user_id['id']);
         if ($count1 + $count2 + $count3 > 6) {
             $arry['id'] = 218;
             //发布成功
             $arry['msg'] = "活动发布成功";
             echo json_encode($arry);
             exit;
         }
     }
 } else {
     if (Getvip($_SESSION['usnamese'], 0) == 1) {
         if ($duihuanmoney > $create_user_id['money'] - $create_user_id['money_dongjie']) {
             $arry['id'] = 120;
             //余额不足
             $arry['msg'] = "您的流动金额不足,无法发布任务,请冲值后再发布";
             echo json_encode($arry);
             exit;
         } else {
             $count1 = Kmoney($_SESSION['usnamese'], -$duihuanmoney, $mingxi, 'publish', 2, 1, 0);
             $count2 = GetUpdate('duihuan', 'xianshi=3', $aid, 'create_user_id=' . $create_user_id['id']);
             if ($count1 + $count2 > 3) {
                 $arry['id'] = 218;
                 //发布成功
                 $arry['msg'] = "活动发布成功";
                 echo json_encode($arry);
                 exit;
예제 #4
0
        //默认显示此页
        ?>
<div class="right_top_title"> 个人信息 <a class="edit" href="u?show=edit">修改信息</a>
      <?php 
        if ($_SESSION['us_type'] == 2) {
            ?>
      <a class="edit" href="u?show=shop_edit">店铺信息</a> <a class="edit" href="/sj-<?php 
            echo $_SESSION['usnamese'];
            ?>
" target="_blank">我的店铺</a>
      <?php 
        }
        ?>
    </div>
<?php 
        if (Getvip($_SESSION['usnamese']) > 0) {
            ?>
<div style="background:#C00; padding:10px; color:#FFF">您是VIP用户,有效期至 <?php 
            echo date('Y-m-d', $user_row['endtype']);
            ?>
    
      <?php 
            if ($ZBK['shiyong_publish_sum'] == 1 && $_SESSION['us_type'] == 2) {
                echo '剩余试用件数:' . $user_row['sy_sum'];
            }
            if ($ZBK['huasuan_publish_sum'] == 1 && $_SESSION['us_type'] == 2) {
                echo '  剩余抢白菜件数:' . $user_row['hs_sum'];
            }
            ?>
    </div>
<?php 
예제 #5
0
</span>人已经申请
                </div>
            </div>
            <div class="baozhengjin">
                <em class="ico"></em>
                使用积分兑换后请登陆后台查看相关信息
                <!--span class="share">share</span-->
            </div>
            <div class="count_people">
                 <span class="num"><?php 
echo $Wennum;
?>
</span> 人参与兑换 <span class="split">|</span>
                <?php 
if ($_SESSION['usnamese'] != "") {
    echo '您共有<span class="num">' . Getvip($_SESSION['usnamese'], 101) . '</span>积分';
} else {
    echo '登陆后才可以申请';
}
?>
            </div>
            <div class="other">
                <a class="goto_taobao" title="去淘宝看看" target="_blank" href="/itemcontent.php?channel=duihuan&id=<?php 
echo $row['id'];
?>
">去淘宝看看</a>
                <div class="seller">
                    试用品赞助商: <span class="ww"><?php 
echo $row['nick'];
?>
</span>