xlcs/xlcs-user/unpackage/dist/dev/.sourcemap/mp-weixin/pagesSeckill/seckill/seckill.js.map
2024-01-24 13:08:56 +08:00

1 line
18 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesSeckill/seckill/seckill.vue?e25d","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesSeckill/seckill/seckill.vue?b706","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesSeckill/seckill/seckill.vue?a8ac","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesSeckill/seckill/seckill.vue?20fb","uni-app:///pagesSeckill/seckill/seckill.vue","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesSeckill/seckill/seckill.vue?2d4b","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesSeckill/seckill/seckill.vue?597f"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","seckillTimeList","timeName","navId","seckillSkuList","empty","methods","getSeckillTimeList","result","geSeckillSkuList","gotoProductItem","changeNav","mounted"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,gBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;AACc;;;AAGpE;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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,o6CAAG,EAAC,C;;;;;;;;;;;ACAnlD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesSeckill/seckill/seckill.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesSeckill/seckill/seckill.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./seckill.vue?vue&type=template&id=664bb3ce&\"\nvar renderjs\nimport script from \"./seckill.vue?vue&type=script&lang=js&\"\nexport * from \"./seckill.vue?vue&type=script&lang=js&\"\nimport style0 from \"./seckill.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 = \"pagesSeckill/seckill/seckill.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--17-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!./seckill.vue?vue&type=template&id=664bb3ce&\"","var components\ntry {\n components = {\n uNavbar: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-navbar/u-navbar\" */ \"uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uEmpty: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-empty/u-empty\" */ \"uview-ui/components/u-empty/u-empty.vue\"\n )\n },\n uTag: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-tag/u-tag\" */ \"uview-ui/components/u-tag/u-tag.vue\"\n )\n },\n uImage: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-image/u-image\" */ \"uview-ui/components/u-image/u-image.vue\"\n )\n },\n uButton: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-button/u-button\" */ \"uview-ui/components/u-button/u-button.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--13-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!./seckill.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--13-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!./seckill.vue?vue&type=script&lang=js&\"","<template>\n <block v-if=\"empty\">\n <u-navbar :background=\"{ background: 'rgb(255, 101, 0)' }\" :border-bottom=\"false\" :is-back=\"true\"\n back-icon-color=\"#fff\">\n <view class=\"u-font-xl u-flex u-row-center u-type-info-light u-flex-1\">\n <view>限时秒杀</view>\n </view>\n </u-navbar>\n <u-empty mode=\"data\"></u-empty>\n </block>\n\n <block v-else>\n <view class=\"gg\">\n <!-- 利用background-image设置导航的线形渐变色彩 -->\n <u-navbar :background=\"{ background: 'rgb(255, 101, 0)' }\" :border-bottom=\"false\" :is-back=\"true\"\n back-icon-color=\"#fff\">\n <view class=\"u-font-xl u-flex u-row-center u-type-info-light u-flex-1\">\n <view>限时秒杀</view>\n </view>\n </u-navbar>\n <view class=\"gg-content\">\n <view class=\"gg-content-header\">\n <scroll-view :scroll-into-view=\"`scroll-${navId}`\" enable-flex scroll-x>\n <view class=\"u-flex u-flex-nowrap u-p-r-20 u-p-t-20\">\n <!-- 循环滚动内容 -->\n <view\n v-for=\"seckillTime in seckillTimeList\"\n :id=\"`scroll-${seckillTime.id}`\"\n :key=\"seckillTime.id\"\n class=\"u-p-l-20 u-p-r-20\"\n @click=\"changeNav(seckillTime.id, seckillTime.name)\"\n >\n <view class=\"u-text-center\" style=\"width: 140rpx;\">\n <view class=\"u-font-xl u-type-info-light\">{{ seckillTime.name }}</view>\n <!-- 1已开抢 2抢购中 3即将开抢 -->\n <block v-if=\"seckillTime.timeStaus === 1\">\n <u-tag\n :bg-color=\"seckillTime.id === navId ? '#ff0000' : '#fff'\"\n :color=\"seckillTime.id === navId ? '#fff' : '#555'\"\n mode=\"dark\"\n shape=\"circle\"\n text=\"已开抢\"\n />\n </block>\n <block v-if=\"seckillTime.timeStaus === 2\">\n <u-tag\n :bg-color=\"seckillTime.id === navId ? '#19be6b' : '#fff'\"\n :color=\"seckillTime.id === navId ? '#fff' : '#555'\"\n mode=\"dark\"\n shape=\"circle\"\n text=\"抢购中\"\n />\n </block>\n <block v-if=\"seckillTime.timeStaus === 3\">\n <u-tag\n :bg-color=\"seckillTime.id === navId ? '#fc0' : '#fff'\"\n :color=\"seckillTime.id === navId ? '#fff' : '#555'\"\n mode=\"dark\"\n shape=\"circle\"\n text=\"即将开抢\"\n />\n </block>\n </view>\n </view>\n </view>\n </scroll-view>\n\n <view class=\"gg-sv-seckill-container\">\n <view class=\"u-m-20 u-flex u-flex-1 gg-sv-list-container\">\n <scroll-view class=\"gg-sv-list\" scroll-y=\"true\">\n <view v-for=\"seckillSku in seckillSkuList\" :key=\"seckillSku.id\" class=\"gg-sv-item\">\n <u-image :src=\"seckillSku.imgUrl\" border-radius=\"10rpx\" height=\"400rpx\" width=\"100%\"/>\n <view class=\"u-font-xl u-p-t-10 u-p-b-10\">{{ seckillSku.skuName }}</view>\n <view>限购数量:{{ seckillSku.seckillLimit }} 销售量:{{ seckillSku.seckillSale }}\n 库存:{{ seckillSku.seckillStock }}\n </view>\n <view class=\"u-flex u-flex-1 u-row-between u-p-t-10 \">\n <view>\n 价格:\n <text class=\"u-font-xl u-type-error\">¥{{ seckillSku.seckillPrice }}</text>\n </view>\n <view>\n <u-button shape=\"circle\" size=\"medium\" type=\"error\" @click=\"gotoProductItem(seckillSku.skuId)\">\n 立即抢购\n </u-button>\n </view>\n </view>\n </view>\n </scroll-view>\n </view>\n </view>\n </view>\n </view>\n </view>\n </block>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n seckillTimeList: [],\n timeName: '',\n navId: 0,\n seckillSkuList: [],\n empty: false\n };\n },\n methods: {\n // 秒杀时间段获取\n async getSeckillTimeList() {\n const result = await this.$u.api.getFindAllSeckillTimeList();\n this.seckillTimeList = result;\n },\n // 秒杀商品列表\n async geSeckillSkuList(timeName) {\n const result = await this.$u.api.getFindSeckillSkuList({timeName});\n this.seckillSkuList = result;\n },\n // 跳转至商品详情\n gotoProductItem(id) {\n this.$u.route('/pages/homeItem/homeItem?skuId=' + id);\n },\n // 秒杀时间段进行导航切换\n changeNav(navId, timeName) {\n this.navId = navId;\n this.geSeckillSkuList(timeName);\n },\n },\n async mounted() {\n // 获取秒杀时间段与第一个时间段的商品列表\n await this.getSeckillTimeList();\n if (this.seckillTimeList.length > 0) {\n this.navId = this.seckillTimeList[0].id;\n this.timeName = this.seckillTimeList[0].name;\n this.geSeckillSkuList(this.timeName);\n } else {\n this.empty = true;\n }\n }\n};\n</script>\n\n<style lang=\"scss\">\nbody {\n background-color: $u-bg-color;\n}\n\n.gg {\n &-content {\n &-header {\n background-color: rgb(255, 101, 0);\n height: 300rpx;\n border-bottom-left-radius: 80rpx;\n border-bottom-right-radius: 80rpx;\n }\n }\n\n &-sv-seckill-container {\n position: absolute;\n z-index: 1;\n top: 280rpx;\n width: 100%;\n }\n\n &-sv-list-container {\n background-color: $u-bg-color;\n border-radius: 20rpx;\n }\n\n &-sv-list {\n height: calc(100vh - 380rpx);\n padding: 20rpx;\n }\n\n &-sv-item {\n padding: 20rpx;\n border-bottom: 10rpx solid white;\n border-radius: 20rpx;\n background-color: white;\n margin-bottom: 20rpx;\n }\n\n .active {\n background-color: red !important;\n }\n}\n</style>\n","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/@dcloudio/vue-cli-plugin-uni/packages/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!./seckill.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/@dcloudio/vue-cli-plugin-uni/packages/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!./seckill.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1706061732829\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":""}