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

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-time.vue?b217","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-time.vue?8c32","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-time.vue?ba0b","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-time.vue?82d1","uni-app:///user/pages/choose-time.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-time.vue?df8c","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-time.vue?a603"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","options","storeDay","storeTime","loading","scrollNav","scrollInd","checkInd","computed","commonOptions","primaryColor","subColor","onLoad","index","arr","bg","methods","getStoreDay","getStoreTime","coach_id","id","day","dat_str","onChangeNav","type","key","status","item","send_info","time_index","time","url","openType"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,mBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwH;AACxH;AAC+D;AACL;AACa;;;AAGvE;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,sFAAM;AACR,EAAE,+FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA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A;gBACA;gBACA;kBACAC;kBACAC;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAEA;EACA;AACA;AAAA,2B;;;;;;;;;;;;AC9HA;AAAA;AAAA;AAAA;AAA4oC,CAAgB,smCAAG,EAAC,C;;;;;;;;;;;ACAhqC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"user/pages/choose-time.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './user/pages/choose-time.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./choose-time.vue?vue&type=template&id=af006a7c&\"\nvar renderjs\nimport script from \"./choose-time.vue?vue&type=script&lang=js&\"\nexport * from \"./choose-time.vue?vue&type=script&lang=js&\"\nimport style0 from \"./choose-time.vue?vue&type=style&index=0&lang=css&\"\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 = \"user/pages/choose-time.vue\"\nexport default component.exports","export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.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!./choose-time.vue?vue&type=template&id=af006a7c&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = !_vm.loading && _vm.storeTime.length <= 0\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","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!./choose-time.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!./choose-time.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<scroll-view class=\"scroll-left fill-base\" scroll-y :scroll-into-view=\"scrollNav\" :scroll-with-animation=\"true\">\r\n\t\t\t<block v-for=\"(item,index) in storeDay\" :key=\"index\">\r\n\t\t\t\t<view @tap=\"onChangeNav(index,1)\" :id=\"`scrollNav${index}`\"\r\n\t\t\t\t\tclass=\"item-child flex-center f-paragraph c-title\" :class=\"[{'active':index==scrollInd}]\"\r\n\t\t\t\t\t:style=\"{color: index == scrollInd ? primaryColor: ''}\">\r\n\t\t\t\t\t<view class=\"flex-center child ellipsis\"\r\n\t\t\t\t\t\t:style=\"{borderLeft: index == scrollInd ? `5rpx solid ${primaryColor}`:''}\">\r\n\t\t\t\t\t\t{{`${item.dat_text} (${item.week})`}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</block>\r\n\t\t</scroll-view>\r\n\t\t<view class=\"scroll-right abs fill-base pl-lg\">\r\n\t\t\t<view @tap=\"onChangeNav(index,2)\" class=\"item-child flex-center f-paragraph c-paragraph\"\r\n\t\t\t\tstyle=\"padding-right: 25rpx;\" :style=\"{color: index == checkInd ? primaryColor: ''}\"\r\n\t\t\t\tv-for=\"(item,index) in storeTime\" :key=\"index\">\r\n\t\t\t\t<view class=\"flex-1\" :class=\"[{'text-delete': item.status != 1}]\">{{item.time_text}}</view>\r\n\t\t\t\t<i class=\"iconfont icon-xuanze-fill\" v-if=\"index == checkInd\"></i>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"mg-lg\">\r\n\t\t\t\t<abnor v-if=\"!loading&&storeTime.length<=0\"></abnor>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapActions\r\n\t} from 'vuex';\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\toptions: {},\r\n\t\t\t\tstoreDay: [],\r\n\t\t\t\tstoreTime: [],\r\n\t\t\t\tloading: false,\r\n\t\t\t\tscrollNav: 'scrollNav1',\r\n\t\t\t\tscrollInd: 0,\r\n\t\t\t\tcheckInd: -1\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: mapState({\r\n\t\t\tcommonOptions: state => state.user.commonOptions,\r\n\t\t\tprimaryColor: state => state.config.configInfo.primaryColor,\r\n\t\t\tsubColor: state => state.config.configInfo.subColor,\r\n\t\t}),\r\n\t\tasync onLoad(options) {\r\n\t\t\t// #ifdef H5\r\n\t\t\tif (this.$jweixin.isWechat()) {\r\n\t\t\t\tawait this.$jweixin.initJssdk();\r\n\t\t\t\tthis.$jweixin.wxReady(() => {\r\n\t\t\t\t\tthis.$jweixin.hideOptionMenu()\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\t// #endif\r\n\t\t\tlet {\r\n\t\t\t\tindex = -1\r\n\t\t\t} = options\r\n\t\t\tif (index && index.includes('_')) {\r\n\t\t\t\tlet arr = index.split('_')\r\n\t\t\t\tthis.scrollInd = arr[0]\r\n\t\t\t\tthis.checkInd = arr[1]\r\n\t\t\t}\r\n\t\t\tthis.options = options\r\n\t\t\tthis.$util.showLoading()\r\n\t\t\tawait this.getStoreDay()\r\n\t\t\tthis.$util.setNavigationBarColor({\r\n\t\t\t\tbg: this.primaryColor\r\n\t\t\t})\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tasync getStoreDay() {\r\n\t\t\t\tthis.storeDay = await this.$api.order.dayText()\r\n\t\t\t\tawait this.getStoreTime()\r\n\t\t\t\tthis.loading = false\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t},\r\n\t\t\tasync getStoreTime() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid: coach_id\r\n\t\t\t\t} = this.options\r\n\t\t\t\tlet {\r\n\t\t\t\t\tscrollInd\r\n\t\t\t\t} = this\r\n\t\t\t\tif (scrollInd < 0) return\r\n\t\t\t\tlet {\r\n\t\t\t\t\tdat_str: day\r\n\t\t\t\t} = this.storeDay[scrollInd]\r\n\t\t\t\tthis.storeTime = await this.$api.order.timeText({\r\n\t\t\t\t\tcoach_id,\r\n\t\t\t\t\tday\r\n\t\t\t\t});\r\n\t\t\t\tthis.loading = false\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t},\r\n\t\t\tasync onChangeNav(index, type = 1) {\r\n\t\t\t\tlet key = type == 1 ? 'storeDay' : 'storeTime'\r\n\t\t\t\tif (type == 1) {\r\n\t\t\t\t\tthis.checkInd = this.scrollInd == index ? this.checkInd : -1\r\n\t\t\t\t\tthis.scrollInd = index\r\n\t\t\t\t\tthis.scrollNav = `scrollNav${index}`\r\n\t\t\t\t\tawait this.getStoreTime()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tstatus,\r\n\t\t\t\t\t} = this[key][index]\r\n\t\t\t\t\tif (status != 1) return\r\n\t\t\t\t\tthis.checkInd = index\r\n\t\t\t\t\tlet item = this[key][index]\r\n\t\t\t\t\titem.time = `${this.storeDay[this.scrollInd].dat_text} ${item.time_text}`\r\n\t\t\t\t\tlet send_info = {\r\n\t\t\t\t\t\ttime_index: `${this.scrollInd}_${index}`,\r\n\t\t\t\t\t\ttime: item\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$util.getPage(-1).send_info = send_info\r\n\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\turl: 1,\r\n\t\t\t\t\t\topenType: 'navigateBack'\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>\r\n\t.scroll-left {\r\n\t\twidth: 260rpx;\r\n\t\theight: 100vh;\r\n\t\tposition: fixed;\r\n\t\ttop: 0;\r\n\t\tbottom: 0;\r\n\t}\r\n\r\n\t.item-child {\r\n\t\theight: 98rpx;\r\n\t}\r\n\r\n\t.item-child.active {\r\n\t\tbackground: #F9F9F9;\r\n\t}\r\n\r\n\t.item-child .child {\r\n\t\twidth: 100%;\r\n\t\theight: 32rpx;\r\n\t\tpadding: 0 5%;\r\n\t}\r\n\r\n\t.scroll-right {\r\n\t\tmin-height: 100vh;\r\n\t\ttop: 0;\r\n\t\twidth: 460rpx;\r\n\t\tmargin-left: 292rpx;\r\n\t}\r\n</style>\n","import mod from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../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!./choose-time.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../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!./choose-time.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1725606875828\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":""}