作者 魏强

渲染更新

1 -<?php  
2 -// +----------------------------------------------------------------------  
3 -// | bronet [ 以客户为中心 以奋斗者为本 ]  
4 -// +----------------------------------------------------------------------  
5 -// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.  
6 -// +----------------------------------------------------------------------  
7 -// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )  
8 -// +----------------------------------------------------------------------  
9 -namespace app\portal\controller;  
10 -  
11 -use app\portal\model\OrderModel;  
12 -use cmf\controller\HomeBaseController;  
13 -use EasyWeChat\Foundation\Application;  
14 -use think\Db;  
15 -use think\Loader;  
16 -use think\Session;  
17 -  
18 -//订单  
19 -class OrderController extends CommentController  
20 -{  
21 -// 我要免押金  
22 - public function deposit()  
23 - {  
24 - $where_art['type'] = 3;  
25 - $where_art['status'] = array('neq',9);  
26 - $art = Db::name('Art')->where($where_art)->order('score desc,create_time desc')->limit(1)->find();  
27 - if($art){  
28 - $art['content'] = htmlspecialchars_decode($art['content']);  
29 - }  
30 - $this->assign('art',$art);  
31 - return $this->fetch('Order/deposit');  
32 - }  
33 -// 租车生成订单  
34 - public function order(){  
35 - Db::startTrans();  
36 - $data = $this->request->param();  
37 - $model = new OrderModel();  
38 - $validate = Loader::validate('Order');  
39 - if(!$validate->scene('rent')->check($data)){  
40 - $this->apiResponse('0',$validate->getError());  
41 - }  
42 - $where['id'] = $data['vehicle_id'];  
43 - $where['status'] = array('neq',9);  
44 - $rent = Db::name('Vehicle')->where($where)->find();  
45 -// 加入订单主表数据  
46 - $add['order_sn'] = $this->getSn();  
47 - $add['user_id'] = Session::get('uid');  
48 - $add['start_time'] = Session::get('start_time');  
49 - $add['end_time'] = Session::get('end_time');  
50 - $add['store_id'] = $data['store_id'];  
51 - $add['name'] = $data['name'];  
52 - $add['tel'] = $data['tel'];  
53 - $add['else'] = $data['else'];  
54 - $add['number'] = 1;  
55 - $add['order_price'] = $rent['money'] + $rent['rend_money'];  
56 - $add['status'] = 2;  
57 - $res = $model->save($add);  
58 - if($res){  
59 - echo "<pre/>";  
60 - print_r($res->id);  
61 - die;  
62 - $add_son['order_id'] = $res->id;  
63 - $add['rent_money'] = $rent['rend_money'];  
64 - $add['money'] = $rent['money'];  
65 - $add['all_price'] = $rent['money'] + $rent['rend_money'];  
66 -  
67 -  
68 -  
69 - echo "<pre/>";  
70 - print_r('123');  
71 - die;  
72 - }else{  
73 - Db::rollback();  
74 - $this->apiResponse('0','订单创建失败');  
75 - }  
76 -  
77 - }  
78 -  
79 -  
80 -} 1 +<?php
  2 +// +----------------------------------------------------------------------
  3 +// | bronet [ 以客户为中心 以奋斗者为本 ]
  4 +// +----------------------------------------------------------------------
  5 +// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.
  6 +// +----------------------------------------------------------------------
  7 +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8 +// +----------------------------------------------------------------------
  9 +namespace app\portal\controller;
  10 +
  11 +use app\portal\model\OrderModel;
  12 +use app\portal\model\OrderSonModel;
  13 +use cmf\controller\HomeBaseController;
  14 +use EasyWeChat\Foundation\Application;
  15 +use think\Db;
  16 +use think\Loader;
  17 +use think\Session;
  18 +
  19 +//订单
  20 +class OrderController extends CommentController
  21 +{
  22 +// 我要免押金
  23 + public function deposit()
  24 + {
  25 + $where_art['type'] = 3;
  26 + $where_art['status'] = array('neq',9);
  27 + $art = Db::name('Art')->where($where_art)->order('score desc,create_time desc')->limit(1)->find();
  28 + if($art){
  29 + $art['content'] = htmlspecialchars_decode($art['content']);
  30 + }
  31 + $this->assign('art',$art);
  32 + return $this->fetch('Order/deposit');
  33 + }
  34 +// 租车生成订单
  35 + public function order(){
  36 + Db::startTrans();
  37 + $data = $this->request->param();
  38 + $model = new OrderModel();
  39 + $validate = Loader::validate('Order');
  40 + if(!$validate->scene('rent')->check($data)){
  41 + $this->apiResponse('0',$validate->getError());
  42 + }
  43 + $where['id'] = $data['vehicle_id'];
  44 + $where['status'] = array('neq',9);
  45 + $rent = Db::name('Vehicle')->where($where)->find();
  46 +// 加入订单主表数据
  47 + $add['order_sn'] = $this->getSn();
  48 + $add['order_type'] = 1;
  49 + $add['user_id'] = Session::get('uid');
  50 + $add['start_time'] = Session::get('start_time');
  51 + $add['end_time'] = Session::get('end_time');
  52 + $add['store_id'] = $data['store_id'];
  53 + $add['name'] = $data['name'];
  54 + $add['tel'] = $data['tel'];
  55 + $add['else'] = $data['else'];
  56 + $add['number'] = 1;
  57 + $add['order_price'] = $rent['money'] + $rent['rend_money'];
  58 + $add['status'] = 2;
  59 + $res = $model->save($add);
  60 + if($res){
  61 +// 增加子表数据
  62 + $add_son['order_id'] = $model->getLastInsID();
  63 + $add_son['vehicle_id'] = $rent['id'];
  64 + $add_son['rent_money'] = $rent['rend_money'];
  65 + $add_son['money'] = $rent['money'];
  66 + $add_son['all_price'] = $rent['money'] + $rent['rend_money'];
  67 + $add_son['number'] = 1;
  68 + $add_son['status'] = 2;
  69 + $model_son = new OrderSonModel();
  70 + $son_res = $model_son->save($add_son);
  71 + if($son_res){
  72 + Db::commit();
  73 +// 跳转支付
  74 +
  75 +
  76 + }else{
  77 + Db::rollback();
  78 + $this->apiResponse('0','订单创建失败');
  79 + }
  80 + }else{
  81 + Db::rollback();
  82 + $this->apiResponse('0','订单创建失败');
  83 + }
  84 +
  85 + }
  86 +
  87 +
  88 +}
1 -<?php  
2 -// +----------------------------------------------------------------------  
3 -// | bronet [ 以客户为中心 以奋斗者为本 ]  
4 -// +----------------------------------------------------------------------  
5 -// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.  
6 -// +----------------------------------------------------------------------  
7 -// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )  
8 -// +----------------------------------------------------------------------  
9 -// | Author: Powerless < wzxaini9@gmail.com>  
10 -// +----------------------------------------------------------------------  
11 -namespace app\user\controller;  
12 -  
13 -use think\Validate;  
14 -use cmf\controller\HomeBaseController;  
15 -use app\user\model\UserModel;  
16 -  
17 -class LoginController extends HomeBaseController  
18 -{  
19 -  
20 - /**  
21 - * 登录  
22 - */  
23 - public function index()  
24 - {  
25 - $redirect = $this->request->post("redirect");  
26 - if (empty($redirect)) {  
27 - $redirect = $this->request->server('HTTP_REFERER');  
28 - } else {  
29 - $redirect = base64_decode($redirect);  
30 - }  
31 - session('login_http_referer', $redirect);  
32 - if (cmf_is_user_login()) { //已经登录时直接跳到首页  
33 - return redirect($this->request->root() . '/');  
34 - } else {  
35 - return $this->fetch(":login");  
36 - }  
37 - }  
38 -  
39 - /**  
40 - * 登录验证提交  
41 - */  
42 - public function doLogin()  
43 - {  
44 - if ($this->request->isPost()) {  
45 - $validate = new Validate([  
46 - 'captcha' => 'require',  
47 - 'username' => 'require',  
48 - 'password' => 'require|min:6|max:32',  
49 - ]);  
50 - $validate->message([  
51 - 'username.require' => '用户名不能为空',  
52 - 'password.require' => '密码不能为空',  
53 - 'password.max' => '密码不能超过32个字符',  
54 - 'password.min' => '密码不能小于6个字符',  
55 - 'captcha.require' => '验证码不能为空',  
56 - ]);  
57 -  
58 - $data = $this->request->post();  
59 - if (!$validate->check($data)) {  
60 - $this->error($validate->getError());  
61 - }  
62 -  
63 - if (!cmf_captcha_check($data['captcha'])) {  
64 - $this->error('验证码错误');  
65 - }  
66 -  
67 - $userModel = new UserModel();  
68 - $user['user_pass'] = $data['password'];  
69 - if (Validate::is($data['username'], 'email')) {  
70 - $user['user_email'] = $data['username'];  
71 - $log = $userModel->doEmail($user);  
72 - } else if (preg_match('/(^(13\d|15[^4\D]|17[013678]|18\d)\d{8})$/', $data['username'])) {  
73 - $user['mobile'] = $data['username'];  
74 - $log = $userModel->doMobile($user);  
75 - } else {  
76 - $user['user_login'] = $data['username'];  
77 - $log = $userModel->doName($user);  
78 - }  
79 - $session_login_http_referer = session('login_http_referer');  
80 - $redirect = empty($session_login_http_referer) ? $this->request->root() : $session_login_http_referer;  
81 - switch ($log) {  
82 - case 0:  
83 - cmf_user_action('login');  
84 - $this->success('登录成功', $redirect);  
85 - break;  
86 - case 1:  
87 - $this->error('登录密码错误');  
88 - break;  
89 - case 2:  
90 - $this->error('账户不存在');  
91 - break;  
92 - case 3:  
93 - $this->error('账号被禁止访问系统');  
94 - break;  
95 - default :  
96 - $this->error('未受理的请求');  
97 - }  
98 - } else {  
99 - $this->error("请求错误");  
100 - }  
101 - }  
102 -  
103 - /**  
104 - * 找回密码  
105 - */  
106 - public function findPassword()  
107 - {  
108 - return $this->fetch('/find_password');  
109 - }  
110 -  
111 - /**  
112 - * 用户密码重置  
113 - */  
114 - public function passwordReset()  
115 - {  
116 -  
117 - if ($this->request->isPost()) {  
118 - $validate = new Validate([  
119 - 'captcha' => 'require',  
120 - 'verification_code' => 'require',  
121 - 'password' => 'require|min:6|max:32',  
122 - ]);  
123 - $validate->message([  
124 - 'verification_code.require' => '验证码不能为空',  
125 - 'password.require' => '密码不能为空',  
126 - 'password.max' => '密码不能超过32个字符',  
127 - 'password.min' => '密码不能小于6个字符',  
128 - 'captcha.require' => '验证码不能为空',  
129 - ]);  
130 -  
131 - $data = $this->request->post();  
132 - if (!$validate->check($data)) {  
133 - $this->error($validate->getError());  
134 - }  
135 -  
136 - if (!cmf_captcha_check($data['captcha'])) {  
137 - $this->error('验证码错误');  
138 - }  
139 - $errMsg = cmf_check_verification_code($data['username'], $data['verification_code']);  
140 - if (!empty($errMsg)) {  
141 - $this->error($errMsg);  
142 - }  
143 -  
144 - $userModel = new UserModel();  
145 - if ($validate::is($data['username'], 'email')) {  
146 -  
147 - $log = $userModel->emailPasswordReset($data['username'], $data['password']);  
148 -  
149 - } else if (preg_match('/(^(13\d|15[^4\D]|17[013678]|18\d)\d{8})$/', $data['username'])) {  
150 - $user['mobile'] = $data['username'];  
151 - $log = $userModel->mobilePasswordReset($data['username'], $data['password']);  
152 - } else {  
153 - $log = 2;  
154 - }  
155 - switch ($log) {  
156 - case 0:  
157 - $this->success('密码重置成功', $this->request->root());  
158 - break;  
159 - case 1:  
160 - $this->error("您的账户尚未注册");  
161 - break;  
162 - case 2:  
163 - $this->error("您输入的账号格式错误");  
164 - break;  
165 - default :  
166 - $this->error('未受理的请求');  
167 - }  
168 -  
169 - } else {  
170 - $this->error("请求错误");  
171 - }  
172 - }  
173 -  
174 - 1 +<?php
  2 +// +----------------------------------------------------------------------
  3 +// | bronet [ 以客户为中心 以奋斗者为本 ]
  4 +// +----------------------------------------------------------------------
  5 +// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.
  6 +// +----------------------------------------------------------------------
  7 +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8 +// +----------------------------------------------------------------------
  9 +// | Author: Powerless < wzxaini9@gmail.com>
  10 +// +----------------------------------------------------------------------
  11 +namespace app\user\controller;
  12 +
  13 +use think\Validate;
  14 +use cmf\controller\HomeBaseController;
  15 +use app\user\model\UserModel;
  16 +
  17 +class LoginController extends HomeBaseController
  18 +{
  19 +
  20 + /**
  21 + * 登录
  22 + */
  23 + public function index()
  24 + {
  25 + $redirect = $this->request->post("redirect");
  26 + if (empty($redirect)) {
  27 + $redirect = $this->request->server('HTTP_REFERER');
  28 + } else {
  29 + $redirect = base64_decode($redirect);
  30 + }
  31 + session('login_http_referer', $redirect);
  32 + if (cmf_is_user_login()) { //已经登录时直接跳到首页
  33 + return redirect($this->request->root() . '/');
  34 + } else {
  35 + return $this->fetch(":login");
  36 + }
  37 + }
  38 +
  39 + /**
  40 + * 登录验证提交
  41 + */
  42 + public function doLogin()
  43 + {
  44 + if ($this->request->isPost()) {
  45 + $validate = new Validate([
  46 + 'captcha' => 'require',
  47 + 'username' => 'require',
  48 + 'password' => 'require|min:6|max:32',
  49 + ]);
  50 + $validate->message([
  51 + 'username.require' => '用户名不能为空',
  52 + 'password.require' => '密码不能为空',
  53 + 'password.max' => '密码不能超过32个字符',
  54 + 'password.min' => '密码不能小于6个字符',
  55 + 'captcha.require' => '验证码不能为空',
  56 + ]);
  57 +
  58 + $data = $this->request->post();
  59 + if (!$validate->check($data)) {
  60 + $this->error($validate->getError());
  61 + }
  62 +
  63 + if (!cmf_captcha_check($data['captcha'])) {
  64 + $this->error('验证码错误');
  65 + }
  66 +
  67 + $userModel = new UserModel();
  68 + $user['user_pass'] = $data['password'];
  69 + if (Validate::is($data['username'], 'email')) {
  70 + $user['user_email'] = $data['username'];
  71 + $log = $userModel->doEmail($user);
  72 + } else if (preg_match('/(^(13\d|15[^4\D]|17[013678]|18\d)\d{8})$/', $data['username'])) {
  73 + $user['mobile'] = $data['username'];
  74 + $log = $userModel->doMobile($user);
  75 + } else {
  76 + $user['user_login'] = $data['username'];
  77 + $log = $userModel->doName($user);
  78 + }
  79 + $session_login_http_referer = session('login_http_referer');
  80 + $redirect = empty($session_login_http_referer) ? $this->request->root() : $session_login_http_referer;
  81 + switch ($log) {
  82 + case 0:
  83 + cmf_user_action('login');
  84 + $this->success('登录成功', $redirect);
  85 + break;
  86 + case 1:
  87 + $this->error('登录密码错误');
  88 + break;
  89 + case 2:
  90 + $this->error('账户不存在');
  91 + break;
  92 + case 3:
  93 + $this->error('账号被禁止访问系统');
  94 + break;
  95 + default :
  96 + $this->error('未受理的请求');
  97 + }
  98 + } else {
  99 + $this->error("请求错误");
  100 + }
  101 + }
  102 +
  103 + /**
  104 + * 找回密码
  105 + */
  106 + public function findPassword()
  107 + {
  108 + return $this->fetch('/find_password');
  109 + }
  110 +
  111 + /**
  112 + * 用户密码重置
  113 + */
  114 + public function passwordReset()
  115 + {
  116 +
  117 + if ($this->request->isPost()) {
  118 + $validate = new Validate([
  119 + 'captcha' => 'require',
  120 + 'verification_code' => 'require',
  121 + 'password' => 'require|min:6|max:32',
  122 + ]);
  123 + $validate->message([
  124 + 'verification_code.require' => '验证码不能为空',
  125 + 'password.require' => '密码不能为空',
  126 + 'password.max' => '密码不能超过32个字符',
  127 + 'password.min' => '密码不能小于6个字符',
  128 + 'captcha.require' => '验证码不能为空',
  129 + ]);
  130 +
  131 + $data = $this->request->post();
  132 + if (!$validate->check($data)) {
  133 + $this->error($validate->getError());
  134 + }
  135 +
  136 + if (!cmf_captcha_check($data['captcha'])) {
  137 + $this->error('验证码错误');
  138 + }
  139 + $errMsg = cmf_check_verification_code($data['username'], $data['verification_code']);
  140 + if (!empty($errMsg)) {
  141 + $this->error($errMsg);
  142 + }
  143 +
  144 + $userModel = new UserModel();
  145 + if ($validate::is($data['username'], 'email')) {
  146 +
  147 + $log = $userModel->emailPasswordReset($data['username'], $data['password']);
  148 +
  149 + } else if (preg_match('/(^(13\d|15[^4\D]|17[013678]|18\d)\d{8})$/', $data['username'])) {
  150 + $user['mobile'] = $data['username'];
  151 + $log = $userModel->mobilePasswordReset($data['username'], $data['password']);
  152 + } else {
  153 + $log = 2;
  154 + }
  155 + switch ($log) {
  156 + case 0:
  157 + $this->success('密码重置成功', $this->request->root());
  158 + break;
  159 + case 1:
  160 + $this->error("您的账户尚未注册");
  161 + break;
  162 + case 2:
  163 + $this->error("您输入的账号格式错误");
  164 + break;
  165 + default :
  166 + $this->error('未受理的请求');
  167 + }
  168 +
  169 + } else {
  170 + $this->error("请求错误");
  171 + }
  172 + }
  173 +
  174 +
175 } 175 }
1 -<!DOCTYPE html>  
2 -<html lang="zh-CN">  
3 -  
4 -<head>  
5 - <meta charset="UTF-8">  
6 - <title>2-22-3商品详情</title>  
7 - <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">  
8 - <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">  
9 - <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">  
10 - <link rel="stylesheet" href="__TMPL__/public/assets/css/common/buy_goods_detail.css">  
11 - <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>  
12 - <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>  
13 - <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>  
14 - <style>  
15 - .swiper-slide {  
16 - height: 5rem;  
17 - }  
18 -  
19 - .swiper-slide img {  
20 - width: 7.5rem;  
21 - height: 5.65rem;  
22 - }  
23 - </style>  
24 -</head>  
25 -  
26 -<body>  
27 -<div class="container">  
28 - <div class="swiper">  
29 - <div class="swiper-container swiper-container-horizontal swiper-container-ios">  
30 - <div class="swiper-wrapper">  
31 - <volist name="pic" id="pic">  
32 - <div class="swiper-slide swiper-slide-top swiper-slide-prev"><img src="{:cmf_get_image_url($pic)}"></div>  
33 - </volist>  
34 - </div>  
35 - <!-- Add Pagination -->  
36 - <div class="swiper-pagination swiper-pagination-bullets">  
37 - </div>  
38 - </div>  
39 - </div>  
40 - <div class="goods_detail_desc">  
41 - <p class="goods_detail_desc_money">¥{$art.money}<span>联系客服<img src="__TMPL__/public/assets/images/kefu_icon.png" alt=""></span></p>  
42 - <p class="goods_detail_desc_title">{$art.name}</p>  
43 - <p class="goods_detail_desc_content">{$art.intro}</p>  
44 - </div>  
45 - <div class="content_body">  
46 - <div class="content_head">  
47 - <ul class="select_card con_title">  
48 - <li class="select_card_list con_curr">  
49 - <!-- <img src="images/buy_car.png" alt=""> -->  
50 - <em class="select_icon1"></em>  
51 - <span>商品详情</span>  
52 - </li>  
53 - <li class="select_card_list ">  
54 - <em class="select_icon2"></em>  
55 - <span>用户评价</span>  
56 - </li>  
57 - </ul>  
58 - </div>  
59 - <div class="con_all">  
60 - <div class="con_warp">  
61 - {$art.content}  
62 - </div>  
63 - <div class="con_warp" style="display: none">  
64 - <ul class="con_list">  
65 - <li>  
66 - <div class="head_img_box">  
67 - <img src="__TMPL__/public/assets/images/detail_head_img.png" alt="">  
68 - <p class="user_name">穷艾尔雅</p>  
69 - <span class="release_time">2018-07-14</span>  
70 - </div>  
71 - <div class="pingjia_box">  
72 - <p class="pingjia_content">出行收纳更方便,体积更小轻松放入汽车后备箱,非常好的  
73 - 一次租赁体验!期待下一次租赁!  
74 - </p>  
75 - <img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">  
76 - <img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">  
77 - <img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">  
78 - <img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">  
79 - </div>  
80 -  
81 -  
82 - </li>  
83 -  
84 -  
85 - </ul>  
86 -  
87 - </div>  
88 - </div>  
89 -  
90 - </div>  
91 - <footer class="footer">  
92 - <a href="{:url('Shopping/index')}">  
93 - <div class="buycar_box">  
94 - <span class="goods_num">{$cart}</span>  
95 - <eq name="cart" value="0">  
96 - <img class="footer_buycar_img" src="__TMPL__/public/assets/images/cdvcd@1x.png" alt="">  
97 - <else/>  
98 - <img class="footer_buycar_img" src="__TMPL__/public/assets/images/cdvcd@2x.png" alt="">  
99 - </eq>  
100 - </div>  
101 - </a>  
102 - <p class="footer_pay">前往支付</p>  
103 - <p class="footer_buycar">加入购物车</p>  
104 - </footer>  
105 -</div>  
106 -<script>  
107 - $(document).ready(function() {  
108 - get_main_content();  
109 -  
110 - var $menu_box = $('.content_body .con_title>li');  
111 - $menu_box.click(function() {  
112 - $(this).addClass('con_curr').siblings().removeClass('con_curr');  
113 - var index = $menu_box.index(this);  
114 - $('.con_all .con_warp').eq(index).show().siblings().hide();  
115 - });  
116 -  
117 - })  
118 -  
119 - function get_main_content() {  
120 -  
121 - }  
122 - //购物车跳转  
123 - $('.footer_buycar_img').on('click', function() {  
124 - window.location.href = "{:url('Shopping/index')}"  
125 - })  
126 - //购买商品轮播图  
127 - var swiper = new Swiper('.swiper-container', {  
128 - loop: true,  
129 - speed: 2000,  
130 - autoplay: true,  
131 - pagination: {  
132 - el: '.swiper-pagination',  
133 - clickable: true,  
134 - },  
135 - });  
136 - //点击添加购物车  
137 -  
138 - $('.footer_buycar').on('click', function() {  
139 - $.ajax({  
140 - type:"POST",  
141 - url:"{:url('Shopping/add')}",  
142 - data:{  
143 - "vehicle_id":"{$Request.param.vehicle_id}",  
144 - },  
145 - success:function (data) {  
146 - if(data.code == 1){  
147 - $('.goods_num').text(data.data)  
148 - }else{  
149 - alert(data.message);  
150 - }  
151 -  
152 - },  
153 - error:function () {  
154 - }  
155 - })  
156 - })  
157 - //去购买  
158 - $('.footer_pay').on('click', function() {  
159 - window.location.href = "{:url('Rent/buySure')}"  
160 - })  
161 -</script>  
162 -</body>  
163 - 1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>2-22-3商品详情</title>
  7 + <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
  8 + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
  10 + <link rel="stylesheet" href="__TMPL__/public/assets/css/common/buy_goods_detail.css">
  11 + <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  12 + <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
  13 + <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
  14 + <style>
  15 + .swiper-slide {
  16 + height: 5rem;
  17 + }
  18 +
  19 + .swiper-slide img {
  20 + width: 7.5rem;
  21 + height: 5.65rem;
  22 + }
  23 + </style>
  24 +</head>
  25 +
  26 +<body>
  27 +<div class="container">
  28 + <div class="swiper">
  29 + <div class="swiper-container swiper-container-horizontal swiper-container-ios">
  30 + <div class="swiper-wrapper">
  31 + <volist name="pic" id="pic">
  32 + <div class="swiper-slide swiper-slide-top swiper-slide-prev"><img src="{:cmf_get_image_url($pic)}"></div>
  33 + </volist>
  34 + </div>
  35 + <!-- Add Pagination -->
  36 + <div class="swiper-pagination swiper-pagination-bullets">
  37 + </div>
  38 + </div>
  39 + </div>
  40 + <div class="goods_detail_desc">
  41 + <p class="goods_detail_desc_money">¥{$art.money}<span>联系客服<img src="__TMPL__/public/assets/images/kefu_icon.png" alt=""></span></p>
  42 + <p class="goods_detail_desc_title">{$art.name}</p>
  43 + <p class="goods_detail_desc_content">{$art.intro}</p>
  44 + </div>
  45 + <div class="content_body">
  46 + <div class="content_head">
  47 + <ul class="select_card con_title">
  48 + <li class="select_card_list con_curr">
  49 + <!-- <img src="images/buy_car.png" alt=""> -->
  50 + <em class="select_icon1"></em>
  51 + <span>商品详情</span>
  52 + </li>
  53 + <li class="select_card_list ">
  54 + <em class="select_icon2"></em>
  55 + <span>用户评价</span>
  56 + </li>
  57 + </ul>
  58 + </div>
  59 + <div class="con_all">
  60 + <div class="con_warp">
  61 + {$art.content}
  62 + </div>
  63 + <div class="con_warp" style="display: none">
  64 + <ul class="con_list">
  65 + <li>
  66 + <div class="head_img_box">
  67 + <img src="__TMPL__/public/assets/images/detail_head_img.png" alt="">
  68 + <p class="user_name">穷艾尔雅</p>
  69 + <span class="release_time">2018-07-14</span>
  70 + </div>
  71 + <div class="pingjia_box">
  72 + <p class="pingjia_content">出行收纳更方便,体积更小轻松放入汽车后备箱,非常好的
  73 + 一次租赁体验!期待下一次租赁!
  74 + </p>
  75 + <img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
  76 + <img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
  77 + <img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
  78 + <img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
  79 + </div>
  80 +
  81 +
  82 + </li>
  83 +
  84 +
  85 + </ul>
  86 +
  87 + </div>
  88 + </div>
  89 +
  90 + </div>
  91 + <footer class="footer">
  92 + <a href="{:url('Shopping/index')}">
  93 + <div class="buycar_box">
  94 + <span class="goods_num">{$cart}</span>
  95 + <eq name="cart" value="0">
  96 + <img class="footer_buycar_img" src="__TMPL__/public/assets/images/cdvcd@1x.png" alt="">
  97 + <else/>
  98 + <img class="footer_buycar_img" src="__TMPL__/public/assets/images/cdvcd@2x.png" alt="">
  99 + </eq>
  100 + </div>
  101 + </a>
  102 + <p class="footer_pay">前往支付</p>
  103 + <p class="footer_buycar">加入购物车</p>
  104 + </footer>
  105 +</div>
  106 +<script>
  107 + $(document).ready(function() {
  108 + get_main_content();
  109 +
  110 + var $menu_box = $('.content_body .con_title>li');
  111 + $menu_box.click(function() {
  112 + $(this).addClass('con_curr').siblings().removeClass('con_curr');
  113 + var index = $menu_box.index(this);
  114 + $('.con_all .con_warp').eq(index).show().siblings().hide();
  115 + });
  116 +
  117 + })
  118 +
  119 + function get_main_content() {
  120 +
  121 + }
  122 + //购物车跳转
  123 + $('.footer_buycar_img').on('click', function() {
  124 + window.location.href = "{:url('Shopping/index')}"
  125 + })
  126 + //购买商品轮播图
  127 + var swiper = new Swiper('.swiper-container', {
  128 + loop: true,
  129 + speed: 2000,
  130 + autoplay: true,
  131 + pagination: {
  132 + el: '.swiper-pagination',
  133 + clickable: true,
  134 + },
  135 + });
  136 + //点击添加购物车
  137 +
  138 + $('.footer_buycar').on('click', function() {
  139 + $.ajax({
  140 + type:"POST",
  141 + url:"{:url('Shopping/add')}",
  142 + data:{
  143 + "vehicle_id":"{$Request.param.vehicle_id}",
  144 + },
  145 + success:function (data) {
  146 + if(data.code == 1){
  147 + $('.goods_num').text(data.data)
  148 + }else{
  149 + alert(data.message);
  150 + }
  151 +
  152 + },
  153 + error:function () {
  154 + }
  155 + })
  156 + })
  157 + //去购买
  158 + $('.footer_pay').on('click', function() {
  159 + window.location.href = "{:url('Rent/buySure')}"
  160 + })
  161 +</script>
  162 +</body>
  163 +
164 </html> 164 </html>
1 -<!DOCTYPE html>  
2 -<html lang="zh-CN">  
3 -  
4 -<head>  
5 - <meta charset="UTF-8">  
6 - <title>2-4确认购买</title>  
7 - <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">  
8 - <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">  
9 - <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">  
10 - <link rel="stylesheet" href="__TMPL__/public/assets/css/common/sure_buy.css">  
11 - <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>  
12 - <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>  
13 - <style>  
14 - .shuru {  
15 - width: 2rem;  
16 - outline: none;  
17 - }  
18 -  
19 - .beizhu_title {  
20 - display: inline-block;  
21 - vertical-align: top;  
22 - margin-top: 0.08rem;  
23 - }  
24 -  
25 - textarea {  
26 - outline: none;  
27 - margin: 0 auto;  
28 - margin-top: 0.1rem;  
29 - margin-left: 0.1rem;  
30 - margin-right: 0.1rem;  
31 - line-height: 0.35rem;  
32 - }  
33 -  
34 - .beizhu_content {  
35 - display: inline-block;  
36 - border-radius: 0.1rem;  
37 - border: 0.01rem solid #EBEBEB;  
38 - }  
39 - </style>  
40 -</head>  
41 -  
42 -<body>  
43 - <div class="container">  
44 - <div class="address_box">  
45 - <img class="youjiantou" src="__TMPL__/public/assets/images/youjiantou1.png" alt="">  
46 - <div class="user_box">  
47 - <img class="head_img" src="__TMPL__/public/assets/images/head_img.png" alt="">  
48 - <p class="user_name">  
49 - <input class="shuru" type="text" maxlength="5" placeholder="赵先生">  
50 - </p>  
51 - <p class="user_phone">  
52 - <input class="shuru" type="number" maxlength="11" onkeyup="this.value = this.value.slice(0,11)" placeholder="15122953260">  
53 - </p>  
54 - </div>  
55 - <div class="local_box">  
56 - <img class="location_img" src="__TMPL__/public/assets/images/3336556@2x.png" alt="">  
57 - <span class="address_content">天津阿达宽大的</span>  
58 - </div>  
59 - </div>  
60 - <div class="con_warp">  
61 - <p class="buy_message buy_message_top"> 购买信息</p>  
62 - <ul class="con_list_ul">  
63 - <li class="con_list_li">  
64 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
65 - <div class="goods_box">  
66 - <p class="goods_title">HO56C手动轮椅车</p>  
67 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
68 - <p class="goods_money">$2000.06</p>  
69 - <span class="goods_nums"> X1</span>  
70 - </div>  
71 - </li>  
72 - </ul>  
73 - <div class="join">  
74 - <img class="subtract_img" src="__TMPL__/public/assets/images/item_reduce.png " alt="">  
75 - <p>1 </p>  
76 - <img class="add_img" src="__TMPL__/public/assets/images/item_add.png" alt="">  
77 - </div>  
78 - <p class="buy_message buy_message_bot"> 购买数量 </p>  
79 - </div>  
80 - <div class="peisong">  
81 - <div class="peisong_box">  
82 - <p> 配送方式<span> 快递:¥8.00</span></p>  
83 - </div>  
84 - <div class="beizhu_box">  
85 - <p class="beizhu_title"> 备注信息: </p>  
86 - <p class="beizhu_content">  
87 - <textarea name="" id="" cols="35" rows="3">晚一些的发货发的撒佛挡杀佛的萨芬</textarea>  
88 - </p>  
89 - </div>  
90 - </div>  
91 - <div class="xiaoji_box">  
92 - <p class="xiaoji">共一件商品 小计 : ¥2000.00</p>  
93 - </div>  
94 - <div class="zhifu">  
95 - <div class=" pay_method">  
96 - <div class="method_choose">  
97 - <p class="wx_pay pay_item"> 微信支付<span><img class="hand" src="__TMPL__/public/assets/images/hand.png" alt="">推荐使用</span> </p>  
98 - <p class="ali_pay pay_item"> 支付宝支付 </p>  
99 - </div>  
100 - <div class="methood_pic">  
101 - <img class="sure sure_item" src="__TMPL__/public/assets/images/sure.png" alt="">  
102 - <img class="cancel sure_item" src="__TMPL__/public/assets/images/sure_1.png" alt="">  
103 - </div>  
104 - </div>  
105 - </div>  
106 - </div>  
107 - <footer class="footer">  
108 - <div class="buycar_box">  
109 - <p> 微信支付</p>  
110 - <span class="buycar_box_money">$2000.00</span>  
111 - </div>  
112 - <p class="footer_buycar">前往支付</p>  
113 - </footer>  
114 - </div>  
115 - <script src="__TMPL__/public/assets/js/picker.min.js"></script>  
116 - <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>  
117 - <script src="__TMPL__/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>  
118 - <script>  
119 - $(document).ready(function() {  
120 - get_main_content();  
121 -  
122 - var $menu_box = $('.content_body .con_title>li');  
123 - $menu_box.click(function() {  
124 - $(this).addClass('con_curr').siblings().removeClass('con_curr');  
125 - var index = $menu_box.index(this);  
126 - $('.con_all .con_warp').eq(index).show().siblings().hide();  
127 - });  
128 - })  
129 -  
130 - function get_main_content() {  
131 -  
132 - }  
133 -  
134 - //地址管理  
135 - $('.youjiantou').on('click', function() {  
136 - window.location.href = "{:url('Address/index')}";  
137 - })  
138 - </script>  
139 -</body>  
140 - 1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>2-4确认购买</title>
  7 + <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
  8 + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
  10 + <link rel="stylesheet" href="__TMPL__/public/assets/css/common/sure_buy.css">
  11 + <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  12 + <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
  13 + <style>
  14 + .shuru {
  15 + width: 2rem;
  16 + outline: none;
  17 + }
  18 +
  19 + .beizhu_title {
  20 + display: inline-block;
  21 + vertical-align: top;
  22 + margin-top: 0.08rem;
  23 + }
  24 +
  25 + textarea {
  26 + outline: none;
  27 + margin: 0 auto;
  28 + margin-top: 0.1rem;
  29 + margin-left: 0.1rem;
  30 + margin-right: 0.1rem;
  31 + line-height: 0.35rem;
  32 + }
  33 +
  34 + .beizhu_content {
  35 + display: inline-block;
  36 + border-radius: 0.1rem;
  37 + border: 0.01rem solid #EBEBEB;
  38 + }
  39 + </style>
  40 +</head>
  41 +
  42 +<body>
  43 + <div class="container">
  44 + <div class="address_box">
  45 + <img class="youjiantou" src="__TMPL__/public/assets/images/youjiantou1.png" alt="">
  46 + <div class="user_box">
  47 + <img class="head_img" src="__TMPL__/public/assets/images/head_img.png" alt="">
  48 + <p class="user_name">
  49 + <input class="shuru" type="text" maxlength="5" placeholder="赵先生">
  50 + </p>
  51 + <p class="user_phone">
  52 + <input class="shuru" type="number" maxlength="11" onkeyup="this.value = this.value.slice(0,11)" placeholder="15122953260">
  53 + </p>
  54 + </div>
  55 + <div class="local_box">
  56 + <img class="location_img" src="__TMPL__/public/assets/images/3336556@2x.png" alt="">
  57 + <span class="address_content">天津阿达宽大的</span>
  58 + </div>
  59 + </div>
  60 + <div class="con_warp">
  61 + <p class="buy_message buy_message_top"> 购买信息</p>
  62 + <ul class="con_list_ul">
  63 + <li class="con_list_li">
  64 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  65 + <div class="goods_box">
  66 + <p class="goods_title">HO56C手动轮椅车</p>
  67 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  68 + <p class="goods_money">$2000.06</p>
  69 + <span class="goods_nums"> X1</span>
  70 + </div>
  71 + </li>
  72 + </ul>
  73 + <div class="join">
  74 + <img class="subtract_img" src="__TMPL__/public/assets/images/item_reduce.png " alt="">
  75 + <p>1 </p>
  76 + <img class="add_img" src="__TMPL__/public/assets/images/item_add.png" alt="">
  77 + </div>
  78 + <p class="buy_message buy_message_bot"> 购买数量 </p>
  79 + </div>
  80 + <div class="peisong">
  81 + <div class="peisong_box">
  82 + <p> 配送方式<span> 快递:¥8.00</span></p>
  83 + </div>
  84 + <div class="beizhu_box">
  85 + <p class="beizhu_title"> 备注信息: </p>
  86 + <p class="beizhu_content">
  87 + <textarea name="" id="" cols="35" rows="3">晚一些的发货发的撒佛挡杀佛的萨芬</textarea>
  88 + </p>
  89 + </div>
  90 + </div>
  91 + <div class="xiaoji_box">
  92 + <p class="xiaoji">共一件商品 小计 : ¥2000.00</p>
  93 + </div>
  94 + <div class="zhifu">
  95 + <div class=" pay_method">
  96 + <div class="method_choose">
  97 + <p class="wx_pay pay_item"> 微信支付<span><img class="hand" src="__TMPL__/public/assets/images/hand.png" alt="">推荐使用</span> </p>
  98 + <p class="ali_pay pay_item"> 支付宝支付 </p>
  99 + </div>
  100 + <div class="methood_pic">
  101 + <img class="sure sure_item" src="__TMPL__/public/assets/images/sure.png" alt="">
  102 + <img class="cancel sure_item" src="__TMPL__/public/assets/images/sure_1.png" alt="">
  103 + </div>
  104 + </div>
  105 + </div>
  106 + </div>
  107 + <footer class="footer">
  108 + <div class="buycar_box">
  109 + <p> 微信支付</p>
  110 + <span class="buycar_box_money">$2000.00</span>
  111 + </div>
  112 + <p class="footer_buycar">前往支付</p>
  113 + </footer>
  114 + </div>
  115 + <script src="__TMPL__/public/assets/js/picker.min.js"></script>
  116 + <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
  117 + <script src="__TMPL__/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
  118 + <script>
  119 + $(document).ready(function() {
  120 + get_main_content();
  121 +
  122 + var $menu_box = $('.content_body .con_title>li');
  123 + $menu_box.click(function() {
  124 + $(this).addClass('con_curr').siblings().removeClass('con_curr');
  125 + var index = $menu_box.index(this);
  126 + $('.con_all .con_warp').eq(index).show().siblings().hide();
  127 + });
  128 + })
  129 +
  130 + function get_main_content() {
  131 +
  132 + }
  133 +
  134 + //地址管理
  135 + $('.youjiantou').on('click', function() {
  136 + window.location.href = "{:url('Address/index')}";
  137 + })
  138 + </script>
  139 +</body>
  140 +
141 </html> 141 </html>
1 -<!DOCTYPE html>  
2 -<html lang="zh-CN">  
3 -  
4 -<head>  
5 - <meta charset="UTF-8">  
6 - <title>搜索</title>  
7 - <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">  
8 - <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">  
9 - <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">  
10 - <link rel="stylesheet" href="__TMPL__/public/assets/css/common/search.css">  
11 - <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>  
12 - <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>  
13 - <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>  
14 - <style>  
15 - .con_warp {  
16 - margin-top: 0.3rem;  
17 - }  
18 - </style>  
19 -</head>  
20 -  
21 -<body>  
22 -<div class="container">  
23 - <div class="search_search_box">  
24 - <div class="search_input_box">  
25 - <input class="search_search_input" type="text" placeholder="专业电动医疗轮椅" value="{$Request.param.find}">  
26 - </div>  
27 - <img class="search_search_icon" src="__TMPL__/public/assets/images/search.png" alt="">  
28 - </div>  
29 - <div class="search_hitory">  
30 - <p class="final_search">  
31 - </p>  
32 - <div class="search_history_list_box" >  
33 - <volist name="history" id="history">  
34 - <p class="search_history_list">{$history.keyword}</p>  
35 - </volist>  
36 - </div>  
37 -  
38 - </div>  
39 - <div class="con_warp">  
40 - <ul class="con_list">  
41 - <volist name="vehicle" id="vehicle">  
42 - <li class="con_list_li">  
43 - <div class="con_list_img_box">  
44 - <img class="con_list_img" src="{:cmf_get_image_url($vehicle.pic)}" alt="">  
45 - </div>  
46 - <div class="goods_box">  
47 - <p class="goods_title">{$vehicle.name}</p>  
48 - <span class="goods_content">{$vehicle.name}</span>  
49 - <p class="goods_money">¥{$vehicle.money}/天</p>  
50 - </div>  
51 - </li>  
52 - </volist>  
53 -  
54 -  
55 -  
56 - <!--<li class="con_list_li">-->  
57 - <!--<div class="con_list_img_box">-->  
58 - <!--<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">-->  
59 - <!--</div>-->  
60 - <!--<div class="goods_box">-->  
61 - <!--<p class="goods_title">HO56C手动轮椅车</p>-->  
62 - <!--<span class="goods_content">体积更小轻松放入汽车后备箱</span>-->  
63 - <!--<p class="goods_money">$2000.00</p>-->  
64 - <!--</div>-->  
65 - <!--</li>-->  
66 -  
67 - <!--<li class="con_list_li">-->  
68 - <!--<div class="con_list_img_box">-->  
69 - <!--<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">-->  
70 - <!--</div>-->  
71 - <!--<div class="goods_box">-->  
72 - <!--<p class="goods_title">HO56C手动轮椅车</p>-->  
73 - <!--<span class="goods_content">体积更小轻松放入汽车后备箱</span>-->  
74 - <!--<p class="goods_money">$2000.00</p>-->  
75 - <!--</div>-->  
76 - <!--</li>-->  
77 - </ul>  
78 - </div>  
79 -</div>  
80 -<script>  
81 - $('.search_history_list_box').css('display','none');  
82 - $('.con_warp').css('display','none');  
83 - $(document).ready(function() {  
84 - var type = "{$type}";  
85 - if(type == 1){  
86 - // 相关搜索  
87 - $('.final_search').text('最近搜索');  
88 - $('.search_history_list_box').css('display','block');  
89 - $('.con_warp').css('display','none');  
90 - }else if(type == 2){  
91 - // 搜索结果  
92 - $('.final_search').text('相关商品');  
93 - $('.search_history_list_box').css('display','none');  
94 - $('.con_warp').css('display','block');  
95 - }  
96 - })  
97 -  
98 - // 搜索跳页  
99 - $('.search_search_icon').on('click', function() {  
100 - var find = $('.search_search_input').val();  
101 - var type = "{$Request.param.type}";  
102 - var url = "{:url('Rent/find')}";  
103 - url = url.split('.');  
104 - url = url[0] + '/type/' + type + '/find/' + find + ".html";  
105 - window.location.href = url;  
106 - })  
107 -  
108 - // 最近搜索  
109 - $('.search_history_list').click(function () {  
110 - var text = $(this).text();  
111 - $('.search_search_input').val(text);  
112 - var type = "{$Request.param.type}";  
113 - var url = "{:url('Rent/find')}";  
114 - url = url.split('.');  
115 - url = url[0] + '/type/' + type + '/find/' + text + ".html";  
116 - window.location.href = url;  
117 - })  
118 -</script>  
119 -</body>  
120 - 1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>搜索</title>
  7 + <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
  8 + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
  10 + <link rel="stylesheet" href="__TMPL__/public/assets/css/common/search.css">
  11 + <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  12 + <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
  13 + <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
  14 + <style>
  15 + .con_warp {
  16 + margin-top: 0.3rem;
  17 + }
  18 + </style>
  19 +</head>
  20 +
  21 +<body>
  22 +<div class="container">
  23 + <div class="search_search_box">
  24 + <div class="search_input_box">
  25 + <input class="search_search_input" type="text" placeholder="专业电动医疗轮椅" value="{$Request.param.find}">
  26 + </div>
  27 + <img class="search_search_icon" src="__TMPL__/public/assets/images/search.png" alt="">
  28 + </div>
  29 + <div class="search_hitory">
  30 + <p class="final_search">
  31 + </p>
  32 + <div class="search_history_list_box" >
  33 + <volist name="history" id="history">
  34 + <p class="search_history_list">{$history.keyword}</p>
  35 + </volist>
  36 + </div>
  37 +
  38 + </div>
  39 + <div class="con_warp">
  40 + <ul class="con_list">
  41 + <volist name="vehicle" id="vehicle">
  42 + <li class="con_list_li">
  43 + <div class="con_list_img_box">
  44 + <img class="con_list_img" src="{:cmf_get_image_url($vehicle.pic)}" alt="">
  45 + </div>
  46 + <div class="goods_box">
  47 + <p class="goods_title">{$vehicle.name}</p>
  48 + <span class="goods_content">{$vehicle.name}</span>
  49 + <p class="goods_money">¥{$vehicle.money}/天</p>
  50 + </div>
  51 + </li>
  52 + </volist>
  53 +
  54 +
  55 +
  56 + <!--<li class="con_list_li">-->
  57 + <!--<div class="con_list_img_box">-->
  58 + <!--<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">-->
  59 + <!--</div>-->
  60 + <!--<div class="goods_box">-->
  61 + <!--<p class="goods_title">HO56C手动轮椅车</p>-->
  62 + <!--<span class="goods_content">体积更小轻松放入汽车后备箱</span>-->
  63 + <!--<p class="goods_money">$2000.00</p>-->
  64 + <!--</div>-->
  65 + <!--</li>-->
  66 +
  67 + <!--<li class="con_list_li">-->
  68 + <!--<div class="con_list_img_box">-->
  69 + <!--<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">-->
  70 + <!--</div>-->
  71 + <!--<div class="goods_box">-->
  72 + <!--<p class="goods_title">HO56C手动轮椅车</p>-->
  73 + <!--<span class="goods_content">体积更小轻松放入汽车后备箱</span>-->
  74 + <!--<p class="goods_money">$2000.00</p>-->
  75 + <!--</div>-->
  76 + <!--</li>-->
  77 + </ul>
  78 + </div>
  79 +</div>
  80 +<script>
  81 + $('.search_history_list_box').css('display','none');
  82 + $('.con_warp').css('display','none');
  83 + $(document).ready(function() {
  84 + var type = "{$type}";
  85 + if(type == 1){
  86 + // 相关搜索
  87 + $('.final_search').text('最近搜索');
  88 + $('.search_history_list_box').css('display','block');
  89 + $('.con_warp').css('display','none');
  90 + }else if(type == 2){
  91 + // 搜索结果
  92 + $('.final_search').text('相关商品');
  93 + $('.search_history_list_box').css('display','none');
  94 + $('.con_warp').css('display','block');
  95 + }
  96 + })
  97 +
  98 + // 搜索跳页
  99 + $('.search_search_icon').on('click', function() {
  100 + var find = $('.search_search_input').val();
  101 + var type = "{$Request.param.type}";
  102 + var url = "{:url('Rent/find')}";
  103 + url = url.split('.');
  104 + url = url[0] + '/type/' + type + '/find/' + find + ".html";
  105 + window.location.href = url;
  106 + })
  107 +
  108 + // 最近搜索
  109 + $('.search_history_list').click(function () {
  110 + var text = $(this).text();
  111 + $('.search_search_input').val(text);
  112 + var type = "{$Request.param.type}";
  113 + var url = "{:url('Rent/find')}";
  114 + url = url.split('.');
  115 + url = url[0] + '/type/' + type + '/find/' + text + ".html";
  116 + window.location.href = url;
  117 + })
  118 +</script>
  119 +</body>
  120 +
121 </html> 121 </html>
1 -<!DOCTYPE html>  
2 -<html lang="zh-CN">  
3 -  
4 -<head>  
5 - <meta charset="UTF-8">  
6 - <title>我要免押金</title>  
7 - <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">  
8 - <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">  
9 - <link rel="stylesheet" href="__TMPL__/public/assets/css/common/deposit_free.css">  
10 - <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>  
11 - <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>  
12 - <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>  
13 - <style>  
14 -  
15 - </style>  
16 -</head>  
17 -  
18 -<body>  
19 - <div class="container text-container">  
20 - <div class="content_text_box">  
21 - <div class="text_in_box">  
22 - <p class="text_title">{$art.title}</p>  
23 - <p class="content_text">{$art.content}  
24 - </p>  
25 - <div class="tel_box">  
26 - <img class="juchi" src="__TMPL__/public/assets/images/0001.png">  
27 - </div>  
28 - </div>  
29 - </div>  
30 - </div>  
31 - <script>  
32 - $(document).ready(function() {  
33 - get_main_content();  
34 -  
35 - var $menu_box = $('.content_body .con_title>li');  
36 - $menu_box.click(function() {  
37 - $(this).addClass('con_curr').siblings().removeClass('con_curr');  
38 - var index = $menu_box.index(this);  
39 - $('.con_all .con_warp').eq(index).show().siblings().hide();  
40 - });  
41 - })  
42 -  
43 - function get_main_content() {  
44 -  
45 - }  
46 - </script>  
47 -</body>  
48 - 1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>我要免押金</title>
  7 + <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
  8 + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/common/deposit_free.css">
  10 + <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  11 + <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
  12 + <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
  13 + <style>
  14 +
  15 + </style>
  16 +</head>
  17 +
  18 +<body>
  19 + <div class="container text-container">
  20 + <div class="content_text_box">
  21 + <div class="text_in_box">
  22 + <p class="text_title">{$art.title}</p>
  23 + <p class="content_text">{$art.content}
  24 + </p>
  25 + <div class="tel_box">
  26 + <img class="juchi" src="__TMPL__/public/assets/images/0001.png">
  27 + </div>
  28 + </div>
  29 + </div>
  30 + </div>
  31 + <script>
  32 + $(document).ready(function() {
  33 + get_main_content();
  34 +
  35 + var $menu_box = $('.content_body .con_title>li');
  36 + $menu_box.click(function() {
  37 + $(this).addClass('con_curr').siblings().removeClass('con_curr');
  38 + var index = $menu_box.index(this);
  39 + $('.con_all .con_warp').eq(index).show().siblings().hide();
  40 + });
  41 + })
  42 +
  43 + function get_main_content() {
  44 +
  45 + }
  46 + </script>
  47 +</body>
  48 +
49 </html> 49 </html>
1 -<!DOCTYPE html>  
2 -<html lang="zh-CN">  
3 -  
4 -<head>  
5 - <meta charset="UTF-8">  
6 - <title>1-3导购页-购买</title>  
7 - <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">  
8 - <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">  
9 - <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">  
10 - <link rel="stylesheet" href="__TMPL__/public/assets/css/common/select_goods.css">  
11 - <style>  
12 -  
13 - </style>  
14 -</head>  
15 -  
16 -<body>  
17 -<div class="container">  
18 - <volist name="cate" id="cate">  
19 - <div class="goods_box" index="{$cate.id}" >  
20 - <img class="goods_pic" src="{:cmf_get_image_url($cate.pic)}" alt="" >  
21 - </div>  
22 - </volist>  
23 -  
24 -</div>  
25 -</body>  
26 -<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>  
27 -<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>  
28 -<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>  
29 -<script>  
30 - $(document).ready(function() {  
31 -  
32 - var $menu_box = $('.content_body .con_title>li');  
33 - $menu_box.click(function() {  
34 - $(this).addClass('con_curr').siblings().removeClass('con_curr');  
35 - var index = $menu_box.index(this);  
36 - $('.con_all .con_warp').eq(index).show().siblings().hide();  
37 - });  
38 - })  
39 -  
40 - //商品跳转,类型1租赁,类型2为购买  
41 - // var cate_type = getUrlParam('cate_type');  
42 - // $('.goods_pic').on('click', function() {  
43 - // window.location.href = "lease_goods_category.html"  
44 - // })  
45 -  
46 - //商品跳转,类型1租赁,类型2为购买  
47 - var type = "{$type}";  
48 - $('.goods_box').click(function() {  
49 - var pid = $(this).attr('index');  
50 - var url = "{:url('Rent/nextGrade')}";  
51 - url = url.split('.');  
52 - url = url[0] + '/type/' + type + '/pid/' + pid + ".html";  
53 - window.location.href = url;  
54 - })  
55 -</script>  
56 - 1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>1-3导购页-购买</title>
  7 + <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
  8 + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
  10 + <link rel="stylesheet" href="__TMPL__/public/assets/css/common/select_goods.css">
  11 + <style>
  12 +
  13 + </style>
  14 +</head>
  15 +
  16 +<body>
  17 +<div class="container">
  18 + <volist name="cate" id="cate">
  19 + <div class="goods_box" index="{$cate.id}" >
  20 + <img class="goods_pic" src="{:cmf_get_image_url($cate.pic)}" alt="" >
  21 + </div>
  22 + </volist>
  23 +
  24 +</div>
  25 +</body>
  26 +<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  27 +<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
  28 +<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
  29 +<script>
  30 + $(document).ready(function() {
  31 +
  32 + var $menu_box = $('.content_body .con_title>li');
  33 + $menu_box.click(function() {
  34 + $(this).addClass('con_curr').siblings().removeClass('con_curr');
  35 + var index = $menu_box.index(this);
  36 + $('.con_all .con_warp').eq(index).show().siblings().hide();
  37 + });
  38 + })
  39 +
  40 + //商品跳转,类型1租赁,类型2为购买
  41 + // var cate_type = getUrlParam('cate_type');
  42 + // $('.goods_pic').on('click', function() {
  43 + // window.location.href = "lease_goods_category.html"
  44 + // })
  45 +
  46 + //商品跳转,类型1租赁,类型2为购买
  47 + var type = "{$type}";
  48 + $('.goods_box').click(function() {
  49 + var pid = $(this).attr('index');
  50 + var url = "{:url('Rent/nextGrade')}";
  51 + url = url.split('.');
  52 + url = url[0] + '/type/' + type + '/pid/' + pid + ".html";
  53 + window.location.href = url;
  54 + })
  55 +</script>
  56 +
57 </html> 57 </html>
1 -<!DOCTYPE html>  
2 -<html lang="zh-CN">  
3 -  
4 -<head>  
5 - <meta charset="UTF-8">  
6 - <title>我要租赁-商品类别</title>  
7 - <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">  
8 - <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">  
9 - <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">  
10 - <link rel="stylesheet" href="__TMPL__/public/assets/css/common/buy_goods_category.css">  
11 - <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>  
12 - <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>  
13 - <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>  
14 - <style>  
15 -  
16 - </style>  
17 -</head>  
18 -  
19 -<body>  
20 - <div class="container">  
21 - <div class="goods_box_top">  
22 - <img src="{:cmf_get_image_url($banner.pic)}" alt="">  
23 - </div>  
24 - <div class="category_search_box">  
25 - <input class="category_search_input" type="text" placeholder="专业电动医疗轮椅">  
26 - <img class="category_search_icon" src="__TMPL__/public/assets/images/search.png" alt="">  
27 - </div>  
28 - <div class="content_body">  
29 - <ul class="select_card con_title">  
30 - <volist name="cate" id="cate">  
31 - <li class="select_card_list">  
32 - <span>{$cate.name}</span>  
33 - </li>  
34 - </volist>  
35 - </ul>  
36 - <div class="con_all">  
37 - <eq name="Request.param.type" value="1">  
38 - <div class="con_warp">  
39 - <ul class="con_list_ul first_ul">  
40 - <a href="{:url('Rent/rentDetail',array('type'=>1,'vehicle_id'=>9))}">  
41 - <li class="con_list_li">  
42 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
43 - <div class="goods_box">  
44 - <p class="goods_title">HO56C手动轮椅车1222</p>  
45 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
46 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
47 - </div>  
48 - </li>  
49 - </a>  
50 - <li class="con_list_li">  
51 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653cd2156c6e@2x.png" alt="">  
52 - <div class="goods_box">  
53 - <p class="goods_title">HO56C手动轮椅车2</p>  
54 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
55 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
56 - </div>  
57 - </li>  
58 - <li class="con_list_li">  
59 - <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">  
60 - <div class="goods_box">  
61 - <p class="goods_title">HO56C手动轮椅车3</p>  
62 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
63 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
64 - </div>  
65 - </li>  
66 - <li class="con_list_li">  
67 - <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">  
68 - <div class="goods_box">  
69 - <p class="goods_title">HO56C手动轮椅车3</p>  
70 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
71 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
72 - </div>  
73 - </li>  
74 - </ul>  
75 - </div>  
76 - </eq>  
77 - <eq name="Request.param.type" value="2">  
78 - <div class="con_warp" >  
79 - <ul class="con_list">  
80 - <a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>3))}">  
81 - <li class="con_list_li">  
82 - <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">  
83 - <div class="goods_box">  
84 - <p class="goods_title">HO56C手动轮椅车4</p>  
85 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
86 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
87 - </div>  
88 - </li>  
89 - </a>  
90 - <a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>4))}">  
91 - <li class="con_list_li">  
92 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
93 - <div class="goods_box">  
94 - <p class="goods_title">HO56C手动轮椅车5</p>  
95 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
96 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
97 - </div>  
98 - </li>  
99 - </a>  
100 - <a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>13))}">  
101 - <li class="con_list_li">  
102 - <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">  
103 - <div class="goods_box">  
104 - <p class="goods_title">HO56C手动轮椅车6</p>  
105 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
106 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
107 - </div>  
108 - </li>  
109 - </a>  
110 - </ul>  
111 - </div>  
112 - </eq>  
113 - <div class="con_warp" style="display: none">  
114 - <ul class="con_list">  
115 - <li class="con_list_li">  
116 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
117 - <div class="goods_box">  
118 - <p class="goods_title">HO56C手动轮椅车7</p>  
119 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
120 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
121 - </div>  
122 - </li>  
123 - <li class="con_list_li">  
124 - <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">  
125 - <div class="goods_box">  
126 - <p class="goods_title">HO56C手动轮椅车8</p>  
127 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
128 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
129 - </div>  
130 - </li>  
131 - <li class="con_list_li">  
132 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
133 - <div class="goods_box">  
134 - <p class="goods_title">HO56C手动轮椅车9</p>  
135 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
136 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
137 - </div>  
138 - </li>  
139 - </ul>  
140 - </div>  
141 - <div class="con_warp" style="display: none">  
142 - <ul class="con_list">  
143 - <li class="con_list_li">  
144 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
145 - <div class="goods_box">  
146 - <p class="goods_title">HO56C手动轮椅车10</p>  
147 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
148 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
149 - </div>  
150 - </li>  
151 - <li class="con_list_li">  
152 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
153 - <div class="goods_box">  
154 - <p class="goods_title">HO56C手动轮椅车11</p>  
155 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
156 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
157 - </div>  
158 - </li>  
159 - <li class="con_list_li">  
160 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
161 - <div class="goods_box">  
162 - <p class="goods_title">HO56C手动轮椅车12</p>  
163 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
164 - <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
165 - </div>  
166 - </li>  
167 - </ul>  
168 - </div>  
169 - </div>  
170 - </div>  
171 - </div>  
172 -</body>  
173 - <script>  
174 - $(document).ready(function() {  
175 - get_main_content();  
176 -  
177 - var $menu_box = $('.content_body .con_title>li');  
178 - $menu_box.click(function() {  
179 - $(this).addClass('con_curr').siblings().removeClass('con_curr');  
180 - var index = $menu_box.index(this);  
181 - $('.con_all .con_warp').eq(index).show().siblings().hide();  
182 - });  
183 - })  
184 - // $('.con_list_li').on('click', function() {  
185 - // // window.location.href = "lease_goods_detail.html"  
186 - // })  
187 -  
188 - // 搜索跳页  
189 - $('.category_search_icon').on('click', function() {  
190 - var find = $('.category_search_input').val();  
191 - var type = "{$Request.param.type}";  
192 - var url = "{:url('Rent/find')}";  
193 - url = url.split('.');  
194 - url = url[0] + '/type/' + type + '/find/' + find + ".html";  
195 - window.location.href = url;  
196 - // window.location.href = "search.html"  
197 - })  
198 -  
199 -  
200 - //分页  
201 - document.addEventListener('scroll', function() {  
202 - if ($(window).scrollTop() >= $(document).height() - $(window).height()) {  
203 - pull_load();  
204 - }  
205 - // if (window.innerHeight + document.body.scrollTop === document.body.clientHeight) {  
206 - // // 当页面高度 + 滚动高度 === 文档整体高度时为滚动至底部 执行异步加载方法等等  
207 - // console.log(1)  
208 - // }  
209 - });  
210 - var page = '',  
211 - type = $('.con_curr').data('type');  
212 - var html = '';  
213 -  
214 - function pull_load() {  
215 - page++  
216 - html += ` <li class="con_list_li">  
217 - <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">  
218 - <div class="goods_box">  
219 - <p class="goods_title">HO56C手动轮椅车` + page + `</p>  
220 - <span class="goods_content">体积更小轻松放入汽车后备箱</span>  
221 - <p class="goods_money">2000.00<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>  
222 - </div>  
223 - </li>`  
224 - $('.first_ul').append(html);  
225 - $.ajax({  
226 - type: '',  
227 - url: baseUrl + '',  
228 - data: {  
229 - token: localStorage.getItem('token'),  
230 - type: type,  
231 - page: page,  
232 - },  
233 - success: function(res) {  
234 - /* $('.con_list_ul').append(page);*/  
235 - },  
236 - error: function(res) {}  
237 - })  
238 - }  
239 -  
240 -  
241 -  
242 - // 分类事件  
243 - $('.select_card_list').removeClass('con_curr')  
244 - $('.select_card_list').eq(0).addClass('con_curr')  
245 - $('.select_card_list').click(function () {  
246 - $('.select_card_list').removeClass('con_curr')  
247 - $(this).addClass('con_curr')  
248 - })  
249 -</script> 1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>我要租赁-商品类别</title>
  7 + <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
  8 + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
  10 + <link rel="stylesheet" href="__TMPL__/public/assets/css/common/buy_goods_category.css">
  11 + <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  12 + <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
  13 + <script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
  14 + <style>
  15 +
  16 + </style>
  17 +</head>
  18 +
  19 +<body>
  20 + <div class="container">
  21 + <div class="goods_box_top">
  22 + <img src="{:cmf_get_image_url($banner.pic)}" alt="">
  23 + </div>
  24 + <div class="category_search_box">
  25 + <input class="category_search_input" type="text" placeholder="专业电动医疗轮椅">
  26 + <img class="category_search_icon" src="__TMPL__/public/assets/images/search.png" alt="">
  27 + </div>
  28 + <div class="content_body">
  29 + <ul class="select_card con_title">
  30 + <volist name="cate" id="cate">
  31 + <li class="select_card_list">
  32 + <span>{$cate.name}</span>
  33 + </li>
  34 + </volist>
  35 + </ul>
  36 + <div class="con_all">
  37 + <eq name="Request.param.type" value="1">
  38 + <div class="con_warp">
  39 + <ul class="con_list_ul first_ul">
  40 + <a href="{:url('Rent/rentDetail',array('type'=>1,'vehicle_id'=>9))}">
  41 + <li class="con_list_li">
  42 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  43 + <div class="goods_box">
  44 + <p class="goods_title">HO56C手动轮椅车1222</p>
  45 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  46 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  47 + </div>
  48 + </li>
  49 + </a>
  50 + <li class="con_list_li">
  51 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653cd2156c6e@2x.png" alt="">
  52 + <div class="goods_box">
  53 + <p class="goods_title">HO56C手动轮椅车2</p>
  54 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  55 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  56 + </div>
  57 + </li>
  58 + <li class="con_list_li">
  59 + <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
  60 + <div class="goods_box">
  61 + <p class="goods_title">HO56C手动轮椅车3</p>
  62 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  63 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  64 + </div>
  65 + </li>
  66 + <li class="con_list_li">
  67 + <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
  68 + <div class="goods_box">
  69 + <p class="goods_title">HO56C手动轮椅车3</p>
  70 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  71 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  72 + </div>
  73 + </li>
  74 + </ul>
  75 + </div>
  76 + </eq>
  77 + <eq name="Request.param.type" value="2">
  78 + <div class="con_warp" >
  79 + <ul class="con_list">
  80 + <a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>3))}">
  81 + <li class="con_list_li">
  82 + <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
  83 + <div class="goods_box">
  84 + <p class="goods_title">HO56C手动轮椅车4</p>
  85 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  86 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  87 + </div>
  88 + </li>
  89 + </a>
  90 + <a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>4))}">
  91 + <li class="con_list_li">
  92 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  93 + <div class="goods_box">
  94 + <p class="goods_title">HO56C手动轮椅车5</p>
  95 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  96 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  97 + </div>
  98 + </li>
  99 + </a>
  100 + <a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>13))}">
  101 + <li class="con_list_li">
  102 + <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
  103 + <div class="goods_box">
  104 + <p class="goods_title">HO56C手动轮椅车6</p>
  105 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  106 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  107 + </div>
  108 + </li>
  109 + </a>
  110 + </ul>
  111 + </div>
  112 + </eq>
  113 + <div class="con_warp" style="display: none">
  114 + <ul class="con_list">
  115 + <li class="con_list_li">
  116 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  117 + <div class="goods_box">
  118 + <p class="goods_title">HO56C手动轮椅车7</p>
  119 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  120 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  121 + </div>
  122 + </li>
  123 + <li class="con_list_li">
  124 + <img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
  125 + <div class="goods_box">
  126 + <p class="goods_title">HO56C手动轮椅车8</p>
  127 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  128 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  129 + </div>
  130 + </li>
  131 + <li class="con_list_li">
  132 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  133 + <div class="goods_box">
  134 + <p class="goods_title">HO56C手动轮椅车9</p>
  135 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  136 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  137 + </div>
  138 + </li>
  139 + </ul>
  140 + </div>
  141 + <div class="con_warp" style="display: none">
  142 + <ul class="con_list">
  143 + <li class="con_list_li">
  144 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  145 + <div class="goods_box">
  146 + <p class="goods_title">HO56C手动轮椅车10</p>
  147 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  148 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  149 + </div>
  150 + </li>
  151 + <li class="con_list_li">
  152 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  153 + <div class="goods_box">
  154 + <p class="goods_title">HO56C手动轮椅车11</p>
  155 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  156 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  157 + </div>
  158 + </li>
  159 + <li class="con_list_li">
  160 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  161 + <div class="goods_box">
  162 + <p class="goods_title">HO56C手动轮椅车12</p>
  163 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  164 + <p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  165 + </div>
  166 + </li>
  167 + </ul>
  168 + </div>
  169 + </div>
  170 + </div>
  171 + </div>
  172 +</body>
  173 + <script>
  174 + $(document).ready(function() {
  175 + get_main_content();
  176 +
  177 + var $menu_box = $('.content_body .con_title>li');
  178 + $menu_box.click(function() {
  179 + $(this).addClass('con_curr').siblings().removeClass('con_curr');
  180 + var index = $menu_box.index(this);
  181 + $('.con_all .con_warp').eq(index).show().siblings().hide();
  182 + });
  183 + })
  184 + // $('.con_list_li').on('click', function() {
  185 + // // window.location.href = "lease_goods_detail.html"
  186 + // })
  187 +
  188 + // 搜索跳页
  189 + $('.category_search_icon').on('click', function() {
  190 + var find = $('.category_search_input').val();
  191 + var type = "{$Request.param.type}";
  192 + var url = "{:url('Rent/find')}";
  193 + url = url.split('.');
  194 + url = url[0] + '/type/' + type + '/find/' + find + ".html";
  195 + window.location.href = url;
  196 + // window.location.href = "search.html"
  197 + })
  198 +
  199 +
  200 + //分页
  201 + document.addEventListener('scroll', function() {
  202 + if ($(window).scrollTop() >= $(document).height() - $(window).height()) {
  203 + pull_load();
  204 + }
  205 + // if (window.innerHeight + document.body.scrollTop === document.body.clientHeight) {
  206 + // // 当页面高度 + 滚动高度 === 文档整体高度时为滚动至底部 执行异步加载方法等等
  207 + // console.log(1)
  208 + // }
  209 + });
  210 + var page = '',
  211 + type = $('.con_curr').data('type');
  212 + var html = '';
  213 +
  214 + function pull_load() {
  215 + page++
  216 + html += ` <li class="con_list_li">
  217 + <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
  218 + <div class="goods_box">
  219 + <p class="goods_title">HO56C手动轮椅车` + page + `</p>
  220 + <span class="goods_content">体积更小轻松放入汽车后备箱</span>
  221 + <p class="goods_money">2000.00<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
  222 + </div>
  223 + </li>`
  224 + $('.first_ul').append(html);
  225 + $.ajax({
  226 + type: '',
  227 + url: baseUrl + '',
  228 + data: {
  229 + token: localStorage.getItem('token'),
  230 + type: type,
  231 + page: page,
  232 + },
  233 + success: function(res) {
  234 + /* $('.con_list_ul').append(page);*/
  235 + },
  236 + error: function(res) {}
  237 + })
  238 + }
  239 +
  240 +
  241 +
  242 + // 分类事件
  243 + $('.select_card_list').removeClass('con_curr')
  244 + $('.select_card_list').eq(0).addClass('con_curr')
  245 + $('.select_card_list').click(function () {
  246 + $('.select_card_list').removeClass('con_curr')
  247 + $(this).addClass('con_curr')
  248 + })
  249 +</script>
250 </html> 250 </html>