You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
47 KiB
1 lines
47 KiB
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///C:/Users/liudan/Desktop/git/huajucanyin/App.vue?71d8","uni-app:///App.vue","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/App.vue?0045","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/App.vue?23d9"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","mixin","mpShare","config","productionTip","wanlshop_config","debug","prototype","$api","api","$store","store","setConfig","baseUrl","appurl","interceptor","request","header","token","wanlshop","wanlLogin","uni","getStorageSync","toastError","undefined","response","res","code","success","to","console","log","fail","error","statusCode","data","msg","errMsg","title","duration","mask","icon","Boolean","showToast","state","user","shock","vibrateShort","prePage","pages","getCurrentPages","length","$vm","wanlsys","sys","getSystemInfoSync","top","statusBarHeight","height","upx2px","screenHeight","platform","model","windowHeight","windowBottom","deviceId","text","setbar","setNavigationBarTitle","JSON","stringify","setNavigationBarColor","appstc","url","cdnurl","toFormat","number","type","toFixed","bcadd","a","b","wanlshop_function","bcsub","bcmul","bcdiv","timeFormat","timestamp","fmt","parseInt","Number","Date","toString","date","ret","opt","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","k","RegExp","exec","replace","padStart","timeToDate","format","timer","getTime","tips","timeToChat","now","week","getDay","guid","len","firstU","radix","chars","split","uuid","i","Math","random","r","shift","join","oss","w","h","modenum","resize","multiple","image","mode","rule","test","pop","animationType","animationDuration","navigateTo","e","back","num","navigateBack","delta","auth","isLogin","on","decodeURIComponent","switchTab","send","post","setChat","phone","makePhoneCall","phoneNumber","conver","limit","unit","maks","name","copy","content","display","setClipboardData","$wanlshop","onGoods","id","orderDetails","order_id","onShop","onShopGoods","onLogistics","toChat","shop_id","goods","onDetails","onAdvert","onLive","onFind","comments","live_id","App","mpType","app","$mount","onLaunch","onShow","onHide"],"mappings":";;;;;;;;;;;;;;AAAA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;;;;;;;ACA32B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';\r\n// @ts-ignore\r\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;/**\r\n * WanlShop - App全局配置 \r\n * @author 深圳前海万联科技有限公司 <wanlshop@i36k.com> \r\n * @link http://www.wanlshop.com\r\n * \r\n * @stress 本程序仅用作FastAdmin付费插件(WanlShop B2B2C商城)API使用,未经版权所有权人书面许可,不能自行用于商业用途\r\n * @creationtime 2019年9月10日12:52:20\r\n * @lasttime 2021年8月22日19:10:17\r\n **/\r\nimport Vue from 'vue';\r\nimport App from './App';\r\n// 中央控制总线\r\nimport store from './store';\r\n// 系统配置\r\nimport api from './common/request/request';\r\nimport wanlshop_function from \"./common/wanlshop_function\";\r\nimport wanlshop_config from './common/config/config';\r\nimport mpShare from './common/libs/mixin/mpShare';\r\n// 引入JSSDK\r\n\r\n\r\n\r\n\r\n// 小程序分享的mixin封装\r\nVue.mixin(mpShare);\r\n// 阻止启动生产消息,常用作指令。\r\nVue.config.productionTip = wanlshop_config.debug;\r\n// 挂载\r\nVue.prototype.$api = api; //Request\r\nVue.prototype.$store = store; //挂载在 Vue 实例上\r\n\r\n\r\n\r\n\r\n\r\n// 配置请求\r\napi.setConfig({\r\n\tbaseUrl: wanlshop_config.appurl,\r\n\tdebug: wanlshop_config.debug\r\n})\r\n\r\n// 请求拦截\r\napi.interceptor.request = (config => {\r\n\t// 给header添加全局请求参数token\r\n\tif (!config.header.token || !config.header.wanlshop) {\r\n\t\tlet wanlLogin = uni.getStorageSync(\"wanlshop:user\");\r\n\t\tif (wanlLogin) {\r\n\t\t\tconfig.header.token = uni.getStorageSync(\"wanlshop:user\").token;\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\tconfig.header['App-Client'] = 'mp-wanlshop';\r\n\r\n\t\t// 设置语言\r\n\t\tconfig.header['Accept-Language'] = 'zh-CN,zh;q=0.9';\r\n\t}\r\n\t// 添加一个自定义的参数,默认异常请求都弹出一个toast提示\r\n\tif (config.toastError === undefined) {\r\n\t\tconfig.toastError = true\r\n\t}\r\n\treturn config;\r\n})\r\n\r\n/**\r\n * 全局的业务拦截\r\n * @深圳前海万联科技有限公司 <www.wanlshop.com>\r\n */\r\napi.interceptor.response = ((res, config) => {\r\n\tif (res.code === 1) {\r\n\t\tres.success = true;\r\n\t} else if (res.code === 401) { // token失效,需要重新登录\r\n\t\tto('/pages/user/auth/auth');\r\n\t}\r\n\twanlshop_config.debug?console.log(res):'';\r\n\treturn res;\r\n})\r\n\r\n/**\r\n * 全局错误提示\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @statusCode 200 业务错误\r\n * @statusCode 401 没有登录\r\n * @statusCode 403 没有权限\r\n * @statusCode 404 找不到文件\r\n * @statusCode 500 服务器内部错误\r\n */\r\napi.interceptor.fail = ((res, config) => {\r\n\tvar error = '';\r\n\t//业务错误、没有登录、没有权限\r\n\tif (res.statusCode === 200) {\r\n\t\terror = res.data.msg;\r\n\t} else if (res.statusCode === 401) {\r\n\t\terror = res.data.msg;\r\n\t} else if (res.statusCode === 403) {\r\n\t\terror = res.data.msg;\r\n\t} else if (res.statusCode === 404) {\r\n\t\terror = 'API接口不存在';\r\n\t} else if (res.statusCode === 500) {\r\n\t\terror = '服务器繁忙';\r\n\t} else {\r\n\t\terror = 'API接口异常';\r\n\t}\r\n\tif (res.errMsg == 'request:fail abort statusCode:-1') {\r\n\t\twanlshop_config.debug?console.log(res) : '';\r\n\t}else{\r\n\t\tconfig.toastError ? msg(error) : '';\r\n\t}\r\n\treturn res;\r\n})\r\n\r\n/**\r\n * 提示信息\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} title 提示标题\r\n * @param {Object} duration 提示时间\r\n * @param {Object} mask 遮罩层\r\n * @param {Object} icon 图标层\r\n */\r\nconst msg = (title, duration = 1500, mask = false, icon = 'none') => {\r\n\t//统一提示方便全局修改\r\n\tif (Boolean(title) === false) {\r\n\t\treturn;\r\n\t}\r\n\tuni.showToast({title,duration,mask,icon});\r\n\tif (store.state.user.shock) {\r\n\t\tuni.vibrateShort();\r\n\t}\r\n}\r\n\r\n/**\r\n * 获取当前页面栈\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * 示例在地址管理,登录要参考下\r\n */\r\nconst prePage = () => {\r\n\tlet pages = getCurrentPages();\r\n\tlet prePage = pages[pages.length - 2];\r\n\r\n\r\n\r\n\treturn prePage.$vm;\r\n}\r\n\r\n/**\r\n * 获取系统信息\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n */\r\nconst wanlsys = () => {\r\n\tconst sys = uni.getSystemInfoSync();\r\n\tconst data = {\r\n\t\ttop: sys.statusBarHeight,\r\n\t\theight: sys.statusBarHeight + uni.upx2px(90),\r\n\t\tscreenHeight: sys.screenHeight,\r\n\t\tplatform: sys.platform,\r\n\t\tmodel: sys.model,\r\n\t\twindowHeight: sys.windowHeight,\r\n\t\twindowBottom: sys.windowBottom,\r\n\t\tdeviceId: sys.deviceId\r\n\t};\r\n\t//\r\n\t// const custom = uni.getMenuButtonBoundingClientRect();\r\n\t// data.height = custom.bottom + custom.top - sys.statusBarHeight;\r\n\t//\r\n\r\n\r\n\r\n\treturn data;\r\n}\r\n\r\n/**\r\n * 修改标题栏\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} text 新标题\r\n * @param {Object} barColor 导航栏颜色\r\n */\r\nconst title = (text = '', setbar = {}) => {\r\n\tif (text) {\r\n\t\tuni.setNavigationBarTitle({\r\n\t\t\ttitle: text\r\n\t\t});\r\n\t}\r\n\tif (JSON.stringify(setbar) != \"{}\") {\r\n\t\tuni.setNavigationBarColor(setbar);\r\n\t}\r\n}\r\n\r\n/**\r\n * 获取图片完整地址\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} url 提示标题,不需要OSS处理\r\n */\r\nconst appstc = (url) => {\r\n\treturn wanlshop_config.cdnurl + '/assets/addons/wanlshop/img' + url;\r\n}\r\n\r\n/**\r\n * 数字格式化\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} number 数字\r\n * @param {Object} type 类型 thousand:万,hundred:百\r\n */\r\nconst toFormat = (number, type) => {\r\n\t//格式千位以上\r\n\tif (type == 'thousand') {\r\n\t\tif (number > 9999) {\r\n\t\t\tnumber = (number / 10000).toFixed(1) + 'w'\r\n\t\t} else if (number > 999) {\r\n\t\t\tnumber = (number / 1000).toFixed(1) + 'k'\r\n\t\t}\r\n\t}\r\n\t//格式百位\r\n\tif (type == 'hundred' && number > 99) {\r\n\t\tnumber = '99+';\r\n\t}\r\n\treturn number;\r\n}\r\n\r\n/**\r\n * 加法精度计算\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} number 数字\r\n */\r\nconst bcadd = (a, b) => {\r\n\treturn wanlshop_function.bcadd(a, b);\r\n}\r\n\r\n/**\r\n * 减法精度计算\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} number 数字\r\n */\r\nconst bcsub = (a, b) => {\r\n\treturn wanlshop_function.bcsub(a, b);\r\n}\r\n\r\n/**\r\n * 乘法精度计算\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} number 数字\r\n */\r\nconst bcmul = (a, b) => {\r\n\treturn wanlshop_function.bcmul(a, b);\r\n}\r\n\r\n/**\r\n * 除法精度计算\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} number 数字\r\n */\r\nconst bcdiv = (a, b) => {\r\n return wanlshop_function.bcdiv(a, b);\r\n};\r\n\r\n/**\r\n * 时间格式化\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param String timestamp 时间戳\r\n * @param String fmt 返回的时间格式\r\n * yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合\r\n */\r\nconst timeFormat = (timestamp = null, fmt = 'yyyy-mm-dd') => {\r\n\t// 其他更多是格式化有如下:\r\n\t// yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合\r\n\ttimestamp = parseInt(timestamp);\r\n\t// 如果为null,则格式化当前时间\r\n\tif (!timestamp) timestamp = Number(new Date());\r\n\t// 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)\r\n\tif (timestamp.toString().length == 10) timestamp *= 1000;\r\n\tlet date = new Date(timestamp);\r\n\tlet ret;\r\n\tlet opt = {\r\n\t\t\"y+\": date.getFullYear().toString(), // 年\r\n\t\t\"m+\": (date.getMonth() + 1).toString(), // 月\r\n\t\t\"d+\": date.getDate().toString(), // 日\r\n\t\t\"h+\": date.getHours().toString(), // 时\r\n\t\t\"M+\": date.getMinutes().toString(), // 分\r\n\t\t\"s+\": date.getSeconds().toString() // 秒\r\n\t\t// 有其他格式化字符需求可以继续添加,必须转化成字符串\r\n\t};\r\n\tfor (let k in opt) {\r\n\t\tret = new RegExp(\"(\" + k + \")\").exec(fmt);\r\n\t\tif (ret) {\r\n\t\t\tfmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, \"0\")))\r\n\t\t};\r\n\t};\r\n\treturn fmt;\r\n}\r\n\r\n\r\n/**\r\n * 社交时间友好\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param String timestamp 时间戳\r\n * @param String | Boolean format 如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;\r\n * 如果为布尔值false,无论什么时间,都返回多久以前的格式\r\n */\r\nconst timeToDate = (timestamp = null, format = 'yyyy-mm-dd') => {\r\n\tif (timestamp == null) timestamp = Number(new Date());\r\n\ttimestamp = parseInt(timestamp);\r\n\t// 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)\r\n\tif (timestamp.toString().length == 10) timestamp *= 1000;\r\n\tvar timer = (new Date()).getTime() - timestamp;\r\n\ttimer = parseInt(timer / 1000);\r\n\t// 如果小于5分钟,则返回\"刚刚\",其他以此类推\r\n\tlet tips = '';\r\n\tswitch (true) {\r\n\t\tcase timer < 300:\r\n\t\t\ttips = '刚刚';\r\n\t\t\tbreak;\r\n\t\tcase timer >= 300 && timer < 3600:\r\n\t\t\ttips = parseInt(timer / 60) + '分钟前';\r\n\t\t\tbreak;\r\n\t\tcase timer >= 3600 && timer < 86400:\r\n\t\t\ttips = parseInt(timer / 3600) + '小时前';\r\n\t\t\tbreak;\r\n\t\tcase timer >= 86400 && timer < 2592000:\r\n\t\t\ttips = parseInt(timer / 86400) + '天前';\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t// 如果format为false,则无论什么时间戳,都显示xx之前\r\n\t\t\tif(format === false) {\r\n\t\t\t\tif(timer >= 2592000 && timer < 365 * 86400) {\r\n\t\t\t\t\ttips = parseInt(timer / (86400 * 30)) + '个月前';\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttips = parseInt(timer / (86400 * 365)) + '年前';\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttips = timeFormat(timestamp, format);\r\n\t\t\t}\r\n\t}\r\n\treturn tips;\r\n}\r\n\r\n/**\r\n * IM时间友好\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param String timestamp 时间戳\r\n * @param String | Boolean format 如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;\r\n * 如果为布尔值false,无论什么时间,都返回多久以前的格式\r\n */\r\nconst timeToChat = (timestamp = null) => {\r\n\tif (timestamp == null) timestamp = Number(new Date());\r\n\ttimestamp = parseInt(timestamp);\r\n\t// 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)\r\n\tif (timestamp.toString().length == 10) timestamp *= 1000;\r\n\tvar timer = (new Date()).getTime() - timestamp;\r\n\ttimer = parseInt(timer / 1000);\r\n\t// 如果小于5分钟,则返回\"刚刚\",其他以此类推\r\n\tlet tips = '';\r\n\tswitch (true) {\r\n\t\tcase timer < 86400:\r\n\t\t\ttips = timeFormat(timestamp, 'hh:MM');\r\n\t\t\tbreak;\r\n\t\tcase timer >= 86400 && timer < 86400 * 7:\r\n\t\t\tvar now = new Date(timestamp);\r\n\t\t\tvar week = ['日', '一', '二', '三', '四', '五', '六'];\r\n\t\t\tswitch (new Date().getDate() - now.getDate()) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\ttips = timeFormat(timestamp, '昨天 hh:MM');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\ttips = timeFormat(timestamp, '前天 hh:MM');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\ttips = '星期' + week[now.getDay()] + timeFormat(timestamp, 'hh:MM');\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase timer >= 86400 * 7:\r\n\t\t\ttips = timeFormat(timestamp, 'mm-dd hh:MM');\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\ttips = timeFormat(timestamp, 'yyyy-mm-dd hh:MM');\r\n\t}\r\n\treturn tips;\r\n}\r\n\r\n\r\n/**\r\n * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85\r\n * 全局唯一标识符(uuid,Globally Unique Identifier),也称作 uuid(Universally Unique IDentifier) \r\n * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题\r\n * 最可能的情况是左滑删除item或者对某条信息流\"不喜欢\"并去掉它的时候,会导致组件内的数据可能出现错乱\r\n * v-for的时候,推荐使用后端返回的id而不是循环的index\r\n * @param {Number} len uuid的长度\r\n * @param {Boolean} firstU 将返回的首字母置为\"u\"\r\n * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制\r\n */\r\nconst guid = (len = 32, firstU = true, radix = null) => {\r\n\tlet chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');\r\n\tlet uuid = [];\r\n\tradix = radix || chars.length;\r\n\r\n\tif (len) {\r\n\t\t// 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位\r\n\t\tfor (let i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix];\r\n\t} else {\r\n\t\tlet r;\r\n\t\t// rfc4122标准要求返回的uuid中,某些位为固定的字符\r\n\t\tuuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';\r\n\t\tuuid[14] = '4';\r\n\r\n\t\tfor (let i = 0; i < 36; i++) {\r\n\t\t\tif (!uuid[i]) {\r\n\t\t\t\tr = 0 | Math.random() * 16;\r\n\t\t\t\tuuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r];\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t// 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class\r\n\tif (firstU) {\r\n\t\tuuid.shift();\r\n\t\treturn 'u' + uuid.join('');\r\n\t} else {\r\n\t\treturn uuid.join('');\r\n\t}\r\n}\r\n\r\n/**\r\n * 图像处理\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * @param {Object} url 图像地址\r\n * @param {Object} h 高度\r\n * @param {Object} w 宽度 \r\n * @param {Object} modenum 1.自适应 2.固定宽高短边缩放 3.固定宽高居中裁剪 4.强制宽高\r\n * @param {Object} type 使用类型 \r\n * @param {Object} format 图形格式 \r\n * @param {Object} resize resize \r\n * @param {Object} multiple 放大倍数 \r\n * \r\n * $wanlshop.oss(url, 120, 0, 2, 'transparent', 'png')\r\n */\r\nconst oss = (url, w = 120, h = 120, modenum = 2, type = '', format = 'jpg', resize = 'resize', multiple = 3) => {\r\n\tlet image = '';\r\n\tlet mode = [\"m_lfit\",\"m_mfit\",\"m_fill\",\"m_fixed\"];\r\n\t// 图像,自适应方向:1,渐进显示:1,转换格式:jpg,图片质量:q_90,图片锐化:50,浓缩图\r\n\tlet rule = [\"?x-oss-process=image\", \"auto-orient,1\", \"interlace,1\", \"format,jpg\", \"quality,q_90\", \"sharpen,50\", \"resize,m_fixed,w_120,h_120\"];\r\n\t// 转换格式\r\n\tif (format == 'png') {\r\n\t\trule[3] = [\"format\", \"png\"].join(\",\");\r\n\t}\r\n\t// 判断是否有高度\r\n\tif (w == 0) {\r\n\t\trule[6] = [resize, mode[modenum], `h_${h * multiple}`].join(\",\");\r\n\t}else if(h == 0){\r\n\t\trule[6] = [resize, mode[modenum], `w_${w * multiple}`].join(\",\");\r\n\t}else{\r\n\t\trule[6] = [resize, mode[modenum], `w_${w * multiple}`, `h_${h * multiple}`].join(\",\");\r\n\t}\r\n\t//当地址不存在\r\n\tif (url) {\r\n\t\tif ((/^data:image\\//.test(url))) {\r\n\t\t\timage = url;\r\n\t\t}else if((/^(http|https):\\/\\/.+/.test(url))){\r\n\t\t\trule.pop();\r\n\t\t\timage = url + rule.join(\"/\");\r\n\t\t}else{\r\n\t\t\timage = wanlshop_config.cdnurl + url + rule.join(\"/\");\r\n\t\t}\r\n\t}else{\r\n\t\tif (type == 'transparent') {\r\n\t\t\t\r\n\t\t}else if(type == 'avatar'){\r\n\t\t\timage = appstc('/common/mine_def_touxiang_3x.png');\r\n\t\t}else{\r\n\t\t\timage = appstc('/common/img_default3x.png');\r\n\t\t}\r\n\t}\r\n\treturn image;\r\n}\r\n\r\n/**\r\n * 页面跳转\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} url 需要跳转的应用内非 tabBar 的页面的路径\r\n * @param {Object} animationType 窗口显示的动画效果\r\n * @param {Object} animationDuration 窗口动画持续时间,单位为 ms\r\n */\r\nconst to = (url, animationType = 'pop-in', animationDuration = 300) => {\r\n\tuni.navigateTo({\r\n\t\turl,\r\n\t\tanimationType,\r\n\t\tanimationDuration,\r\n\t\tsuccess: function (res) {\r\n\t\t\twanlshop_config.debug?console.log(res):'';\r\n\t\t},\r\n\t\tfail: function (e) {\r\n\t\t\twanlshop_config.debug?console.log(e):'';\r\n\t\t}\r\n\t})\r\n}\r\n\r\n/**\r\n * 页面返回\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} num 返回页面数量\r\n */\r\nconst back = (num = 1)=> {\r\n\tuni.navigateBack({\r\n\t\tdelta: num\r\n\t});\r\n}\r\n\r\n/**\r\n * 页面认证\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} url 地址\r\n */\r\nconst auth = (url)=> {\r\n\tto(store.state.user.isLogin ? url : '/pages/user/auth/auth');\r\n}\r\n\r\n/**\r\n * 打开任意链接\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {Object} url 页面地址\r\n */\r\nconst on = (url)=> {\r\n\turl = decodeURIComponent(url);\r\n\t// 关闭所有页面,跳转链接\r\n\tif (\r\n\t\turl == '/pages/index' || \r\n\t\turl == '/pages/category' || \r\n\t\turl == '/pages/find' || \r\n\t\turl == '/pages/cart' || \r\n\t\turl == '/pages/user'\r\n\t) {\r\n\t\tuni.switchTab({\r\n\t\t url: url\r\n\t\t});\r\n\t} else {\r\n\t\tto(url);\r\n\t}\r\n}\r\n\r\n/**\r\n * 发送消息\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {JSON} data 页面地址\r\n */\r\nconst send = (data) => {\r\n\t//将发送保存本地\r\n\tapi.post({\r\n\t\turl: '/wanlshop/chat/send',\r\n\t\tdata: data,\r\n\t\tsuccess: res => {\r\n\t\t\twanlshop_function.setChat(data, 'send');\r\n\t\t}\r\n\t});\r\n}\r\n\r\n/**\r\n * 拨打电话\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {JSON} number 电话号码\r\n */\r\nconst phone = (number) => {\r\n\tuni.makePhoneCall({\r\n\t phoneNumber: number //仅为示例\r\n\t});\r\n}\r\n\r\n/**\r\n * 格式化kb\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {JSON} limit kb\r\n */\r\nconst conver = (limit, unit = true) => {\r\n return (limit / (1024 * 1024)).toFixed(1) + (unit ? 'MB' : '');\r\n}\r\n\r\n/**\r\n * 遮罩\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n */\r\nconst maks = ()=> {\r\n\r\n\r\n\r\n\r\n\r\n\r\n\treturn '';\r\n\r\n}\r\n\r\n/**\r\n * 获取配置\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {JSON} name 配置名称\r\n */\r\nconst config = (name) => {\r\n\treturn wanlshop_config[name];\r\n}\r\n\r\n\r\n/**\r\n * 复制方法\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @param {JSON} content 复制内容\r\n */\r\nconst copy = (content, display = true) => {\r\n\t// 复制内容,必须字符串,数字需要转换为字符串\r\n\tcontent = typeof content === 'string' ? content : content.toString();\r\n\r\n\tuni.setClipboardData({\r\n\t\tdata: content,\r\n\t\tsuccess: function() {\r\n\t\t\tdisplay ? msg(`复制成功 ${content}`) : msg('复制成功');\r\n\t\t},\r\n\t\tfail:function(){\r\n\t\t\tmsg('复制失败');\r\n\t\t}\r\n\t});\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n}\r\n\r\n/**\r\n * WanlShop 全局方法\r\n * @author 深圳前海万联科技有限公司 <www.wanlshop.com>\r\n * \r\n * @method $msg 全局提示\r\n * @method $prePage 页面栈\r\n * @method $wanlsys 系统配置\r\n * @method $title 动态修改标题\r\n * @method $appstc 服务器图片地址\r\n * @method $toFormat 数字格式化\r\n * @method $timeToDate 社交时间友好\r\n * @method $timeToChat IM时间友好\r\n * @method $timeFormat 时间格式化\r\n * @method $guid 生成guid\r\n * @method $oss OSS图片处理\r\n * @method $to 打开链接\r\n * @method $on 打开任意链接\r\n * @method $auth 认证页面\r\n * @method $back 返回\r\n * @method $send 发送消息\r\n * @method $phone 拨打电话\r\n * @method $con 获取配置\r\n * \r\n */\r\nVue.prototype.$wanlshop = {\r\n\tmsg,\r\n\tprePage,\r\n\twanlsys,\r\n\ttitle,\r\n\tappstc,\r\n\ttoFormat,\r\n\ttimeToDate,\r\n\ttimeToChat,\r\n\ttimeFormat,\r\n\tconver,\r\n\tguid,\r\n\toss,\r\n\tto,\r\n\ton,\r\n\tauth,\r\n\tback,\r\n\tmaks,\r\n\tsend,\r\n\tphone,\r\n\tconfig,\r\n\tbcadd,\r\n\tbcsub,\r\n\tbcmul,\r\n\tbcdiv,\r\n\tcopy\r\n};\r\n\r\n// 全局商品链接\r\nVue.prototype.onGoods = function(id) {to(`/pages/product/goods?id=${id}`)}\r\n\r\n// 全局订单详情\r\nVue.prototype.orderDetails = function(order_id) {to(`/pages/user/order/details?id=${order_id}`)}\r\n\r\n\r\n// 全局店铺链接\r\nVue.prototype.onShop = function(id) {\r\n\tto(`/pages/shop/index?id=${id}`)\r\n}\r\n\r\n// 全局店铺链接\r\nVue.prototype.onShopGoods = function(id) {\r\n\tto(`/pages/shop/product/list?shop_id=${id}`)\r\n}\r\n\r\n// 全局物流动态\r\nVue.prototype.onLogistics = function(order_id) {to(`/pages/user/order/logistics?id=${order_id}`)}\r\n\r\n// 全局联系方式 1.0.2升级\r\nVue.prototype.toChat = function(shop_id, goods = null) {\r\n\tgoods ? to(`/pages/notice/chat?shop_id=${shop_id}&goods=${JSON.stringify(goods)}`) : to(`/pages/notice/chat?shop_id=${shop_id}`);\r\n}\r\n\r\n// 打开详情页\r\nVue.prototype.onDetails = function(id, title) {to(`/pages/article/details?id=${id}&title=${title}`)}\r\n\r\n// 打开广告\r\nVue.prototype.onAdvert = function(data) {data.url && !(/^(http|https):\\/\\/.+/.test(data.url)) ? on(data.url) : to(`/pages/article/advert?id=${data.id}`);}\r\n\r\n// 打开直播\r\nVue.prototype.onLive = function(id) {\r\n\tauth(`/pages/apps/find/details/live?id=${id}`);\r\n}\r\n\r\n// 打开发现\r\nVue.prototype.onFind = function(data, comments = null) {\r\n\tif (data.type == 'live') {\r\n\t\tthis.onLive(data.live_id);\r\n\t}else if(data.type == 'video'){\r\n\t\tto(`/pages/apps/find/details/video?id=${data.id}`);\r\n\t}else{\r\n\t\tif(comments){\r\n\t\t\tto(`/pages/apps/find/details/details?id=${data.id}&afferent=comments`);\r\n\t\t}else{\r\n\t\t\tto(`/pages/apps/find/details/details?id=${data.id}`);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\tstore,\r\n\t...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<!-- * WanlShop - App全局模板配置\r\n * @author 深圳前海万联科技有限公司 <wanlshop@i36k.com> \r\n * @link http://www.wanlshop.com\r\n * \r\n * @本程序受法律保护,著作权©软著登记号2020SR0255711 < 未经版权所有权人书面许可,不能用于商业用途!>\r\n * \r\n * @获取许可\r\n * 后台下载:https://www.fastadmin.net/store/wanlshop.html\r\n * 帮助文档:https://doc.fastadmin.net/wanlshop\r\n * \r\n * @stress 本程序仅用作FastAdmin付费插件(WanlShop B2B2C商城)API使用,未经版权所有权人书面许可,不能自行用于商业用途\r\n * @creationtime 2019年9月10日12:52:20\r\n * @lasttime 2020年6月9日09:26:07\r\n * @version 1.0.0\r\n -->\r\n<script>\r\n\timport Vue from 'vue';\r\n\texport default {\r\n\t\tonLaunch() {\r\n\t\t\t// 检测客户端更新\r\n\t\t\tthis.$store.dispatch('update/update');\r\n\t\t\t// 仅首次打开一次性加载数据\r\n\t\t\tthis.$store.dispatch('common/init');\r\n\t\t\t// 同步购物车 本地 & 网络\r\n\t\t\tthis.$store.dispatch('cart/get');\r\n\t\t\t// 同步 动态数据\r\n\t\t\tthis.$store.dispatch('statistics/get');\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t// 启动或重启即时通讯\r\n\t\t\tthis.$store.dispatch('chat/start');\r\n\t\t},\r\n\t\tonHide() {\r\n\t\t\t// 断开即时通讯\r\n\t\t\tthis.$store.dispatch('chat/close');\r\n\t\t}\r\n\t};\r\n</script>\r\n\r\n<style>\r\n\t/* #ifndef APP-NVUE */\r\n\t@import 'static/style/colorui.css';\r\n\t@import 'static/style/wanlshop.css';\r\n\t@import 'static/style/iconfont.css';\r\n\t/* #endif */\r\n</style>\r\n","import mod from \"-!../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1699839794514\n var cssReload = require(\"C:/Users/liudan/Desktop/k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |