diff --git a/app/Common/function.php b/app/Common/function.php index 502a762..fa0c2f1 100644 --- a/app/Common/function.php +++ b/app/Common/function.php @@ -825,7 +825,7 @@ function sysconfig($varname='') } //获取https的get请求结果 -function get_curl_data($c_url,$data='') +function curl_post($c_url,$data='') { $curl = curl_init(); // 启动一个CURL会话 curl_setopt($curl, CURLOPT_URL, $c_url); // 要访问的地址 @@ -877,6 +877,11 @@ function http_request_post($url,$data,$type='POST') return $result; } +function json_to_array($json) +{ + return json_decode($json,true); +} + function imageResize($url, $width, $height) { header('Content-type: image/jpeg'); diff --git a/app/Http/Controllers/Admin/SlideController.php b/app/Http/Controllers/Admin/SlideController.php index 1bd0a87..c662594 100644 --- a/app/Http/Controllers/Admin/SlideController.php +++ b/app/Http/Controllers/Admin/SlideController.php @@ -28,7 +28,7 @@ class SlideController extends CommonController if(isset($_POST['editorValue'])){unset($_POST['editorValue']);} unset($_POST["_token"]); - if(DB::table('slide')->insert($_POST)) + if(DB::table('slide')->insert(array_filter($_POST))) { success_jump('添加成功!', route('admin_slide')); } diff --git a/app/Http/Controllers/Api/ArticleController.php b/app/Http/Controllers/Api/ArticleController.php new file mode 100644 index 0000000..c11080b --- /dev/null +++ b/app/Http/Controllers/Api/ArticleController.php @@ -0,0 +1,33 @@ +input('limit', 10); + $data['offset'] = $request->input('offset', 0); + if($request->input('typeid', null) !== null){$data['typeid'] = $request->input('typeid');} + $data['ischeck'] = Article::IS_CHECK; + + $res = Article::getList($data); + if($res == false) + { + return ReturnData::create(ReturnData::SYSTEM_FAIL); + } + + return ReturnData::create(ReturnData::SUCCESS,$res); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/Api/SlideController.php b/app/Http/Controllers/Api/SlideController.php index 8e8a29a..cccbcd5 100644 --- a/app/Http/Controllers/Api/SlideController.php +++ b/app/Http/Controllers/Api/SlideController.php @@ -19,10 +19,10 @@ class SlideController extends CommonController //参数 $data['limit'] = $request->input('limit', 10); $data['offset'] = $request->input('offset', 0); - if($request->input('group_id', null) !== null){$data['group_id'] = $request->input('group_id');}; + if($request->input('group_id', null) !== null){$data['group_id'] = $request->input('group_id');} $res = Slide::getList($data); - if(!$res) + if($res == false) { return ReturnData::create(ReturnData::SYSTEM_FAIL); } diff --git a/app/Http/Controllers/Weixin/CommonController.php b/app/Http/Controllers/Weixin/CommonController.php new file mode 100644 index 0000000..975937b --- /dev/null +++ b/app/Http/Controllers/Weixin/CommonController.php @@ -0,0 +1,12 @@ + 5, + 'offset' => 0 + ); + $url = env('APP_API')."/slide_list"; + $slide_list = json_decode(http_request_post($url,$postdata,'GET'),true); + $data['slide_list'] = $slide_list['data']['list']; + + //最新资讯 + $postdata = array( + 'limit' => 5, + 'offset' => 0 + ); + $url = env('APP_API')."/article_list"; + $article_list = json_decode(http_request_post($url,$postdata,'GET'),true); + $data['article_list'] = $article_list['data']['list']; + + return view('weixin.index.index',$data); + } + + //列表页 + public function category($cat, $page=0) + { + $pagenow = $page; + + if(empty($cat) || !preg_match('/[0-9]+/',$cat)){return redirect()->route('page404');} + + if(cache("catid$cat")){$post = cache("catid$cat");}else{$post = object_to_array(DB::table('arctype')->where('id', $cat)->first(), 1);if(empty($post)){return redirect()->route('page404');} cache(["catid$cat"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));} + $data['post'] = $post; + + $subcat="";$sql=""; + $post2 = object_to_array(DB::table('arctype')->select('id')->where('pid', $cat)->get()); + if(!empty($post2)){foreach($post2 as $row){$subcat=$subcat."typeid=".$row["id"]." or ";}} + $subcat=$subcat."typeid=".$cat; + $sql=$subcat." or typeid2 in (".$cat.")";//echo $subcat2;exit; + $data['sql'] = $sql; + + $counts = DB::table("article")->whereRaw($sql)->count(); + if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');dd($counts);} + $pagesize = sysconfig('CMS_PAGESIZE');$page=0; + if($counts % $pagesize){//取总数据量除以每页数的余数 + $pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果 + }else{$pages = $counts/$pagesize;} + if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;} + $data['page'] = $page; + $data['pages'] = $pages; + $data['counts'] = $counts; + $start = $page*$pagesize; + + $data['posts'] = arclist(array("sql"=>$sql, "limit"=>"$start,$pagesize")); //获取列表 + $data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$cat)); //获取分页列表 + + if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}} + + return view('home.index.'.$post['templist'], $data); + } + + //文章详情页 + public function detail($id) + { + if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');} + + if(cache("detailid$id")){$post = cache("detailid$id");}else{$post = object_to_array(DB::table('article')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('arctype')->where('id', $post['typeid'])->value('name');cache(["detailid$id"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));} + if($post) + { + $cat = $post['typeid']; + $post['body'] = ReplaceKeyword($post['body']); + if(!empty($post['writer'])){$post['writertitle']=$post['title'].' '.$post['writer'];} + + $data['post'] = $post; + $data['pre'] = get_article_prenext(array('aid'=>$post["id"],'typeid'=>$post["typeid"],'type'=>"pre")); + } + else + { + return redirect()->route('page404'); + } + + if(cache("catid$cat")){$post=cache("catid$cat");}else{$post = object_to_array(DB::table('arctype')->where('id', $cat)->first(), 1);cache(["catid$cat"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));} + + return view('home.index.'.$post['temparticle'], $data); + } + + //标签详情页,共有3种显示方式,1正常列表,2列表显示文章,3显示描述 + public function tag($tag, $page=0) + { + $pagenow = $page; + + if(empty($tag) || !preg_match('/[0-9]+/',$tag)){return redirect()->route('page404');} + + $post = object_to_array(DB::table('tagindex')->where('id',$tag)->first(), 1); + $data['post'] = $post; + + $counts=DB::table("taglist")->where('tid',$tag)->count('aid'); + if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');} + $pagesize=sysconfig('CMS_PAGESIZE');$page=0; + if($counts % $pagesize){//取总数据量除以每页数的余数 + $pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果 + }else{$pages = $counts/$pagesize;} + if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;} + $data['page'] = $page; + $data['pages'] = $pages; + $data['counts'] = $counts; + $start=$page*$pagesize; + + $posts=object_to_array(DB::table("taglist")->where('tid',$tag)->orderBy('aid', 'desc')->skip($start)->take($pagesize)->get()); + foreach($posts as $row) + { + $aid[] = $row["aid"]; + } + $aid = isset($aid)?implode(',',$aid):""; + + if($aid!="") + { + if($post['template']=='tag2') + { + $data['posts'] = arclist(array("sql"=>"id in ($aid)","orderby"=>['id', 'desc'],"row"=>"$pagesize","field"=>"title,body")); //获取列表 + } + else + { + $data['posts'] = arclist(array("sql"=>"id in ($aid)","orderby"=>['id', 'desc'],"row"=>"$pagesize")); //获取列表 + } + } + else + { + $data['posts'] = ''; //获取列表 + } + + $data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$tag,"urltype"=>"tag")); //获取分页列表 + + if($post['template']=='tag2' || $post['template']=='tag3'){if(!empty($pagenow)){return redirect()->route('page404');}} + + return view('home.index.'.$post['template'], $data); + } + + //标签页 + public function tags() + { + return view('home.index.tags'); + } + + //搜索页 + public function search($keyword) + { + if(empty($keyword)) + { + echo '请输入正确的关键词';exit; + } + + if(strstr($keyword,"&")) exit; + + $data['posts']= object_to_array(DB::table("article")->where("title", "like", "%$keyword%")->orderBy('id', 'desc')->take(30)->get()); + $data['keyword']= $keyword; + + return view('home.index.search', $data); + } + + //单页面 + public function page($id) + { + $data = []; + + if(!empty($id) && preg_match('/[a-z0-9]+/',$id)) + { + $map['filename']=$id; + if(cache("pageid$id")){$post=cache("pageid$id");}else{$post = object_to_array(DB::table('page')->where($map)->first(), 1);cache("pageid$id", $post, 2592000);cache(["pageid$id"=>$post], \Carbon\Carbon::now()->addMinutes(2592000));} + + if($post) + { + $data['post'] = $post; + } + else + { + return redirect()->route('page404'); + } + + } + else + { + return redirect()->route('page404'); + } + + $data['posts'] = object_to_array(DB::table('page')->orderBy(\DB::raw('rand()'))->take(5)->get()); + + return view('home.index.'.$post['template'], $data); + } + + //商品列表页 + public function goodstype($cat, $page=0) + { + $pagenow = $page; + + if(empty($cat) || !preg_match('/[0-9]+/',$cat)){return redirect()->route('page404');} + + $post = object_to_array(DB::table('goods_type')->where('id', $cat)->first(), 1);if(empty($post)){return redirect()->route('page404');} + $data['post'] = $post; + + $subcat=""; + $post2 = object_to_array(DB::table('goods_type')->select('id')->where('pid', $cat)->get()); + if(!empty($post2)){foreach($post2 as $row){$subcat=$subcat."typeid=".$row["id"]." or ";}} + $subcat=$subcat."typeid=".$cat; + $data['sql'] = $subcat; + + $counts = DB::table("goods")->whereRaw($subcat)->count(); + if($counts>sysconfig('CMS_MAXARC')){$counts=sysconfig('CMS_MAXARC');dd($counts);} + $pagesize = sysconfig('CMS_PAGESIZE');$page=0; + if($counts % $pagesize){//取总数据量除以每页数的余数 + $pages = intval($counts/$pagesize) + 1; //如果有余数,则页数等于总数据量除以每页数的结果取整再加一,如果没有余数,则页数等于总数据量除以每页数的结果 + }else{$pages = $counts/$pagesize;} + if(!empty($pagenow)){if($pagenow==1 || $pagenow>$pages){return redirect()->route('page404');}$page = $pagenow-1;$nextpage=$pagenow+1;$previouspage=$pagenow-1;}else{$page = 0;$nextpage=2;$previouspage=0;} + $data['page'] = $page; + $data['pages'] = $pages; + $data['counts'] = $counts; + $start = $page*$pagesize; + + $data['posts'] = arclist(array("table"=>"goods","sql"=>$subcat, "limit"=>"$start,$pagesize")); //获取列表 + $data['pagenav'] = get_listnav(array("counts"=>$counts,"pagesize"=>$pagesize,"pagenow"=>$page+1,"catid"=>$cat,"urltype"=>"goods")); //获取分页列表 + + if($post['templist']=='category2'){if(!empty($pagenow)){return redirect()->route('page404');}} + + return view('home.index.'.$post['templist'], $data); + } + + //商品详情页 + public function goods($id) + { + if(empty($id) || !preg_match('/[0-9]+/',$id)){return redirect()->route('page404');} + + $post = object_to_array(DB::table('goods')->where('id', $id)->first(), 1);if(empty($post)){return redirect()->route('page404');}$post['name'] = DB::table('goods_type')->where('id', $post['typeid'])->value('name'); + if($post) + { + $cat = $post['typeid']; + $post['body'] = ReplaceKeyword($post['body']); + if(!empty($post['writer'])){$post['writertitle']=$post['title'].' '.$post['writer'];} + + $data['post'] = $post; + $data['pre'] = get_article_prenext(array('aid'=>$post["id"],'typeid'=>$post["typeid"],'type'=>"pre")); + } + else + { + return redirect()->route('page404'); + } + + $post = object_to_array(DB::table('goods_type')->where('id', $cat)->first(), 1); + + return view('home.index.'.$post['temparticle'], $data); + } + + //sitemap页面 + public function sitemap() + { + return view('home.index.sitemap'); + } + + //404页面 + public function page404() + { + return view('home.404'); + } + + //测试页面 + public function test() + {return view('home.index.test'); + //return base_path('resources/org'); + //$qrcode = new \SimpleSoftwareIO\QrCode\BaconQrCodeGenerator; + //return $qrcode->size(500)->generate('Make a qrcode without Laravel!'); + //return ''; + //set_exception_handler('myException'); + //return uniqid(); + //return \App\Common\Helper::formatPrice(1.2346); + } +} \ No newline at end of file diff --git a/app/Http/Model/Article.php b/app/Http/Model/Article.php index bfb6793..6513997 100644 --- a/app/Http/Model/Article.php +++ b/app/Http/Model/Article.php @@ -1,9 +1,7 @@ isValid()) { - $newName = md5(rand(1, 1000) . $pic->getClientOriginalName()) . "." . $pic->getClientOriginalExtension(); - $pic->move('uploads', $newName); - return $newName; - } - } - return ''; - } - + const IS_CHECK = 0; // 已审核 + const UN_CHECK = 1; // 未审核 + + //常用字段 + protected static $common_field = array( + 'id', 'typeid', 'tuijian', 'click', 'title', 'writer', 'source','litpic', 'pubdate', 'addtime', 'description', 'listorder' + ); + /** * 获取关联到文章的分类 */ @@ -58,4 +46,88 @@ class Article extends Model return $this->belongsTo(Arctype::class, 'typeid', 'id'); } + public static function getList(array $param) + { + extract($param); //参数:group_id,limit,offset + + $limit = isset($limit) ? $limit : 10; + $offset = isset($offset) ? $offset : 0; + + $model = new Article; + + if(isset($typeid)){$where['typeid'] = $typeid;} + if(isset($ischeck)){$where['ischeck'] = $ischeck;} + if(isset($keyword)){$model = $model->where("title", "like", "%$keyword%");} //关键词搜索 + + if($where){$model = $model->where($where);} + + $res['count'] = $model->count(); + $res['list'] = array(); + + //排序 + if(isset($orderby)) + { + switch ($orderby) + { + case 1: + $model = $model->orderBy('click','desc'); //点击量从高到低 + break; + case 2: + $model = $model->orderBy('listorder','desc'); //排序 + break; + case 3: + $model = $model->orderBy('pubdate','desc'); //更新时间从高到低 + break; + default: + $model = $model->orderBy('addtime','desc'); //添加时间从高到低 + } + } + + if($res['count']>0) + { + $res['list'] = $model->select(self::$common_field)->orderBy('id', 'desc')->skip($offset)->take($limit)->get(); + } + else + { + return false; + } + + return $res; + } + + public static function getOne($id) + { + return self::where('id', $id)->first(); + } + + public static function add(array $data) + { + if ($id = self::insertGetId($data)) + { + return $id; + } + + return false; + } + + public static function modify($where, array $data) + { + if (self::where($where)->update($data)!==false) + { + return true; + } + + return false; + } + + //删除一条记录 + public static function remove($id) + { + if (!self::whereIn('id', explode(',', $id))->delete()) + { + return false; + } + + return true; + } } diff --git a/app/Http/Model/Goods.php b/app/Http/Model/Goods.php index ea9d592..fac7315 100644 --- a/app/Http/Model/Goods.php +++ b/app/Http/Model/Goods.php @@ -72,7 +72,7 @@ class Goods extends BaseModel $res['count'] = $model->count(); $res['list'] = array(); - //排序 + //排序 if(isset($orderby)) { switch ($orderby) diff --git a/app/Http/Model/Slide.php b/app/Http/Model/Slide.php index 5dda011..68e04ee 100644 --- a/app/Http/Model/Slide.php +++ b/app/Http/Model/Slide.php @@ -12,8 +12,8 @@ class Slide extends Model public $timestamps = false; protected $guarded = []; //$guarded包含你不想被赋值的字段数组。 - const UN_SHOW = 0; // 不显示 - const IS_SHOW = 1; // 显示 + const UN_SHOW = 1; // 不显示 + const IS_SHOW = 0; // 显示 public static function getList(array $param) { diff --git a/public/js/swiper/swiper.min.css b/public/css/swiper.min.css similarity index 100% rename from public/js/swiper/swiper.min.css rename to public/css/swiper.min.css diff --git a/public/css/weixin/style.css b/public/css/weixin/style.css new file mode 100644 index 0000000..74050c9 --- /dev/null +++ b/public/css/weixin/style.css @@ -0,0 +1,797 @@ +html, body{font-size:100%;font-family:Helvetica,STHeiti-Light,'Hiragino Sans GB','Microsoft Yahei',Arial;overflow-x:hidden;color:#232326;} +body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;} +ol, ul{list-style:none;}dl,ul{zoom:1;}.mb10{margin-bottom:10px;}.mt10{margin-top:10px;}img{border:none;border:0;margin:0;padding:0;vertical-align:middle;} +a{color:#333;text-decoration:none}.cse a,.cses{color:#008000;}.ofh{overflow:hidden} +.fl,.mfl{float:left;}.fr,.mfr{float:right;}.m-auto{margin:0 auto;}.cl{clear:both;}.bggrey{background-color:#f1f1f1;padding:10px 0;} +.red{color:#e23435;} + +.box{margin-left:10px;margin-right:10px;overflow:hidden;} + +.foohi{height:52px;} +.footer{left:0px;bottom:0px;width:100%;position:fixed;border-top:1px solid #efefef;background:#fff;} +.footer li{width:25%;float:left;padding:5px 0px;text-align:center;} +.footer li img{height:24px;} +.footer li p{color:#666;font-size:14px;line-height:16px;} +.footer .on p{color:#dd2727;} + +.search{background:linear-gradient(rgba(242,48,48,0.8),rgba(242,48,48,0.8)); +padding:6px 8%; +overflow:hidden; +-webkit-transition:-webkit-transform 3s,opacity 4s,background 10s; +} +.search_box{ +height:30px; +padding-left:38px; +padding-right:15px; +position:relative; +border-radius:15px; +background-color:#fff; +} +.search_btn{ +top:0px; +left:8px; +width:30px; +height:30px; +position:absolute; +} +.search_btn img{ +width:20px; +height:20px;margin-top:6px; +} +.search_box input{ +color:#666666; +width:100%; +height:30px; +line-height:28px;border:none; +background:none; +} + +.floor{overflow:hidden;} + +.home_menu nav{margin:10px 0;overflow:hidden} +.home_menu nav a{display:block;float:left;width:25%;text-align:center;margin:8px 0} +.home_menu nav a span{vertical-align:sub;font-size:14px;display:block;} +.home_menu nav a img{width:45px;height:45px;} + +.home_toutiao{padding:8px 0px 8px;overflow:hidden;position:relative;background-color:#fff;} +.home_toutiao_tit{top:1px;left:0px;height:45px;position:absolute;} +.home_toutiao_tit img{height:45px;} +.home_toutiao_box{margin-left:70px;padding-left:12px;padding-right:10px;border-left:1px solid #e5e5e5;} +.home_toutiao_box li{color:#424242;font-size:14px;padding-left:12px;background:url(../../images/weixin/dot_icon.png) no-repeat left center;background-size:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;} + +.banner_tit img{width:100%;} +.goods_list{overflow:hidden;background-color:#f1f1f1;}.goods_list .goods_info{padding:5px 10px 5px 10px;} +.goods_list li{margin-bottom:4px;width:50%;float:left;overflow:hidden;} +.goods_list li a{display:block;font-size:0.875em;margin-right:2px;background-color:#fff;}.goods_list .goods_tit{overflow:hidden;white-space:nowrap;color:#000} +.goods_list li img{width:100%;height:48vw;}.goods_list li .goods_price{color:#f23030;}.goods_list li .goods_price b{font-size:1rem;font-weight:normal;} +.goods_list li:nth-child(even) a{margin-right:0;margin-left:2px;} + +.goods_list_small{overflow:hidden;background-color:#f1f1f1;margin-left:10px;}.goods_list_small .goods_info{padding:5px 10px 5px 10px;} +.goods_list_small li{margin-bottom:4px;width:50%;float:left;overflow:hidden;} +.goods_list_small li a{display:block;font-size:0.875em;margin-right:2px;background-color:#fff;}.goods_list_small .goods_tit{overflow:hidden;white-space:nowrap;color:#000} +.goods_list_small li img{width:100%;height:auto;}.goods_list_small li .goods_price{color:#f23030;}.goods_list_small li .goods_price b{font-size:1rem;font-weight:normal;} +.goods_list_small li:nth-child(even) a{margin-right:0;margin-left:2px;} + +.goods_list_s li{color:#333;border-bottom:1px solid #eee;overflow:hidden;margin-left:10px;margin-right:10px;padding-top:10px;padding-bottom:10px;} +.goods_list_s li span{color:#333;display:block;font-size:1rem;}.goods_list_s a:last-child li{border-bottom:0} +.goods_thumb{width:100px;height:100px;float:left;margin-right:10px;display:block;}.goods_thumb img{width:100px;height:100px;border:none;} +.goods_list_s .goods_tit{line-height:24px;overflow:hidden;} +.goods_list_s .goods_price{color:#f23030;}.goods_list_s .goods_price b{font-size:1rem;font-weight:normal;} +.goods_list_s .goods_des{color:#999999;font-size:0.875rem;} + +.classreturn{ +background-color:#f8f8f8; +border-bottom:1px solid #dedede; +position:relative; +text-align:center; +line-height:50px; +padding:0 10px; +} + +.classreturn .return{ +position:absolute; +left:15px +} + +.classreturn .return a{ +overflow:hidden; +display:block +} + +.classreturn .return a img{ +width:12px; +height:22px +} + +.classreturn .tit{ +font-size:1.125rem; +} + +.classreturn .tit .sear-input{ +width:12.544rem; +height:1.23733rem +} + +.classreturn .tit .sear-input a{ +display:block +} + +.classreturn .tit .sear-input input{ +border:0; +width:100%; +height:1.23733rem; +color:#666666; +outline:none; +padding:0 .21333rem; +font-size:.59733rem; +display:inherit +} + +.classreturn .nav_menu{ +position:absolute; +right:15px +} + +.classreturn .nav_menu a{ +display:block +} + +.classreturn .nav_menu img{ +width:20px +} +.ds-in-bl{ +display:inline-block; +vertical-align:middle; +*vertical-align:auto; +*zoom:1; +*display:inline +} + +.tpnavf{display:none;} +.tpnavf .nav_list{-moz-box-shadow:0 0 0 0 rgba(255,255,255,0);-webkit-box-shadow:0 0 0 0 rgba(255,255,255,0);box-shadow:0 0 0 0 rgba(255,255,255,0);border-bottom:1px solid #f0f2f5;background-color:#404042;} +.tpnavf .nav_list li{width:25%;float:left;padding:5px 0px;text-align:center;} +.tpnavf .nav_list li img{height:24px;} +.tpnavf .nav_list li p{color:#fff;font-size:14px;line-height:16px;margin-top:2px;} + +.search_pl form{ +position:relative; +margin:15px; +} +.search_pl input{ +width:70%; +height:50px; +padding-left:15px; +border:1px solid #DEDEDE; +color:#666; +font-size:1.125rem;float:left; +} +.search_pl a{ +height:52px; +width:20%; +cursor:pointer; +background-color:#f23030; +text-align:center; +display:block;float:left;line-height:52px; +} +.search_pl a img{ +height:30px; +width:30px; +} + +.tit_18{font-size:18px;} +.hot_keyword_box{margin:15px;} +.hot_keyword a{display:inline-block;border:1px solid #e0e0e0;padding:0 10px;font-size:1.125rem;font-weight:normal;color:#555555;margin:0 10px 10px 0;line-height:36px;} + +.classlist{ +background-color:#f1f1f1; +overflow:hidden +} + +.classlist .fl{ +width:25%; +background-color:#fff +} + +.classlist .fl ul li{ +line-height:50px; +height:50px; +width:100%;text-align:center;border-bottom:1px solid #e5e5e5;border-right:1px solid #e5e5e5; +} + +.classlist .fl ul li a{ +display:block; +width:100%; +text-decoration:none; +font-size:1.125rem; +color:#232326; +overflow:hidden; +text-overflow:ellipsis; +white-space:nowrap +} + +.classlist .fl .on a{ +color:#ee5b03 +} + +.classlist .fr{ +width:75% +} + +.classlist .fr .branchList .tp-bann img{ +width:100% +} + +.classlist .fr .branchList .tp-class-list h4{ +font-size:18px; +color:#232326; +margin-top:10px; +font-weight:normal; +} + +.classlist .fr .branchList .tp-class-list ul{ +margin-top:8px; +background-color:#fff +} + +.classlist .fr .branchList .tp-class-list ul li{ +float:left; +width:33%; +text-align:center +} + +.classlist .fr .branchList .tp-class-list ul li a{ +display:block +} + +.classlist .fr .branchList .tp-class-list ul li a img{ +width:44px; +height:44px +} + +.classlist .fr .branchList .tp-class-list ul li a p{ +font-size:14px; +overflow:hidden; +text-overflow:ellipsis; +width:100%; +-webkit-line-clamp:2; +line-clamp:2; +height:16px; +-webkit-box-orient:vertical; +word-break:break-all; +display:-webkit-box; +display:-moz-box; +display:-ms-box; +display:-o-box; +margin:5px 0 +} + +.tp-bann{margin:10px} +.tp-class-list{margin:10px;} +.tp-category{padding:10px;overflow:hidden} + +.storenav{background-color:#fff;border-bottom:1px solid #f1f1f1;} +.storenav ul li{float:left;width:20%;padding:0 5px;color:#666;font-size:1rem;position:relative;text-align:center;height:46px;line-height:46px;} +.storenav ul li>a{color:#666;font-size:1rem;} +.storenav ul li>a>span{color:#666} +.storenav ul li span{padding-right:5px;cursor:pointer} +.storenav ul li i{position:absolute;background-image:url("../../images/weixin/dg.png");background-repeat:no-repeat;background-size:cover;width:12px;height:6px;top:20px;} +.storenav ul .red span{color:red} +.storenav ul .red i{background-image:url("../../images/weixin/d.png");background-repeat:no-repeat;background-size:cover;} +.storenav ul li .pr{background-image:url(../images/weixin/sxjt.png);background-repeat:no-repeat;background-size:cover;background-size:34px;height:15px;top:16px;background-position-x:0;} +.storenav ul li .bpr1{background-position-x:-11px;} +.storenav ul li .bpr2{background-position-x:-22px;} +.storenav ul li .fitter{background-image:url(../images/weixin/xx.png);background-repeat:no-repeat;background-size:cover;width:14px;height:15px;top:16px;} + +.nonenothing{width:75%;margin:50px auto 0 auto;text-align:center;} +.nonenothing img{width:100px;height:150px;} +.nonenothing p{font-size:18px;color:#9b9b9b;padding:30px 0;} +.nonenothing a{display:block;font-size:18px;padding:8px 10px;color:white;background-color:#f23030;} + +.banner_headline{height:30px;overflow:hidden;background-color:#f1f1f1;padding-bottom:20px;} +.banner_headline .tit{border-top:1px dashed #dedede;text-align:center;margin:25px 0;} +.banner_headline .tit h4{color:#666666;background-color:#f1f1f1;font-size:18px;font-weight:normal;position:relative;top:-12px;display:inline;padding:0 20px;} + +.radio .che span { + margin-left: .21333rem; + vertical-align: sub +} + +.radio .check_t i { + background-position: -.768rem 0 +} + +.radio i { + width:22px; + height:22px; + display: block; + float: left; + background-image: url("../images/weixin/check.png"); + background-repeat: no-repeat; + background-size: cover; + background-position: 0 +} +.signup-find span,.radio span { + font-size:24px; + cursor: pointer +} + +.sc_list { + padding:10px; + overflow: hidden; + border-bottom: 1px solid #f8f8f8 +} +.sc_list .radio-img{ + width:120px; + height:80px; + float: left; + margin-right:5px; + display: block; +} +.sc_list .radio { + padding-top:24px; + margin-right:10px; +} + +.sc_list .shopimg img { + width:80px; + height:80px; +} + +.sc_list .deleshow .deletes { + position: relative; +} +.sc_list .deleshow .deletes .tit{ + padding-right:28px; + font-size: 1rem; + height:28px;overflow: hidden; + line-height:28px; +} + +.sc_list .deleshow .deletes a.delescj { + position: absolute; + top:4px; + right:0; +} + +.sc_list .deleshow .deletes a.delescj img { + width:18px; + height:18px; +} + +.sc_list .deleshow .weight { + font-size:16px; + color:#999999 +} + +.sc_list .deleshow .prices { + overflow: hidden; + margin-top:8px; +} + +.sc_list .deleshow .prices .sc_pri { + color: #f23030; + font-size:18px; +} + +.plus span { + width:28px; + height:28px; + line-height:28px; + font-size:16px; + display: block; + float: left; + border: 1px solid #f1f1f1; + margin-left: -1px; + text-align:center; + color: #686868; + cursor: pointer +} + +.plus span input { + font-size:14px; + outline: none; + border: 0; + color: #686868; + width: 100%; + text-align: center +} + +.payallb { + position: fixed; + z-index: 99; + bottom: 0; + background-color: #f3f5f7 +} + +.payallb .radio { + padding-top:14px; + margin-right:8px; +} + +.payallb .radio .all { + font-size:14px; + position: relative; + top:-12px; + margin-left:6px +} + +.payallb .youbia { + overflow: hidden;line-height:52px; +} + +.payallb .youbia p { + text-align: right;margin-right:10px; +} +.payit {border-top:1px solid #efefef; + height:52px;width:100%; + background-color: white; + overflow: hidden; + padding-left:10px; +} + +.payit .fl { + line-height:40px; +} + +.payit .youbia p { + font-size:16px; + color: #f23030 +} + +.payit .youbia p .pmo { + color: #222222 +} + +.payit .youbia .lastime { + color: #666666 +} + +.payit .fr { + width:120px; +} + +.payit .fr a { + color: white; + font-size:18px; + text-align: center; + background-color: #f23030; + display: block; + height:52px;line-height:52px; +} + +.myhearder { + position: relative; + height:180px; +} +.myhearder .user_bg{position: absolute;left: 0;top: 0;z-index:-999;} + +.myhearder .person { + position: absolute; + top:40px; + left:20px +} + +.myhearder .person .personicon { + -moz-border-radius: 50%; + -webkit-border-radius: 50%; + border-radius: 50%; + overflow: hidden; + width:72px; + height:72px; +} + +.myhearder .person .personicon img { + width:72px; + height:72px; +} + +.myhearder .person .lors { + margin-top:10px; + margin-left:8px; + color: #fff; + font-size:18px; + width: 220px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis +} + +.myhearder .set { + position: absolute; + right:15px; + top:15px +} + +.myhearder .set a { + display: block; + float: left +} + +.myhearder .set a i { + background-image: url("../images/weixin/set.png"); + background-repeat: no-repeat; + background-size: cover; + width:28px; + height:28px; + display: block; +} + +.myhearder .set .setting i { + background-position: 0 0 +} + +.myhearder .set .massage { + margin-left:15px; +} + +.myhearder .set .massage i { + background-position: -38px 0; +} + +.myhearder .scgz { + position: absolute; + bottom: 0; + width: 100% +} + +.myhearder .scgz ul li { + float: left; + text-align: center; + width: 50% +} + +.myhearder .scgz ul li a h2 { + font-size:18px; + font-weight: normal; + height:24px; + line-height:24px; + color: #fff +} + +.myhearder .scgz ul li a p { + font-size:14px; + color: #fff; + margin-bottom:5px; +} + +.bankhearder { + background-image: url(../images/zjgl.jpg); + height: 11.73333rem +} + +.bankhearder .hh { + color: white; + text-align: center; + padding-top: 3.2rem +} + +.bankhearder .hh h2 { + font-size: .64rem; + font-weight: normal +} + +.bankhearder .hh h1 { + font-size: .768rem; + font-weight: normal +} + +.bankhearder .scgz ul li { + position: relative; + top: -.64rem +} + +.bankhearder .scgz ul li a img { + display: inline-block; + width: .59733rem; + height: .59733rem +} + +.bankhearder .scgz ul li a p { + display: inline-block; + position: relative; + top: .10667rem +} +.ma-to-20 { + margin-top:10px; +} +.myorder { + padding:0 20px; + height:44px; + line-height:44px; + background-color: #fff; + border-bottom: 1px solid #f4f4f4 +} + +.myorder a { + overflow: hidden; + display: block +} + +.myorder .order { + overflow: hidden +} + +.myorder .order .fl img { + width:20px; + height:22px; + vertical-align: middle +} + +.myorder .order .fl span { + font-size:18px; + vertical-align: middle; + font-weight: normal; + margin-left:5px +} + +.myorder .order .fr a { + display: block; + overflow: hidden +} + +.myorder .order .fr span { + font-size:14px; + color: #4c4c4c; + float: left; +} + +.myorder .order .fr i { + margin-top:14px; + margin-left:8px +} +.list7 .myorder { + height:50px; + line-height:50px; +} +.list7 .myorder .fr i { + margin-top:18px; +} +.Mright { + background-image: url(../images/weixin/yr.png); + background-repeat: no-repeat; + background-size: cover; + width:8px; + height:15px; + display: block; + float: left; +} +.my {background-color: #f1f1f1;} + +.my .content { + margin: 0 +} + +.my .content .floor { + background-color: #fff +} + +.my .content .floor ul .fr { + float: right +} + +.my .content .floor ul li.br { + border-left: 0 !important +} + +.my .content .floor ul li.br:before { + content: ""; + background-image: inherit !important +} + +.my .content .floor ul li { + position: relative; + float: left; + width: 25%; + text-align: center +} + +.my .content .floor ul li a { + padding:15px 0 20px 0; + display: block +} + +.my .content .floor ul li a span { + background-color: rgba(217,81,99,0.9); + border-radius: 50%; + font-size:14px; + width:24px; + height:24px; + display: block; + line-height:24px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + position: absolute; + right:15px; + top:8px; + color: white +} + +.my .content .floor ul li a img { + height:36px +} + +.my .content .floor ul li a h2 { + font-size:18px; + font-weight: normal; + height:32px; + line-height:32px; + color: #e3110b +} + +.my .content .floor ul li a p { + font-size:12px; + margin-top:2px; + color: #4c4c4c; + font-weight: normal +} + +.my .content .floor ul li a p.or:after { + content: ""; + background-image: url(../images/weixin/or.png); + width: .17067rem; + height: .29867rem; + background-repeat: no-repeat; + position: absolute; + margin-top: .08533rem; + margin-left: .04267rem; + background-size: .17067rem +} + +.my .content .w3 { + width: inherit +} + +.my .content .w3 ul li { + width: 33.33333% +} + +.my .content .action { + background-image: url(../images/weixin/rb.png); + background-repeat: no-repeat; + background-position: 0 1.96267rem; + width: 100%; + background-size: 16rem +} + +.my .content .action ul li { + width: 25% +} + +.my .content .tyby { + background-image: inherit +} + +.setting .close { + margin:15px 20px +} + +.setting .close a { + display: block; + background: #ec5151; + text-align: center; + width: 100%; + height:40px; + line-height:40px; + color: #fff; + font-size:18px; + -moz-border-radius:5px; + -webkit-border-radius:5px; + border-radius:5px +} + + + + + + + + + + + + + + + + diff --git a/public/images/weixin/57792b4ee20e3.jpg b/public/images/weixin/57792b4ee20e3.jpg new file mode 100644 index 0000000..c7b8e90 Binary files /dev/null and b/public/images/weixin/57792b4ee20e3.jpg differ diff --git a/public/images/weixin/ad_tit.png b/public/images/weixin/ad_tit.png new file mode 100644 index 0000000..9ecc662 Binary files /dev/null and b/public/images/weixin/ad_tit.png differ diff --git a/public/images/weixin/banner1.jpg b/public/images/weixin/banner1.jpg new file mode 100644 index 0000000..7242b86 Binary files /dev/null and b/public/images/weixin/banner1.jpg differ diff --git a/public/images/weixin/banner2.jpg b/public/images/weixin/banner2.jpg new file mode 100644 index 0000000..5f069d1 Binary files /dev/null and b/public/images/weixin/banner2.jpg differ diff --git a/public/images/weixin/banner3.jpg b/public/images/weixin/banner3.jpg new file mode 100644 index 0000000..9e88790 Binary files /dev/null and b/public/images/weixin/banner3.jpg differ diff --git a/public/images/weixin/bjm.jpg b/public/images/weixin/bjm.jpg new file mode 100644 index 0000000..e648837 Binary files /dev/null and b/public/images/weixin/bjm.jpg differ diff --git a/public/images/weixin/brand_icon.png b/public/images/weixin/brand_icon.png new file mode 100644 index 0000000..f408d94 Binary files /dev/null and b/public/images/weixin/brand_icon.png differ diff --git a/public/images/weixin/brand_icon2.png b/public/images/weixin/brand_icon2.png new file mode 100644 index 0000000..8ae28fb Binary files /dev/null and b/public/images/weixin/brand_icon2.png differ diff --git a/public/images/weixin/car_icon.png b/public/images/weixin/car_icon.png new file mode 100644 index 0000000..3ef7fd6 Binary files /dev/null and b/public/images/weixin/car_icon.png differ diff --git a/public/images/weixin/car_icon2.png b/public/images/weixin/car_icon2.png new file mode 100644 index 0000000..5048fdf Binary files /dev/null and b/public/images/weixin/car_icon2.png differ diff --git a/public/images/weixin/center_icon.png b/public/images/weixin/center_icon.png new file mode 100644 index 0000000..131155b Binary files /dev/null and b/public/images/weixin/center_icon.png differ diff --git a/public/images/weixin/center_icon2.png b/public/images/weixin/center_icon2.png new file mode 100644 index 0000000..868510d Binary files /dev/null and b/public/images/weixin/center_icon2.png differ diff --git a/public/images/weixin/check.png b/public/images/weixin/check.png new file mode 100644 index 0000000..f7f38eb Binary files /dev/null and b/public/images/weixin/check.png differ diff --git a/public/images/weixin/class1.png b/public/images/weixin/class1.png new file mode 100644 index 0000000..d704310 Binary files /dev/null and b/public/images/weixin/class1.png differ diff --git a/public/images/weixin/dele.png b/public/images/weixin/dele.png new file mode 100644 index 0000000..e1fd164 Binary files /dev/null and b/public/images/weixin/dele.png differ diff --git a/public/images/weixin/dg.png b/public/images/weixin/dg.png new file mode 100644 index 0000000..bc88754 Binary files /dev/null and b/public/images/weixin/dg.png differ diff --git a/public/images/weixin/dot_icon.png b/public/images/weixin/dot_icon.png new file mode 100644 index 0000000..b29c4f1 Binary files /dev/null and b/public/images/weixin/dot_icon.png differ diff --git a/public/images/weixin/goods_thumb_135_200_200.jpeg b/public/images/weixin/goods_thumb_135_200_200.jpeg new file mode 100644 index 0000000..6378c83 Binary files /dev/null and b/public/images/weixin/goods_thumb_135_200_200.jpeg differ diff --git a/public/images/weixin/goods_thumb_400_400.jpeg b/public/images/weixin/goods_thumb_400_400.jpeg new file mode 100644 index 0000000..e6dac07 Binary files /dev/null and b/public/images/weixin/goods_thumb_400_400.jpeg differ diff --git a/public/images/weixin/home_icon.png b/public/images/weixin/home_icon.png new file mode 100644 index 0000000..40a5fe1 Binary files /dev/null and b/public/images/weixin/home_icon.png differ diff --git a/public/images/weixin/home_icon2.png b/public/images/weixin/home_icon2.png new file mode 100644 index 0000000..1ba7701 Binary files /dev/null and b/public/images/weixin/home_icon2.png differ diff --git a/public/images/weixin/icogantanhao-sb.png b/public/images/weixin/icogantanhao-sb.png new file mode 100644 index 0000000..13f63e9 Binary files /dev/null and b/public/images/weixin/icogantanhao-sb.png differ diff --git a/public/images/weixin/icogantanhao.png b/public/images/weixin/icogantanhao.png new file mode 100644 index 0000000..f584e5a Binary files /dev/null and b/public/images/weixin/icogantanhao.png differ diff --git a/public/images/weixin/icon_03.png b/public/images/weixin/icon_03.png new file mode 100644 index 0000000..ffde5e7 Binary files /dev/null and b/public/images/weixin/icon_03.png differ diff --git a/public/images/weixin/icon_05.png b/public/images/weixin/icon_05.png new file mode 100644 index 0000000..cf8a8ca Binary files /dev/null and b/public/images/weixin/icon_05.png differ diff --git a/public/images/weixin/icon_07.png b/public/images/weixin/icon_07.png new file mode 100644 index 0000000..337cc7f Binary files /dev/null and b/public/images/weixin/icon_07.png differ diff --git a/public/images/weixin/icon_09.png b/public/images/weixin/icon_09.png new file mode 100644 index 0000000..c96b5dc Binary files /dev/null and b/public/images/weixin/icon_09.png differ diff --git a/public/images/weixin/icon_15.png b/public/images/weixin/icon_15.png new file mode 100644 index 0000000..3333723 Binary files /dev/null and b/public/images/weixin/icon_15.png differ diff --git a/public/images/weixin/icon_16.png b/public/images/weixin/icon_16.png new file mode 100644 index 0000000..443adf3 Binary files /dev/null and b/public/images/weixin/icon_16.png differ diff --git a/public/images/weixin/icon_17.png b/public/images/weixin/icon_17.png new file mode 100644 index 0000000..f848a99 Binary files /dev/null and b/public/images/weixin/icon_17.png differ diff --git a/public/images/weixin/icon_19.png b/public/images/weixin/icon_19.png new file mode 100644 index 0000000..b5ac27e Binary files /dev/null and b/public/images/weixin/icon_19.png differ diff --git a/public/images/weixin/ind_52.jpg b/public/images/weixin/ind_52.jpg new file mode 100644 index 0000000..2fcb2eb Binary files /dev/null and b/public/images/weixin/ind_52.jpg differ diff --git a/public/images/weixin/index.png b/public/images/weixin/index.png new file mode 100644 index 0000000..78735e8 Binary files /dev/null and b/public/images/weixin/index.png differ diff --git a/public/images/weixin/index_c.png b/public/images/weixin/index_c.png new file mode 100644 index 0000000..d54d8c1 Binary files /dev/null and b/public/images/weixin/index_c.png differ diff --git a/public/images/weixin/listo.png b/public/images/weixin/listo.png new file mode 100644 index 0000000..56e18dd Binary files /dev/null and b/public/images/weixin/listo.png differ diff --git a/public/images/weixin/logo.png b/public/images/weixin/logo.png new file mode 100644 index 0000000..72be3df Binary files /dev/null and b/public/images/weixin/logo.png differ diff --git a/public/images/weixin/mlist.png b/public/images/weixin/mlist.png new file mode 100644 index 0000000..dffd918 Binary files /dev/null and b/public/images/weixin/mlist.png differ diff --git a/public/images/weixin/mwallet.png b/public/images/weixin/mwallet.png new file mode 100644 index 0000000..961f032 Binary files /dev/null and b/public/images/weixin/mwallet.png differ diff --git a/public/images/weixin/my.png b/public/images/weixin/my.png new file mode 100644 index 0000000..4d563b3 Binary files /dev/null and b/public/images/weixin/my.png differ diff --git a/public/images/weixin/none2.png b/public/images/weixin/none2.png new file mode 100644 index 0000000..89df415 Binary files /dev/null and b/public/images/weixin/none2.png differ diff --git a/public/images/weixin/nothing.png b/public/images/weixin/nothing.png new file mode 100644 index 0000000..b66e7a1 Binary files /dev/null and b/public/images/weixin/nothing.png differ diff --git a/public/images/weixin/q1.png b/public/images/weixin/q1.png new file mode 100644 index 0000000..6f1c885 Binary files /dev/null and b/public/images/weixin/q1.png differ diff --git a/public/images/weixin/q2.png b/public/images/weixin/q2.png new file mode 100644 index 0000000..ce69f51 Binary files /dev/null and b/public/images/weixin/q2.png differ diff --git a/public/images/weixin/q3.png b/public/images/weixin/q3.png new file mode 100644 index 0000000..8c5f773 Binary files /dev/null and b/public/images/weixin/q3.png differ diff --git a/public/images/weixin/q4.png b/public/images/weixin/q4.png new file mode 100644 index 0000000..1bff06d Binary files /dev/null and b/public/images/weixin/q4.png differ diff --git a/public/images/weixin/q5.png b/public/images/weixin/q5.png new file mode 100644 index 0000000..2653a3c Binary files /dev/null and b/public/images/weixin/q5.png differ diff --git a/public/images/weixin/qcc.png b/public/images/weixin/qcc.png new file mode 100644 index 0000000..5ea8bfd Binary files /dev/null and b/public/images/weixin/qcc.png differ diff --git a/public/images/weixin/qq.png b/public/images/weixin/qq.png new file mode 100644 index 0000000..8425034 Binary files /dev/null and b/public/images/weixin/qq.png differ diff --git a/public/images/weixin/qttk.png b/public/images/weixin/qttk.png new file mode 100644 index 0000000..ec4b73b Binary files /dev/null and b/public/images/weixin/qttk.png differ diff --git a/public/images/weixin/quick.png b/public/images/weixin/quick.png new file mode 100644 index 0000000..13a0dfb Binary files /dev/null and b/public/images/weixin/quick.png differ diff --git a/public/images/weixin/refresh.png b/public/images/weixin/refresh.png new file mode 100644 index 0000000..10c38ee Binary files /dev/null and b/public/images/weixin/refresh.png differ diff --git a/public/images/weixin/refund.png b/public/images/weixin/refund.png new file mode 100644 index 0000000..b2deb59 Binary files /dev/null and b/public/images/weixin/refund.png differ diff --git a/public/images/weixin/return.png b/public/images/weixin/return.png new file mode 100644 index 0000000..0684718 Binary files /dev/null and b/public/images/weixin/return.png differ diff --git a/public/images/weixin/rmy.png b/public/images/weixin/rmy.png new file mode 100644 index 0000000..44d1b0a Binary files /dev/null and b/public/images/weixin/rmy.png differ diff --git a/public/images/weixin/ru.png b/public/images/weixin/ru.png new file mode 100644 index 0000000..e4c81b2 Binary files /dev/null and b/public/images/weixin/ru.png differ diff --git a/public/images/weixin/s.png b/public/images/weixin/s.png new file mode 100644 index 0000000..9bbdf3c Binary files /dev/null and b/public/images/weixin/s.png differ diff --git a/public/images/weixin/sbzf.png b/public/images/weixin/sbzf.png new file mode 100644 index 0000000..979db58 Binary files /dev/null and b/public/images/weixin/sbzf.png differ diff --git a/public/images/weixin/scph.png b/public/images/weixin/scph.png new file mode 100644 index 0000000..86dfd20 Binary files /dev/null and b/public/images/weixin/scph.png differ diff --git a/public/images/weixin/sea.png b/public/images/weixin/sea.png new file mode 100644 index 0000000..8b75ad8 Binary files /dev/null and b/public/images/weixin/sea.png differ diff --git a/public/images/weixin/search.png b/public/images/weixin/search.png new file mode 100644 index 0000000..dedab68 Binary files /dev/null and b/public/images/weixin/search.png differ diff --git a/public/images/weixin/search_icon.png b/public/images/weixin/search_icon.png new file mode 100644 index 0000000..85ba401 Binary files /dev/null and b/public/images/weixin/search_icon.png differ diff --git a/public/images/weixin/set.png b/public/images/weixin/set.png new file mode 100644 index 0000000..ff11de5 Binary files /dev/null and b/public/images/weixin/set.png differ diff --git a/public/images/weixin/sxjt.png b/public/images/weixin/sxjt.png new file mode 100644 index 0000000..1ee8290 Binary files /dev/null and b/public/images/weixin/sxjt.png differ diff --git a/public/images/weixin/user68.jpg b/public/images/weixin/user68.jpg new file mode 100644 index 0000000..4aa9156 Binary files /dev/null and b/public/images/weixin/user68.jpg differ diff --git a/public/images/weixin/w1.png b/public/images/weixin/w1.png new file mode 100644 index 0000000..3896f3f Binary files /dev/null and b/public/images/weixin/w1.png differ diff --git a/public/images/weixin/w2.png b/public/images/weixin/w2.png new file mode 100644 index 0000000..8df8254 Binary files /dev/null and b/public/images/weixin/w2.png differ diff --git a/public/images/weixin/w3.png b/public/images/weixin/w3.png new file mode 100644 index 0000000..22885e3 Binary files /dev/null and b/public/images/weixin/w3.png differ diff --git a/public/images/weixin/w39.png b/public/images/weixin/w39.png new file mode 100644 index 0000000..5d5c0c2 Binary files /dev/null and b/public/images/weixin/w39.png differ diff --git a/public/images/weixin/w4.png b/public/images/weixin/w4.png new file mode 100644 index 0000000..a9dc599 Binary files /dev/null and b/public/images/weixin/w4.png differ diff --git a/public/images/weixin/w5.png b/public/images/weixin/w5.png new file mode 100644 index 0000000..08902e8 Binary files /dev/null and b/public/images/weixin/w5.png differ diff --git a/public/images/weixin/w6.png b/public/images/weixin/w6.png new file mode 100644 index 0000000..30bdfc9 Binary files /dev/null and b/public/images/weixin/w6.png differ diff --git a/public/images/weixin/w7.png b/public/images/weixin/w7.png new file mode 100644 index 0000000..db93d0c Binary files /dev/null and b/public/images/weixin/w7.png differ diff --git a/public/images/weixin/w8.png b/public/images/weixin/w8.png new file mode 100644 index 0000000..badfc1a Binary files /dev/null and b/public/images/weixin/w8.png differ diff --git a/public/images/weixin/wcup.png b/public/images/weixin/wcup.png new file mode 100644 index 0000000..1b04ba0 Binary files /dev/null and b/public/images/weixin/wcup.png differ diff --git a/public/images/weixin/wechat.png b/public/images/weixin/wechat.png new file mode 100644 index 0000000..5c3e20c Binary files /dev/null and b/public/images/weixin/wechat.png differ diff --git a/public/images/weixin/wechatpay.png b/public/images/weixin/wechatpay.png new file mode 100644 index 0000000..3499799 Binary files /dev/null and b/public/images/weixin/wechatpay.png differ diff --git a/public/images/weixin/write.png b/public/images/weixin/write.png new file mode 100644 index 0000000..0488d80 Binary files /dev/null and b/public/images/weixin/write.png differ diff --git a/public/images/weixin/xjt.png b/public/images/weixin/xjt.png new file mode 100644 index 0000000..59f4595 Binary files /dev/null and b/public/images/weixin/xjt.png differ diff --git a/public/images/weixin/xx.png b/public/images/weixin/xx.png new file mode 100644 index 0000000..b32a5dd Binary files /dev/null and b/public/images/weixin/xx.png differ diff --git a/public/images/weixin/xxgro.png b/public/images/weixin/xxgro.png new file mode 100644 index 0000000..bccebae Binary files /dev/null and b/public/images/weixin/xxgro.png differ diff --git a/public/images/weixin/xxx.png b/public/images/weixin/xxx.png new file mode 100644 index 0000000..0d1deec Binary files /dev/null and b/public/images/weixin/xxx.png differ diff --git a/public/images/weixin/yg.png b/public/images/weixin/yg.png new file mode 100644 index 0000000..ef9c33f Binary files /dev/null and b/public/images/weixin/yg.png differ diff --git a/public/images/weixin/yg_a.png b/public/images/weixin/yg_a.png new file mode 100644 index 0000000..9a987f4 Binary files /dev/null and b/public/images/weixin/yg_a.png differ diff --git a/public/images/weixin/yr.png b/public/images/weixin/yr.png new file mode 100644 index 0000000..1322629 Binary files /dev/null and b/public/images/weixin/yr.png differ diff --git a/public/images/weixin/zy.png b/public/images/weixin/zy.png new file mode 100644 index 0000000..db60e92 Binary files /dev/null and b/public/images/weixin/zy.png differ diff --git a/public/images/weixin/zylr.png b/public/images/weixin/zylr.png new file mode 100644 index 0000000..a9477b7 Binary files /dev/null and b/public/images/weixin/zylr.png differ diff --git a/public/images/weixin/zz1.png b/public/images/weixin/zz1.png new file mode 100644 index 0000000..d8bca90 Binary files /dev/null and b/public/images/weixin/zz1.png differ diff --git a/public/images/weixin/zz10.png b/public/images/weixin/zz10.png new file mode 100644 index 0000000..01ee8a7 Binary files /dev/null and b/public/images/weixin/zz10.png differ diff --git a/public/images/weixin/zz2.png b/public/images/weixin/zz2.png new file mode 100644 index 0000000..f73400a Binary files /dev/null and b/public/images/weixin/zz2.png differ diff --git a/public/images/weixin/zz3.png b/public/images/weixin/zz3.png new file mode 100644 index 0000000..cf89826 Binary files /dev/null and b/public/images/weixin/zz3.png differ diff --git a/public/images/weixin/zz4.png b/public/images/weixin/zz4.png new file mode 100644 index 0000000..9bdd561 Binary files /dev/null and b/public/images/weixin/zz4.png differ diff --git a/public/images/weixin/zz5.png b/public/images/weixin/zz5.png new file mode 100644 index 0000000..56c7f6b Binary files /dev/null and b/public/images/weixin/zz5.png differ diff --git a/public/images/weixin/zz6.png b/public/images/weixin/zz6.png new file mode 100644 index 0000000..90ba2fc Binary files /dev/null and b/public/images/weixin/zz6.png differ diff --git a/public/images/weixin/zz7.png b/public/images/weixin/zz7.png new file mode 100644 index 0000000..c780c26 Binary files /dev/null and b/public/images/weixin/zz7.png differ diff --git a/public/images/weixin/zz8.png b/public/images/weixin/zz8.png new file mode 100644 index 0000000..cd02e81 Binary files /dev/null and b/public/images/weixin/zz8.png differ diff --git a/public/images/weixin/zz9.png b/public/images/weixin/zz9.png new file mode 100644 index 0000000..baff974 Binary files /dev/null and b/public/images/weixin/zz9.png differ diff --git a/public/images2/0.png b/public/images2/0.png deleted file mode 100644 index 1cc62eb..0000000 Binary files a/public/images2/0.png and /dev/null differ diff --git a/public/images2/1.jpg b/public/images2/1.jpg deleted file mode 100644 index 3cc68dd..0000000 Binary files a/public/images2/1.jpg and /dev/null differ diff --git a/public/images2/1.png b/public/images2/1.png deleted file mode 100644 index 9afcef0..0000000 Binary files a/public/images2/1.png and /dev/null differ diff --git a/public/images2/2.jpg b/public/images2/2.jpg deleted file mode 100644 index a86e0d2..0000000 Binary files a/public/images2/2.jpg and /dev/null differ diff --git a/public/images2/20160820232652166.png b/public/images2/20160820232652166.png deleted file mode 100644 index aca4199..0000000 Binary files a/public/images2/20160820232652166.png and /dev/null differ diff --git a/public/images2/20161108163616914.jpg b/public/images2/20161108163616914.jpg deleted file mode 100644 index 3ee7092..0000000 Binary files a/public/images2/20161108163616914.jpg and /dev/null differ diff --git a/public/images2/20161108163633172.jpg b/public/images2/20161108163633172.jpg deleted file mode 100644 index 674c187..0000000 Binary files a/public/images2/20161108163633172.jpg and /dev/null differ diff --git a/public/images2/20161108163706251.png b/public/images2/20161108163706251.png deleted file mode 100644 index 3477b15..0000000 Binary files a/public/images2/20161108163706251.png and /dev/null differ diff --git a/public/images2/3.jpg b/public/images2/3.jpg deleted file mode 100644 index 9e26d21..0000000 Binary files a/public/images2/3.jpg and /dev/null differ diff --git a/public/images2/4.jpg b/public/images2/4.jpg deleted file mode 100644 index d6d0326..0000000 Binary files a/public/images2/4.jpg and /dev/null differ diff --git a/public/images2/applead.png b/public/images2/applead.png deleted file mode 100644 index 57a29fd..0000000 Binary files a/public/images2/applead.png and /dev/null differ diff --git a/public/images2/b.gif b/public/images2/b.gif deleted file mode 100644 index 53182cd..0000000 Binary files a/public/images2/b.gif and /dev/null differ diff --git a/public/images2/banner.gif b/public/images2/banner.gif deleted file mode 100644 index 09dd920..0000000 Binary files a/public/images2/banner.gif and /dev/null differ diff --git a/public/images2/banner.jpg b/public/images2/banner.jpg deleted file mode 100644 index 91dbc3e..0000000 Binary files a/public/images2/banner.jpg and /dev/null differ diff --git a/public/images2/blue_icon.png b/public/images2/blue_icon.png deleted file mode 100644 index 696d45d..0000000 Binary files a/public/images2/blue_icon.png and /dev/null differ diff --git a/public/images2/chinese.png b/public/images2/chinese.png deleted file mode 100644 index 471ccb7..0000000 Binary files a/public/images2/chinese.png and /dev/null differ diff --git a/public/images2/foundation.png b/public/images2/foundation.png deleted file mode 100644 index f20e0d4..0000000 Binary files a/public/images2/foundation.png and /dev/null differ diff --git a/public/images2/ico_specific02_8.png b/public/images2/ico_specific02_8.png deleted file mode 100644 index 34850e0..0000000 Binary files a/public/images2/ico_specific02_8.png and /dev/null differ diff --git a/public/images2/icon.gif b/public/images2/icon.gif deleted file mode 100644 index 9dc830b..0000000 Binary files a/public/images2/icon.gif and /dev/null differ diff --git a/public/images2/iconfont-close.png b/public/images2/iconfont-close.png deleted file mode 100644 index 465c9c8..0000000 Binary files a/public/images2/iconfont-close.png and /dev/null differ diff --git a/public/images2/index.png b/public/images2/index.png deleted file mode 100644 index ea63fd2..0000000 Binary files a/public/images2/index.png and /dev/null differ diff --git a/public/images2/left_li.gif b/public/images2/left_li.gif deleted file mode 100644 index fc18b47..0000000 Binary files a/public/images2/left_li.gif and /dev/null differ diff --git a/public/images2/li.png b/public/images2/li.png deleted file mode 100644 index f706934..0000000 Binary files a/public/images2/li.png and /dev/null differ diff --git a/public/images2/logo.png b/public/images2/logo.png deleted file mode 100644 index 629e413..0000000 Binary files a/public/images2/logo.png and /dev/null differ diff --git a/public/images2/mobile.png b/public/images2/mobile.png deleted file mode 100644 index 6898d71..0000000 Binary files a/public/images2/mobile.png and /dev/null differ diff --git a/public/images2/nopic.gif b/public/images2/nopic.gif deleted file mode 100644 index 1ed431f..0000000 Binary files a/public/images2/nopic.gif and /dev/null differ diff --git a/public/images2/off.png b/public/images2/off.png deleted file mode 100644 index 34915fe..0000000 Binary files a/public/images2/off.png and /dev/null differ diff --git a/public/images2/on.png b/public/images2/on.png deleted file mode 100644 index fce11c6..0000000 Binary files a/public/images2/on.png and /dev/null differ diff --git a/public/images2/online_bg.png b/public/images2/online_bg.png deleted file mode 100644 index 4b95318..0000000 Binary files a/public/images2/online_bg.png and /dev/null differ diff --git a/public/images2/title_line.jpg b/public/images2/title_line.jpg deleted file mode 100644 index b8e167a..0000000 Binary files a/public/images2/title_line.jpg and /dev/null differ diff --git a/public/images2/toolbar.png b/public/images2/toolbar.png deleted file mode 100644 index d7972ba..0000000 Binary files a/public/images2/toolbar.png and /dev/null differ diff --git a/public/images2/top_bg.jpg b/public/images2/top_bg.jpg deleted file mode 100644 index 227d169..0000000 Binary files a/public/images2/top_bg.jpg and /dev/null differ diff --git a/public/images2/w1.png b/public/images2/w1.png deleted file mode 100644 index 1b20e8d..0000000 Binary files a/public/images2/w1.png and /dev/null differ diff --git a/public/images2/web.png b/public/images2/web.png deleted file mode 100644 index a36f1e5..0000000 Binary files a/public/images2/web.png and /dev/null differ diff --git a/public/images2/yi-img-icon.png b/public/images2/yi-img-icon.png deleted file mode 100644 index 583a072..0000000 Binary files a/public/images2/yi-img-icon.png and /dev/null differ diff --git a/public/js/layer-mobile.js b/public/js/layer-mobile.js new file mode 100644 index 0000000..2eb3e28 --- /dev/null +++ b/public/js/layer-mobile.js @@ -0,0 +1,2 @@ +/*! layer mobile-v2.0 弹层组件移动版 License LGPL http://layer.layui.com/mobile By 贤心 */ +;!function(a){"use strict";var b=document,c="querySelectorAll",d="getElementsByClassName",e=function(a){return b[c](a)},f={type:0,shade:!0,shadeClose:!0,fixed:!0,anim:"scale"},g={extend:function(a){var b=JSON.parse(JSON.stringify(f));for(var c in a)b[c]=a[c];return b},timer:{},end:{}};g.touch=function(a,b){a.addEventListener("click",function(a){b.call(this,a)},!1)};var h=0,i=["layui-m-layer"],j=function(a){var b=this;b.config=g.extend(a),b.view()};j.prototype.view=function(){var a=this,c=a.config,f=b.createElement("div");a.id=f.id=i[0]+h,f.setAttribute("class",i[0]+" "+i[0]+(c.type||0)),f.setAttribute("index",h);var g=function(){var a="object"==typeof c.title;return c.title?'

'+(a?c.title[0]:c.title)+"

":""}(),j=function(){"string"==typeof c.btn&&(c.btn=[c.btn]);var a,b=(c.btn||[]).length;return 0!==b&&c.btn?(a=''+c.btn[0]+"",2===b&&(a=''+c.btn[1]+""+a),'
'+a+"
"):""}();if(c.fixed||(c.top=c.hasOwnProperty("top")?c.top:100,c.style=c.style||"",c.style+=" top:"+(b.body.scrollTop+c.top)+"px"),2===c.type&&(c.content='

'+(c.content||"")+"

"),c.skin&&(c.anim="up"),"msg"===c.skin&&(c.shade=!1),f.innerHTML=(c.shade?"
':"")+'
"+g+'
'+c.content+"
"+j+"
",!c.type||2===c.type){var k=b[d](i[0]+c.type),l=k.length;l>=1&&layer.close(k[0].getAttribute("index"))}document.body.appendChild(f);var m=a.elem=e("#"+a.id)[0];c.success&&c.success(m),a.index=h++,a.action(c,m)},j.prototype.action=function(a,b){var c=this;a.time&&(g.timer[c.index]=setTimeout(function(){layer.close(c.index)},1e3*a.time));var e=function(){var b=this.getAttribute("type");0==b?(a.no&&a.no(),layer.close(c.index)):a.yes?a.yes(c.index):layer.close(c.index)};if(a.btn)for(var f=b[d]("layui-m-layerbtn")[0].children,h=f.length,i=0;h>i;i++)g.touch(f[i],e);if(a.shade&&a.shadeClose){var j=b[d]("layui-m-layershade")[0];g.touch(j,function(){layer.close(c.index,a.end)})}a.end&&(g.end[c.index]=a.end)},a.layer={v:"2.0",index:h,open:function(a){var b=new j(a||{});return b.index},close:function(a){var c=e("#"+i[0]+a)[0];c&&(c.innerHTML="",b.body.removeChild(c),clearTimeout(g.timer[a]),delete g.timer[a],"function"==typeof g.end[a]&&g.end[a](),delete g.end[a])},closeAll:function(){for(var a=b[d](i[0]),c=0,e=a.length;e>c;c++)layer.close(0|a[0].getAttribute("index"))}},"function"==typeof define?define(function(){return layer}):function(){var a=document.scripts,c=a[a.length-1],d=c.src,e=d.substring(0,d.lastIndexOf("/")+1);c.getAttribute("merge")||document.head.appendChild(function(){var a=b.createElement("link");return a.href=e+"need/layer.css?2.0",a.type="text/css",a.rel="styleSheet",a.id="layermcss",a}())}()}(window); \ No newline at end of file diff --git a/public/js/layer-pc.js b/public/js/layer-pc.js new file mode 100644 index 0000000..2373ba9 --- /dev/null +++ b/public/js/layer-pc.js @@ -0,0 +1,2 @@ +/*! layer-v3.1.0 Web弹层组件 MIT License http://layer.layui.com/ By 贤心 */ + ;!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.scripts,t=e[e.length-1],i=t.src;if(!t.getAttribute("merge"))return i.substring(0,i.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,i,n){if(r.path){var a=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getElementById(f)||a.appendChild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(o.getStyle(document.getElementById(f),"width"))?i():setTimeout(u,100))}()}}},r={v:"3.1.0",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
'+(f?r.title[0]:r.title)+"
":"";return r.zIndex=s,t([r.shade?'
':"",'
'+(e&&2!=r.type?"":u)+'
'+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
'+function(){var e=c?'':"";return r.closeBtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
'+e+"
"}():"")+(r.resize?'':"")+"
"],u,i('
')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"http://layer.layui.com","auto"];t.content='';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i(this).removeClass(u)})}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxWidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerWidth()),o.outerWidth()>a.maxWidth&&o.width(a.maxWidth));var s=[o.innerWidth(),o.innerHeight()],f=o.find(l[1]).outerHeight()||0,c=o.find("."+l[6]).outerHeight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parseFloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxHeight>0&&o.outerHeight()>a.maxHeight?(s[1]=a.maxHeight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(e){s=e.find(".layui-layer-input"),s.focus(),"function"==typeof f&&f(e)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a=''+t[0].title+"";i"+t[i].title+"";return a}(),content:'
    '+function(){var e=t.length,i=1,a="";if(e>0)for(a='
  • '+(t[0].content||"no content")+"
  • ";i'+(t[i].content||"no content")+"";return a}()+"
",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var a=i(this),o=a.index();a.addClass(n).siblings().removeClass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||
'+(u.length>1?'':"")+'
'+(u[d].alt||"")+""+s.imgIndex+"/"+u.length+"
",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window); \ No newline at end of file diff --git a/public/js/mobile-util.js b/public/js/mobile-util.js new file mode 100644 index 0000000..fc92055 --- /dev/null +++ b/public/js/mobile-util.js @@ -0,0 +1,119 @@ +/** + * MobileWeb 通用功能助手,包含常用的 UA 判断、页面适配、search 参数转 键值对。 + * 该 JS 应在 head 中尽可能早的引入,减少重绘。 + * + * fixScreen 方法根据两种情况适配,该方法自动执行。 + * 1. 定宽: 对应 meta 标签写法 -- + * 该方法会提取 width 值,主动添加 scale 相关属性值。 + * 注意: 如果 meta 标签中指定了 initial-scale, 该方法将不做处理(即不执行)。 + * 2. REM: 不用写 meta 标签,该方法根据 dpr 自动生成,并在 html 标签中加上 data-dpr 和 font-size 两个属性值。 + * 该方法约束:IOS 系统最大 dpr = 3,其它系统 dpr = 1,页面每 dpr 最大宽度(即页面宽度/dpr) = 750,REM 换算比值为 16。 + * 对应 css 开发,任何弹性尺寸均使用 rem 单位,rem 默认宽度为 视觉稿宽度 / 16; + * scss 中 $ppr(pixel per rem) 变量写法 -- $ppr: 750px/16/1rem; + * 元素尺寸写法 -- html { font-size: $ppr*1rem; } body { width: 750px/$ppr; }。 + */ +window.mobileUtil = (function(win, doc) { + var UA = navigator.userAgent, + isAndroid = /android|adr/gi.test(UA), + isIos = /iphone|ipod|ipad/gi.test(UA) && !isAndroid, // 据说某些国产机的UA会同时包含 android iphone 字符 + isMobile = isAndroid || isIos; // 粗略的判断 + + return { + isAndroid: isAndroid, + isIos: isIos, + isMobile: isMobile, + + isNewsApp: /NewsApp\/[\d\.]+/gi.test(UA), + isWeixin: /MicroMessenger/gi.test(UA), + isQQ: /QQ\/\d/gi.test(UA), + isYixin: /YiXin/gi.test(UA), + isWeibo: /Weibo/gi.test(UA), + isTXWeibo: /T(?:X|encent)MicroBlog/gi.test(UA), + + tapEvent: isMobile ? 'tap' : 'click', + + /** + * 缩放页面 + */ + fixScreen: function() { + var metaEl = doc.querySelector('meta[name="viewport"]'), + metaCtt = metaEl ? metaEl.content : '', + matchScale = metaCtt.match(/initial\-scale=([\d\.]+)/), + matchWidth = metaCtt.match(/width=([^,\s]+)/); + + if ( !metaEl ) { // REM + var docEl = doc.documentElement, + maxwidth = docEl.dataset.mw || 750, // 每 dpr 最大页面宽度 + dpr = isIos ? Math.min(win.devicePixelRatio, 3) : 1, + scale = 1 / dpr, + tid; + + docEl.removeAttribute('data-mw'); + docEl.dataset.dpr = dpr; + metaEl = doc.createElement('meta'); + metaEl.name = 'viewport'; + metaEl.content = fillScale(scale); + docEl.firstElementChild.appendChild(metaEl); + + var refreshRem = function() { + var width = docEl.getBoundingClientRect().width; + if (width / dpr > maxwidth) { + width = maxwidth * dpr; + } + var rem = width / 16; + docEl.style.fontSize = rem + 'px'; + }; + + win.addEventListener('resize', function() { + clearTimeout(tid); + tid = setTimeout(refreshRem, 300); + }, false); + win.addEventListener('pageshow', function(e) { + if (e.persisted) { + clearTimeout(tid); + tid = setTimeout(refreshRem, 300); + } + }, false); + + refreshRem(); + } else if ( isMobile && !matchScale && ( matchWidth && matchWidth[1] != 'device-width' ) ) { // 定宽 + var width = parseInt(matchWidth[1]), + iw = win.innerWidth || width, + ow = win.outerWidth || iw, + sw = win.screen.width || iw, + saw = win.screen.availWidth || iw, + ih = win.innerHeight || width, + oh = win.outerHeight || ih, + ish = win.screen.height || ih, + sah = win.screen.availHeight || ih, + w = Math.min(iw,ow,sw,saw,ih,oh,ish,sah), + scale = w / width; + + if ( scale < 1 ) { + metaEl.content = metaCtt + ',' + fillScale(scale); + } + } + + function fillScale(scale) { + return 'initial-scale=' + scale + ',maximum-scale=' + scale + ',minimum-scale=' + scale; + } + }, + + /** + * 转href参数成键值对 + * @param href {string} 指定的href,默认为当前页href + * @returns {object} 键值对 + */ + getSearch: function(href) { + href = href || win.location.search; + var data = {},reg = new RegExp( "([^?=&]+)(=([^&]*))?", "g" ); + href && href.replace(reg,function( $0, $1, $2, $3 ){ + data[ $1 ] = $3; + }); + return data; + } + }; +})(window, document); + +// 默认直接适配页面 +mobileUtil.fixScreen(); \ No newline at end of file diff --git a/public/js/swiper/swiper.min.js b/public/js/swiper.min.js similarity index 100% rename from public/js/swiper/swiper.min.js rename to public/js/swiper.min.js diff --git a/public/js/weixin/mobile.js b/public/js/weixin/mobile.js new file mode 100644 index 0000000..e5e0c19 --- /dev/null +++ b/public/js/weixin/mobile.js @@ -0,0 +1,11 @@ +$(function(){ + //头部菜单 + $('.classreturn .nav_menu a:last').click(function(e){ + $('.tpnavf').toggle(); + e.stopPropagation(); + }); + //左侧导航 + $('.classlist ul li').click(function(){ + $(this).addClass('red').siblings().removeClass('red'); + }); +}) \ No newline at end of file diff --git a/resources/views/admin/slide/add.blade.php b/resources/views/admin/slide/add.blade.php index 7d79072..a59a946 100644 --- a/resources/views/admin/slide/add.blade.php +++ b/resources/views/admin/slide/add.blade.php @@ -43,7 +43,7 @@ 图片: - + diff --git a/resources/views/weixin/404.blade.php b/resources/views/weixin/404.blade.php new file mode 100644 index 0000000..cf6e77b --- /dev/null +++ b/resources/views/weixin/404.blade.php @@ -0,0 +1,20 @@ + + +您访问的页面不存在或已被删除! + + +
+

:(

+

您访问的页面不存在或已被删除!

+

返回首页

+
+ \ No newline at end of file diff --git a/resources/views/weixin/common/footer.blade.php b/resources/views/weixin/common/footer.blade.php new file mode 100644 index 0000000..7805639 --- /dev/null +++ b/resources/views/weixin/common/footer.blade.php @@ -0,0 +1,11 @@ + + + \ No newline at end of file diff --git a/resources/views/weixin/common/header.blade.php b/resources/views/weixin/common/header.blade.php new file mode 100644 index 0000000..bcd0eca --- /dev/null +++ b/resources/views/weixin/common/header.blade.php @@ -0,0 +1,36 @@ + + + \ No newline at end of file diff --git a/resources/views/weixin/index/category.blade.php b/resources/views/weixin/index/category.blade.php new file mode 100644 index 0000000..03700f2 --- /dev/null +++ b/resources/views/weixin/index/category.blade.php @@ -0,0 +1,31 @@ + + +<?php if(empty($post["seotitle"])){echo $post["name"];}else{echo $post["seotitle"];} ?> + + +@include('home.common.header') +
+
+ + +
+ +
+@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/category2.blade.php b/resources/views/weixin/index/category2.blade.php new file mode 100644 index 0000000..82dd7f2 --- /dev/null +++ b/resources/views/weixin/index/category2.blade.php @@ -0,0 +1,57 @@ + +<?php echo $post['seotitle'];if($page!=0){echo ' '.($page+1);} ?>" />" /> +@include('home.common.header')
+ +

+
+ +
+

热门文章

换一换
+
+ +
+

猜你喜欢

换一换
+
5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>
$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>">
'.$row['writer'].'';}elseif(!empty($row['source'])){echo ''.$row['source'].'';} ?> 阅读()
+ +
+ +@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/detail.blade.php b/resources/views/weixin/index/detail.blade.php new file mode 100644 index 0000000..41b14a9 --- /dev/null +++ b/resources/views/weixin/index/detail.blade.php @@ -0,0 +1,24 @@ + +<?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?> + +@include('home.common.header') +
+ +
+@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/goods.blade.php b/resources/views/weixin/index/goods.blade.php new file mode 100644 index 0000000..99e27e5 --- /dev/null +++ b/resources/views/weixin/index/goods.blade.php @@ -0,0 +1,25 @@ + +<?php echo $post["title"]; ?>_<?php echo sysconfig('CMS_WEBNAME'); ?> + +@include('home.common.header') +
+ +
+@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/goodscat.blade.php b/resources/views/weixin/index/goodscat.blade.php new file mode 100644 index 0000000..9cf9dc9 --- /dev/null +++ b/resources/views/weixin/index/goodscat.blade.php @@ -0,0 +1,23 @@ + + +<?php if(empty($post["seotitle"])){echo $post["name"];}else{echo $post["seotitle"];} ?> + + +@include('home.common.header') + + +@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/index.blade.php b/resources/views/weixin/index/index.blade.php new file mode 100644 index 0000000..9960344 --- /dev/null +++ b/resources/views/weixin/index/index.blade.php @@ -0,0 +1,208 @@ + +商城 + + + + + + + + +
+ +
+
+ $v){ ?> +
<?php echo $v['title']; ?>
+ +
+ +
+
+
+ + + + + + + +
+
+
新闻
+
音乐
+
Slide 3
+
Slide 4
+
Slide 5
+
Slide 6
+
Slide 7
+
Slide 8
+
Slide 9
+
Slide 10
+
Slide 3
+
Slide 4
+
Slide 5
+
Slide 6
+
Slide 7
+
Slide 8
+
Slide 9
+
Slide 10
+
+
+ + + + + + + + + +
+
+
+
+
    + + $v){ ?>
  • +
    +
+
+
+
+ + + + + + + +@include('weixin.common.footer') + \ No newline at end of file diff --git a/resources/views/weixin/index/login.blade.php b/resources/views/weixin/index/login.blade.php new file mode 100644 index 0000000..c44253f --- /dev/null +++ b/resources/views/weixin/index/login.blade.php @@ -0,0 +1,171 @@ + +后台登录 + + +
+
+
+
+
+

后台登录

+

请输入您的用户名、密码:

+
+
+ +
+
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/resources/views/weixin/index/page.blade.php b/resources/views/weixin/index/page.blade.php new file mode 100644 index 0000000..409a394 --- /dev/null +++ b/resources/views/weixin/index/page.blade.php @@ -0,0 +1,30 @@ + + +<?php if(empty($post["seotitle"])){echo $post["title"];}else{echo $post["seotitle"];} ?>_<?php echo sysconfig('CMS_WEBNAME'); ?> + + +@include('home.common.header') +
+
+
+ + +

+
+
+ + +
+ +
+@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/search.blade.php b/resources/views/weixin/index/search.blade.php new file mode 100644 index 0000000..4850402 --- /dev/null +++ b/resources/views/weixin/index/search.blade.php @@ -0,0 +1,26 @@ + + +搜索结果_<?php echo sysconfig('CMS_WEBNAME'); ?> + + +@include('home.common.header') +
+ + +
+@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/sitemap.blade.php b/resources/views/weixin/index/sitemap.blade.php new file mode 100644 index 0000000..08412f8 --- /dev/null +++ b/resources/views/weixin/index/sitemap.blade.php @@ -0,0 +1,9 @@ + + +/daily1.0 +/contact.html +300));foreach($posts as $row){ ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>monthly +100,"orderby"=>'rand()'));foreach($posts as $row){ ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>monthly + +$row['id'],"type"=>'list')); ?> + \ No newline at end of file diff --git a/resources/views/weixin/index/tag.blade.php b/resources/views/weixin/index/tag.blade.php new file mode 100644 index 0000000..82ad206 --- /dev/null +++ b/resources/views/weixin/index/tag.blade.php @@ -0,0 +1,29 @@ + + +<?php if(empty($post["title"])){echo $post["tag"];}else{echo $post["title"];}if($page!=0){echo ' '.($page+1);} ?>" />" /> + + +@include('home.common.header') + +@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/tag2.blade.php b/resources/views/weixin/index/tag2.blade.php new file mode 100644 index 0000000..419bdeb --- /dev/null +++ b/resources/views/weixin/index/tag2.blade.php @@ -0,0 +1,58 @@ + +<?php if(empty($post["title"])){echo $post["tag"];}else{echo $post["title"];}if($page!=0){echo ' '.($page+1);} ?>" />" /> +@include('home.common.header')
+ +

'.$post['content'].'
';} ?>
+ +

+ +
+

相关推荐

换一换
+
+ +
+

猜你喜欢

换一换
+
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>">
'.$row['writer'].'';}elseif(!empty($row['source'])){echo ''.$row['source'].'';} ?> 阅读()
+ +
+ +@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/tag3.blade.php b/resources/views/weixin/index/tag3.blade.php new file mode 100644 index 0000000..0e00325 --- /dev/null +++ b/resources/views/weixin/index/tag3.blade.php @@ -0,0 +1,57 @@ + +<?php if(empty($post["title"])){echo $post["tag"];}else{echo $post["title"];}if($page!=0){echo ' '.($page+1);} ?>" />" /> +@include('home.common.header')
+ +

+
+ +
+

相关推荐

换一换
+
+ +
+

猜你喜欢

换一换
+
5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>">
'.$row['writer'].'';}elseif(!empty($row['source'])){echo ''.$row['source'].'';} ?> 阅读()
+ +
+ +@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/tags.blade.php b/resources/views/weixin/index/tags.blade.php new file mode 100644 index 0000000..9d9e7f5 --- /dev/null +++ b/resources/views/weixin/index/tags.blade.php @@ -0,0 +1,7 @@ + +笔记本电脑相关知识_<?php echo sysconfig('CMS_WEBNAME'); ?> +@include('home.common.header')
+@include('home.common.footer') \ No newline at end of file diff --git a/resources/views/weixin/index/test.blade.php b/resources/views/weixin/index/test.blade.php new file mode 100644 index 0000000..33bebab --- /dev/null +++ b/resources/views/weixin/index/test.blade.php @@ -0,0 +1,8 @@ + +笔记本电脑相关知识 +
{{ csrf_field() }} + + + +
+ \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index f2586f0..56fb195 100644 --- a/routes/web.php +++ b/routes/web.php @@ -53,6 +53,26 @@ Route::group(['namespace' => 'Home'], function () { }); }); +//微信路由 +Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin'], function () { + Route::get('/', 'IndexController@index')->name('weixin'); + Route::get('/page404', 'IndexController@page404')->name('page404'); //404页面 + Route::get('/tags', 'IndexController@tags')->name('weixin_tags'); + Route::get('/search/{id}', 'IndexController@search')->name('weixin_search'); //搜过页面 + Route::get('/p/{id}', 'IndexController@detail')->name('weixin_detail'); //详情页 + Route::get('/cat{cat}/{page}', 'IndexController@category'); //分类页,分页 + Route::get('/cat{cat}', 'IndexController@category')->name('weixin_category'); //分类页 + Route::get('/tag{tag}/{page}', 'IndexController@tag'); //标签页,分页 + Route::get('/tag{tag}', 'IndexController@tag')->name('weixin_tag'); //标签页 + Route::get('/page/{id}', 'IndexController@page')->name('weixin_singlepage'); //单页 + Route::get('/goods/{id}', 'IndexController@goods')->name('weixin_goods'); //商品详情页 + Route::get('/goodstype{cat}/{page}', 'IndexController@goodstype'); //产品分类页,分页 + Route::get('/goodstype{cat}', 'IndexController@goodstype')->name('weixin_goodstype'); //产品分类页 + Route::get('/sitemap.xml', 'IndexController@sitemap')->name('weixin_sitemap');//sitemap + + Route::get('/test', 'IndexController@test')->name('weixin_test'); //测试 +}); + //后台路由 Route::group(['prefix' => 'fladmin', 'namespace' => 'Admin', 'middleware' => ['web']], function () { @@ -179,14 +199,21 @@ Route::group(['prefix' => 'fladmin', 'namespace' => 'Admin', 'middleware' => ['w Route::get('/test', 'LoginController@test')->name('admin_test'); }); -//接口路由,无需token验证 +//无需token验证,全局 Route::group(['middleware' => ['web']], function () { Route::post('/dataapi/listarc', 'Api\IndexController@listarc')->name('api_listarc'); Route::post('/dataapi/customer_login', 'Api\WechatAuthController@customerLogin'); Route::post('/dataapi/', 'Api\UserController@signin'); //签到 }); -//接口路由,需token验证 +//API接口路由,无需token验证 +Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web']], function () { + //轮播图 + Route::get('/slide_list', 'SlideController@slideList'); + //文章列表 + Route::get('/article_list', 'ArticleController@articleList'); +}); +//API接口路由,需token验证 Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web','token']], function () { //用户中心 Route::post('/user_signin', 'UserController@signin'); //签到 @@ -241,8 +268,6 @@ Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web Route::post('/image_upload', 'ImageController@imageUpload'); //普通文件/图片上传 //二维码 Route::get('/create_simple_qrcode', 'QrcodeController@createSimpleQrcode'); - //轮播图 - Route::get('/slide_list', 'SlideController@slideList'); //收货地址 Route::get('/user_address_list', 'UserAddressController@userAddressList'); Route::get('/user_address_detail', 'UserAddressController@userAddressDetail');