购物车分类,联动添加到购物车
This commit is contained in:
parent
cda15842da
commit
405eeba299
@ -573,7 +573,7 @@ mui.plusReady(function() {
|
||||
},
|
||||
extras: {
|
||||
// data_id: data_id
|
||||
|
||||
from: from_id,
|
||||
type: 0
|
||||
|
||||
// ..... //自定义扩展参数,可以用来处理页面间传值
|
||||
|
@ -155,7 +155,7 @@ mui.plusReady(function() {
|
||||
$.each(this.goods, function(idx, ele) {
|
||||
|
||||
html += '<div class="t_con_ bc_img" data-goodsId="' + this.goodsId +
|
||||
'" data-goodsType = 2 ><div class="t_con_img"><img src="' + hyhImgUrl(this.goodsImg) + '" data-goodsId="' + this.goodsId +
|
||||
'" data-goodsType = 3 ><div class="t_con_img"><img src="' + hyhImgUrl(this.goodsImg) + '" data-goodsId="' + this.goodsId +
|
||||
'" alt=""></div><span>¥' + this.shopPrice + '</span></div>'
|
||||
})
|
||||
}
|
||||
@ -218,7 +218,7 @@ function getRecommend(page, pagesize) {
|
||||
$.each(data.Rows, function() {
|
||||
|
||||
html += '<div class="recommend_con_block shadown_wai" data-goodsId="' + this.goodsId +
|
||||
'" data-goodsType = 2><img class="rcb_img" src="' + ectImgUrl(this.goodsImg) +
|
||||
'" data-goodsType = 3><img class="rcb_img" src="' + ectImgUrl(this.goodsImg) +
|
||||
'" alt="" /><div class="rcb_con"><div class="rcb_title"><span style="display:inline-block;" data-shopId="' +
|
||||
this.shopId + '"></span>' + this.goodsName + '</div><div class="rcb_pay">¥' + this.shopPrice +
|
||||
' <span style="display:none;">满减</span></div><div class="rcb_bottom"><div><span>' + this.saleNum +
|
||||
@ -320,7 +320,7 @@ $('.header').on('blur', '#keyword', function() {
|
||||
$(".header").on('tap', '.search button', function(e) {
|
||||
var searchName = $('#keyword').val();
|
||||
// JZL.openWindow('shopsList.html', 'shopsList.html', {data_keyword: searchName,goodsType:2});
|
||||
JZL.openWindow('goodslist.html', 'goodslist.html', {data_keyword: searchName,goodsType :2, from_id:3});
|
||||
JZL.openWindow('goodslist.html', 'goodslist.html', {data_keyword: searchName,goodsType :3, from_id:3});
|
||||
$('#keyword').val("")
|
||||
});
|
||||
//跳转商品详情页
|
||||
|
Loading…
x
Reference in New Issue
Block a user