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

{"version":3,"sources":["webpack:///D:/Uni-App/HBuilderProjects/Test/App.vue?9385","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"],"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":"2GAAA,6GAAimB,eAAG,G,+GCCpmB,eACA,WACA,WACA,WACA,U,mDAEA,oB,EACA,CACA,oBACA,WACA,4BACA,OADA,SACA,GAEA,8BACA,6DACA,4CACA,iDAEA,QARA,SAQA,GAEA,kBACA,aACA,gBAEA,eAEA,MAGA,oBAEA,kBACA,qBACA,cACA,iCAKA,KA7BA,SA6BA,GACA,kCACA,6BAEA,SAjCA,SAiCA,OAKA,wCACA,4BACA,2BACA,gCACA,eACA,aACA,6BACA,aACA,aACA,2BACA,QAHA,SAGA,GACA,WACA,0BAQA,oBAGA,oBAGA,YACA,iBACA,iBACA,uBAEA,gBAEA,0BAEA,uBAEA,qBAEA,sBAEA,SACA,wBADA,WASA,IAPA,0BACA,GACA,mBACA,eACA,gBACA,kBAEA,oBACA,WACA,sBACA,IACA,+BACA,gBAGA,2BACA,UACA,yCAIA,UAvBA,SAuBA,GACA,iCACA,oB,4GCnHA,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,8GAAIC,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,I","file":"common/main.js","sourcesContent":["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&\"","<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\timport SkipData from './common/SkipData.js'\r\n\t/**合同的数据结构*/\r\n\tvar agreementData = new SkipData();\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tvar self\t= this;\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\t//uni.$u.toast(msg,4000);\r\n\t\t\t\t\t\tself.showToast(msg);\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.clearStorageSync();\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\tself.showToast(\"网络出现错误,请稍后再试\");\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\tmainPageData.getMainPageData();\r\n\t\t\tconst updateManager = uni.getUpdateManager();\r\n\t\t\tupdateManager.onCheckForUpdate(function(res){\r\n\t\t\t\tconsole.log(res);\r\n\t\t\t\tif(res.hasUpdate){\r\n\t\t\t\t\tupdateManager.onUpdateReady(function(res){\r\n\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\ttitle:'更新提示',\r\n\t\t\t\t\t\t\tcontent:'新版本已经准备好,是否重启应用?',\r\n\t\t\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\t\t\tif(res.confirm){\r\n\t\t\t\t\t\t\t\t\tupdateManager.applyUpdate();\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\t}\r\n\t\t\t});\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\t///从其他界面退回到钱包界面的时候是否需要刷新数据,只有在提现界面产生了提现数据时,等地方需要\r\n\t\t\tisNeedRefreshWallet : false,\r\n\t\t\t///当前正在显示的SkipData,比如【业务动态,品牌风采】\r\n\t\t\tshowingSkipData : null,\r\n\t\t\t///当前正在编辑得客户\r\n\t\t\teditingCustomer : null,\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\t\r\n\t\t\t},\r\n\t\t\tshowToast(msg){\r\n\t\t\t\tuni.$u.sleep(500).then(()=>{\r\n\t\t\t\t\tuni.$u.toast(msg);\r\n\t\t\t\t});\r\n\t\t\t\t\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&\""],"sourceRoot":""}