同步操作将从 众邦科技/CRMEB_Java电商系统 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import { spread } from "@/api/user";import Cache from "@/utils/cache";/*** 静默授权绑定上下级,使用在已经登录后扫描了别人的推广二维码* @param {Object} puid*/export function silenceBindingSpread(){//#ifdef H5let puid = Cache.get('spread');//#endif//#ifdef MPlet puid = getApp().globalData.spid;if(!puid){puid = getApp().globalData.code;}//#endifpuid = parseInt(puid);if(Number.isNaN(puid)){puid = 0;}if(puid){//#ifdef H5Cache.clear('spread');//#endif//#ifdef MPgetApp().globalData.spid = 0;getApp().globalData.code = 0;//#endif// spread(puid).then(res=>{// console.log(res);// }).catch(res=>{// console.log(res);// });}else{Cache.set('spread', 0);}}export function isWeixin() {return navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1;}export function parseQuery() {const res = {};const query = (location.href.split("?")[1] || "").trim().replace(/^(\?|#|&)/, "");if (!query) {return res;}query.split("&").forEach(param => {const parts = param.replace(/\+/g, "").split("=");const key = decodeURIComponent(parts.shift());const val = parts.length > 0 ? decodeURIComponent(parts.join("=")) : null;if (res[key] === undefined) {res[key] = val;} else if (Array.isArray(res[key])) {res[key].push(val);} else {res[key] = [res[key], val];}});return res;}// #ifdef H5const VUE_APP_WS_URL = process.env.VUE_APP_WS_URL || `ws://${location.hostname}:20001`;export {VUE_APP_WS_URL}// #endifexport default parseQuery;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。