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

{"version":3,"sources":["webpack:////Users/gaoxs/Documents/project/yshopmall_uni/main.js","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?780a","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?be62","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?b946","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?dbfb","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?8537","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?ac0c","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?b033","webpack:////Users/gaoxs/Documents/project/yshopmall_uni/pages/activity/SeckillDetails/index.vue?270d"],"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","routerGo","item","$yrouter","push","path","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","cartId","catch","err","uni","showToast","msg","response","icon","duration"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;;AAEnB;AACA,+G;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACJA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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;;;;;;AC1Ef;AAAA;AAAA;AAAA;AAA0tC,CAAgB,qnCAAG,EAAC,C;;;;;;;;;;;ACA9uC,uC;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAA0tC,CAAgB,qnCAAG,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=3eeeba5f&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=3eeeba5f&scoped=true&lang=css&\"\nimport style1 from \"./index.vue?vue&type=style&index=1&id=3eeeba5f&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 \"3eeeba5f\",\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('3eeeba5f')) {\n api.createRecord('3eeeba5f', component.options)\n } else {\n api.reload('3eeeba5f', component.options)\n }\n module.hot.accept(\"./index.vue?vue&type=template&id=3eeeba5f&scoped=true&\", function () {\n api.rerender('3eeeba5f', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"Users/gaoxs/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=3eeeba5f&scoped=true&\"","var components\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!./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 routerGo(item) {\n this.$yrouter.push({ path: '/pages/user/CustomerList/index' })\n },\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/index\",\n query: { id: res.data.cartId }\n });\n })\n .catch(err => {\n uni.showToast({\n \ttitle: err.msg || err.response.data.msg,\n \ticon: 'none',\n \tduration: 2000\n });\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=3eeeba5f&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=3eeeba5f&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=3eeeba5f&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=3eeeba5f&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin"],"sourceRoot":""}