main.js.map 15.9 KB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/App.vue?898a","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/App.vue?2d9c","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/App.vue?9c62","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/App.vue?a131","uni-app:///App.vue","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/App.vue?99b0","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/App.vue?d68e"],"names":["Vue","config","productionTip","App","mpType","prototype","vuePrototype","use","uView","uni","$u","unit","vuexStore","require","mixin","mpShare","VueI18n","i18n","locale","messages","Chinese","English","_i18n","app","store","httpInterceptor","httpApi","httpApi1","validate","$mount"],"mappings":";;;;;;;;;sDAAA,wCAAmB,iDAA4B;AAC/C;;;;;;;;;;AAUA;;;;;;AAMA;;;;;;;;;;;;AAYA;AACA;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA;;;;AAIA;;;AAGA;;;;AAIA,4F,wnCAlEAA,aAAIC,MAAJ,CAAWC,aAAX,GAA2B,KAA3B,CAEAC,aAAIC,MAAJ,GAAa,KAAb,C,CAEA;AACAJ,aAAIK,SAAJ,CAAcC,YAAd,GAA6B,IAA7B,C,CAEA;AAEAN,aAAIO,GAAJ,CAAQC,gBAAR,E,CACA;AACAC,GAAG,CAACC,EAAJ,CAAOT,MAAP,CAAcU,IAAd,GAAqB,KAArB,C,CAEA;AAGA;AACA,IAAIC,SAAS,GAAGC,mBAAO,CAAC,6BAAD,CAAvB,CACAb,aAAIc,KAAJ,CAAUF,SAAV,E,CAEA;AACA,IAAIG,OAAO,GAAGF,mBAAO,CAAC,wCAAD,CAArB,CACAb,aAAIc,KAAJ,CAAUC,OAAV,E,CAEA;AACA;AAOA;AACAf,aAAIO,GAAJ,CAAQS,mBAAR,EAEA,IAAMC,IAAI,GAAG,IAAID,mBAAJ,CAAY,EACxB;AACA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;;;;AAIA,gD;;;;;;;;;;;;;;eAGA,EACA;AACA,gBACA,YADA,EAFA,EAMA,IANA,kBAMA,CACA,SACA,2BADA,GAGA,CAVA,EAYA,QAZA,sBAYA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,2CADA;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,KANA,CAMA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BADA;AAEA,yBAFA;AAGA,4BAHA;AAIA,mCAJA;AAKA,yBALA;;AAOA,SATA;;;AAYA;;AAEA,GApDA;;AAsDA;AACA,aADA,uBACA;AACA;AACA;AACA,gBADA;AAEA,qCAFA;;AAIA;AACA,gBADA;AAEA,qCAFA;;AAIA;AACA,gBADA;AAEA,qCAFA;;AAIA,KAfA,EAtDA,E;;;;;;;;;;;;;;ACtBA;AAAA;AAAA;AAAA;AAA+9C,CAAgB,23CAAG,EAAC,C;;;;;;;;;;ACAn/C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';import Vue from 'vue';\nimport App from './App';\n\nVue.config.productionTip = false;\n\nApp.mpType = 'app';\n\n// 此处为演示Vue.prototype使用,非uView的功能部分\nVue.prototype.vuePrototype = '枣红';\n\n// 引入全局uView\nimport uView from 'uview-ui';\nVue.use(uView);\n// 如此配置即可\nuni.$u.config.unit = 'rpx'\n\n// 此处为演示vuex使用,非uView的功能部分\nimport store from '@/store';\n\n// 引入uView提供的对vuex的简写法文件\nlet vuexStore = require('@/store/$u.mixin.js');\nVue.mixin(vuexStore);\n\n// 引入uView对小程序分享的mixin封装\nlet mpShare = require('uview-ui/libs/mixin/mpShare.js');\nVue.mixin(mpShare);\n\n// i18n部分的配置\n// 引入语言包,注意路径\nimport Chinese from '@/common/locales/zh.js';\nimport English from '@/common/locales/en.js';\n\n// VueI18n\nimport VueI18n from '@/common/vue-i18n.min.js';\n\n// VueI18n\nVue.use(VueI18n);\n\nconst i18n = new VueI18n({\n\t// 默认语言\n\tlocale: 'zh',\n\t// 引入语言文件\n\tmessages: {\n\t\t'zh': Chinese,\n\t\t'en': English,\n\t}\n});\n\n// 由于微信小程序的运行机制问题,需声明如下一行,H5和APP非必填\nVue.prototype._i18n = i18n;\n\nconst app = new Vue({\n\ti18n,\n\tstore,\n\t...App\n});\n\n// http拦截器,将此部分放在new Vue()和app.$mount()之间,才能App.vue中正常使用\nimport httpInterceptor from '@/common/http.interceptor.js';\nVue.use(httpInterceptor, app);\n\n// http接口API抽离,免于写url或者一些固定的参数\nimport httpApi from '@/common/http.api.js';\nVue.use(httpApi, app);\n\nimport httpApi1 from '@/common/http.api.aopeng.js';\nVue.use(httpApi1, app);\n\n// 自定义验证规则\nimport validate from '@/common/validate.js';\nVue.use(validate, app);\n\n//自定义导航栏\n// import hxNavbar from \"@/components/hx-navbar/hx-navbar\"\n// Vue.component('hx-navbar',hxNavbar)\n\napp.$mount();","import { render, staticRenderFns, recyclableRender, components } from \"./App.vue?vue&type=template&id=472cff63&\"\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 \"!../../../../../../Applications/HBuilderX.app/Contents/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","export * from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=template&id=472cff63&\"","var components\ntry {\n  components = {\n    uToast: function() {\n      return import(\n        /* webpackChunkName: \"uview-ui/components/u-toast/u-toast\" */ \"@/uview-ui/components/u-toast/u-toast.vue\"\n      )\n    }\n  }\n} catch (e) {\n  if (\n    e.message.indexOf(\"Cannot find module\") !== -1 &&\n    e.message.indexOf(\".vue\") !== -1\n  ) {\n    console.error(e.message)\n    console.error(\"1. 排查组件名称拼写是否正确\")\n    console.error(\n      \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n    )\n    console.error(\n      \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n    )\n  } else {\n    throw e\n  }\n}\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<!--\r\n * @Descripttion: \r\n * @version: 0.0.0\r\n * @Author: genglw\r\n * @Date: 2022-01-29 16:40:40\r\n * @LastEditors: genglw\r\n * @LastEditTime: 2022-10-20 16:35:42\r\n-->\r\n<template>\r\n  <view :style=\"vuex_theme\">\r\n    <u-toast ref=\"uToast\" />\r\n  </view>\r\n</template>\r\n\r\n<script>\r\n  import {\r\n    themeList\r\n  } from './common/theme.js'\r\n\r\n  import {\r\n    mapActions\r\n  } from 'vuex'\r\n  export default {\r\n    // 此处globalData为了演示其作用,不是uView框架的一部分\r\n    globalData: {\r\n      username: ''\r\n    },\r\n\r\n    data() {\r\n      return {\r\n        themeList,\r\n      }\r\n    },\r\n\r\n    onLaunch() {\r\n      let colorObj = this.themeList[this.vuex_appId].value\r\n      let styles = ''\r\n      for (let i in colorObj) {\r\n        styles += colorObj[i].name + ':' + colorObj[i].value + ';'\r\n      }\r\n\r\n      this.$u.vuex('vuex_theme', styles);\r\n      this.$u.vuex('vuex_baseImgUrl', this.themeList[this.vuex_appId].imagePath);\r\n      // console.log('vuex_theme----', this.vuex_theme)\r\n\r\n      uni.setTabBarStyle({\r\n        selectedColor: 'var(--primary-color)',\r\n      })\r\n\r\n      try {\r\n        // 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的\r\n        let lifeData = uni.getStorageSync('lifeData');\r\n        if (!lifeData || JSON.stringify(lifeData) == '{}' || this.vuex_role == '') {\r\n          uni.$u.route('/pages/common/select-role/select-role');\r\n        }\r\n      } catch (e) {\r\n        console.log(e)\r\n      }\r\n\r\n      if (this.vuex_phone && this.vuex_token) {\r\n        wx.login({\r\n          success: (res) => {\r\n            this.$store.dispatch(`user/login1`, {\r\n              type: 'student',\r\n              way: 'wechat',\r\n              jsCode: res.code,\r\n              phone: this.vuex_phone,\r\n              formType: '3'\r\n            });\r\n          }\r\n        })\r\n\r\n      }\r\n\r\n    },\r\n\r\n    methods: {\r\n      setTabBar() {\r\n        let tabBar = tabBarList.find(item => item.themeName == uni.getStorageSync('themeName'))\r\n        uni.setTabBarItem({\r\n          index: 0,\r\n          selectedIconPath: tabBar.home\r\n        })\r\n        uni.setTabBarItem({\r\n          index: 1,\r\n          selectedIconPath: tabBar.task\r\n        })\r\n        uni.setTabBarItem({\r\n          index: 2,\r\n          selectedIconPath: tabBar.user\r\n        })\r\n      }\r\n    },\r\n\r\n  }\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n  @import \"uview-ui/index.scss\";\r\n  @import \"common/demo.scss\";\r\n  // @import '@/static/common/css/icon.css';\r\n\r\n  /* #ifdef MP-WEIXIN */\r\n  wx-swiper .wx-swiper-dot {\r\n    width: 20rpx;\r\n    height: 10rpx;\r\n    border-radius: 5rpx;\r\n  }\r\n\r\n  wx-swiper .wx-swiper-dot-active {\r\n    background-color: #000;\r\n    width: 30rpx;\r\n    height: 15rpx;\r\n    border-radius: 7.5rpx;\r\n  }\r\n\r\n  ::-webkit-scrollbar {\r\n    display: none;\r\n    width: 0 !important;\r\n    height: 0 !important;\r\n    -webkit-appearance: none;\r\n    background: transparent;\r\n  }\r\n\r\n  /* #endif */\r\n</style>","import mod from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/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      // 1700461806510\n      var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""}