Пример #1
0
 public function index()
 {
     $common = A("Common/Common");
     $common->getHomeMenu();
     $common->getHomeSlide();
     // 公司简介
     $re = A("RichEdit");
     $re->getRichText("corpbrief");
     // 公告
     $re->getList("announcement", "announcementList");
     // 活动
     $re->getList("activity", "activityList");
     // 广告
     $this->assign("homeleftads", getAdsList("homeleftads"));
     $this->assign("homerightads", getAdsList("homerightads"));
     // 入驻商家
     $m = M("Seller");
     $sellerList = $m->order("oseq desc, name")->limit(20)->select();
     $this->assign("sellerList", $sellerList);
     // 拍卖
     $m = M("Auction");
     $list = $m->order("start_date desc")->limit(4)->select();
     $this->assign("auctionList", $list);
     $this->display();
 }
Пример #2
0
 public function inputmsg()
 {
     loadFixedItem();
     $this->assign("otherleftads", getAdsList("otherleftads"));
     $re = A("RichEdit");
     // 公告 & 活动
     //$re->getList ( "announcement", "announcementList" );
     $re->getList("activity", "activityList");
     $this->display();
 }
Пример #3
0
 private function _show($category)
 {
     $common = A("Common/Common");
     $common->getHomeMenu();
     $common->getHomeSlide();
     $this->assign("otherleftads", getAdsList("otherleftads"));
     $re = A("RichEdit");
     $re->getList("activity", "activityList");
     $re->getRichText($category);
     $this->assign("subtitle", C($category));
     $this->display("aboutus");
 }
 public function freeService()
 {
     $common = A("Common/Common");
     $common->getHomeMenu();
     $common->getHomeSlide();
     $this->assign("otherleftads", getAdsList("otherleftads"));
     $re = A("RichEdit");
     // 公告 & 活动
     //$re->getList ( "announcement", "announcementList" );
     $re->getList("activity", "activityList");
     $re->getRichText("freeservice");
     $this->display();
 }
Пример #5
0
 public function index()
 {
     $common = A("Common/Common");
     $common->getHomeMenu();
     $common->getHomeSlide();
     $this->assign("otherleftads", getAdsList("otherleftads"));
     $this->assign("tree", json_encode($common->getProductCategory()));
     $product = M("Product");
     $productList = $product->join("think_product_image on think_product_image.product_uid = think_product.uid and think_product_image.isCover = 1")->select();
     $this->assign("productList", $productList);
     $this->display();
     // dump ( $productList );
 }
Пример #6
0
 private function showList($category)
 {
     $common = A("Common/Common");
     $common->getHomeMenu();
     $common->getHomeSlide();
     $this->assign("otherleftads", getAdsList("otherleftads"));
     $m = M("RichText");
     $where["category"] = $category;
     $where["isShow"] = 1;
     //注意,isShow, show的S必须大些
     $Page = getpage($m, $where, C("LIST_PAGE_SIZE"));
     $limit = $Page->firstRow . ',' . $Page->listRows;
     $list = $m->where($where)->limit($limit)->order("seq")->select();
     $this->assign("rtlist", $list);
     $show = $Page->show();
     $this->assign("page", $show);
     $this->assign("subtitle", C($category));
     $this->display("newsList");
 }
Пример #7
0
 public function viewAuctionGoods($uid)
 {
     $common = A("Common/Common");
     $common->getHomeMenu();
     $common->getHomeSlide();
     $this->assign("otherleftads", getAdsList("otherleftads"));
     // self::getProductCategory ();
     self::getAuctionGoodsMessage($uid);
     $m = M("AuctionGoodsMap");
     $where["auction_uid"] = session("auction_id");
     $where["auction_goods_uid"] = $uid;
     $join = "think_auction_goods on think_auction_goods.uid = think_auction_goods_map.auction_goods_uid";
     $r = $m->join($join)->where($where)->find();
     $r["description"] = str_replace("<img ", "<img class=\"carousel-inner img-responsive\"", $r["description"]);
     $this->assign("record", $r);
     $this->display();
 }