添加商品来源from_id;0其他,2微把,3够吧

This commit is contained in:
2019-09-10 15:28:41 +08:00
parent cd2c6ed3a0
commit 762fe382a4
8 changed files with 45 additions and 38 deletions

View File

@ -27,6 +27,7 @@ var isjiazai = 1;
var nowPage = 1;
var isLoading = false;
mui.plusReady(function() {
from_id=3;
getLocation();
function getLocation() {
if (navigator.geolocation) {
@ -106,7 +107,7 @@ mui.plusReady(function() {
mui('.con').on('tap', '.bc_img', function() {
var goodsId = $(this).attr('data-goodsId');
JZL.openWindow('details.html', 'details.html' + goodsId, {data_id: goodsId});
JZL.openWindow('details.html', 'details.html' + goodsId, {data_id: goodsId, from_id:3, from_id:3});
})
function getShopList(nowPage, pageSize) {
@ -319,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});
JZL.openWindow('goodslist.html', 'goodslist.html', {data_keyword: searchName,goodsType :2, from_id:3});
$('#keyword').val("")
});
//跳转商品详情页
@ -327,5 +328,5 @@ mui("body").on('tap', '.bc_img', function() {
var goodsId = $(this).attr('data-goodsId');
var shopId = $(this).parent().parent().attr('data-shopId');
var goodsType=$(this).attr('data-goodsType')
JZL.openWindow('details.html', 'details.html' + goodsId, {data_id: goodsId,shopId: shopId,goodsType : goodsType});
JZL.openWindow('details.html', 'details.html' + goodsId, {data_id: goodsId,shopId: shopId,goodsType : goodsType, from_id:3});
})