1 line
14 KiB
Plaintext
1 line
14 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"],"mappings":";;;;;;;;;iDAAA,wCAA8E;AAC9E;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA;;;;;AAKA;;;;;AAKA,wF,wnCA3CmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGnBC,aAAIC,SAAJ,CAAcC,MAAd,GAAuBC,cAAvB,C,uSAEoD;AACpDH,aAAII,SAAJ,CAAc,YAAd,EAA2BC,SAA3B,E,CAAqC;6RAEW;AAChDL,aAAII,SAAJ,CAAc,UAAd,EAAyBE,OAAzB,E,CAAiC;0RAEc;AAC/CN,aAAII,SAAJ,CAAc,UAAd,EAAyBG,OAAzB,E,CAAiC;yTAEwB;AACzDP,aAAII,SAAJ,CAAc,SAAd,EAAwBI,MAAxB,E,CAA+B;wRAEe;AAC9CR,aAAII,SAAJ,CAAc,SAAd,EAAwBK,MAAxB,E,CAA+B;2QAEU;AACzCT,aAAII,SAAJ,CAAc,OAAd,EAAsBM,IAAtB,E,CAA2B;iTAE4B;AACvDV,aAAII,SAAJ,CAAc,cAAd,EAA6BO,WAA7B,E,CAAyC;gUAEoB;AAC7DX,aAAII,SAAJ,CAAc,iBAAd,EAAgCQ,cAAhC,E,CAA+C;0XAEoC;AACnFZ,aAAII,SAAJ,CAAc,0BAAd,EAAyCS,sBAAzC,E,CAAgE;AAEhE;AAEAb,aAA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A,iBAJA,MAIA;AACA;AACA;AACA,kCADA;AAEA,2DAFA;AAGA,qCAHA,EAGA;AACA,uCAJA,EAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAXA;;AAaA;AACA,eAxBA;;AA0BA;AACA,SA9BA;AA+BA,OAjCA,MAiCA;AACA;AACA,qBADA;AAEA,oDAFA;;AAIA;AACA,KA3CA;AA4CA;;;AAGA;AACA;AACA,uBAFA,CAEA;AACA;AACA,yBADA,CACA;AACA;AACA;AACA,OAJA;AAKA;AACA;AACA,4BADA;AAEA,iDAFA;;AAIA,OALA;AAMA,KA7DA,EA5BA,E;;;;;;;;;;;;;;;;;ACJA;AAAA;AAAA;AAAA;AAAy7B,CAAgB,w6BAAG,EAAC,C;;;;;;;;;;ACA78B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';wx.__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\tif(uni.getStorageSync('token')!='') {\r\n\t\t\t\ttoolAll.tools.networkStatus();//检查当前网络状态\r\n\t\t\t\ttoolAll.tools.isLogin();//刷新token\r\n\t\t\t\ttoolAll.tools.refreshToken();\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\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},\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 // 1649640403287\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":""} |