1 |
- {"version":3,"sources":["uni-app:///main.js",null,"webpack:///G:/item/appBase/App.vue?a581","uni-app:///App.vue","webpack:///G:/item/appBase/App.vue?db37","webpack:///G:/item/appBase/App.vue?885f"],"names":["msg","title","duration","mask","icon","Boolean","uni","showToast","prePage","pages","getCurrentPages","length","$vm","Vue","config","productionTip","prototype","$fire","$store","store","$api","App","mpType","app","$mount"],"mappings":";;;;;;;;;sDAAA,wCAAmB;AACnB;AACA,uE;AACA;;;;;;AAMA,IAAMA,GAAG,GAAG,SAANA,GAAM,CAACC,KAAD,EAAiD,KAAzCC,QAAyC,uEAAhC,IAAgC,KAA1BC,IAA0B,uEAArB,KAAqB,KAAdC,IAAc,uEAAT,MAAS;AAC5D;AACA,MAAGC,OAAO,CAACJ,KAAD,CAAP,KAAmB,KAAtB,EAA4B;AAC3B;AACA;AACDK,KAAG,CAACC,SAAJ,CAAc;AACbN,SAAK,EAALA,KADa;AAEbC,YAAQ,EAARA,QAFa;AAGbC,QAAI,EAAJA,IAHa;AAIbC,QAAI,EAAJA,IAJa,EAAd;;AAMA,CAXD;;AAaA,IAAMI,OAAO,GAAG,mBAAI;AACnB;AACA,MAAIC,KAAK,GAAGC,eAAe,EAA3B;AACA,MAAIF,OAAO,GAAGC,KAAK,CAACA,KAAK,CAACE,MAAN,GAAe,CAAhB,CAAnB;;;;AAIA,SAAOH,OAAO,CAACI,GAAf;AACA,CARD;;;AAWAC,aAAIC,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AACAF,aAAIG,SAAJ,CAAcC,KAAd,GAAsB,IAAIJ,YAAJ,EAAtB;AACAA,aAAIG,SAAJ,CAAcE,MAAd,GAAuBC,cAAvB;AACAN,aAAIG,SAAJ,CAAcI,IAAd,GAAqB,EAACpB,GAAG,EAAHA,GAAD,EAAMQ,OAAO,EAAPA,OAAN,EAArB;;AAEAa,aAAIC,MAAJ,GAAa,KAAb;;AAEA,IAAMC,GAAG,GAAG,IAAIV,YAAJ;AACLQ,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AAC2K;AAC3K,gBAAgB,oLAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAA2nB,CAAgB,gpBAAG,EAAC,C;;;;;;;;;;;;;;;ACI/oB,+C;;;;;;;AAOA;AACA,MADA,kBACA;AACA;AACA;AACA,iBAFA;;AAIA,GANA;AAOA;AACA,uEADA,CAPA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBADA;AAEA;AACA;AACA;AACA,SALA;;AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,GArDA;AAsDA;AACA;AACA;AACA,GAzDA;AA0DA;AACA;AACA,GA5DA,E;;;;;;;;;;;;ACXA;AAAA;AAAA;AAAA;AAAqpC,CAAgB,snCAAG,EAAC,C;;;;;;;;;;ACAzqC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import Vue from 'vue'\r\nimport store from './store'\r\nimport App from './App'\r\n/**\r\n * 所有测试用数据均存放于根目录json.js\r\n * \r\n * css部分使用了App.vue下的全局样式和iconfont图标,有需要图标库的可以留言。\r\n * 示例使用了uni.scss下的变量, 除变量外已尽量移除特有语法,可直接替换为其他预处理器使用\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({\r\n\t\ttitle,\r\n\t\tduration,\r\n\t\tmask,\r\n\t\ticon\r\n\t});\r\n}\r\n\r\nconst prePage = ()=>{\r\n\t// 获取当前页面\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\nVue.config.productionTip = false\r\nVue.prototype.$fire = new Vue();\r\nVue.prototype.$store = store;\r\nVue.prototype.$api = {msg, prePage};\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\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=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\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 \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\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 \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n/**\r\n * vuex管理登陆状态,具体可以参考官方登陆模板示例\r\n */\r\nimport { mapMutations } from 'vuex';\r\n// #ifdef H5\r\nimport { weixindata, setRouter } from './utils/wxAuthorized';\r\n// #endif\r\n// #ifdef APP-PLUS\r\nimport { getUpApp } from './utils/upApp.js';\r\n// #endif\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\t/* 保存微信信息 */\r\n\t\t\tappData: {}\r\n\t\t};\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations('user', ['setUserInfo', 'login', 'hasLogin'])\r\n\t},\r\n\tonLaunch: function(urlObj) {\r\n\t\tlet obj = this;\r\n\t\t// 加载缓存中的用户信息\r\n\t\tlet userInfo = uni.getStorageSync('userInfo') || '';\r\n\t\t// 判断是否拥有用户信息\r\n\t\tif (userInfo.uid) {\r\n\t\t\t//更新登陆状态\r\n\t\t\tuni.getStorage({\r\n\t\t\t\tkey: 'userInfo',\r\n\t\t\t\tsuccess: res => {\r\n\t\t\t\t\tobj.setUserInfo(res.data);\r\n\t\t\t\t\tobj.login(res.data);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\t// #ifdef H5\r\n\t\t// 保存路由对象\r\n\t\tsetRouter(this.$router);\r\n\t\t//判断是否已经缓存浏览器\r\n\t\tlet bool = uni.getStorageSync('weichatBrowser') || '';\r\n\t\tif (bool === '') {\r\n\t\t\t//判断是否为微信浏览\r\n\t\t\tbool = navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger';\r\n\t\t\t// 保存当前是否为微信内核浏览器\r\n\t\t\tuni.setStorageSync('weichatBrowser', bool);\r\n\t\t}\r\n\t\tif (bool) {\r\n\t\t\t// 加载微信信息\r\n\t\t\tweixindata();\r\n\t\t}\r\n\t\t// #endif\r\n\t\t// #ifdef APP-PLUS\r\n\t\t// 判断是否升级\r\n\t\tgetUpApp();\r\n\t\t// 获取当前运行系统\r\n\t\tlet system = uni.getStorageSync('platform') || '';\r\n\t\tif (!system) {\r\n\t\t\tuni.setStorage({\r\n\t\t\t\tkey: 'platform',\r\n\t\t\t\tdata: uni.getSystemInfoSync().platform\r\n\t\t\t});\r\n\t\t}\r\n\t\t// #endif\r\n\t},\r\n\tonShow: function() {\r\n\t\t// 加载拦截\r\n\t\t// console.log('App Show');\r\n\t},\r\n\tonHide: function() {\r\n\t\t// console.log('App Hide');\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n/*全局公共样式和字体图标*/\r\n@import '/static/css/cmy.css';\r\nview,\r\nscroll-view,\r\nswiper,\r\nswiper-item,\r\ncover-view,\r\ncover-image,\r\nicon,\r\ntext,\r\nrich-text,\r\nprogress,\r\nbutton,\r\ncheckbox,\r\nform,\r\ninput,\r\nlabel,\r\nradio,\r\nslider,\r\nswitch,\r\ntextarea,\r\nnavigator,\r\naudio,\r\ncamera,\r\nimage,\r\nvideo {\r\n\tbox-sizing: border-box;\r\n}\r\n/* 骨架屏替代方案 */\r\n.Skeleton {\r\n\tbackground: #f3f3f3;\r\n\tpadding: 20rpx 0;\r\n\tborder-radius: 8rpx;\r\n}\r\n\r\n/* 图片载入替代方案 */\r\n.image-wrapper {\r\n\tfont-size: 0;\r\n\tbackground: #f3f3f3;\r\n\tborder-radius: 4px;\r\n\timage {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\ttransition: 0.6s;\r\n\t\topacity: 0;\r\n\t\t&.loaded {\r\n\t\t\topacity: 1;\r\n\t\t}\r\n\t}\r\n}\r\n// 设置富文本中图片最大宽度\r\nuni-rich-text img {\r\n\tmax-width: 100% !important;\r\n}\r\n/*边框*/\r\n.b-b:after,\r\n.b-t:after {\r\n\tposition: absolute;\r\n\tz-index: 3;\r\n\tleft: 0;\r\n\tright: 0;\r\n\theight: 0;\r\n\tcontent: '';\r\n\ttransform: scaleY(0.5);\r\n\tborder-bottom: 1px solid $border-color-base;\r\n}\r\n\r\n.b-b:after {\r\n\tbottom: 0;\r\n}\r\n\r\n.b-t:after {\r\n\ttop: 0;\r\n}\r\n\r\n/* button样式改写 */\r\nuni-button,\r\nbutton {\r\n\theight: 80rpx;\r\n\tline-height: 80rpx;\r\n\tfont-size: $font-lg + 2rpx;\r\n\tfont-weight: normal;\r\n\r\n\t&.no-border:before,\r\n\t&.no-border:after {\r\n\t\tborder: 0;\r\n\t}\r\n}\r\n\r\nuni-button[type='default'],\r\nbutton[type='default'] {\r\n\tcolor: $font-color-dark;\r\n}\r\n\r\n/* input 样式 */\r\n.input-placeholder {\r\n\tcolor: #999999;\r\n}\r\n\r\n.placeholder {\r\n\tcolor: #999999;\r\n}\r\n// 边距样式\r\n@for $i from 1 to 4 {\r\n\t.margin-l-#{$i * 10} {\r\n\t\tmargin-left: $i * 10rpx !important;\r\n\t}\r\n\t.margin-r-#{$i * 10} {\r\n\t\tmargin-right: $i * 10rpx !important;\r\n\t}\r\n\t.margin-t-#{$i * 10} {\r\n\t\tmargin-top: $i * 10rpx !important;\r\n\t}\r\n\t.margin-b-#{$i * 10} {\r\n\t\tmargin-bottom: $i * 10rpx !important;\r\n\t}\r\n\t.margin-#{$i * 10} {\r\n\t\tmargin: $i * 10rpx !important;\r\n\t}\r\n\t.margin-v-#{$i * 10} {\r\n\t\tmargin-top: $i * 10rpx !important;\r\n\t\tmargin-bottom: $i * 10rpx !important;\r\n\t}\r\n\t.margin-c-#{$i * 10} {\r\n\t\tmargin-left: $i * 10rpx !important;\r\n\t\tmargin-right: $i * 10rpx !important;\r\n\t}\r\n\t.padding-l-#{$i * 10} {\r\n\t\tpadding-left: $i * 10rpx !important;\r\n\t}\r\n\t.padding-r-#{$i * 10} {\r\n\t\tpadding-right: $i * 10rpx !important;\r\n\t}\r\n\t.padding-t-#{$i * 10} {\r\n\t\tpadding-top: $i * 10rpx !important;\r\n\t}\r\n\t.padding-b-#{$i * 10} {\r\n\t\tpadding-bottom: $i * 10rpx !important;\r\n\t}\r\n\t.padding-#{$i * 10} {\r\n\t\tpadding: $i * 10rpx !important;\r\n\t}\r\n\t.padding-v-#{$i * 10} {\r\n\t\tpadding-top: $i * 10rpx !important;\r\n\t\tpadding-bottom: $i * 10rpx !important;\r\n\t}\r\n\t.padding-c-#{$i * 10} {\r\n\t\tpadding-left: $i * 10rpx !important;\r\n\t\tpadding-right: $i * 10rpx !important;\r\n\t}\r\n}\r\n// 字体大小\r\n.font-size-sm {\r\n\tfont-size: $font-sm;\r\n}\r\n.font-size-base {\r\n\tfont-size: $font-base;\r\n}\r\n.font-size-lg {\r\n\tfont-size: $font-lg;\r\n}\r\n// 字体颜色\r\n.font-color-yellow {\r\n\tcolor: $color-yellow;\r\n}\r\n.font-color-gray {\r\n\tcolor: $color-gray;\r\n}\r\n.font-color-red {\r\n\tcolor: $color-red;\r\n}\r\n// 边框颜色\r\n.border-color-yellow {\r\n\tborder: 1rpx solid $color-yellow;\r\n}\r\n\r\n// 修改默认背景颜色\r\nuni-page-wrapper {\r\n\tbackground-color: $page-color-base;\r\n}\r\npage {\r\n\tbackground-color: $page-color-base;\r\n\t// 设置默认字体\r\n\tfont-family: PingFang SC, STHeitiSC-Light, Helvetica-Light, arial, sans-serif, Droid Sans Fallback;\r\n}\r\n</style>\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025083927\n var cssReload = require(\"D:/work/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":""}
|