公司小程序
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
10 KiB

{"version":3,"sources":["uni-app:///App.vue","uni-app:///main.js","webpack:///D:/Uni-App/HBuilderProjects/Test/App.vue?a807","webpack:///D:/Uni-App/HBuilderProjects/Test/App.vue?69c2","webpack:///D:/Uni-App/HBuilderProjects/Test/App.vue?9385"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","prototype","$store","store","fire","onfire","$fire","$Define","Define","$utils","utils","config","productionTip","App","mpType","use","uView","mpShare","require","mixin","app","$mount","render","staticRenderFns","components","renderjs","component","options","__file"],"mappings":"0LACA,eACA,WACA,WACA,W,mDAEA,OACA,aACA,UACA,WACA,WACA,SACA,WACA,a,EAEA,CACA,oBAEA,4BACA,OADA,SACA,GAEA,8BACA,6DACA,4CACA,iDAEA,QARA,SAQA,GAEA,kBACA,aACA,gBACA,aACA,UAGA,MAGA,oBAEA,kBACA,cACA,iCAKA,KA7BA,SA6BA,GACA,kCACA,aACA,wBAGA,SAnCA,SAmCA,OAKA,yCAEA,oBAGA,oBAGA,YACA,iBACA,iBACA,uBAEA,gBAEA,2BAEA,SACA,wBADA,WASA,IAPA,0BACA,GACA,mBACA,eACA,gBACA,kBAEA,oBACA,WACA,sBACA,IACA,+BACA,gBAGA,2BACA,UACA,wCAEA,+B,4GChGA,KAA8E,cAC9E,WAGA,WAGA,WAEA,YAEA,YAEA,WAEA,W,0uBAfmBA,GAAGC,kCAAoCC,EAmB1DC,UAAIC,UAAUC,OAASC,UAEvB,IAAIC,EAAO,IAAIC,UAEfL,UAAIC,UAAUK,MAAQF,EAEtBJ,UAAIC,UAAUM,QAAUC,UAExBR,UAAIC,UAAUQ,OAASC,UAEvBV,UAAIW,OAAOC,eAAgB,EAE3BC,UAAIC,OAAS,MACbd,UAAIe,IAAIC,WAIR,IAAMC,EAAUC,EAAQ,KACxBlB,UAAImB,MAAMF,GAGVjB,UAAImB,MAAMA,WAEV,IAAMC,EAAM,IAAIpB,UAAJ,GACRG,gBACHC,QACMS,YAIPK,EAAQ,IAARA,CAAgCE,GAEhC,EAAAA,GAAIC,W,8DCnDJ,6GAAIC,EAAQC,EAAmCC,EAC3CC,EADJ,OASIC,EAAY,eACd,aACAJ,EACAC,GACA,EACA,KACA,KACA,MACA,EACAC,EACAC,GAGFC,EAAUC,QAAQC,OAAS,UACZ,aAAAF,E,yCCvBf,qBAAgoC,EAAG,G,+BCAnoC,6GAAimB,eAAG,I","file":"common/main.js","sourcesContent":["<script>\r\n\timport Define from './common/define.js'\r\n\timport Player from './common/Player.js'\r\n\timport mainPageData from './common/mainPageData.js'\r\n\timport customermanager from './common/customermanager.js'\r\n\t/**合同的数据结构*/\r\n\tvar agreementData = {\r\n\t\tinserttime : 0,\r\n\t\tpicurl : '',\r\n\t\tshowtype : 0x02,\r\n\t\tskipurl : '',\r\n\t\tsortid : 0,\r\n\t\ttextmsg : '',\r\n\t\tisAgreed : false,\r\n\t};\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\t\r\n\t\t\tuni.addInterceptor('request',{\r\n\t\t\t\tinvoke(args) {\r\n\t\t\t\t\t//console.log('interceptor-invoke',args);\r\n\t\t\t\t\targs.url \t= Define.BaseUrl + args.url;\r\n\t\t\t\t\tvar token \t= uni.getStorageSync(Define.StoreKeys.WeChatLoginToken);\r\n\t\t\t\t\targs.header['content-type'] = 'application/json';\r\n\t\t\t\t\targs.header['outsourcing.partner.userapp.token'] = token;\r\n\t\t\t\t},\r\n\t\t\t\tsuccess(args) {\r\n\t\t\t\t\t//console.log('interceptor-success',args);\r\n\t\t\t\t\tvar code = args.data.code;\r\n\t\t\t\t\tvar msg = args.data.msg;\r\n\t\t\t\t\tif(msg && msg != '' && code != 0){\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle:msg,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(code != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//console.log(\"code = \",code,args.statusCode);\r\n\t\t\t\t\t\tif(args.statusCode == 401){\r\n\t\t\t\t\t\t\t//用户需要登录,跳转到登录界面\r\n\t\t\t\t\t\t\tPlayer.clear();\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:'/pages/WxLogin/WxLogin'\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\t},\r\n\t\t\t\tfail(err) {\r\n\t\t\t\t\tconsole.log('interceptor-fail',err)\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:'网络出现错误,请稍后再试',\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\tcomplete(res) {\r\n\t\t\t\t\t//console.log('interceptor-complete',res)\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tthis.LoadPlayerInfoFromStore(Player);\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\t\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\t\r\n\t\t},\r\n\t\tglobalData:{\r\n\t\t\tDefine,\r\n\t\t\tPlayer,\r\n\t\t\tmainPageData,\r\n\t\t\t///合同数据\r\n\t\t\tagreementData,\r\n\t\t\t///客户数据管理器\r\n\t\t\tcustomermanager,\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tLoadPlayerInfoFromStore(){\r\n\t\t\t\tvar StoreKeys = Define.StoreKeys;\r\n\t\t\t\tvar keys = [\r\n\t\t\t\t\tStoreKeys.WeChatLoginToken,\r\n\t\t\t\t\tStoreKeys.WeChatGender,\r\n\t\t\t\t\tStoreKeys.WeChatHeadUrl,\r\n\t\t\t\t\tStoreKeys.WeChatNickName\r\n\t\t\t\t];\r\n\t\t\t\tfor(let i = 0;i<keys.length;i++){\r\n\t\t\t\t\tvar k \t\t= keys[i];\r\n\t\t\t\t\tvar info \t= uni.getStorageSync(k);\r\n\t\t\t\t\tif(info){\r\n\t\t\t\t\t\tconsole.log(\"从缓存中加载到了属性:\",k,info);\r\n\t\t\t\t\t\tPlayer[k] = info;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tvar token = Player.user_token;\r\n\t\t\t\tif(token && token != ''){\r\n\t\t\t\t\tthis.$utils.loginWithToken(token,Player);\r\n\t\t\t\t}\r\n\t\t\t\tmainPageData.getMainPageData();\r\n\t\t\t},\r\n\t\t},\r\n\t\t\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*每个页面公共css */\r\n\t@import \"@/uni_modules/uview-ui/index.scss\";\r\n\t@import \"common/demo.scss\";\r\n\t.uni-picker-container .uni-picker .uni-picker-action-confirm{color: #d7b57c!important;}\r\n</style>\r\n","import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import Vue from 'vue'\r\nimport App from './App'\r\n\r\n// vuex\r\nimport store from './store'\r\n\r\n// 引入全局uView\r\nimport uView from '@/uni_modules/uview-ui'\r\n\r\nimport mixin from './common/mixin'\r\n\r\nimport onfire from 'onfire.js'\r\n\r\nimport Define from './common/define.js'\r\n\r\nimport utils from './common/utils.js'\r\n\r\n//import service from './common/http.js'\r\n\r\nVue.prototype.$store = store;\r\n\r\nvar fire = new onfire();\r\n\r\nVue.prototype.$fire = fire;\r\n\r\nVue.prototype.$Define = Define;\r\n\r\nVue.prototype.$utils = utils;\r\n\r\nVue.config.productionTip = false\r\n\r\nApp.mpType = 'app'\r\nVue.use(uView)\r\n\r\n\r\n// 引入uView对小程序分享的mixin封装\r\nconst mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')\r\nVue.mixin(mpShare)\r\n\r\n\r\nVue.mixin(mixin)\r\n\r\nconst app = new Vue({\r\n store,\r\n\tfire,\r\n ...App\r\n})\r\n\r\n// 引入请求封装\r\nrequire('./util/request/index')(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 \"!../../../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/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../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 \"-!../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","import mod from \"-!../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../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/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\""],"sourceRoot":""}