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
22 KiB
1 lines
22 KiB
{"version":3,"sources":["webpack:////Users/piao/Documents/Project/yshopmall_uni/main.js","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?ed64","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?3403","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?b158","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?c76c","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?fd4e","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?9214","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?6618","webpack:////Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?b362"],"names":["createPage","Page","NAME","name","components","ProductConSwiper","CountDown","ProductWindow","StorePoster","props","data","domStatus","posterData","image","title","price","code","posterImageStatus","action","imgUrls","storeInfo","replyCount","reply","cartNum","attr","cartAttr","productSelect","store_name","stock","unique","cart_num","datatime","watch","$yroute","n","that","mountedStart","mounted","methods","id","query","parseInt","time","then","res","$set","sliderImageArr","image_base","updateTitle","length","substring","code_base","setProductSelect","setPosterImageStatus","changeFun","opt","value","undefined","changeattr","ChangeCartNum","selecAttrTap","tapBuy","attrcartAttr","console","log","productId","uniqueId","secKillId","new","$yrouter","push","path","cartId","catch","err","$dialog","error","msg","response"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;;AAEnB;AACA,+G;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACJA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;AACA;;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CAAG,EAAC,C;;;;;;;;;;;ACA9uC,uC","file":"pages/activity/SeckillDetails/index.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\n\nimport Vue from 'vue'\nimport Page from './pages/activity/SeckillDetails/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=69b60570&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=69b60570&scoped=true&lang=css&\"\nimport style1 from \"./index.vue?vue&type=style&index=1&id=69b60570&scoped=true&lang=css&\"\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 \"69b60570\",\n null,\n false,\n components,\n renderjs\n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('69b60570')) {\n api.createRecord('69b60570', component.options)\n } else {\n api.reload('69b60570', component.options)\n }\n module.hot.accept(\"./index.vue?vue&type=template&id=69b60570&scoped=true&\", function () {\n api.rerender('69b60570', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"Users/piao/Documents/Project/yshopmall_uni/pages/activity/SeckillDetails/index.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!./index.vue?vue&type=template&id=69b60570&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n return _vm.$yrouter.push({\n path: \"/pages/user/CustomerList/index\"\n })\n }\n }\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!./index.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!./index.vue?vue&type=script&lang=js&\"","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport ProductConSwiper from \"@/components/ProductConSwiper\";\nimport CountDown from \"@/components/CountDown\";\nimport ProductWindow from \"@/components/ProductWindow\";\nimport StorePoster from \"@/components/StorePoster\";\nimport { getSeckillDetail } from \"@/api/activity\";\nimport { postCartAdd } from \"@/api/store\";\nimport { imageBase64 } from \"@/api/public\";\nconst NAME = \"SeckillDetails\";\n\nexport default {\n name: \"SeckillDetails\",\n components: {\n ProductConSwiper,\n CountDown,\n ProductWindow,\n StorePoster\n },\n props: {},\n data: function() {\n return {\n domStatus: false,\n posterData: {\n image: \"\",\n title: \"\",\n price: \"\",\n code: \"\"\n },\n posterImageStatus: false,\n action: \"\",\n imgUrls: [],\n storeInfo: [],\n replyCount: 0,\n reply: [],\n cartNum: 1,\n attr: {\n cartAttr: false,\n productSelect: {\n image: \"\",\n store_name: \"\",\n price: \"\",\n stock: \"\",\n unique: \"\",\n cart_num: 1\n }\n },\n datatime: 0\n };\n },\n watch: {\n $yroute: function(n) {\n var that = this;\n if (n.name === NAME) {\n that.mountedStart();\n }\n }\n },\n mounted: function() {\n this.mountedStart();\n },\n methods: {\n mountedStart: function() {\n var that = this;\n let id = that.$yroute.query.id;\n that.datatime = parseInt(that.$yroute.query.time);\n getSeckillDetail(id).then(res => {\n that.$set(that, \"storeInfo\", res.data.storeInfo);\n that.$set(that, \"imgUrls\", res.data.storeInfo.sliderImageArr);\n that.$set(that, \"replyCount\", res.data.replyCount);\n that.$set(that, \"reply\", res.data.reply);\n that.posterData.image = that.storeInfo.image_base;\n that.updateTitle();\n if (that.storeInfo.title.length > 30) {\n that.posterData.title = that.storeInfo.title.substring(0, 30) + \"...\";\n } else {\n that.posterData.title = that.storeInfo.title;\n }\n that.posterData.price = that.storeInfo.price;\n that.posterData.code = that.storeInfo.code_base;\n that.setProductSelect();\n that.domStatus = true;\n });\n },\n updateTitle() {\n // document.title = this.storeInfo.title || this.$yroute.meta.title;\n },\n setPosterImageStatus: function() {\n // var sTop = document.body || document.documentElement;\n // sTop.scrollTop = 0;\n this.posterImageStatus = !this.posterImageStatus;\n },\n //将父级向子集多次传送的函数合二为一;\n changeFun: function(opt) {\n if (typeof opt !== \"object\") opt = {};\n let action = opt.action || \"\";\n let value = opt.value === undefined ? \"\" : opt.value;\n this[action] && this[action](value);\n },\n changeattr: function(res) {\n var that = this;\n that.attr.cartAttr = res;\n },\n ChangeCartNum: function(res) {\n var that = this;\n if (res) {\n if (that.attr.productSelect.cart_num < that.storeInfo.stock) {\n that.attr.productSelect.cart_num++;\n this.cartNum++;\n }\n } else {\n if (that.attr.productSelect.cart_num > 1) {\n that.attr.productSelect.cart_num--;\n this.cartNum--;\n }\n }\n },\n setProductSelect: function() {\n var that = this;\n var attr = that.attr;\n attr.productSelect.image = that.storeInfo.image;\n attr.productSelect.store_name = that.storeInfo.title;\n attr.productSelect.price = that.storeInfo.price;\n attr.productSelect.stock = that.storeInfo.stock;\n attr.cartAttr = false;\n that.$set(that, \"attr\", attr);\n },\n selecAttrTap: function() {\n this.cartAttr = true;\n },\n tapBuy: function() {\n var that = this;\n if (that.attr.cartAttr == false) {\n that.attr.cartAttr = !this.attr.attrcartAttr;\n } else {\n console.log(that.storeInfo)\n var data = {};\n data.productId = that.storeInfo.productId;\n data.cartNum = that.attr.productSelect.cart_num;\n data.uniqueId = that.attr.productSelect.unique;\n data.secKillId = that.storeInfo.id;\n data.new = 1;\n postCartAdd(data)\n .then(res => {\n console.log(res);\n that.$yrouter.push({\n path: \"/pages/order/OrderSubmission/main\",\n query: { id: res.data.cartId }\n });\n })\n .catch(err => {\n console.log(err);\n this.$dialog.error(err.msg || err.response.data.msg);\n });\n }\n }\n }\n};\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../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/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../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!./index.vue?vue&type=style&index=0&id=69b60570&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../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/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../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!./index.vue?vue&type=style&index=0&id=69b60570&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../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/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../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!./index.vue?vue&type=style&index=1&id=69b60570&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../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/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../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!./index.vue?vue&type=style&index=1&id=69b60570&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin"],"sourceRoot":""} |