1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/chenq/chen/hengmei/hengmei/App.vue?ccb1","uni-app:///App.vue","webpack:///D:/chenq/chen/hengmei/hengmei/App.vue?2b66","webpack:///D:/chenq/chen/hengmei/hengmei/App.vue?6475"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","prototype","$store","store","component","statusNav","footTab","backTop","catePu","listPu","pupo","nothingPage","publicCustomer","authUserInfoMobileInfo","mixin","share","$hostApi","$toolAll","tools","$requst","requst","$http","console","log","$log","config","productionTip","App","mpType","app","$mount","globalData","outside","hostApi","onLaunch","toolAll","onShow","uni","onHide","methods","autoUpdate","updateManager","title","content","success","self","showCancel","confirmText","downLoadAndUpdate"],"mappings":";;;;;;;;;;;;;;AAAA;AAE2D;AAC3D;AACA;AA+BA;AAKA;AAKA;AAAuC;AAAA;AA5CvC;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,YAAG,CAACC,SAAS,CAACC,MAAM,GAAGC,cAAK;AAAA;EAAA;IAAA;EAAA;AAAA;AAEwB;AACpDH,YAAG,CAACI,SAAS,CAAC,YAAY,EAACC,SAAS,CAAC;AAAA;EAAA;IAAA;EAAA;AAAA;AAEW;AAChDL,YAAG,CAACI,SAAS,CAAC,UAAU,EAACE,OAAO,CAAC;AAAA;EAAA;IAAA;EAAA;AAAA;AAEc;AAC/CN,YAAG,CAACI,SAAS,CAAC,UAAU,EAACG,OAAO,CAAC;AAAA;EAAA;IAAA;EAAA;AAAA;AAEwB;AACzDP,YAAG,CAACI,SAAS,CAAC,SAAS,EAACI,MAAM,CAAC;AAAA;EAAA;IAAA;EAAA;AAAA;AAEe;AAC9CR,YAAG,CAACI,SAAS,CAAC,SAAS,EAACK,MAAM,CAAC;AAAA;EAAA;IAAA;EAAA;AAAA;AAEU;AACzCT,YAAG,CAACI,SAAS,CAAC,OAAO,EAACM,IAAI,CAAC;AAA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A;;EACAC;IACA;IACA;IACA;IACA;IACAC;IACAA;EACA;EACAC;IACA;MACA;QACAC;MACA;IACA;IACA;MACAF;MACAA;IACA;;IACAA;EACA;;EACAG;IACAH;IACA;MACAA;IACA;;IACAE;IACAA;IACAA;IACAA;IACAA;EACA;EACAE;IACAC;MACA;MACA;MACA;QACA;QACAC;UAAA;UACA;YACA;YACA5C;cACA6C;cACAC;cACAC;gBACA;kBACA;kBACAC;kBACAR;gBACA;kBACA;kBACAxC;oBACA6C;oBACAC;oBACAG;oBAAA;oBACAC;oBAAA;oBACAH;sBACA;wBACA;wBACAC;wBACAvB;sBACA;oBACA;kBACA;gBACA;cACA;YACA;UACA;QACA;MACA;QAAA;QACAzB;UACA6C;UACAC;QACA;MACA;IACA;IACA;AACA;AACA;IACAK;MACA;MACAnD;MACA4C;QACA5C;QACA4C;QACAJ;MACA;MACAI;QAAA;QACA5C;UACA6C;UACAC;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACvGA;AAAA;AAAA;AAAA;AAAy7B,CAAgB,w6BAAG,EAAC,C;;;;;;;;;;;ACA78B;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__;import Vue from 'vue'\r\nimport App from './App'\r\nimport store from './store'\r\nVue.prototype.$store = store\r\n\r\nimport statusNav from './components/status-nav.vue';//引入状态栏组件\r\nVue.component('status-nav',statusNav)//全局注册状态栏组件\r\n\r\nimport footTab from './components/foot-tab.vue';//引入底部tab组件\r\nVue.component('foot-tab',footTab)//全局注册底部tab组件\r\n\r\nimport backTop from './components/backTop.vue';//引入返回顶部组件\r\nVue.component('back-top',backTop)//全局注册返回顶部组件\r\n\r\nimport catePu from './components/cate-items/cate-pu.vue';//引入分类组件\r\nVue.component('cate-pu',catePu)//全局注册分类组件\r\n\r\nimport listPu from './components/list-pu.vue';//引入视频、图片列表组件\r\nVue.component('list-pu',listPu)//全局注册视频、图片列表组件\r\n\r\nimport pupo from './components/pupo.vue';//引入弹框组件\r\nVue.component('pu-po',pupo)//全局注册弹框组件\r\n\r\nimport nothingPage from './components/nothing-page.vue'//引入无内容组件\r\nVue.component('nothing-page',nothingPage)//全局注册无内容组件\r\n\r\nimport publicCustomer from './components/public-customer.vue'//引入客服组件\r\nVue.component('public-customer',publicCustomer)//全局注册客服组件\r\n\r\nimport authUserInfoMobileInfo from './components/auth/auth-userInfo-mobileInfo.vue'//引入授权用户信息,授权手机号组件\r\nVue.component('auth-userInfo-mobileInfo',authUserInfoMobileInfo)//全局注册授权用户信息,授权手机号组件\r\n\r\n// 全局注册分享事件\r\nimport share from './jsFile/share.js'\r\nVue.mixin(share)\r\n\r\nVue.prototype.$hostApi = 'https://oss.hmzfyy.cn';\r\n// 常用工具\r\nimport tools from '@/jsFile/tools.js'\r\nVue.prototype.$toolAll = tools;\r\n\r\n\r\n// 响应数据\r\nimport requst from '@/jsFile/requst.js'\r\nVue.prototype.$requst = requst;\r\n// 域名,专治后台仔没有返回http/https的图片\r\nVue.prototype.$http = 'https://oss.hmzfyy.cn';\r\n\r\nconst {log} = console;\r\nVue.prototype.$log = log\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\nVue.config.productionTip = false\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n\tstore,\r\n ...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 \"!../../../../HbuilderX/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 \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/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 \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\timport toolAll from '@/jsFile/tools.js';\r\n\timport requst from '@/jsFile/requst.js';\r\n\timport { themeEv } from '@/jsFile/publicAPI.js';\r\n\texport default {\r\n\t\tglobalData:{\r\n\t\t\toutside:true,//是否外界进来,默认是\r\n\t\t\thostApi:''//域名\r\n\t\t},\r\n\t\tonLaunch: function() {\r\n\t\t\t// 获取主题色事件\r\n\t\t\tthemeEv();\r\n\t\t\tthis.autoUpdate();\r\n\t\t\t// 检测当前运行环境并缓存域名 \r\n\t\t\ttoolAll.tools.currentContext();\r\n\t\t\ttoolAll.tools.isVedio();\r\n\t\t}, \r\n\t\tonShow: function() { \r\n\t\t\tthis.$requst.get('index/base-config').then(res=>{\r\n\t\t\t\tif(res.code==0){\r\n\t\t\t\t\tuni.setStorageSync('authorization',res.data.authorization)\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tif(uni.getStorageSync('token')) {\r\n\t\t\t\ttoolAll.tools.networkStatus();//检查当前网络状态\r\n\t\t\t\ttoolAll.tools.refreshToken();//每十分钟刷新token\r\n\t\t\t} \r\n\t\t\ttoolAll.tools.checkQuan(); // 查询首页活动券\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\ttoolAll.tools.closeTimer();//清空埋点倒计时\r\n\t\t\tif(uni.getStorageSync('token')) {\r\n\t\t\t\ttoolAll.tools.refreshToken();//刷新token\r\n\t\t\t}\r\n\t\t\tuni.removeStorageSync('isQuan');\r\n\t\t\tuni.removeStorageSync('quanImg'); // 清空优惠券图片缓存\r\n\t\t\tuni.removeStorageSync('quanId'); // 清空优惠券id缓存\r\n\t\t\tuni.removeStorageSync('isVedio'); // 清空是否是视频缓存\r\n\t\t\tuni.removeStorageSync('urlparams');\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tautoUpdate: function() { \r\n\t\t\t\tvar self = this;\r\n\t\t\t // 获取小程序更新机制兼容\r\n\t\t\t if (wx.canIUse('getUpdateManager')) {\r\n\t\t\t\t\tconst updateManager = wx.getUpdateManager() //1. 检查小程序是否有新版本发布\r\n\t\t\t\t\tupdateManager.onCheckForUpdate(function(res) { // 请求完新版本信息的回调\r\n\t\t\t\t\t\tif (res.hasUpdate) {\r\n\t\t\t\t\t\t\t//检测到新版本,需要更新,给出提示 \r\n\t\t\t\t\t\t\twx.showModal({\r\n\t\t\t\t\t\t\t\ttitle: '更新提示',\r\n\t\t\t\t\t\t\t\tcontent: '检测到新版本,是否下载新版本并重启小程序?',\r\n\t\t\t\t\t\t\t\tsuccess: function(res) { \r\n\t\t\t\t\t\t\t\t\tif (res.confirm) { \r\n\t\t\t\t\t\t\t\t\t\t//2. 用户确定下载更新小程序,小程序下载及更新静默进行 \r\n\t\t\t\t\t\t\t\t\t\tself.downLoadAndUpdate(updateManager)\r\n\t\t\t\t\t\t\t\t\t\tuni.clearStorage();\r\n\t\t\t\t\t\t\t\t\t} else if (res.cancel) { \r\n\t\t\t\t\t\t\t\t\t\t\t//用户点击取消按钮的处理,如果需要强制更新,则给出二次弹窗,如果不需要,则这里的代码都可以删掉了 \r\n\t\t\t\t\t\t\t\t\t\twx.showModal({\r\n\t\t\t\t\t\t\t\t\t\t\ttitle: '温馨提示~',\r\n\t\t\t\t\t\t\t\t\t\t\tcontent: '本次版本更新涉及到新的功能添加,旧版本无法正常访问的哦~',\r\n\t\t\t\t\t\t\t\t\t\t\tshowCancel:false,//隐藏取消按钮\r\n\t\t\t\t\t\t\t\t\t\t\tconfirmText:\"确定更新\",//只保留确定更新按钮\r\n\t\t\t\t\t\t\t\t\t\t\tsuccess: function(res) { \r\n\t\t\t\t\t\t\t\t\t\t\t\tif (res.confirm) { \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//下载新版本,并重新应用 \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tself.downLoadAndUpdate(updateManager)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t } else { // 如果希望用户在最新版本的客户端上体验您的小程序,可以这样子提示 \r\n\t\t\t\t\twx.showModal({\r\n\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\tcontent: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试~'\r\n\t\t\t\t\t})\r\n\t\t\t }\r\n\t\t\t}, \r\n\t\t\t/**\r\n\t\t\t* 下载小程序新版本并重启应用 \r\n\t\t\t* */\r\n\t\t\tdownLoadAndUpdate: function (updateManager){ \r\n\t\t\t\tvar self = this;\r\n\t\t\t wx.showLoading(); //静默下载更新小程序新版本\r\n\t\t\t updateManager.onUpdateReady(function () {\r\n\t\t\t\t\twx.hideLoading() //新的版本已经下载好,调用 applyUpdate 应用新版本并重启 \r\n\t\t\t\t\tupdateManager.applyUpdate()\r\n\t\t\t\t\tuni.clearStorage();\r\n\t\t\t })\r\n\t\t\t updateManager.onUpdateFailed(function () { // 新的版本下载失败 \r\n\t\t\t\t\twx.showModal({\r\n\t\t\t\t\t\ttitle: '已经有新版本了哟~',\r\n\t\t\t\t\t\tcontent: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~',\r\n\t\t\t\t\t})\r\n\t\t\t })\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n</script>\r\n\r\n<style>\r\n\t/*每个页面公共css */\r\n\t@import url(\"./commons/hengmei.css\");\r\n\t@import url(\"./commons/animate.min.css\");\r\n\tpage {background-color: rgba(244, 244, 244, 1);}\r\n</style>\r\n","import mod from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/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 \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/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 // 1672826681571\n var cssReload = require(\"D:/HbuilderX/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":""} |