You've already forked qlg.frontend
避免从店铺进来就没有助购了
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user