作者 魏强

渲染更新

<?php
// +----------------------------------------------------------------------
// | bronet [ 以客户为中心 以奋斗者为本 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
namespace app\portal\controller;
use app\portal\model\OrderModel;
use cmf\controller\HomeBaseController;
use EasyWeChat\Foundation\Application;
use think\Db;
use think\Loader;
use think\Session;
//订单
class OrderController extends CommentController
{
// 我要免押金
public function deposit()
{
$where_art['type'] = 3;
$where_art['status'] = array('neq',9);
$art = Db::name('Art')->where($where_art)->order('score desc,create_time desc')->limit(1)->find();
if($art){
$art['content'] = htmlspecialchars_decode($art['content']);
}
$this->assign('art',$art);
return $this->fetch('Order/deposit');
}
// 租车生成订单
public function order(){
Db::startTrans();
$data = $this->request->param();
$model = new OrderModel();
$validate = Loader::validate('Order');
if(!$validate->scene('rent')->check($data)){
$this->apiResponse('0',$validate->getError());
}
$where['id'] = $data['vehicle_id'];
$where['status'] = array('neq',9);
$rent = Db::name('Vehicle')->where($where)->find();
// 加入订单主表数据
$add['order_sn'] = $this->getSn();
$add['user_id'] = Session::get('uid');
$add['start_time'] = Session::get('start_time');
$add['end_time'] = Session::get('end_time');
$add['store_id'] = $data['store_id'];
$add['name'] = $data['name'];
$add['tel'] = $data['tel'];
$add['else'] = $data['else'];
$add['number'] = 1;
$add['order_price'] = $rent['money'] + $rent['rend_money'];
$add['status'] = 2;
$res = $model->save($add);
if($res){
echo "<pre/>";
print_r($res->id);
die;
$add_son['order_id'] = $res->id;
$add['rent_money'] = $rent['rend_money'];
$add['money'] = $rent['money'];
$add['all_price'] = $rent['money'] + $rent['rend_money'];
echo "<pre/>";
print_r('123');
die;
}else{
Db::rollback();
$this->apiResponse('0','订单创建失败');
}
}
}
<?php
// +----------------------------------------------------------------------
// | bronet [ 以客户为中心 以奋斗者为本 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
namespace app\portal\controller;
use app\portal\model\OrderModel;
use app\portal\model\OrderSonModel;
use cmf\controller\HomeBaseController;
use EasyWeChat\Foundation\Application;
use think\Db;
use think\Loader;
use think\Session;
//订单
class OrderController extends CommentController
{
// 我要免押金
public function deposit()
{
$where_art['type'] = 3;
$where_art['status'] = array('neq',9);
$art = Db::name('Art')->where($where_art)->order('score desc,create_time desc')->limit(1)->find();
if($art){
$art['content'] = htmlspecialchars_decode($art['content']);
}
$this->assign('art',$art);
return $this->fetch('Order/deposit');
}
// 租车生成订单
public function order(){
Db::startTrans();
$data = $this->request->param();
$model = new OrderModel();
$validate = Loader::validate('Order');
if(!$validate->scene('rent')->check($data)){
$this->apiResponse('0',$validate->getError());
}
$where['id'] = $data['vehicle_id'];
$where['status'] = array('neq',9);
$rent = Db::name('Vehicle')->where($where)->find();
// 加入订单主表数据
$add['order_sn'] = $this->getSn();
$add['order_type'] = 1;
$add['user_id'] = Session::get('uid');
$add['start_time'] = Session::get('start_time');
$add['end_time'] = Session::get('end_time');
$add['store_id'] = $data['store_id'];
$add['name'] = $data['name'];
$add['tel'] = $data['tel'];
$add['else'] = $data['else'];
$add['number'] = 1;
$add['order_price'] = $rent['money'] + $rent['rend_money'];
$add['status'] = 2;
$res = $model->save($add);
if($res){
// 增加子表数据
$add_son['order_id'] = $model->getLastInsID();
$add_son['vehicle_id'] = $rent['id'];
$add_son['rent_money'] = $rent['rend_money'];
$add_son['money'] = $rent['money'];
$add_son['all_price'] = $rent['money'] + $rent['rend_money'];
$add_son['number'] = 1;
$add_son['status'] = 2;
$model_son = new OrderSonModel();
$son_res = $model_son->save($add_son);
if($son_res){
Db::commit();
// 跳转支付
}else{
Db::rollback();
$this->apiResponse('0','订单创建失败');
}
}else{
Db::rollback();
$this->apiResponse('0','订单创建失败');
}
}
}
... ...
<?php
// +----------------------------------------------------------------------
// | bronet [ 以客户为中心 以奋斗者为本 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Powerless < wzxaini9@gmail.com>
// +----------------------------------------------------------------------
namespace app\user\controller;
use think\Validate;
use cmf\controller\HomeBaseController;
use app\user\model\UserModel;
class LoginController extends HomeBaseController
{
/**
* 登录
*/
public function index()
{
$redirect = $this->request->post("redirect");
if (empty($redirect)) {
$redirect = $this->request->server('HTTP_REFERER');
} else {
$redirect = base64_decode($redirect);
}
session('login_http_referer', $redirect);
if (cmf_is_user_login()) { //已经登录时直接跳到首页
return redirect($this->request->root() . '/');
} else {
return $this->fetch(":login");
}
}
/**
* 登录验证提交
*/
public function doLogin()
{
if ($this->request->isPost()) {
$validate = new Validate([
'captcha' => 'require',
'username' => 'require',
'password' => 'require|min:6|max:32',
]);
$validate->message([
'username.require' => '用户名不能为空',
'password.require' => '密码不能为空',
'password.max' => '密码不能超过32个字符',
'password.min' => '密码不能小于6个字符',
'captcha.require' => '验证码不能为空',
]);
$data = $this->request->post();
if (!$validate->check($data)) {
$this->error($validate->getError());
}
if (!cmf_captcha_check($data['captcha'])) {
$this->error('验证码错误');
}
$userModel = new UserModel();
$user['user_pass'] = $data['password'];
if (Validate::is($data['username'], 'email')) {
$user['user_email'] = $data['username'];
$log = $userModel->doEmail($user);
} else if (preg_match('/(^(13\d|15[^4\D]|17[013678]|18\d)\d{8})$/', $data['username'])) {
$user['mobile'] = $data['username'];
$log = $userModel->doMobile($user);
} else {
$user['user_login'] = $data['username'];
$log = $userModel->doName($user);
}
$session_login_http_referer = session('login_http_referer');
$redirect = empty($session_login_http_referer) ? $this->request->root() : $session_login_http_referer;
switch ($log) {
case 0:
cmf_user_action('login');
$this->success('登录成功', $redirect);
break;
case 1:
$this->error('登录密码错误');
break;
case 2:
$this->error('账户不存在');
break;
case 3:
$this->error('账号被禁止访问系统');
break;
default :
$this->error('未受理的请求');
}
} else {
$this->error("请求错误");
}
}
/**
* 找回密码
*/
public function findPassword()
{
return $this->fetch('/find_password');
}
/**
* 用户密码重置
*/
public function passwordReset()
{
if ($this->request->isPost()) {
$validate = new Validate([
'captcha' => 'require',
'verification_code' => 'require',
'password' => 'require|min:6|max:32',
]);
$validate->message([
'verification_code.require' => '验证码不能为空',
'password.require' => '密码不能为空',
'password.max' => '密码不能超过32个字符',
'password.min' => '密码不能小于6个字符',
'captcha.require' => '验证码不能为空',
]);
$data = $this->request->post();
if (!$validate->check($data)) {
$this->error($validate->getError());
}
if (!cmf_captcha_check($data['captcha'])) {
$this->error('验证码错误');
}
$errMsg = cmf_check_verification_code($data['username'], $data['verification_code']);
if (!empty($errMsg)) {
$this->error($errMsg);
}
$userModel = new UserModel();
if ($validate::is($data['username'], 'email')) {
$log = $userModel->emailPasswordReset($data['username'], $data['password']);
} else if (preg_match('/(^(13\d|15[^4\D]|17[013678]|18\d)\d{8})$/', $data['username'])) {
$user['mobile'] = $data['username'];
$log = $userModel->mobilePasswordReset($data['username'], $data['password']);
} else {
$log = 2;
}
switch ($log) {
case 0:
$this->success('密码重置成功', $this->request->root());
break;
case 1:
$this->error("您的账户尚未注册");
break;
case 2:
$this->error("您输入的账号格式错误");
break;
default :
$this->error('未受理的请求');
}
} else {
$this->error("请求错误");
}
}
<?php
// +----------------------------------------------------------------------
// | bronet [ 以客户为中心 以奋斗者为本 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.bronet.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Powerless < wzxaini9@gmail.com>
// +----------------------------------------------------------------------
namespace app\user\controller;
use think\Validate;
use cmf\controller\HomeBaseController;
use app\user\model\UserModel;
class LoginController extends HomeBaseController
{
/**
* 登录
*/
public function index()
{
$redirect = $this->request->post("redirect");
if (empty($redirect)) {
$redirect = $this->request->server('HTTP_REFERER');
} else {
$redirect = base64_decode($redirect);
}
session('login_http_referer', $redirect);
if (cmf_is_user_login()) { //已经登录时直接跳到首页
return redirect($this->request->root() . '/');
} else {
return $this->fetch(":login");
}
}
/**
* 登录验证提交
*/
public function doLogin()
{
if ($this->request->isPost()) {
$validate = new Validate([
'captcha' => 'require',
'username' => 'require',
'password' => 'require|min:6|max:32',
]);
$validate->message([
'username.require' => '用户名不能为空',
'password.require' => '密码不能为空',
'password.max' => '密码不能超过32个字符',
'password.min' => '密码不能小于6个字符',
'captcha.require' => '验证码不能为空',
]);
$data = $this->request->post();
if (!$validate->check($data)) {
$this->error($validate->getError());
}
if (!cmf_captcha_check($data['captcha'])) {
$this->error('验证码错误');
}
$userModel = new UserModel();
$user['user_pass'] = $data['password'];
if (Validate::is($data['username'], 'email')) {
$user['user_email'] = $data['username'];
$log = $userModel->doEmail($user);
} else if (preg_match('/(^(13\d|15[^4\D]|17[013678]|18\d)\d{8})$/', $data['username'])) {
$user['mobile'] = $data['username'];
$log = $userModel->doMobile($user);
} else {
$user['user_login'] = $data['username'];
$log = $userModel->doName($user);
}
$session_login_http_referer = session('login_http_referer');
$redirect = empty($session_login_http_referer) ? $this->request->root() : $session_login_http_referer;
switch ($log) {
case 0:
cmf_user_action('login');
$this->success('登录成功', $redirect);
break;
case 1:
$this->error('登录密码错误');
break;
case 2:
$this->error('账户不存在');
break;
case 3:
$this->error('账号被禁止访问系统');
break;
default :
$this->error('未受理的请求');
}
} else {
$this->error("请求错误");
}
}
/**
* 找回密码
*/
public function findPassword()
{
return $this->fetch('/find_password');
}
/**
* 用户密码重置
*/
public function passwordReset()
{
if ($this->request->isPost()) {
$validate = new Validate([
'captcha' => 'require',
'verification_code' => 'require',
'password' => 'require|min:6|max:32',
]);
$validate->message([
'verification_code.require' => '验证码不能为空',
'password.require' => '密码不能为空',
'password.max' => '密码不能超过32个字符',
'password.min' => '密码不能小于6个字符',
'captcha.require' => '验证码不能为空',
]);
$data = $this->request->post();
if (!$validate->check($data)) {
$this->error($validate->getError());
}
if (!cmf_captcha_check($data['captcha'])) {
$this->error('验证码错误');
}
$errMsg = cmf_check_verification_code($data['username'], $data['verification_code']);
if (!empty($errMsg)) {
$this->error($errMsg);
}
$userModel = new UserModel();
if ($validate::is($data['username'], 'email')) {
$log = $userModel->emailPasswordReset($data['username'], $data['password']);
} else if (preg_match('/(^(13\d|15[^4\D]|17[013678]|18\d)\d{8})$/', $data['username'])) {
$user['mobile'] = $data['username'];
$log = $userModel->mobilePasswordReset($data['username'], $data['password']);
} else {
$log = 2;
}
switch ($log) {
case 0:
$this->success('密码重置成功', $this->request->root());
break;
case 1:
$this->error("您的账户尚未注册");
break;
case 2:
$this->error("您输入的账号格式错误");
break;
default :
$this->error('未受理的请求');
}
} else {
$this->error("请求错误");
}
}
}
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>2-22-3商品详情</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/buy_goods_detail.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<style>
.swiper-slide {
height: 5rem;
}
.swiper-slide img {
width: 7.5rem;
height: 5.65rem;
}
</style>
</head>
<body>
<div class="container">
<div class="swiper">
<div class="swiper-container swiper-container-horizontal swiper-container-ios">
<div class="swiper-wrapper">
<volist name="pic" id="pic">
<div class="swiper-slide swiper-slide-top swiper-slide-prev"><img src="{:cmf_get_image_url($pic)}"></div>
</volist>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination swiper-pagination-bullets">
</div>
</div>
</div>
<div class="goods_detail_desc">
<p class="goods_detail_desc_money">¥{$art.money}<span>联系客服<img src="__TMPL__/public/assets/images/kefu_icon.png" alt=""></span></p>
<p class="goods_detail_desc_title">{$art.name}</p>
<p class="goods_detail_desc_content">{$art.intro}</p>
</div>
<div class="content_body">
<div class="content_head">
<ul class="select_card con_title">
<li class="select_card_list con_curr">
<!-- <img src="images/buy_car.png" alt=""> -->
<em class="select_icon1"></em>
<span>商品详情</span>
</li>
<li class="select_card_list ">
<em class="select_icon2"></em>
<span>用户评价</span>
</li>
</ul>
</div>
<div class="con_all">
<div class="con_warp">
{$art.content}
</div>
<div class="con_warp" style="display: none">
<ul class="con_list">
<li>
<div class="head_img_box">
<img src="__TMPL__/public/assets/images/detail_head_img.png" alt="">
<p class="user_name">穷艾尔雅</p>
<span class="release_time">2018-07-14</span>
</div>
<div class="pingjia_box">
<p class="pingjia_content">出行收纳更方便,体积更小轻松放入汽车后备箱,非常好的
一次租赁体验!期待下一次租赁!
</p>
<img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
<img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
<img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
<img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
</div>
</li>
</ul>
</div>
</div>
</div>
<footer class="footer">
<a href="{:url('Shopping/index')}">
<div class="buycar_box">
<span class="goods_num">{$cart}</span>
<eq name="cart" value="0">
<img class="footer_buycar_img" src="__TMPL__/public/assets/images/cdvcd@1x.png" alt="">
<else/>
<img class="footer_buycar_img" src="__TMPL__/public/assets/images/cdvcd@2x.png" alt="">
</eq>
</div>
</a>
<p class="footer_pay">前往支付</p>
<p class="footer_buycar">加入购物车</p>
</footer>
</div>
<script>
$(document).ready(function() {
get_main_content();
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
function get_main_content() {
}
//购物车跳转
$('.footer_buycar_img').on('click', function() {
window.location.href = "{:url('Shopping/index')}"
})
//购买商品轮播图
var swiper = new Swiper('.swiper-container', {
loop: true,
speed: 2000,
autoplay: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
//点击添加购物车
$('.footer_buycar').on('click', function() {
$.ajax({
type:"POST",
url:"{:url('Shopping/add')}",
data:{
"vehicle_id":"{$Request.param.vehicle_id}",
},
success:function (data) {
if(data.code == 1){
$('.goods_num').text(data.data)
}else{
alert(data.message);
}
},
error:function () {
}
})
})
//去购买
$('.footer_pay').on('click', function() {
window.location.href = "{:url('Rent/buySure')}"
})
</script>
</body>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>2-22-3商品详情</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/buy_goods_detail.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<style>
.swiper-slide {
height: 5rem;
}
.swiper-slide img {
width: 7.5rem;
height: 5.65rem;
}
</style>
</head>
<body>
<div class="container">
<div class="swiper">
<div class="swiper-container swiper-container-horizontal swiper-container-ios">
<div class="swiper-wrapper">
<volist name="pic" id="pic">
<div class="swiper-slide swiper-slide-top swiper-slide-prev"><img src="{:cmf_get_image_url($pic)}"></div>
</volist>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination swiper-pagination-bullets">
</div>
</div>
</div>
<div class="goods_detail_desc">
<p class="goods_detail_desc_money">¥{$art.money}<span>联系客服<img src="__TMPL__/public/assets/images/kefu_icon.png" alt=""></span></p>
<p class="goods_detail_desc_title">{$art.name}</p>
<p class="goods_detail_desc_content">{$art.intro}</p>
</div>
<div class="content_body">
<div class="content_head">
<ul class="select_card con_title">
<li class="select_card_list con_curr">
<!-- <img src="images/buy_car.png" alt=""> -->
<em class="select_icon1"></em>
<span>商品详情</span>
</li>
<li class="select_card_list ">
<em class="select_icon2"></em>
<span>用户评价</span>
</li>
</ul>
</div>
<div class="con_all">
<div class="con_warp">
{$art.content}
</div>
<div class="con_warp" style="display: none">
<ul class="con_list">
<li>
<div class="head_img_box">
<img src="__TMPL__/public/assets/images/detail_head_img.png" alt="">
<p class="user_name">穷艾尔雅</p>
<span class="release_time">2018-07-14</span>
</div>
<div class="pingjia_box">
<p class="pingjia_content">出行收纳更方便,体积更小轻松放入汽车后备箱,非常好的
一次租赁体验!期待下一次租赁!
</p>
<img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
<img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
<img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
<img class="pingjia_image" src="__TMPL__/public/assets/images/111.png" alt="">
</div>
</li>
</ul>
</div>
</div>
</div>
<footer class="footer">
<a href="{:url('Shopping/index')}">
<div class="buycar_box">
<span class="goods_num">{$cart}</span>
<eq name="cart" value="0">
<img class="footer_buycar_img" src="__TMPL__/public/assets/images/cdvcd@1x.png" alt="">
<else/>
<img class="footer_buycar_img" src="__TMPL__/public/assets/images/cdvcd@2x.png" alt="">
</eq>
</div>
</a>
<p class="footer_pay">前往支付</p>
<p class="footer_buycar">加入购物车</p>
</footer>
</div>
<script>
$(document).ready(function() {
get_main_content();
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
function get_main_content() {
}
//购物车跳转
$('.footer_buycar_img').on('click', function() {
window.location.href = "{:url('Shopping/index')}"
})
//购买商品轮播图
var swiper = new Swiper('.swiper-container', {
loop: true,
speed: 2000,
autoplay: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
//点击添加购物车
$('.footer_buycar').on('click', function() {
$.ajax({
type:"POST",
url:"{:url('Shopping/add')}",
data:{
"vehicle_id":"{$Request.param.vehicle_id}",
},
success:function (data) {
if(data.code == 1){
$('.goods_num').text(data.data)
}else{
alert(data.message);
}
},
error:function () {
}
})
})
//去购买
$('.footer_pay').on('click', function() {
window.location.href = "{:url('Rent/buySure')}"
})
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>2-4确认购买</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/sure_buy.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<style>
.shuru {
width: 2rem;
outline: none;
}
.beizhu_title {
display: inline-block;
vertical-align: top;
margin-top: 0.08rem;
}
textarea {
outline: none;
margin: 0 auto;
margin-top: 0.1rem;
margin-left: 0.1rem;
margin-right: 0.1rem;
line-height: 0.35rem;
}
.beizhu_content {
display: inline-block;
border-radius: 0.1rem;
border: 0.01rem solid #EBEBEB;
}
</style>
</head>
<body>
<div class="container">
<div class="address_box">
<img class="youjiantou" src="__TMPL__/public/assets/images/youjiantou1.png" alt="">
<div class="user_box">
<img class="head_img" src="__TMPL__/public/assets/images/head_img.png" alt="">
<p class="user_name">
<input class="shuru" type="text" maxlength="5" placeholder="赵先生">
</p>
<p class="user_phone">
<input class="shuru" type="number" maxlength="11" onkeyup="this.value = this.value.slice(0,11)" placeholder="15122953260">
</p>
</div>
<div class="local_box">
<img class="location_img" src="__TMPL__/public/assets/images/3336556@2x.png" alt="">
<span class="address_content">天津阿达宽大的</span>
</div>
</div>
<div class="con_warp">
<p class="buy_message buy_message_top"> 购买信息</p>
<ul class="con_list_ul">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">$2000.06</p>
<span class="goods_nums"> X1</span>
</div>
</li>
</ul>
<div class="join">
<img class="subtract_img" src="__TMPL__/public/assets/images/item_reduce.png " alt="">
<p>1 </p>
<img class="add_img" src="__TMPL__/public/assets/images/item_add.png" alt="">
</div>
<p class="buy_message buy_message_bot"> 购买数量 </p>
</div>
<div class="peisong">
<div class="peisong_box">
<p> 配送方式<span> 快递:¥8.00</span></p>
</div>
<div class="beizhu_box">
<p class="beizhu_title"> 备注信息: </p>
<p class="beizhu_content">
<textarea name="" id="" cols="35" rows="3">晚一些的发货发的撒佛挡杀佛的萨芬</textarea>
</p>
</div>
</div>
<div class="xiaoji_box">
<p class="xiaoji">共一件商品 小计 : ¥2000.00</p>
</div>
<div class="zhifu">
<div class=" pay_method">
<div class="method_choose">
<p class="wx_pay pay_item"> 微信支付<span><img class="hand" src="__TMPL__/public/assets/images/hand.png" alt="">推荐使用</span> </p>
<p class="ali_pay pay_item"> 支付宝支付 </p>
</div>
<div class="methood_pic">
<img class="sure sure_item" src="__TMPL__/public/assets/images/sure.png" alt="">
<img class="cancel sure_item" src="__TMPL__/public/assets/images/sure_1.png" alt="">
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="buycar_box">
<p> 微信支付</p>
<span class="buycar_box_money">$2000.00</span>
</div>
<p class="footer_buycar">前往支付</p>
</footer>
</div>
<script src="__TMPL__/public/assets/js/picker.min.js"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>
$(document).ready(function() {
get_main_content();
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
function get_main_content() {
}
//地址管理
$('.youjiantou').on('click', function() {
window.location.href = "{:url('Address/index')}";
})
</script>
</body>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>2-4确认购买</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/sure_buy.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<style>
.shuru {
width: 2rem;
outline: none;
}
.beizhu_title {
display: inline-block;
vertical-align: top;
margin-top: 0.08rem;
}
textarea {
outline: none;
margin: 0 auto;
margin-top: 0.1rem;
margin-left: 0.1rem;
margin-right: 0.1rem;
line-height: 0.35rem;
}
.beizhu_content {
display: inline-block;
border-radius: 0.1rem;
border: 0.01rem solid #EBEBEB;
}
</style>
</head>
<body>
<div class="container">
<div class="address_box">
<img class="youjiantou" src="__TMPL__/public/assets/images/youjiantou1.png" alt="">
<div class="user_box">
<img class="head_img" src="__TMPL__/public/assets/images/head_img.png" alt="">
<p class="user_name">
<input class="shuru" type="text" maxlength="5" placeholder="赵先生">
</p>
<p class="user_phone">
<input class="shuru" type="number" maxlength="11" onkeyup="this.value = this.value.slice(0,11)" placeholder="15122953260">
</p>
</div>
<div class="local_box">
<img class="location_img" src="__TMPL__/public/assets/images/3336556@2x.png" alt="">
<span class="address_content">天津阿达宽大的</span>
</div>
</div>
<div class="con_warp">
<p class="buy_message buy_message_top"> 购买信息</p>
<ul class="con_list_ul">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">$2000.06</p>
<span class="goods_nums"> X1</span>
</div>
</li>
</ul>
<div class="join">
<img class="subtract_img" src="__TMPL__/public/assets/images/item_reduce.png " alt="">
<p>1 </p>
<img class="add_img" src="__TMPL__/public/assets/images/item_add.png" alt="">
</div>
<p class="buy_message buy_message_bot"> 购买数量 </p>
</div>
<div class="peisong">
<div class="peisong_box">
<p> 配送方式<span> 快递:¥8.00</span></p>
</div>
<div class="beizhu_box">
<p class="beizhu_title"> 备注信息: </p>
<p class="beizhu_content">
<textarea name="" id="" cols="35" rows="3">晚一些的发货发的撒佛挡杀佛的萨芬</textarea>
</p>
</div>
</div>
<div class="xiaoji_box">
<p class="xiaoji">共一件商品 小计 : ¥2000.00</p>
</div>
<div class="zhifu">
<div class=" pay_method">
<div class="method_choose">
<p class="wx_pay pay_item"> 微信支付<span><img class="hand" src="__TMPL__/public/assets/images/hand.png" alt="">推荐使用</span> </p>
<p class="ali_pay pay_item"> 支付宝支付 </p>
</div>
<div class="methood_pic">
<img class="sure sure_item" src="__TMPL__/public/assets/images/sure.png" alt="">
<img class="cancel sure_item" src="__TMPL__/public/assets/images/sure_1.png" alt="">
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="buycar_box">
<p> 微信支付</p>
<span class="buycar_box_money">$2000.00</span>
</div>
<p class="footer_buycar">前往支付</p>
</footer>
</div>
<script src="__TMPL__/public/assets/js/picker.min.js"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>
$(document).ready(function() {
get_main_content();
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
function get_main_content() {
}
//地址管理
$('.youjiantou').on('click', function() {
window.location.href = "{:url('Address/index')}";
})
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>搜索</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/search.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<style>
.con_warp {
margin-top: 0.3rem;
}
</style>
</head>
<body>
<div class="container">
<div class="search_search_box">
<div class="search_input_box">
<input class="search_search_input" type="text" placeholder="专业电动医疗轮椅" value="{$Request.param.find}">
</div>
<img class="search_search_icon" src="__TMPL__/public/assets/images/search.png" alt="">
</div>
<div class="search_hitory">
<p class="final_search">
</p>
<div class="search_history_list_box" >
<volist name="history" id="history">
<p class="search_history_list">{$history.keyword}</p>
</volist>
</div>
</div>
<div class="con_warp">
<ul class="con_list">
<volist name="vehicle" id="vehicle">
<li class="con_list_li">
<div class="con_list_img_box">
<img class="con_list_img" src="{:cmf_get_image_url($vehicle.pic)}" alt="">
</div>
<div class="goods_box">
<p class="goods_title">{$vehicle.name}</p>
<span class="goods_content">{$vehicle.name}</span>
<p class="goods_money">¥{$vehicle.money}/天</p>
</div>
</li>
</volist>
<!--<li class="con_list_li">-->
<!--<div class="con_list_img_box">-->
<!--<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">-->
<!--</div>-->
<!--<div class="goods_box">-->
<!--<p class="goods_title">HO56C手动轮椅车</p>-->
<!--<span class="goods_content">体积更小轻松放入汽车后备箱</span>-->
<!--<p class="goods_money">$2000.00</p>-->
<!--</div>-->
<!--</li>-->
<!--<li class="con_list_li">-->
<!--<div class="con_list_img_box">-->
<!--<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">-->
<!--</div>-->
<!--<div class="goods_box">-->
<!--<p class="goods_title">HO56C手动轮椅车</p>-->
<!--<span class="goods_content">体积更小轻松放入汽车后备箱</span>-->
<!--<p class="goods_money">$2000.00</p>-->
<!--</div>-->
<!--</li>-->
</ul>
</div>
</div>
<script>
$('.search_history_list_box').css('display','none');
$('.con_warp').css('display','none');
$(document).ready(function() {
var type = "{$type}";
if(type == 1){
// 相关搜索
$('.final_search').text('最近搜索');
$('.search_history_list_box').css('display','block');
$('.con_warp').css('display','none');
}else if(type == 2){
// 搜索结果
$('.final_search').text('相关商品');
$('.search_history_list_box').css('display','none');
$('.con_warp').css('display','block');
}
})
// 搜索跳页
$('.search_search_icon').on('click', function() {
var find = $('.search_search_input').val();
var type = "{$Request.param.type}";
var url = "{:url('Rent/find')}";
url = url.split('.');
url = url[0] + '/type/' + type + '/find/' + find + ".html";
window.location.href = url;
})
// 最近搜索
$('.search_history_list').click(function () {
var text = $(this).text();
$('.search_search_input').val(text);
var type = "{$Request.param.type}";
var url = "{:url('Rent/find')}";
url = url.split('.');
url = url[0] + '/type/' + type + '/find/' + text + ".html";
window.location.href = url;
})
</script>
</body>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>搜索</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/search.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<style>
.con_warp {
margin-top: 0.3rem;
}
</style>
</head>
<body>
<div class="container">
<div class="search_search_box">
<div class="search_input_box">
<input class="search_search_input" type="text" placeholder="专业电动医疗轮椅" value="{$Request.param.find}">
</div>
<img class="search_search_icon" src="__TMPL__/public/assets/images/search.png" alt="">
</div>
<div class="search_hitory">
<p class="final_search">
</p>
<div class="search_history_list_box" >
<volist name="history" id="history">
<p class="search_history_list">{$history.keyword}</p>
</volist>
</div>
</div>
<div class="con_warp">
<ul class="con_list">
<volist name="vehicle" id="vehicle">
<li class="con_list_li">
<div class="con_list_img_box">
<img class="con_list_img" src="{:cmf_get_image_url($vehicle.pic)}" alt="">
</div>
<div class="goods_box">
<p class="goods_title">{$vehicle.name}</p>
<span class="goods_content">{$vehicle.name}</span>
<p class="goods_money">¥{$vehicle.money}/天</p>
</div>
</li>
</volist>
<!--<li class="con_list_li">-->
<!--<div class="con_list_img_box">-->
<!--<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">-->
<!--</div>-->
<!--<div class="goods_box">-->
<!--<p class="goods_title">HO56C手动轮椅车</p>-->
<!--<span class="goods_content">体积更小轻松放入汽车后备箱</span>-->
<!--<p class="goods_money">$2000.00</p>-->
<!--</div>-->
<!--</li>-->
<!--<li class="con_list_li">-->
<!--<div class="con_list_img_box">-->
<!--<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">-->
<!--</div>-->
<!--<div class="goods_box">-->
<!--<p class="goods_title">HO56C手动轮椅车</p>-->
<!--<span class="goods_content">体积更小轻松放入汽车后备箱</span>-->
<!--<p class="goods_money">$2000.00</p>-->
<!--</div>-->
<!--</li>-->
</ul>
</div>
</div>
<script>
$('.search_history_list_box').css('display','none');
$('.con_warp').css('display','none');
$(document).ready(function() {
var type = "{$type}";
if(type == 1){
// 相关搜索
$('.final_search').text('最近搜索');
$('.search_history_list_box').css('display','block');
$('.con_warp').css('display','none');
}else if(type == 2){
// 搜索结果
$('.final_search').text('相关商品');
$('.search_history_list_box').css('display','none');
$('.con_warp').css('display','block');
}
})
// 搜索跳页
$('.search_search_icon').on('click', function() {
var find = $('.search_search_input').val();
var type = "{$Request.param.type}";
var url = "{:url('Rent/find')}";
url = url.split('.');
url = url[0] + '/type/' + type + '/find/' + find + ".html";
window.location.href = url;
})
// 最近搜索
$('.search_history_list').click(function () {
var text = $(this).text();
$('.search_search_input').val(text);
var type = "{$Request.param.type}";
var url = "{:url('Rent/find')}";
url = url.split('.');
url = url[0] + '/type/' + type + '/find/' + text + ".html";
window.location.href = url;
})
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>我要免押金</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/deposit_free.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<style>
</style>
</head>
<body>
<div class="container text-container">
<div class="content_text_box">
<div class="text_in_box">
<p class="text_title">{$art.title}</p>
<p class="content_text">{$art.content}
</p>
<div class="tel_box">
<img class="juchi" src="__TMPL__/public/assets/images/0001.png">
</div>
</div>
</div>
</div>
<script>
$(document).ready(function() {
get_main_content();
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
function get_main_content() {
}
</script>
</body>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>我要免押金</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/deposit_free.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<style>
</style>
</head>
<body>
<div class="container text-container">
<div class="content_text_box">
<div class="text_in_box">
<p class="text_title">{$art.title}</p>
<p class="content_text">{$art.content}
</p>
<div class="tel_box">
<img class="juchi" src="__TMPL__/public/assets/images/0001.png">
</div>
</div>
</div>
</div>
<script>
$(document).ready(function() {
get_main_content();
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
function get_main_content() {
}
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>1-3导购页-购买</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/select_goods.css">
<style>
</style>
</head>
<body>
<div class="container">
<volist name="cate" id="cate">
<div class="goods_box" index="{$cate.id}" >
<img class="goods_pic" src="{:cmf_get_image_url($cate.pic)}" alt="" >
</div>
</volist>
</div>
</body>
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<script>
$(document).ready(function() {
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
//商品跳转,类型1租赁,类型2为购买
// var cate_type = getUrlParam('cate_type');
// $('.goods_pic').on('click', function() {
// window.location.href = "lease_goods_category.html"
// })
//商品跳转,类型1租赁,类型2为购买
var type = "{$type}";
$('.goods_box').click(function() {
var pid = $(this).attr('index');
var url = "{:url('Rent/nextGrade')}";
url = url.split('.');
url = url[0] + '/type/' + type + '/pid/' + pid + ".html";
window.location.href = url;
})
</script>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>1-3导购页-购买</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/select_goods.css">
<style>
</style>
</head>
<body>
<div class="container">
<volist name="cate" id="cate">
<div class="goods_box" index="{$cate.id}" >
<img class="goods_pic" src="{:cmf_get_image_url($cate.pic)}" alt="" >
</div>
</volist>
</div>
</body>
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<script>
$(document).ready(function() {
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
//商品跳转,类型1租赁,类型2为购买
// var cate_type = getUrlParam('cate_type');
// $('.goods_pic').on('click', function() {
// window.location.href = "lease_goods_category.html"
// })
//商品跳转,类型1租赁,类型2为购买
var type = "{$type}";
$('.goods_box').click(function() {
var pid = $(this).attr('index');
var url = "{:url('Rent/nextGrade')}";
url = url.split('.');
url = url[0] + '/type/' + type + '/pid/' + pid + ".html";
window.location.href = url;
})
</script>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>我要租赁-商品类别</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/buy_goods_category.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<style>
</style>
</head>
<body>
<div class="container">
<div class="goods_box_top">
<img src="{:cmf_get_image_url($banner.pic)}" alt="">
</div>
<div class="category_search_box">
<input class="category_search_input" type="text" placeholder="专业电动医疗轮椅">
<img class="category_search_icon" src="__TMPL__/public/assets/images/search.png" alt="">
</div>
<div class="content_body">
<ul class="select_card con_title">
<volist name="cate" id="cate">
<li class="select_card_list">
<span>{$cate.name}</span>
</li>
</volist>
</ul>
<div class="con_all">
<eq name="Request.param.type" value="1">
<div class="con_warp">
<ul class="con_list_ul first_ul">
<a href="{:url('Rent/rentDetail',array('type'=>1,'vehicle_id'=>9))}">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车1222</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</a>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653cd2156c6e@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车2</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车3</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车3</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</ul>
</div>
</eq>
<eq name="Request.param.type" value="2">
<div class="con_warp" >
<ul class="con_list">
<a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>3))}">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车4</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</a>
<a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>4))}">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车5</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</a>
<a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>13))}">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车6</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</a>
</ul>
</div>
</eq>
<div class="con_warp" style="display: none">
<ul class="con_list">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车7</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车8</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车9</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</ul>
</div>
<div class="con_warp" style="display: none">
<ul class="con_list">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车10</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车11</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车12</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</body>
<script>
$(document).ready(function() {
get_main_content();
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
// $('.con_list_li').on('click', function() {
// // window.location.href = "lease_goods_detail.html"
// })
// 搜索跳页
$('.category_search_icon').on('click', function() {
var find = $('.category_search_input').val();
var type = "{$Request.param.type}";
var url = "{:url('Rent/find')}";
url = url.split('.');
url = url[0] + '/type/' + type + '/find/' + find + ".html";
window.location.href = url;
// window.location.href = "search.html"
})
//分页
document.addEventListener('scroll', function() {
if ($(window).scrollTop() >= $(document).height() - $(window).height()) {
pull_load();
}
// if (window.innerHeight + document.body.scrollTop === document.body.clientHeight) {
// // 当页面高度 + 滚动高度 === 文档整体高度时为滚动至底部 执行异步加载方法等等
// console.log(1)
// }
});
var page = '',
type = $('.con_curr').data('type');
var html = '';
function pull_load() {
page++
html += ` <li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车` + page + `</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">2000.00<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>`
$('.first_ul').append(html);
$.ajax({
type: '',
url: baseUrl + '',
data: {
token: localStorage.getItem('token'),
type: type,
page: page,
},
success: function(res) {
/* $('.con_list_ul').append(page);*/
},
error: function(res) {}
})
}
// 分类事件
$('.select_card_list').removeClass('con_curr')
$('.select_card_list').eq(0).addClass('con_curr')
$('.select_card_list').click(function () {
$('.select_card_list').removeClass('con_curr')
$(this).addClass('con_curr')
})
</script>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>我要租赁-商品类别</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common/buy_goods_category.css">
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<style>
</style>
</head>
<body>
<div class="container">
<div class="goods_box_top">
<img src="{:cmf_get_image_url($banner.pic)}" alt="">
</div>
<div class="category_search_box">
<input class="category_search_input" type="text" placeholder="专业电动医疗轮椅">
<img class="category_search_icon" src="__TMPL__/public/assets/images/search.png" alt="">
</div>
<div class="content_body">
<ul class="select_card con_title">
<volist name="cate" id="cate">
<li class="select_card_list">
<span>{$cate.name}</span>
</li>
</volist>
</ul>
<div class="con_all">
<eq name="Request.param.type" value="1">
<div class="con_warp">
<ul class="con_list_ul first_ul">
<a href="{:url('Rent/rentDetail',array('type'=>1,'vehicle_id'=>9))}">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车1222</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</a>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653cd2156c6e@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车2</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车3</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车3</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</ul>
</div>
</eq>
<eq name="Request.param.type" value="2">
<div class="con_warp" >
<ul class="con_list">
<a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>3))}">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车4</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</a>
<a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>4))}">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车5</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</a>
<a href="{:url('Rent/vehicleDetail',array('type'=>2,'vehicle_id'=>13))}">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车6</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</a>
</ul>
</div>
</eq>
<div class="con_warp" style="display: none">
<ul class="con_list">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车7</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/14994082982514idfz7@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车8</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车9</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</ul>
</div>
<div class="con_warp" style="display: none">
<ul class="con_list">
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车10</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车11</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
<li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车12</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">¥200.00/天<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</body>
<script>
$(document).ready(function() {
get_main_content();
var $menu_box = $('.content_body .con_title>li');
$menu_box.click(function() {
$(this).addClass('con_curr').siblings().removeClass('con_curr');
var index = $menu_box.index(this);
$('.con_all .con_warp').eq(index).show().siblings().hide();
});
})
// $('.con_list_li').on('click', function() {
// // window.location.href = "lease_goods_detail.html"
// })
// 搜索跳页
$('.category_search_icon').on('click', function() {
var find = $('.category_search_input').val();
var type = "{$Request.param.type}";
var url = "{:url('Rent/find')}";
url = url.split('.');
url = url[0] + '/type/' + type + '/find/' + find + ".html";
window.location.href = url;
// window.location.href = "search.html"
})
//分页
document.addEventListener('scroll', function() {
if ($(window).scrollTop() >= $(document).height() - $(window).height()) {
pull_load();
}
// if (window.innerHeight + document.body.scrollTop === document.body.clientHeight) {
// // 当页面高度 + 滚动高度 === 文档整体高度时为滚动至底部 执行异步加载方法等等
// console.log(1)
// }
});
var page = '',
type = $('.con_curr').data('type');
var html = '';
function pull_load() {
page++
html += ` <li class="con_list_li">
<img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
<div class="goods_box">
<p class="goods_title">HO56C手动轮椅车` + page + `</p>
<span class="goods_content">体积更小轻松放入汽车后备箱</span>
<p class="goods_money">2000.00<img class="goods_icon" src="__TMPL__/public/assets/images/goods_icon.png" alt=""></p>
</div>
</li>`
$('.first_ul').append(html);
$.ajax({
type: '',
url: baseUrl + '',
data: {
token: localStorage.getItem('token'),
type: type,
page: page,
},
success: function(res) {
/* $('.con_list_ul').append(page);*/
},
error: function(res) {}
})
}
// 分类事件
$('.select_card_list').removeClass('con_curr')
$('.select_card_list').eq(0).addClass('con_curr')
$('.select_card_list').click(function () {
$('.select_card_list').removeClass('con_curr')
$(this).addClass('con_curr')
})
</script>
</html>
\ No newline at end of file
... ...