Exemple #1
0
 public function about()
 {
     /****分享与定位***/
     $wxm = new WxUserInfo();
     $signPackage = $wxm->getSignPackage();
     $this->assign('signPackage', $signPackage);
     $this->display();
 }
 public function index()
 {
     $map['ptype'] = 3;
     $list = M('problem')->where($map)->order('pid')->select();
     $this->list = $list;
     $this->assign('title', '了解壹易购物');
     /****分享与定位***/
     $wxm = new WxUserInfo();
     $signPackage = $wxm->getSignPackage();
     $this->assign('signPackage', $signPackage);
     $this->display();
 }
 public function index()
 {
     // S('access_token',null);
     /*找到页面信息*/
     $kj_id = I('kj_id', 0);
     if (empty($kj_id)) {
         $this->error("错误页面", U('/Home/'));
     } else {
         $mdb = D('Home/Kanjia');
         $rs = $mdb->GetByid();
     }
     if (!$rs) {
         $this->error("获取信息失败,请稍后重试", U('/Home/'));
     }
     //剩余台数
     //$map['fieldCode']='shengyu'.$rs['type'];
     $shengyutaishu = $rs["shengyuprizenum"];
     //M('sys_configs')->where($map)->getField('fieldValue');
     //unset($map);
     $this->shengyutaishu = $shengyutaishu;
     $this->user_info = $rs;
     //帮砍信息
     $D2 = D('Home/Kanjia');
     $bangkan_info = $D2->GetBangkanList($kj_id);
     //$bangkan_info=$D2->where(array('kj_id'=>$kj_id))->order('bk_time desc')->select();
     $bangkan_count = count($bangkan_info);
     empty($bangkan_count) ? $bangkan_count = 0 : $bangkan_count;
     $this->bangkan_count = $bangkan_count;
     $this->bangkan_info = $bangkan_info;
     //已砍
     $yikan = round($rs['money'] - $rs['shengyumoney'], 2);
     $this->yikan = $yikan;
     $bl = $yikan / $rs['money'];
     if (empty($bl)) {
         $bl = '0';
     }
     // echo "比例:".$bl;
     $this->bl = $bl * 100;
     //中奖信息
     $zhongjiang = M('kanzhong')->where(array('type' => $rs['type']))->select();
     //      $this->shengyutaishu=$shengyutaishu-(count($zhongjiang));
     $this->zhongjiang = $zhongjiang;
     // print_r($bangkan_info);
     //$code=I('get.code');
     $domainurl = $_SERVER['SERVER_NAME'];
     $this->assign('domainurl', $domainurl);
     /****分享与定位***/
     $wxm = new WxUserInfo();
     $signPackage = $wxm->getSignPackage();
     $this->assign('signPackage', $signPackage);
     layout(false);
     $this->display();
 }
Exemple #4
0
 public function getsharekey()
 {
     $wxm = new WxUserInfo();
     $signPackage = $wxm->getSignPackage();
     $this->ajaxReturn($signPackage, 'JSON');
 }
 public function yaoqingmain()
 {
     /****分享与定位***/
     $wxm = new WxUserInfo();
     $signPackage = $wxm->getSignPackage();
     $this->assign('signPackage', $signPackage);
     $this->assign('title', '邀请好友');
     $this->assign('uid', session("_uid"));
     $this->display();
 }