Commit 7753398e by 肖康

下单 结算 购物车 订单

parent dccc9f8e
......@@ -104,7 +104,7 @@
}
}
.pdf{color:#F68332;font-size: 20px;}
.pdf{color:#F68332;font-size: 20px;margin-left: 10px;}
.sx{
width: 100px;
height: 20px;
......@@ -142,7 +142,7 @@
padding-top: 20px;
.top{
width: 298px;
height: 180px;
height: 90px;
background: #DFEAFA;
border-radius: 8px;
padding:0 4px;
......
.carbox .cons{background:#fff;padding:19px}.carbox .cons .titles{border-bottom:3px solid #164D9A;border-radius:2px;font-size:16px;color:#222;font-weight:bold;padding-bottom:7px;padding-top:10px;width:134px;text-align:center}.carbox .cons .section .left{width:842px}.carbox .cons .section .left .list-table{width:842px;border-radius:0px 0px 8px 8px;margin-top:20px}.carbox .cons .section .left .list-table .w46{width:46px}.carbox .cons .section .left .list-table .w98{width:98px}.carbox .cons .section .left .list-table .w183{width:183px}.carbox .cons .section .left .list-table .w119{width:119px}.carbox .cons .section .left .list-table .w93{width:93px}.carbox .cons .section .left .list-table .w110{width:110px}.carbox .cons .section .left .list-table .w92{width:92px}.carbox .cons .section .left .list-table .check-group{color:#555;font-size:16px;cursor:pointer}.carbox .cons .section .left .list-table .check-group .check{width:14px;height:14px;border:1px solid #164D9A;border-radius:4px;text-align:center;line-height:14px}.carbox .cons .section .left .list-table .check-group .check i{color:#164D9A;font-size:12px;display:none}.carbox .cons .section .left .list-table .check-group span{color:#555;font-size:14px;margin-left:5px}.carbox .cons .section .left .list-table .check-group.act .check i{display:inline}.carbox .cons .section .left .list-table .thead{height:38px;background:#DFEAFA;line-height:38px;border-radius:8px 8px 0px 0px;padding:0 15px}.carbox .cons .section .left .list-table .thead .th{font-size:14px;color:#333;font-weight:bold;box-sizing:border-box;padding-right:5px}.carbox .cons .section .left .list-table .tbody{font-size:14px;color:#555;background:#F7FAFF}.carbox .cons .section .left .list-table .tbody input{width:64px;height:26px;background:#FAFAFA;border:1px solid #DFEAFA;border-radius:4px;line-height:26px;color:#333}.carbox .cons .section .left .list-table .tbody .tr{line-height:20px;border-bottom:1px solid #DFEAFA;padding:20px 15px;box-sizing:border-box}.carbox .cons .section .left .list-table .tbody .tr .td{word-break:break-all;box-sizing:border-box;padding-right:5px}.carbox .cons .section .left .list-table .tbody .tr:last-child{border:0px}.carbox .cons .section .left .list-table .tbody .tr.sxbox{background:rgba(51,51,51,0.2)}.carbox .cons .section .left .list-table .tbody .tr.sxbox input{background:none;border:1px solid #BCBCBC}.carbox .cons .section .left .list-table .tbody .pdf{color:#F68332;font-size:20px}.carbox .cons .section .left .list-table .tbody .sx{width:100px;height:20px;border:1px solid #EE1919;border-radius:14px;color:#EE1919;font-size:14px;text-align:center;line-height:20px;position:relative;top:1px}.carbox .cons .section .left .list-table .tfoot{width:842px;height:38px;line-height:38px;background:#DFEAFA;padding:0 15px;box-shadow:0 0 10px 0 rgba(0,0,0,0.15);border-radius:8px;font-size:13px;color:#555;margin-top:13px}.carbox .cons .section .left .list-table .tfoot .fw{font-weight:bold}.carbox .cons .section .left .list-table .tfoot .selectcount{margin-left:80px;margin-right:60px}.carbox .cons .section .left .list-table .tfoot .del{cursor:pointer}.carbox .cons .section .right{width:298px;padding-top:20px}.carbox .cons .section .right .top{width:298px;height:180px;background:#DFEAFA;border-radius:8px;padding:0 4px}.carbox .cons .section .right .top .itemsp{height:45px;line-height:45px;color:#333;font-size:14px;border-bottom:1px solid #fff;padding:0 17px}.carbox .cons .section .right .top .itemsp span{font-weight:bold}.carbox .cons .section .right .create{width:298px;height:32px;line-height:32px;background:#164D9A;text-align:center;border-radius:8px;font-size:14px;color:#fff;cursor:pointer;margin-top:20px}.carbox .cons .section .right .lgtips{font-size:14px;color:#555;margin-top:12px}.carbox .cons .section .right .lgtips a{color:#164D9A}.carbox .cons .section .right .bannerc img{width:298px;height:321px;margin-top:24px}
\ No newline at end of file
.carbox .cons{background:#fff;padding:19px}.carbox .cons .titles{border-bottom:3px solid #164D9A;border-radius:2px;font-size:16px;color:#222;font-weight:bold;padding-bottom:7px;padding-top:10px;width:134px;text-align:center}.carbox .cons .section .left{width:842px}.carbox .cons .section .left .list-table{width:842px;border-radius:0px 0px 8px 8px;margin-top:20px}.carbox .cons .section .left .list-table .w46{width:46px}.carbox .cons .section .left .list-table .w98{width:98px}.carbox .cons .section .left .list-table .w183{width:183px}.carbox .cons .section .left .list-table .w119{width:119px}.carbox .cons .section .left .list-table .w93{width:93px}.carbox .cons .section .left .list-table .w110{width:110px}.carbox .cons .section .left .list-table .w92{width:92px}.carbox .cons .section .left .list-table .check-group{color:#555;font-size:16px;cursor:pointer}.carbox .cons .section .left .list-table .check-group .check{width:14px;height:14px;border:1px solid #164D9A;border-radius:4px;text-align:center;line-height:14px}.carbox .cons .section .left .list-table .check-group .check i{color:#164D9A;font-size:12px;display:none}.carbox .cons .section .left .list-table .check-group span{color:#555;font-size:14px;margin-left:5px}.carbox .cons .section .left .list-table .check-group.act .check i{display:inline}.carbox .cons .section .left .list-table .thead{height:38px;background:#DFEAFA;line-height:38px;border-radius:8px 8px 0px 0px;padding:0 15px}.carbox .cons .section .left .list-table .thead .th{font-size:14px;color:#333;font-weight:bold;box-sizing:border-box;padding-right:5px}.carbox .cons .section .left .list-table .tbody{font-size:14px;color:#555;background:#F7FAFF}.carbox .cons .section .left .list-table .tbody input{width:64px;height:26px;background:#FAFAFA;border:1px solid #DFEAFA;border-radius:4px;line-height:26px;color:#333}.carbox .cons .section .left .list-table .tbody .tr{line-height:20px;border-bottom:1px solid #DFEAFA;padding:20px 15px;box-sizing:border-box}.carbox .cons .section .left .list-table .tbody .tr .td{word-break:break-all;box-sizing:border-box;padding-right:5px}.carbox .cons .section .left .list-table .tbody .tr:last-child{border:0px}.carbox .cons .section .left .list-table .tbody .tr.sxbox{background:rgba(51,51,51,0.2)}.carbox .cons .section .left .list-table .tbody .tr.sxbox input{background:none;border:1px solid #BCBCBC}.carbox .cons .section .left .list-table .tbody .pdf{color:#F68332;font-size:20px;margin-left:10px}.carbox .cons .section .left .list-table .tbody .sx{width:100px;height:20px;border:1px solid #EE1919;border-radius:14px;color:#EE1919;font-size:14px;text-align:center;line-height:20px;position:relative;top:1px}.carbox .cons .section .left .list-table .tfoot{width:842px;height:38px;line-height:38px;background:#DFEAFA;padding:0 15px;box-shadow:0 0 10px 0 rgba(0,0,0,0.15);border-radius:8px;font-size:13px;color:#555;margin-top:13px}.carbox .cons .section .left .list-table .tfoot .fw{font-weight:bold}.carbox .cons .section .left .list-table .tfoot .selectcount{margin-left:80px;margin-right:60px}.carbox .cons .section .left .list-table .tfoot .del{cursor:pointer}.carbox .cons .section .right{width:298px;padding-top:20px}.carbox .cons .section .right .top{width:298px;height:90px;background:#DFEAFA;border-radius:8px;padding:0 4px}.carbox .cons .section .right .top .itemsp{height:45px;line-height:45px;color:#333;font-size:14px;border-bottom:1px solid #fff;padding:0 17px}.carbox .cons .section .right .top .itemsp span{font-weight:bold}.carbox .cons .section .right .create{width:298px;height:32px;line-height:32px;background:#164D9A;text-align:center;border-radius:8px;font-size:14px;color:#fff;cursor:pointer;margin-top:20px}.carbox .cons .section .right .lgtips{font-size:14px;color:#555;margin-top:12px}.carbox .cons .section .right .lgtips a{color:#164D9A}.carbox .cons .section .right .bannerc img{width:298px;height:321px;margin-top:24px}
\ No newline at end of file
......@@ -446,6 +446,7 @@
line-height: 40px;
margin:0 auto;
margin-top: 24px;
cursor: pointer;
}
}
......
......@@ -80,7 +80,7 @@
position: absolute;
width: 160px;
background: #FFFFFF;
top:19px;
top:17px;
left:0px;
box-shadow: 0px 0px 5px #ccc;
padding:15px 0px;
......@@ -1002,5 +1002,42 @@
}
}
}
/**分页**/
.M-pagebox{
margin-top: 20px;
span,a{
width: 32px;
height: 32px;
background: #FAFAFA;
border: 1px solid #DFEAFA;
border-radius: 4px;
margin-left: 9px;
color:#555;
font-size: 14px;
cursor: pointer;
text-align: center;
box-sizing: border-box;
line-height: 32px;
text-align: center;
}
span.active{
background: #DFEAFA;
border: 1px solid #164D9A;
}
input{
width: 52px;
height: 32px;
background: #FAFAFA;
border: 1px solid #DFEAFA;
text-align: center;
line-height: 32px;
margin-left: 9px;
padding:0px;
box-sizing: border-box;
color:#555;
font-size: 14px;
}
}
}
......@@ -70,12 +70,13 @@
.list-table{
.tr{
margin-bottom: 10px;
.w159{width:159px;}
.w98{width:98px;}
.w159{width:189px;}
.w98{width:108px;}
.w168{width:168px;}
.w189{width:189px;}
.w239{width:239px;}
.w189{width:239px;}
.w239{width:309px;}
.w150{width:150px;}
cursor: pointer;
.titletr{
height:48px;
background: #DFEAFA;
......@@ -107,7 +108,7 @@
}
.td-group{
padding:12px 19px;
line-height: 20px;
.td{
font-size: 14px;
color:#555;
......@@ -140,4 +141,16 @@
}
}
}
}
.paybox{
.pcons{
color:#fff;
font-size: 16px;
line-height: 30px;
padding-left:30px;
box-sizing: border-box;
.h6{color:#F68332;font-weight: bold;font-size: 18px;}
}
}
\ No newline at end of file
.orderbox .search-shit{width:230px;height:32px;background:#FAFAFA;border:1px solid #DFEAFA;border-radius:8px;position:relative;top:-5px}.orderbox .search-shit span.icon{position:absolute;right:0px;top:-1px;width:50px;height:32px;background:#164D9A;text-align:center;line-height:32px;border-radius:0px 8px 8px 0px;cursor:pointer}.orderbox .search-shit span.icon i{font-size:18px;color:#fff}.orderbox .search-shit input{background:#fff;display:block;height:30px;line-height:30px;color:#333;padding-left:15px;width:182px}.orderbox .user-right{width:1024px;min-height:500px;background:#FFFFFF;padding:18px 12px}.orderbox .user-right .nav{width:950px;border-bottom:1px solid #DFEAFA;margin-bottom:16px}.orderbox .user-right .nav .item{height:38px;font-size:14px;color:#555;text-align:center;box-sizing:border-box;padding:0px 20px;cursor:pointer}.orderbox .user-right .nav .item .tt{width:80px}.orderbox .user-right .nav .item span{height:34px;line-height:38px}.orderbox .user-right .nav .item:first-child{line-height:38px}.orderbox .user-right .nav .item:last-child{line-height:38px}.orderbox .user-right .nav .item.act{font-weight:bold;color:#222;border-bottom:4px solid #164D9A}.orderbox .user-right .list-table .tr{margin-bottom:10px}.orderbox .user-right .list-table .tr .w159{width:159px}.orderbox .user-right .list-table .tr .w98{width:98px}.orderbox .user-right .list-table .tr .w168{width:168px}.orderbox .user-right .list-table .tr .w189{width:189px}.orderbox .user-right .list-table .tr .w239{width:239px}.orderbox .user-right .list-table .tr .w150{width:150px}.orderbox .user-right .list-table .tr .titletr{height:48px;background:#DFEAFA;border-radius:4px 4px 0px 0px;font-size:14px;color:#555;padding:0 18px;line-height:48px}.orderbox .user-right .list-table .tr .titletr .ordersn{margin:0 40px}.orderbox .user-right .list-table .tr .titletr .fo{color:#F68332}.orderbox .user-right .list-table .tr .titletr .down{margin-left:30px;color:#555;cursor:pointer}.orderbox .user-right .list-table .tr .titletr .down:hover{color:#164D9A}.orderbox .user-right .list-table .tr .contr{background:#F7FAFF}.orderbox .user-right .list-table .tr .contr .th-group{height:39px;line-height:39px;padding:0 19px;border-bottom:1px solid #DFEAFA}.orderbox .user-right .list-table .tr .contr .th-group .th{font-size:14px;color:#333;font-weight:bold;box-sizing:border-box;padding-right:5px}.orderbox .user-right .list-table .tr .contr .td-group{padding:12px 19px}.orderbox .user-right .list-table .tr .contr .td-group .td{font-size:14px;color:#555;box-sizing:border-box;padding-right:5px;word-break:break-all}.orderbox .user-right .list-table .tr .contr .td-group .td .btnsi{width:96px;height:30px;background:#164D9A;border-radius:4px;color:#fff;font-size:14px;line-height:30px;text-align:center;cursor:pointer;box-sizing:border-box;margin-bottom:6px}.orderbox .user-right .list-table .tr .contr .td-group .td .btnsi.paybtn{background:#F68332}.orderbox .user-right .list-table .tr .contr .td-group .td .btnsi.cancelbtn{background:#fff;color:#555;border:1px solid #DFEAFA}
\ No newline at end of file
.orderbox .search-shit{width:230px;height:32px;background:#FAFAFA;border:1px solid #DFEAFA;border-radius:8px;position:relative;top:-5px}.orderbox .search-shit span.icon{position:absolute;right:0px;top:-1px;width:50px;height:32px;background:#164D9A;text-align:center;line-height:32px;border-radius:0px 8px 8px 0px;cursor:pointer}.orderbox .search-shit span.icon i{font-size:18px;color:#fff}.orderbox .search-shit input{background:#fff;display:block;height:30px;line-height:30px;color:#333;padding-left:15px;width:182px}.orderbox .user-right{width:1024px;min-height:500px;background:#FFFFFF;padding:18px 12px}.orderbox .user-right .nav{width:950px;border-bottom:1px solid #DFEAFA;margin-bottom:16px}.orderbox .user-right .nav .item{height:38px;font-size:14px;color:#555;text-align:center;box-sizing:border-box;padding:0px 20px;cursor:pointer}.orderbox .user-right .nav .item .tt{width:80px}.orderbox .user-right .nav .item span{height:34px;line-height:38px}.orderbox .user-right .nav .item:first-child{line-height:38px}.orderbox .user-right .nav .item:last-child{line-height:38px}.orderbox .user-right .nav .item.act{font-weight:bold;color:#222;border-bottom:4px solid #164D9A}.orderbox .user-right .list-table .tr{margin-bottom:10px;cursor:pointer}.orderbox .user-right .list-table .tr .w159{width:189px}.orderbox .user-right .list-table .tr .w98{width:108px}.orderbox .user-right .list-table .tr .w168{width:168px}.orderbox .user-right .list-table .tr .w189{width:239px}.orderbox .user-right .list-table .tr .w239{width:309px}.orderbox .user-right .list-table .tr .w150{width:150px}.orderbox .user-right .list-table .tr .titletr{height:48px;background:#DFEAFA;border-radius:4px 4px 0px 0px;font-size:14px;color:#555;padding:0 18px;line-height:48px}.orderbox .user-right .list-table .tr .titletr .ordersn{margin:0 40px}.orderbox .user-right .list-table .tr .titletr .fo{color:#F68332}.orderbox .user-right .list-table .tr .titletr .down{margin-left:30px;color:#555;cursor:pointer}.orderbox .user-right .list-table .tr .titletr .down:hover{color:#164D9A}.orderbox .user-right .list-table .tr .contr{background:#F7FAFF}.orderbox .user-right .list-table .tr .contr .th-group{height:39px;line-height:39px;padding:0 19px;border-bottom:1px solid #DFEAFA}.orderbox .user-right .list-table .tr .contr .th-group .th{font-size:14px;color:#333;font-weight:bold;box-sizing:border-box;padding-right:5px}.orderbox .user-right .list-table .tr .contr .td-group{padding:12px 19px;line-height:20px}.orderbox .user-right .list-table .tr .contr .td-group .td{font-size:14px;color:#555;box-sizing:border-box;padding-right:5px;word-break:break-all}.orderbox .user-right .list-table .tr .contr .td-group .td .btnsi{width:96px;height:30px;background:#164D9A;border-radius:4px;color:#fff;font-size:14px;line-height:30px;text-align:center;cursor:pointer;box-sizing:border-box;margin-bottom:6px}.orderbox .user-right .list-table .tr .contr .td-group .td .btnsi.paybtn{background:#F68332}.orderbox .user-right .list-table .tr .contr .td-group .td .btnsi.cancelbtn{background:#fff;color:#555;border:1px solid #DFEAFA}.paybox .pcons{color:#fff;font-size:16px;line-height:30px;padding-left:30px;box-sizing:border-box}.paybox .pcons .h6{color:#F68332;font-weight:bold;font-size:18px}
\ No newline at end of file
......@@ -8,14 +8,13 @@ define('brandlist', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], functio
limit: 10,
init: function () {
brandlist.handle();
brandlist.pagehandle();
brandlist.getData()
},
getData: function () {
var data_ = {
page: brandlist.page,
page_size: brandlist.limit,
"brand_name/like":$("#brandvalxsp").text()
"brand_id/eq":$("#brandvalxsp").attr("guid")
}
if ($(".eqsort").hasClass("act")) {
data_["goods_name/eq"] = $(".mallbrandlistvalx").val()
......@@ -49,7 +48,8 @@ define('brandlist', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], functio
return
}
var json_ = {
data: dataArr
data: dataArr,
brand_id:$("#brandvalxsp").attr("guid")
}
var html = template('DataTmp', json_);
$(".data-td").html(html);
......@@ -59,12 +59,21 @@ define('brandlist', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], functio
})
//分页初始化
$('.M-pagebox').pagination({
coping: false,
homePage: '<<',
endPage: '>>',
totalData: res.data.total,
showData: res.data.page_size,
current: res.data.page
showData: Number(res.data.page_size),
coping: true,
prevContent: '<',
nextContent: '>',
jump: true,
jumpBtn:"Go",
keepShowPN:true,
current: Number(res.data.page),
isHide:true,
callback: function (api) {
brandlist.page=api.getCurrent()
brandlist.getData();
}
});
} else {
tool.NoData(".data-td")
......@@ -97,36 +106,46 @@ define('brandlist', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], functio
}
brandlist.getData()
})
//copy
$("body").on("click", ".copyname", function () {
$("#domainxksearch").val($(this).attr("goods_name"));
var copyobject = document.getElementById("domainxksearch");
copyobject.select();
document.execCommand("Copy");
liexin_pop.Tip({ title: "Copy Success" })
})
//输入数量
$("body").on("input", '.valuepsearch', tool.debounce(function (e) {
$("body").on("input", '.valuepSearch', tool.debounce(function (e) {
var num = $(this).val();
var max_num=Number($(this).attr("maxNum"));
var min_num=Number($(this).attr("minNum"));
if(num>max_num){
var max_num = Number($(this).attr("maxNum"));
var min_num = Number($(this).attr("minNum"));
if (num > max_num) {
$(this).val(max_num)
liexin_pop.Tip({ title: "At Most "+max_num })
liexin_pop.Tip({ title: "At Most " + max_num })
return
}
if(num<min_num){
if (num < min_num) {
$(this).val(min_num)
liexin_pop.Tip({ title: "At Least "+min_num })
liexin_pop.Tip({ title: "At Least " + min_num })
return
}
}, 300))
brandlist.onePriceRow($(this).parents(".td-group"))
}, 600))
//加购物车
$("body").on("click",".addCarsearch",function(){
var data_=[{
goods_id:$(this).attr("goods_id"),
buy_number:$(this).prev(".valuepsearch").val()
}]
$.liexin_ajax('/api/cart/saveCart', 'POST', {items:JSON.stringify(data_)}, function (res) {
$("body").on("click", ".addCarSearch", function () {
var data_ = {
goods_id: $(this).attr("goods_id"),
buy_number: $(this).prev(".valuepSearch").val()
}
$.liexin_ajax('/api/cart/saveCart', 'POST', data_, function (res) {
if (res.code == 0) {
liexin_pop.Tip({ title: res.msg })
tool.getCarNum()
} else {
liexin_pop.Tip({ title: res.msg })
}
})
......@@ -173,24 +192,9 @@ define('brandlist', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], functio
//计算合计价格
var ac_price = obj.find(".price-group.act").find(".jtpc").text().replace(/\s/g, "")
var ac_price = obj.find(".price-group.act").find(".jtpcval").text()
obj.find(".totalrow").text(((ac_price * value_) || 0).toFixed(2))
},
pagehandle: function () {
$("body").on("click", ".M-pagebox a", function () {
if ($(this).attr("data-page")) {
brandlist.page = $(this).attr("data-page");
} else {
if ($(this).hasClass("prev")) {
brandlist.page = brandlist.page - 1;
} else if ($(this).hasClass("next")) {
brandlist.page = brandlist.page + 1;
}
}
brandlist.getData();
})
},
}
module.exports = brandlist.init();
})
......
define('car', ['tool', 'liexin_pop', 'artTemplate'], function (require, exports, module) {
var tool = require("tool");
var liexin_pop = require("liexin_pop");
var artTemplate = require("artTemplate");
var car = {
init: function () {
car.handle();
car.getData()
},
getData: function () {
$.liexin_ajax('/api/cart/cartLists', 'POST', {}, function (res) {
if (res.code == 0) {
var dataArr = res.data.lists || [];
$(".selectcount b").html(res.data.total || 0)
if (dataArr.length == 0) {
tool.NoData(".tbody")
return
}
var json_ = {
data: dataArr
}
var html = template('DataTmp', json_);
$(".tbody").html(html);
//阶梯价格 合计价格初始化
car.priceInit();
} else {
tool.NoData(".tbody")
liexin_pop.Tip({ title: res.msg })
}
})
},
priceInit:function(){
var pr=0;
var leng=0;
$(".tbody .check-group.act").each(function(){
var parents=$(this).parents(".tr")
if(!parents.hasClass("sxbox")){
leng++;
pr+=Number(parents.find(".rowxj").text())
}
})
$(".selectcount b").text(leng)
$(".goods_total").text(pr.toFixed(2))
$(".pay_total").text(pr.toFixed(2))
},
handle: function () {
//选中
$(".carbox").on("click",".check-group",function(){
if($(this).hasClass("selectall")){
if($(this).hasClass("act")){
$(".carbox .check-group").removeClass("act")
}else{
$(".carbox .check-group").addClass("act")
}
}else{
$(this).toggleClass("act")
}
car.priceInit();
})
//修改数量
$("body").on("input", '.valuep', tool.debounce(function (e) {
var num = $(this).val();
var parents=$(this).parents(".tr")
var max_num=Number($(this).attr("maxNum"));
var min_num=Number($(this).attr("minNum"));
if(num>max_num){
$(this).val(max_num)
liexin_pop.Tip({ title: "At Most "+max_num })
return
}
if(num<min_num){
$(this).val(min_num)
liexin_pop.Tip({ title: "At Least "+min_num })
return
}
var data_={
goods_id:$(this).attr("goods_id"),
buy_number:$(this).val()
}
$.liexin_ajax('/api/cart/saveCart', 'POST', data_, function (res) {
if (res.code == 0) {
liexin_pop.Tip({ title: res.msg },function(){
parents.find(".rowdj").text(res.data.buy_price)
parents.find(".rowxj").text(res.data.ext_price)
car.priceInit();
})
} else {
liexin_pop.Tip({ title: res.msg })
}
})
}, 300))
//删除购物车
$(".delcarsd").click(function(){
var arr_=[]
$(".tbody .check-group.act").each(function(){
var parents=$(this).parents(".tr")
if(!parents.hasClass("sxbox")){
arr_.push(parents.attr("cart_id"))
}
})
if(arr_.length==0){
liexin_pop.Tip({ title: "No Selected" })
return
}
liexin_pop.Confirm({title:"Are you sure to delete the cars",success:function(ele){
$.liexin_ajax('/api/cart/cartDelete', 'POST', {cart_id:arr_.join(",")}, function (res) {
if (res.code === 0) {
liexin_pop.Tip({ title: res.msg },function(){
car.getData()
})
} else {
liexin_pop.Tip({ title: res.msg })
}
})
}})
})
//下单
$(".createcarbtn").click(function(){
if (!tool.isLogin()) {
liexin_pop.LoginPop({},function(){
car.createOrder()
})
return
}
car.createOrder()
})
},
createOrder:function(){
var arr_=[]
$(".tbody .check-group.act").each(function(){
var parents=$(this).parents(".tr")
if(!parents.hasClass("sxbox")){
arr_.push(parents.attr("cart_id"))
}
})
if(arr_.length==0){
liexin_pop.Tip({ title: "No Data" })
return
}
tool.setCookie("car_xk", arr_.join(","), 1)
window.location.href="/confirm"
}
}
module.exports = car.init();
})
seajs.use(['car'])
\ No newline at end of file
......@@ -3,28 +3,27 @@ define('class_p', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function
var liexin_pop = require("liexin_pop");
var artTemplate = require("artTemplate");
var pagination = require('pagination');
var class_p = {
page: 1,
limit: 10,
init: function () {
class_p.handle();
class_p.pagehandle();
class_p.getData()
},
getData: function () {
var data_ = {
page: class_p.page,
page_size: class_p.limit,
"class_id1/eq":$("#class_id_two").val(),
"brand_name/like":$(".brandvals").val()
"class_id1/eq": $("#class_id_two").val(),
"brand_name/like": $(".brandvals").val()
}
if ($(".eqsort").hasClass("act")) {
data_["goods_name/eq"] = $(".classsearchvals").val()
} else {
data_["goods_name/like"] = $(".classsearchvals").val()
}
if($("#class_id_three").val()){
if ($("#class_id_three").val()) {
data_["class_id2/eq"] = $("#class_id_three").val()
}
$.liexin_ajax(SO_URL + '/semour/skuLists', 'POST', data_, function (res) {
......@@ -46,12 +45,21 @@ define('class_p', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function
})
//分页初始化
$('.M-pagebox').pagination({
coping: false,
homePage: '<<',
endPage: '>>',
totalData: res.data.total,
showData: res.data.page_size,
current: res.data.page
showData: Number(res.data.page_size),
coping: true,
prevContent: '<',
nextContent: '>',
jump: true,
jumpBtn:"Go",
keepShowPN:true,
current: Number(res.data.page),
isHide:true,
callback: function (api) {
class_p.page=api.getCurrent()
class_p.getData();
}
});
} else {
tool.NoData(".data-td")
......@@ -61,36 +69,38 @@ define('class_p', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function
},
handle: function () {
//搜索BTN
$(".searchbq").click(function(){
$(".searchbq").click(function () {
class_p.page=1;
class_p.getData()
})
//重置
$(".resetst").click(function(){
$(".resetst").click(function () {
$(".classsearchvals").val("");
$(".eqsort").removeClass("act")
})
//排序操作
$(".checksearchsz").click(function () {
$(this).toggleClass("act")
class_p.page=1;
class_p.getData()
})
//品牌匹配
$("body").on("input", '.brandvals', tool.debounce(function (e) {
$(".brandvals").attr("guid","")
if(!$(this).val()){
$(".brandvals").attr("guid", "")
if (!$(this).val()) {
$(".brand-box .bcon").hide();
return
}
$.liexin_ajax('/api/brand/list', 'GET', { brand_name: $(this).val() }, function (res) {
if (res.code == 0) {
var arr_=res.data||[];
if(arr_.length==0){
var arr_ = res.data || [];
if (arr_.length == 0) {
$(".brand-box .bcon").hide();
return
}
var html_="";
for(var i=0;i<arr_.length;i++){
html_+='<p class="itembranssearch" guid="'+arr_[i].standard_brand_id+'">'+arr_[i].brand_name_en+'</p>'
var html_ = "";
for (var i = 0; i < arr_.length; i++) {
html_ += '<p class="itembranssearch" guid="' + arr_[i].standard_brand_id + '">' + arr_[i].brand_name_en + '</p>'
}
$(".brand-box .bcon").html(html_).show()
} else {
......@@ -101,11 +111,20 @@ define('class_p', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function
}, 300))
$("body").on("click",".itembranssearch",function(){
$(".brandvals").val($(this).text()).attr("guid",$(this).attr("guid"))
$("body").on("click", ".itembranssearch", function () {
$(".brandvals").val($(this).text()).attr("guid", $(this).attr("guid"))
$(".brand-box .bcon").hide();
})
//copy
$("body").on("click", ".copyname", function () {
$("#domainxksearch").val($(this).attr("goods_name"));
var copyobject = document.getElementById("domainxksearch");
copyobject.select();
document.execCommand("Copy");
liexin_pop.Tip({ title: "Copy Success" })
})
//输入数量
$("body").on("input", '.valuepSearch', tool.debounce(function (e) {
var num = $(this).val();
var max_num = Number($(this).attr("maxNum"));
......@@ -121,14 +140,16 @@ define('class_p', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function
return
}
}, 300))
class_p.onePriceRow($(this).parents(".td-group"))
}, 600))
//加购物车
$("body").on("click", ".addCarSearch", function () {
var data_ = [{
var data_ = {
goods_id: $(this).attr("goods_id"),
buy_number: $(this).prev(".valuepSearch").val()
}]
$.liexin_ajax('/api/cart/saveCart', 'POST', { items: JSON.stringify(data_) }, function (res) {
}
$.liexin_ajax('/api/cart/saveCart', 'POST', data_, function (res) {
if (res.code == 0) {
liexin_pop.Tip({ title: res.msg })
tool.getCarNum()
......@@ -180,26 +201,12 @@ define('class_p', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function
//计算合计价格
var ac_price = obj.find(".price-group.act").find(".jtpc").text().replace(/\s/g, "")
var ac_price = obj.find(".price-group.act").find(".jtpcval").text()
obj.find(".totalrow").text(((ac_price * value_) || 0).toFixed(2))
},
pagehandle: function () {
$("body").on("click", ".M-pagebox a", function () {
if ($(this).attr("data-page")) {
class_p.page = $(this).attr("data-page");
} else {
if ($(this).hasClass("prev")) {
class_p.page = class_p.page - 1;
} else if ($(this).hasClass("next")) {
class_p.page = class_p.page + 1;
}
}
class_p.getData();
})
},
}
module.exports = class_p.init();
module.exports = class_p.init();
})
......
......@@ -8,9 +8,9 @@ define('search', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function (
limit: 10,
init: function () {
search.handle();
search.pagehandle();
search.getData()
},
getData: function () {
var data_ = {
page: search.page,
......@@ -40,6 +40,7 @@ define('search', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function (
}
}
$.liexin_ajax(SO_URL + '/semour/skuLists', 'POST', data_, function (res) {
console.log(res)
if (res.code == 0) {
var dataArr = res.data.lists || [];
$(".searchCount").html(res.data.total || 0)
......@@ -58,12 +59,21 @@ define('search', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function (
})
//分页初始化
$('.M-pagebox').pagination({
coping: false,
homePage: '<<',
endPage: '>>',
totalData: res.data.total,
showData: res.data.page_size,
current: res.data.page
showData: Number(res.data.page_size),
coping: true,
prevContent: '<',
nextContent: '>',
jump: true,
jumpBtn:"Go",
keepShowPN:true,
current: Number(res.data.page),
isHide:true,
callback: function (api) {
search.page=api.getCurrent()
search.getData();
}
});
} else {
tool.NoData(".data-td")
......@@ -75,6 +85,7 @@ define('search', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function (
//排序操作
$(".checksearchsz").click(function () {
$(this).toggleClass("act")
search.page=1;
search.getData()
})
......@@ -90,8 +101,18 @@ define('search', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function (
$(this).removeClass("bottom")
}
}
search.page=1;
search.getData()
})
//copy
$("body").on("click",".copyname",function(){
$("#domainxksearch").val($(this).attr("goods_name"));
var copyobject = document.getElementById("domainxksearch");
copyobject.select();
document.execCommand("Copy");
liexin_pop.Tip({ title: "Copy Success"})
})
//输入数量
$("body").on("input", '.valuepSearch', tool.debounce(function (e) {
......@@ -109,14 +130,16 @@ define('search', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function (
return
}
}, 300))
search.onePriceRow($(this).parents(".td-group"))
}, 600))
//加购物车
$("body").on("click",".addCarSearch",function(){
var data_=[{
var data_={
goods_id:$(this).attr("goods_id"),
buy_number:$(this).prev(".valuepSearch").val()
}]
$.liexin_ajax('/api/cart/saveCart', 'POST', {items:JSON.stringify(data_)}, function (res) {
}
$.liexin_ajax('/api/cart/saveCart', 'POST',data_, function (res) {
if (res.code == 0) {
liexin_pop.Tip({ title: res.msg })
tool.getCarNum()
......@@ -168,24 +191,9 @@ define('search', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function (
//计算合计价格
var ac_price = obj.find(".price-group.act").find(".jtpc").text().replace(/\s/g, "")
var ac_price = obj.find(".price-group.act").find(".jtpcval").text();
obj.find(".totalrow").text(((ac_price * value_) || 0).toFixed(2))
},
pagehandle: function () {
$("body").on("click", ".M-pagebox a", function () {
if ($(this).attr("data-page")) {
search.page = $(this).attr("data-page");
} else {
if ($(this).hasClass("prev")) {
search.page = search.page - 1;
} else if ($(this).hasClass("next")) {
search.page = search.page + 1;
}
}
search.getData();
})
},
}
module.exports = search.init();
})
......
......@@ -199,7 +199,7 @@ define('account', ['tool', 'liexin_pop', 'form', 'artTemplate'], function (requi
if (guid_) {
//编辑逻辑
$(".addressPop").find(".addressPopBtn").attr("guid",guid_)
getAddressDetail(guid_)
account.getAddressDetail(guid_)
}
}
})
......@@ -287,7 +287,7 @@ define('account', ['tool', 'liexin_pop', 'form', 'artTemplate'], function (requi
}
$(".addressPop .email6").val(res.data.email)
$(".addressPop .telephone6").val(res.data.phone)
$(".addressPop .country6").val(res.data.country).attr(res.data.country)
$(".addressPop .country6").val(res.data.country).attr("guid",res.data.country_id)
$(".addressPop .last_name6").val(res.data.last_name)
$(".addressPop .first_name6").val(res.data.first_name)
$(".addressPop .company_name6").val(res.data.company_name)
......
define('order', ['tool', 'liexin_pop', 'artTemplate', 'pagination'], function (require, exports, module) {
var tool = require("tool");
var liexin_pop = require("liexin_pop");
var artTemplate = require("artTemplate");
var pagination = require('pagination');
var order = {
page: 1,
limit: 5,
bankInfo:"",
init: function () {
order.handle();
order.getData()
},
getData: function () {
var data_ = {
page: order.page,
page_size: order.limit,
status: $(".user-right .nav .item.act").attr("guid"),
goods_name: $(".userOrderS").val()
}
$.liexin_ajax('/api/order/orderLists', 'POST', data_, function (res) {
if (res.code == 0) {
var dataArr = res.data.lists || [];
var order_count_=res.data.order_count;
order.bankInfo=res.data.bank_info;
for(let key in order_count_){
$(".user-right .nav .item[guid='"+key+"'] span").text("("+order_count_[key]+")")
}
if (dataArr.length == 0) {
tool.NoData(".orderdataboxs")
return
}
var json_ = {
data: dataArr
}
var html = template('DataTmp', json_);
$(".orderdataboxs").html(html);
//分页初始化
$('.M-pagebox').pagination({
totalData: res.data.total,
showData: Number(res.data.page_size),
coping: true,
prevContent: '<',
nextContent: '>',
jump: true,
jumpBtn: "Go",
keepShowPN: true,
current: Number(res.data.page),
isHide: true,
callback: function (api) {
order.page = api.getCurrent()
order.getData();
}
});
} else {
tool.NoData(".orderdataboxs")
liexin_pop.Tip({ title: res.msg })
}
})
},
handle: function () {
$("body").on("click",".trgo",function(e){
e.stopPropagation()
window.location.href=$(this).attr("data-href")
})
//搜索BTN
$(".ordersearchbtnsas").click(function () {
order.page=1;
order.getData()
})
//tab
$(".user-right .nav .item").click(function(){
$(".user-right .nav .item").removeClass("act")
$(this).addClass("act")
order.page=1;
order.getData()
})
//取消
$("body").on("click",".cancelbtn",function(e){
e.stopPropagation()
var guid_=$(this).attr("guid")
liexin_pop.Confirm({
title: "Are you sure to cancel the order?", success: function (ele) {
$.liexin_ajax('/api/order/cancelOrder', 'POST', { order_id: guid_ }, function (res) {
if (res.code === 0) {
ele.fadeOut(300)
liexin_pop.Tip({ title: res.msg },function(){
order.getData()
})
} else {
liexin_pop.Tip({ title: res.msg })
}
})
}
})
})
$("body").on("click",".paybtn",function(e){
e.stopPropagation()
var self=$(this);
liexin_pop.Open({
title:"Payment",
width:766,
ele:".payDetailPop",
success:function(){
$(".paypal").text(order.bankInfo.paypal)
$(".ttl_bank_name").text(order.bankInfo.ttl_bank_name)
$(".ttl_bank_address").text(order.bankInfo.ttl_bank_address)
$(".ttl_swift_code").text(order.bankInfo.ttl_swift_code)
$(".ttl_company_name").text(order.bankInfo.ttl_company_name)
$(".ttl_account_no").text(order.bankInfo.ttl_account_no)
$(".merchandise_pay").text(self.attr("merchandise_pay"))
$(".shipping_pay").text(self.attr("shipping_pay"))
$(".ps_pay").text(self.attr("ps_pay"))
$(".goods_num_pay").text(self.attr("goods_num_pay"))
$(".subtotal_pay").text(self.attr("subtotal_pay"))
}
})
})
$("body").on("click",".check-group-payp",function(){
$(".check-group-payp").removeClass("act")
$(this).addClass("act")
$(".payDetailPop .zftai").hide();
if($(this).attr("guid")==1){
$(".payDetailPop .ppbox").show();
}else{
$(".payDetailPop .ttbox").show();
}
})
},
}
module.exports = order.init();
})
seajs.use(['order'])
......@@ -4,6 +4,7 @@
@endsection
@section('body')
<textarea id="domainxksearch" style="position: fixed;right:9999px;"></textarea>
<div class="mallpage">
@include('common.mallHeaderTop')
@include('common.mallHeaderNav')
......@@ -78,7 +79,7 @@
</div>
<div class="M-pagebox"></div>
<div class="M-pagebox row rowCenter"></div>
</div>
</div>
</div>
......@@ -93,7 +94,7 @@
{{each data value index}}
<div class="td-group boxsiz row" goods_id="{{value.goods_id}}">
<div class="td w180">
<a href="/sku/{{value.goods_id}}" class="goodsname">{{value.goods_name}}</a>
<a href="/sku/{{value.goods_id}}?brand_id={{brand_id}}" class="goodsname">{{value.goods_name}}</a>
<div class="copyname" goods_name="{{value.goods_name}}">
<i class="icon iconfont icon-fuzhi"></i>
</div>
......@@ -109,13 +110,13 @@
<div> Min:{{value.moq}} <span class="mult">Mult:{{value.mult}} </span></div>
<div> Full Reel:{{value.mpq}} </div>
</div>
<div class="td w140">{{value.hk_delivery_time||"&nbsp;"}}</div>
<div class="td w140">{{value.hk_delivery_time||" "}}</div>
<div class="th w180">
<div class="price-jt">
{{each value['ladder_price'] val i}}
<div class="price-group row" purchases="{{val.purchases}}">
<div class="jtpr">{{val.purchases}}+</div>
<div class="jtpc">${{val.price_us}}</div>
<div class="jtpc">$<span class="jtpcval">{{val.price_us}}</span></div>
</div>
{{/each}}
{{if !value['ladder_price']|| value['ladder_price'].length==0}}
......@@ -125,7 +126,7 @@
</div>
<div class="td">
<div class="input-box ">
<input type="text" class="valuep valuepSearch" minNum="{{value.moq}}" maxNum="{{value.max_buy_stock}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
<input type="text" class="valuep valuepSearch" minNum="{{value.moq}}" value="{{value.moq}}" maxNum="{{value.max_buy_stock}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
<div class="addCar addCarSearch" goods_id="{{value.goods_id}}">Add</div>
</div>
<div class="total-price">
......
......@@ -56,7 +56,7 @@
<div class="ttl">{{$key}}</div>
<div class="ttc row boxsiz">
@foreach ($item as $itemchild)
<a href="/brand/{{$itemchild['standard_brand_id']}}" target="_blank">{{$itemchild['brand_name_en']}}</a>
<a href="/brand/{{$itemchild['standard_brand_id']}}" >{{$itemchild['brand_name_en']}}</a>
@endforeach
</div>
</div>
......
......@@ -20,7 +20,7 @@
<div class="list-table">
<div class="thead row boxsiz">
<div class="th row verCenter w46">
<div class="check-group row verCenter act">
<div class="check-group selectall row verCenter act">
<div class="check">
<i class="icon iconfont icon-gou"></i>
</div>
......@@ -36,68 +36,23 @@
<div class="th">Ext. Price</div>
</div>
<div class="tbody boxsiz">
<div class="tr row">
<div class="td w46">
<div class="check-group row verCenter act">
<div class="check">
<i class="icon iconfont icon-gou"></i>
</div>
<span>1</span>
</div>
</div>
<div class="td w98">STTH1L06A</div>
<div class="td w183">Manufacturers:Yageo</div>
<div class="td w119">2-5 workdays</div>
<div class="td w93">
<input type="text" class="valuep" value="100">
</div>
<div class="td w110">10000</div>
<div class="td w92">$0.0011</div>
<div class="td">$0.11</div>
</div>
<div class="tr row sxbox">
<div class="td w46">
<div class="check-group row verCenter act">
<div class="check">
<i class="icon iconfont icon-gou"></i>
</div>
<span>2</span>
</div>
</div>
<div class="td w98">
STTH1L06A
<div class="pdf">
<i class="icon iconfont icon-PDF"></i>
</div>
</div>
<div class="td w183">
Manufacturers:Yageo
<div class="sx">Invalid Model</div>
</div>
<div class="td w119">2-5 workdays</div>
<div class="td w93">
<input type="text" class="valuep" value="100">
</div>
<div class="td w110">10000</div>
<div class="td w92">$0.0011</div>
<div class="td">$0.11</div>
</div>
</div>
<div class="tfoot boxsiz">
<div class="tr row">
<div class="td">
<div class="check-group row verCenter act">
<div class="check-group row verCenter selectall act">
<div class="check">
<i class="icon iconfont icon-gou"></i>
</div>
<span class="fw selectall">Select All</span>
<span class="fw ">Select All</span>
</div>
</div>
<div class="td selectcount">
<b class="fw">2 </b>Items Selected
<b class="fw">0 </b>Items Selected
</div>
<div class="td">
<div class="del">Delete</div>
<div class="del delcarsd">Delete</div>
</div>
</div>
</div>
......@@ -107,24 +62,24 @@
<div class="top boxsiz">
<div class="itemsp row bothSide">
<span>Merchandise Total</span>
<span>$509.71</span>
<span>$<span class="goods_total">0.00</span></span>
</div>
<div class="itemsp row bothSide">
<!-- <div class="itemsp row bothSide">
<span>Shipping</span>
<span>TBC</span>
</div>
<div class="itemsp row bothSide">
<span>Merchant Fee</span>
<span>TBC</span>
</div>
</div> -->
<div class="itemsp row bothSide">
<span>Subtotal</span>
<span>$559.71</span>
<span>$<span class="pay_total">0.00</span></span>
</div>
</div>
<div class="create">Place Order</div>
<div class="create createcarbtn">Place Order</div>
<div class="lgtips">
Already Registered? <a href="/login">Log In</a>
Already Registered? <a href="/login?referer={{\Illuminate\Support\Facades\URL::current()}}">Log In</a>
</div>
<a href="javascript:void(0)" class="bannerc">
<img src="{{$public}}/assets/images/car/carbanner.png" alt="">
......@@ -137,6 +92,44 @@
</div>
@endsection
@verbatim
<script id="DataTmp" type="text/html">
{{each data value index}}
<div class="tr row {{if value.status==-1}}sxbox{{/if}}" cart_id="{{value.cart_id}}">
<div class="td w46">
<div class="check-group row verCenter act">
<div class="check">
<i class="icon iconfont icon-gou"></i>
</div>
<span>{{index+1}}</span>
</div>
</div>
<div class="td w98">
{{value.goods_name}}
{{if value.pdf}}
<a class="pdf" href="{{value.pdf}}" target="_blank"><i class="icon iconfont icon-PDF"></i></a>
{{/if}}
</div>
<div class="td w183">
Manufacturers:{{value.brand_name}}
{{if value.status==-1}}
<div class="sx">Invalid Model</div>
{{/if}}
</div>
<div class="td w119">{{value.hk_delivery_time}}</div>
<div class="td w93">
<input type="text" class="valuep" goods_id="{{value.goods_id}}" minNum="{{value.moq}}" maxNum="{{value.max_buy_stock}}" value="{{value.buy_number}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
</div>
<div class="td w110">{{value.stock}}</div>
<div class="td w92">$<span class="rowdj">{{value.buy_price}}</span></div>
<div class="td">$<span class="rowxj">{{value.ext_price}}</span></div>
</div>
{{/each}}
</script>
@endverbatim
@section('js')
<script src="{{$public}}/assets/js/car/car.js?v={{time()}}"></script>
@endsection
\ No newline at end of file
......@@ -4,6 +4,7 @@
@endsection
@section('body')
<textarea id="domainxksearch" style="position: fixed;right:9999px;"></textarea>
<div class="mallpage">
@include('common.mallHeaderTop')
@include('common.mallHeaderNav')
......@@ -27,7 +28,7 @@
<div class="csec boxsiz clear">
@foreach($classification['children'] as $class)
<a href="/class/{{$class['class_id']}}">{{$class['class_name_en']}}({{$class['sku_number']}})</a>
<a href="/class/{{$class['class_id']}}" >{{$class['class_name_en']}}({{$class['sku_number']}})</a>
@endforeach
</div>
</div>
......@@ -77,7 +78,7 @@
</div>
<div class="data-td">
</div>
<div class="M-pagebox"></div>
<div class="M-pagebox row rowCenter"></div>
</div>
</div>
</div>
......@@ -108,13 +109,13 @@
<div> Min:{{value.moq}} <span class="mult">Mult:{{value.mult}} </span></div>
<div> Full Reel:{{value.mpq}} </div>
</div>
<div class="td w140">{{value.hk_delivery_time||"&nbsp;"}}</div>
<div class="td w140">{{value.hk_delivery_time||" "}}</div>
<div class="th w180">
<div class="price-jt">
{{each value['ladder_price'] val i}}
<div class="price-group row" purchases="{{val.purchases}}">
<div class="jtpr">{{val.purchases}}+</div>
<div class="jtpc">${{val.price_us}}</div>
<div class="jtpc">$<span class="jtpcval">{{val.price_us}}</span></div>
</div>
{{/each}}
{{if !value['ladder_price']|| value['ladder_price'].length==0}}
......@@ -124,7 +125,7 @@
</div>
<div class="td">
<div class="input-box ">
<input type="text" class="valuep valuepSearch" minNum="{{value.moq}}" maxNum="{{value.max_buy_stock}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
<input type="text" class="valuep valuepSearch" minNum="{{value.moq}}" value="{{value.moq}}" maxNum="{{value.max_buy_stock}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
<div class="addCar addCarSearch" goods_id="{{value.goods_id}}">Add</div>
</div>
<div class="total-price">
......
......@@ -7,6 +7,7 @@
<div class="mallpage">
@include('common.mallHeaderTop')
@include('common.mallHeaderNav')
<textarea id="domainxksearch" style="position: fixed;right:9999px;"></textarea>
<div class="searchbox w1200">
<div class="bread-menu row boxsiz">
<a href="/mall">Home</a>
......@@ -71,7 +72,7 @@
</div>
<div class="M-pagebox"></div>
<div class="M-pagebox row rowCenter"></div>
</div>
</div>
</div>
......@@ -103,13 +104,13 @@
<div> Min:{{value.moq}} <span class="mult">Mult:{{value.mult}} </span></div>
<div> Full Reel:{{value.mpq}} </div>
</div>
<div class="td w140">{{value.hk_delivery_time||"&nbsp;"}}</div>
<div class="td w140">{{value.hk_delivery_time||" "}}</div>
<div class="th w180">
<div class="price-jt">
{{each value['ladder_price'] val i}}
<div class="price-group row" purchases="{{val.purchases}}">
<div class="jtpr">{{val.purchases}}+</div>
<div class="jtpc">${{val.price_us}}</div>
<div class="jtpc">$<span class="jtpcval">{{val.price_us}}</span></div>
</div>
{{/each}}
{{if !value['ladder_price']|| value['ladder_price'].length==0}}
......@@ -119,7 +120,7 @@
</div>
<div class="td">
<div class="input-box ">
<input type="text" class="valuep valuepSearch" minNum="{{value.moq}}" maxNum="{{value.max_buy_stock}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
<input type="text" class="valuep valuepSearch" minNum="{{value.moq}}" value="{{value.moq}}" maxNum="{{value.max_buy_stock}}" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
<div class="addCar addCarSearch" goods_id="{{value.goods_id}}">Add</div>
</div>
<div class="total-price">
......
......@@ -29,17 +29,17 @@
<div class="nav row inuirynavs">
<div class="item act " guid="">
<div class="row rowCenter">
<div>All</div><span>(2)</span>
<div>All</div><span>({{$statusCount['all']}})</span>
</div>
</div>
<div class="item " guid="0">
<div class="row rowCenter">
<div>Pending</div><span>(2)</span>
<div>Pending</div><span>({{$statusCount['pending']}})</span>
</div>
</div>
<div class="item " guid="1">
<div class="row rowCenter">
<div>Replied</div><span>(2)</span>
<div>Replied</div><span>({{$statusCount['processed']}})</span>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment