避免从店铺进来就没有助购了

This commit is contained in:
2019-10-09 19:49:01 +08:00
parent 7787397ea0
commit 2a368763fb
8 changed files with 14 additions and 5 deletions

View File

@ -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 {