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
24 KiB

{"version":3,"sources":["uni-app:///main.js",null,"webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/App.vue?e765","uni-app:///App.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/App.vue?4fba","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/App.vue?b8c0"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","component","banner","column","fixed","search","auth","tab","abnor","loadMore","upload","minCountdown","uniNavBar","uniPopup","commonPopup","loginInfo","fixBottomButton","uniSegmentedControl","prototype","$api","api","$util","util","_i18n","i18n","config","productionTip","App","mpType","app","store","$mount","data","timer","mounted","console","onLaunch","uni","success","configInfo","$store","key","val","isGzhLogin","arr","commonOptions","coach_id","onShow","clearInterval","coach_position","id","status","coachId","isConnected","res","methodArr","onHide","onUnload","watch","locationChange","complete","computed","old_attendant_name","locationChangeUnix","userInfo","coachInfo","methods","initIndex","that","lat","latitude","lng","longitude","primaryColor","plugAuth","tabBar","mineInd","mergeLocaleMessage","zh","name","attendant_name","oldName","reg","toHidePage","toChangeLocation","param","coach_lat","coach_lng","curUnix","second","isMin","isSame","location","JSON","result","address"],"mappings":";;;;;;;;;;;;;;AAAA;AAE2D;AAC3D;AAEA;AACA;AACA;AAIA;AAAoC;AAAA;AAVpC;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAAC;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;I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,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';\r\n// @ts-ignore\r\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import Vue from 'vue'\r\nimport App from './App'\r\n\r\nimport api from \"api/index.js\"\r\nimport util from \"@/utils/index.js\"\r\nimport i18n from '@/locale/index.js';\r\n\r\n\r\n\r\nimport store from \"@/store/index.js\"\r\nimport banner from '@/components/banner.vue'\r\nimport column from '@/components/column.vue'\r\nimport fixed from '@/components/fixed.vue'\r\nimport search from '@/components/search.vue'\r\nimport auth from '@/components/auth.vue'\r\nimport tab from '@/components/tab.vue'\r\nimport abnor from '@/components/abnor.vue'\r\nimport loadMore from '@/components/load-more.vue'\r\nimport upload from '@/components/upload.vue'\r\nimport minCountdown from '@/components/min-countdown.vue'\r\nimport uniNavBar from '@/components/uni-nav-bar.vue'\r\nimport uniPopup from '@/components/uni-popup.vue'\r\nimport commonPopup from \"@/components/common-popup.vue\"\r\nimport loginInfo from \"@/components/login-info.vue\"\r\nimport fixBottomButton from \"@/components/fix-bottom-button.vue\"\r\nimport uniSegmentedControl from \"@/components/uni-segmented-control.vue\"\r\nVue.component('banner', banner)\r\nVue.component('column', column)\r\nVue.component('fixed', fixed)\r\nVue.component('search', search)\r\nVue.component('auth', auth)\r\nVue.component('tab', tab)\r\nVue.component('abnor', abnor)\r\nVue.component('loadMore', loadMore)\r\nVue.component('upload', upload)\r\nVue.component('minCountdown', minCountdown)\r\nVue.component('uniNavBar', uniNavBar)\r\nVue.component('uniPopup', uniPopup)\r\nVue.component('commonPopup', commonPopup)\r\nVue.component('loginInfo', loginInfo)\r\nVue.component('fixBottomButton', fixBottomButton)\r\nVue.component('uniSegmentedControl', uniSegmentedControl)\r\n\r\nVue.prototype.$api = api\r\nVue.prototype.$util = util\r\nVue.prototype._i18n = i18n;\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\t...App,\r\n\tstore,\r\n\ti18n\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 \"!../../../Downloads/HBuilderX.3.99.2023122611/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 \"-!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX.3.99.2023122611/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 \"-!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX.3.99.2023122611/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 {\r\n\t\tmapState,\r\n\t\tmapActions,\r\n\t\tmapMutations\r\n\t} from \"vuex\"\r\n\timport $api from \"@/api/index.js\"\r\n\timport $store from \"@/store/index.js\"\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttimer: null\r\n\t\t\t}\r\n\t\t},\r\n\t\tasync mounted() {\r\n\t\t\t// #ifdef H5\r\n\t\t\tif (typeof window.entryUrl === 'undefined' || window.entryUrl === '') {\r\n\t\t\t\twindow.entryUrl = window.location.href.split('#')[0]\r\n\t\t\t}\r\n\t\t\tif (window.location.href.indexOf('?#') < 0) {\r\n\t\t\t\twindow.location.href = window.location.href.replace(\"#\", \"?#\");\r\n\t\t\t}\r\n\t\t\t// #endif\r\n\t\t\tconsole.log('App mounted')\r\n\t\t},\r\n\t\tasync onLaunch() {\r\n\t\t\tuni.getSystemInfo({\r\n\t\t\t\tsuccess: function (res) {\r\n\t\t\t\t\tconsole.log(9999,res)\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tlet configInfo = uni.getStorageSync('configInfo') || ''\r\n\t\t\tif (configInfo) {\r\n\t\t\t\t$store.commit('updateConfigItem', {\r\n\t\t\t\t\tkey: 'configInfo',\r\n\t\t\t\t\tval: configInfo\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\tlet isGzhLogin = uni.getStorageSync('isGzhLogin') || false\r\n\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\tkey: 'isGzhLogin',\r\n\t\t\t\tval: isGzhLogin\r\n\t\t\t})\r\n\t\t\tlet arr = ['autograph', 'userInfo', 'location', 'appLogin', 'loginType']\r\n\t\t\tarr.map(key => {\r\n\t\t\t\tlet val = uni.getStorageSync(key) || ''\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tval = isGzhLogin ? val : ''\r\n\t\t\t\t// #endif\r\n\t\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\t\tkey,\r\n\t\t\t\t\tval\r\n\t\t\t\t})\r\n\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\tif (key == 'userInfo') {\r\n\t\t\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\t\t\tkey: 'isShowLogin',\r\n\t\t\t\t\t\tval: val && val.id ? false : true\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\t\t\t})\r\n\t\t\tlet {\r\n\t\t\t\tcommonOptions\r\n\t\t\t} = this\r\n\t\t\tlet {\r\n\t\t\t\tcoach_id = 0\r\n\t\t\t} = commonOptions\r\n\t\t\tif (coach_id) {\r\n\t\t\t\tcommonOptions.coach_id = 0\r\n\t\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\t\tkey: 'commonOptions',\r\n\t\t\t\t\tval: commonOptions\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\tthis.initIndex()\r\n\t\t\tconsole.log('App onLaunch')\r\n\t\t},\r\n\t\tasync onShow() {\r\n\t\t\tif (this.timer) {\r\n\t\t\t\tclearInterval(this.timer)\r\n\t\t\t}\r\n\t\t\tlet {\r\n\t\t\t\tcoach_position = 0\r\n\t\t\t} = this.userInfo\r\n\t\t\tlet {\r\n\t\t\t\tid: coachId = 0,\r\n\t\t\t\tstatus = 0\r\n\t\t\t} = this.coachInfo\r\n\t\t\tif (coach_position == 1) {\r\n\t\t\t\tif (!coachId) {\r\n\t\t\t\t\tawait this.getCoachInfo()\r\n\t\t\t\t}\r\n\t\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\t\tkey: 'locationChange',\r\n\t\t\t\t\tval: true\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\tuni.onNetworkStatusChange((res) => {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tisConnected\r\n\t\t\t\t} = res\r\n\t\t\t\tif (isConnected) return\r\n\t\t\t\tlet methodArr = ['updateServiceItem', 'updateTechnicianItem']\r\n\t\t\t\tmethodArr.map(item => {\r\n\t\t\t\t\t$store.commit(item, {\r\n\t\t\t\t\t\tkey: 'pageActive',\r\n\t\t\t\t\t\tval: false\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\tasync onHide() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t\tlet {\r\n\t\t\t\tcoach_position = 0\r\n\t\t\t} = this.userInfo\r\n\t\t\tlet {\r\n\t\t\t\tstatus = 0\r\n\t\t\t} = this.coachInfo\r\n\t\t\tif (!coach_position || status != 2) return\r\n\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\tkey: 'locationChange',\r\n\t\t\t\tval: false\r\n\t\t\t})\r\n\t\t\t// #ifdef H5\r\n\t\t\tif (this.$jweixin.isWechat()) {\r\n\t\t\t\tawait this.$jweixin.wxReady2();\r\n\t\t\t\tthis.toHidePage()\r\n\t\t\t\tthis.timer = setInterval(() => {\r\n\t\t\t\t\tthis.toHidePage()\r\n\t\t\t\t}, 60000)\r\n\t\t\t}\r\n\t\t\t// #endif\r\n\t\t},\r\n\t\tonUnload() {\r\n\t\t\tuni.offLocationChange((res) => {\r\n\t\t\t\tconsole.log(\"====offLocationChange onUnload\", res)\r\n\t\t\t})\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tlocationChange(newVal, oldVal) {\r\n\t\t\t\tif (newVal) {\r\n\t\t\t\t\tuni.startLocationUpdate({\r\n\t\t\t\t\t\tcomplete: msg => console.log(`startLocationUpdate API complete`, msg)\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.stopLocationUpdate({\r\n\t\t\t\t\t\tcomplete: msg => console.log(`stopLocationUpdate API complete`, msg)\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'configInfo.attendant_name'(newVal, oldVal) {\r\n\t\t\t\tif (newVal) {\r\n\t\t\t\t\tthis.mergeLocaleMessage()\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: mapState({\r\n\t\t\tconfigInfo: state => state.config.configInfo,\r\n\t\t\told_attendant_name: state => state.config.old_attendant_name,\r\n\t\t\tcommonOptions: state => state.user.commonOptions,\r\n\t\t\tlocationChange: state => state.user.locationChange,\r\n\t\t\tlocationChangeUnix: state => state.user.locationChangeUnix,\r\n\t\t\tuserInfo: state => state.user.userInfo,\r\n\t\t\tcoachInfo: state => state.user.coachInfo,\r\n\t\t}),\r\n\t\tmethods: {\r\n\t\t\t...mapActions(['getConfigInfo', 'getUserInfo', 'getCoachInfo']),\r\n\t\t\tasync initIndex() {\r\n\t\t\t\tlet that = this\r\n\t\t\t\tlet {\r\n\t\t\t\t\tcoach_position = 0\r\n\t\t\t\t} = that.userInfo\r\n\t\t\t\tuni.onLocationChange((res) => {\r\n\t\t\t\t\tconsole.log(\"====onLocationChange\", res)\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tlatitude: lat,\r\n\t\t\t\t\t\tlongitude: lng\r\n\t\t\t\t\t} = res\r\n\t\t\t\t\tthat.toChangeLocation({\r\n\t\t\t\t\t\tlat,\r\n\t\t\t\t\t\tlng\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t\tif (coach_position == 1) {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tid: coachId = 0\r\n\t\t\t\t\t} = that.coachInfo\r\n\t\t\t\t\tif (!coachId) {\r\n\t\t\t\t\t\tawait that.getCoachInfo()\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\t\t\tkey: 'locationChange',\r\n\t\t\t\t\t\tval: true\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\tlet {\r\n\t\t\t\t\tprimaryColor = '',\r\n\t\t\t\t\t\tplugAuth = {},\r\n\t\t\t\t\t\ttabBar = []\r\n\t\t\t\t} = that.configInfo\r\n\t\t\t\tlet mineInd = tabBar.findIndex(item => {\r\n\t\t\t\t\treturn item.id == 5\r\n\t\t\t\t})\r\n\t\t\t\tconsole.log(mineInd, \"======mineInd\")\r\n\t\t\t\t// if ((primaryColor && plugAuth.length > 0) || mineInd != -1) return\r\n\t\t\t\tawait that.getConfigInfo()\r\n\t\t\t},\r\n\t\t\tasync mergeLocaleMessage() {\r\n\t\t\t\tlet zh = JSON.parse(JSON.stringify(this.$i18n.messages.zh))\r\n\t\t\t\tlet {\r\n\t\t\t\t\tattendant_name: name,\r\n\t\t\t\t} = this.configInfo\r\n\t\t\t\tlet oldName = this.old_attendant_name\r\n\t\t\t\tlet reg = new RegExp(oldName, 'g')\r\n\t\t\t\tfor (let i in zh.action) {\r\n\t\t\t\t\tif (zh.action[i].includes(oldName)) {\r\n\t\t\t\t\t\tzh.action[i] = zh.action[i].replace(reg, name)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.$i18n.mergeLocaleMessage('zh', zh)\r\n\t\t\t\t$store.commit('updateConfigItem', {\r\n\t\t\t\t\tkey: 'old_attendant_name',\r\n\t\t\t\t\tval: name\r\n\t\t\t\t})\r\n\t\t\t\t// console.log(this.$t('action.attendantName'), this.$i18n.messages.zh, \"=====\");\r\n\t\t\t},\r\n\t\t\tasync toHidePage() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlatitude: lat,\r\n\t\t\t\t\tlongitude: lng\r\n\t\t\t\t} = await this.$jweixin.getWxLocation()\r\n\t\t\t\tif (lat && lng) {\r\n\t\t\t\t\tlet val = this.$util.DateToUnix(this.$util.formatTime(new Date(), 'YY-M-D h:m:s'))\r\n\t\t\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\t\t\tkey: 'locationChangeUnix',\r\n\t\t\t\t\t\tval\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.toChangeLocation({\r\n\t\t\t\t\t\tlat,\r\n\t\t\t\t\t\tlng\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync toChangeLocation(param) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlat,\r\n\t\t\t\t\tlng\r\n\t\t\t\t} = param\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid = 0,\r\n\t\t\t\t\t\tcoach_position = 0\r\n\t\t\t\t} = this.userInfo\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlat: coach_lat,\r\n\t\t\t\t\tlng: coach_lng,\r\n\t\t\t\t\tstatus = 0\r\n\t\t\t\t} = this.coachInfo\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlocationChangeUnix\r\n\t\t\t\t} = this\r\n\t\t\t\tlet curUnix = this.$util.DateToUnix(this.$util.formatTime(new Date(), 'YY-M-D h:m:s'))\r\n\t\t\t\tlet second = 3\r\n\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\tsecond = 1\r\n\t\t\t\t// #endif\r\n\t\t\t\t// console.log(curUnix, locationChangeUnix, curUnix - locationChangeUnix,\r\n\t\t\t\t// \t\"=====curUnix - locationChangeUnix\")\r\n\t\t\t\tlet isMin = curUnix - locationChangeUnix <= second || curUnix - locationChangeUnix >= 60\r\n\t\t\t\tlet isSame = coach_lat * 1 == lat && coach_lng * 1 == lng\r\n\t\t\t\t// console.log(lat, lng, coach_position, isMin, isSame, \"=====lat, lng, coach_position, isMin\")\r\n\t\t\t\tif (!coach_position || status != 2 || !isMin || isSame) return\r\n\r\n\t\t\t\tlet val = this.$util.DateToUnix(this.$util.formatTime(new Date(), 'YY-M-D h:m:s'))\r\n\t\t\t\t$store.commit('updateUserItem', {\r\n\t\t\t\t\tkey: 'locationChangeUnix',\r\n\t\t\t\t\tval\r\n\t\t\t\t})\r\n\r\n\t\t\t\tlet key = `${lat},${lng}`\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet data = await this.$api.base.getMapInfo({\r\n\t\t\t\t\t\tlocation: key\r\n\t\t\t\t\t})\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tstatus,\r\n\t\t\t\t\t\tresult\r\n\t\t\t\t\t} = JSON.parse(data)\r\n\t\t\t\t\tif (status == 0) {\r\n\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\taddress\r\n\t\t\t\t\t\t} = result\r\n\t\t\t\t\t\tconsole.log(\"toChangeLocation==>\", `${lat}-${lng}-${address}`)\r\n\t\t\t\t\t\tawait this.$api.technician.coachUpdate({\r\n\t\t\t\t\t\t\tlat,\r\n\t\t\t\t\t\t\tlng,\r\n\t\t\t\t\t\t\taddress\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tawait this.getCoachInfo()\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tconsole.log('=====getMapInfo catch')\r\n\t\t\t\t\tuni.stopLocationUpdate({\r\n\t\t\t\t\t\tcomplete: msg => console.log(`stopLocationUpdate API complete`, msg)\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}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t@import \"/styles/index.wxss\";\r\n\r\n\t/* #ifdef H5 */\r\n\tuni-page-head {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t/* #endif */\r\n\r\n\tpage {\r\n\t\tfont-size: 28rpx;\r\n\t\tcolor: #222;\r\n\t\tline-height: 1.5;\r\n\t\tbackground: #F6F6F6;\r\n\t\tfont-family: -apple-system-font, Helvetica Neue, Helvetica, sans-serif;\r\n\t}\r\n\r\n\tinput {\r\n\t\t// font-family: PingFangSC-Medium, PingFang SC, -apple-system-font, Helvetica Neue, Helvetica, sans-serif;\r\n\t}\r\n\r\n\tinput::-webkit-input-placeholder {\r\n\t\t/* WebKit browsers */\r\n\t\tcolor: #A9A9A9;\r\n\t}\r\n\r\n\tinput:-moz-placeholder {\r\n\t\t/* Mozilla Firefox 4 to 18 */\r\n\t\tcolor: #A9A9A9;\r\n\t}\r\n\r\n\tinput::-moz-placeholder {\r\n\t\t/* Mozilla Firefox 19+ */\r\n\t\tcolor: #A9A9A9;\r\n\t}\r\n\r\n\tinput:-ms-input-placeholder {\r\n\t\t/* Internet Explorer 10+ */\r\n\t\tcolor: #A9A9A9;\r\n\t}\r\n\r\n\tview {\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\timage {\r\n\t\tdisplay: block;\r\n\t}\r\n\r\n\t.h5-image {\r\n\t\tbackground-position: center center;\r\n\t\tbackground-size: cover;\r\n\t\tbackground-repeat: no-repeat;\r\n\t}\r\n\r\n\t/*隐藏滚动条*/\r\n\t::-webkit-scrollbar {\r\n\t\twidth: 0;\r\n\t\theight: 0;\r\n\t\tcolor: transparent;\r\n\t}\r\n\r\n\t/* #ifdef MP-BAIDU */\r\n\t.swan-button.swan-button-radius-ios {\r\n\t\tborder-radius: 0;\r\n\t}\r\n\t\r\n\t/* #endif */\r\n</style>","import mod from \"-!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX.3.99.2023122611/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 \"-!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX.3.99.2023122611/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 // 1726048338240\n var cssReload = require(\"C:/Users/Administrator/Downloads/HBuilderX.3.99.2023122611/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":""}