避免从店铺进来就没有助购了
This commit is contained in:
parent
7787397ea0
commit
2a368763fb
BIN
img/2_0.png
Normal file
BIN
img/2_0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
img/2_1.png
Normal file
BIN
img/2_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
@ -256,7 +256,7 @@ mui.plusReady(function() {
|
||||
var isMiaosha = self.isMiaosha;
|
||||
var MiaoshaSaleSpec = self.MiaoshaSaleSpec;
|
||||
var specsId = '';
|
||||
from_id = self.from_id?self.from_id:0
|
||||
from_id = self.from_id?self.from_id:0;
|
||||
// //console.log(isMiaosha)
|
||||
// isMiaosha = 1;
|
||||
// MiaoshaSaleSpec = '0';
|
||||
|
@ -126,6 +126,8 @@ function pulldownRefresh() {
|
||||
}
|
||||
mui.plusReady(function() {
|
||||
var costnum = 0;
|
||||
var self = plus.webview.currentWebview();
|
||||
from_id = self.from_id?self.from_id:0;
|
||||
getRecommend(nowpage, pagesize)
|
||||
$('.commoditylistnav').on('tap', '.nav_block', function() {
|
||||
page = 1;
|
||||
@ -210,7 +212,8 @@ mui.plusReady(function() {
|
||||
height: '100%' //新页面高度,默认为100%
|
||||
},
|
||||
extras: {
|
||||
data_id: good_id
|
||||
data_id: good_id,
|
||||
from_id
|
||||
// ..... //自定义扩展参数,可以用来处理页面间传值
|
||||
},
|
||||
createNew: false, //是否重复创建同样id的webview,默认为false:不重复创建,直接显示
|
||||
|
@ -8,6 +8,8 @@ mui.plusReady(function() {
|
||||
// var Intent = plus.android.importClass("android.content.Intent");
|
||||
// //console.log(Intent)
|
||||
//
|
||||
var self = plus.webview.currentWebview();
|
||||
from_id = self.from_id?self.from_id:0;
|
||||
mui.ajax(ectUrl('app/Shops/getHome'), {
|
||||
data: {
|
||||
shopId: shopId
|
||||
@ -129,7 +131,8 @@ mui.plusReady(function() {
|
||||
height: '100%' //新页面高度,默认为100%
|
||||
},
|
||||
extras: {
|
||||
data_id: good_id
|
||||
data_id: good_id,
|
||||
from_id
|
||||
// ..... //自定义扩展参数,可以用来处理页面间传值
|
||||
},
|
||||
createNew: false, //是否重复创建同样id的webview,默认为false:不重复创建,直接显示
|
||||
|
@ -11,6 +11,7 @@ $('.recommend_title img').eq(1).css('display', 'none');
|
||||
mui.plusReady(function() {
|
||||
// var data = JSON.parse(localStorage.getItem('shop_data'));
|
||||
var self = plus.webview.currentWebview();
|
||||
from_id = self.from_id?self.from_id:0;
|
||||
var userLat='';
|
||||
var userLng='';
|
||||
var scheme = "";
|
||||
|
@ -18,6 +18,7 @@ mui.plusReady(function() {
|
||||
var self = plus.webview.currentWebview();
|
||||
var shopId = self.shopId;
|
||||
var shopName = self.shopName;
|
||||
from_id = self.from_id?self.from_id:0
|
||||
var shopLat="";
|
||||
var shopLng='';
|
||||
var phone='';
|
||||
@ -302,13 +303,14 @@ function jumpPage() {
|
||||
// //console.log(plus.navigator.getStatusBarStyle())
|
||||
var self = plus.webview.currentWebview();
|
||||
shopId = self.shopId;
|
||||
from_id = self.from_id?self.from_id:0;
|
||||
// console.log(shopId);
|
||||
localStorage.setItem('shopId', shopId);
|
||||
|
||||
for (var i = 0; i < subpages.length; i++) {
|
||||
var temp = {};
|
||||
//http://www.html5plus.org/doc/zh_cn/webview.html#plus.webview.create
|
||||
var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
|
||||
var sub = plus.webview.create(subpages[i], subpages[i], subpage_style, {from_id});
|
||||
if (i > 0) {
|
||||
sub.hide();
|
||||
} else {
|
||||
|
@ -188,7 +188,7 @@ mui.plusReady(function() {
|
||||
// var goodsId = $(this).attr('data-goodsId');
|
||||
var shopName = $(this).attr("data-shopName");
|
||||
var shopId = $(this).attr("data-shopId");
|
||||
JZL.openWindow('storeout.html', 'storeout.html', {shopName: shopName,shopId: shopId});
|
||||
JZL.openWindow('storeout.html', 'storeout.html', {shopName: shopName,shopId: shopId,from_id:from_id});
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user