Commit b302011f by 李嘉林

优化

parent d9aee723
......@@ -73,7 +73,7 @@ export default {
// url添加门店信息参数
let { offlineShopCode, offlineShopName } = getStoreInfo();
console.log(offlineShopCode,'----index-offlineShopCode')
if (offlineShopCode) {
if (offlineShopCode && this.params.includes("offlineShopCode") == -1) {
this.params+=`&offlineShopCode=${offlineShopCode}&offlineShopName=${offlineShopName}`
}
// 定位信息
......@@ -159,9 +159,12 @@ export default {
log.info(this.options,'----------------index-----options')
let h5Params = {};
if (options.params) {
if (tool.isObjectString(options.params)) {
console.log('tool.isObjectString(options.params)', tool.isObjectString(decodeURIComponent(options.params)), decodeURIComponent(options.params))
if (tool.isObjectString(decodeURIComponent(options.params))) {
console.log('h5Params1')
h5Params = JSON.parse(decodeURIComponent(options.params));
} else {
} else if(decodeURIComponent(options.params) != {}){
console.log('h5Params2')
h5Params = parseQueryString(decodeURIComponent(options.params));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment