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

1 line
26 KiB
Plaintext
Raw 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/pages/homeItem/homeItem.vue?3337","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pages/homeItem/homeItem.vue?4cd9","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pages/homeItem/homeItem.vue?4da5","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pages/homeItem/homeItem.vue?6456","uni-app:///pages/homeItem/homeItem.vue","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pages/homeItem/homeItem.vue?b0ca","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pages/homeItem/homeItem.vue?e15c"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","detail","skuId","seckillSeconds","seckillEnded","showCouponInfoList","computed","swiperList","lst","image","title","skuPosterList","getDetail","seckillSkuVo","methods","getHomeItemData","result","now","endTime","seconds","gotoHome","uni","url","seckillEnd","getCouponInfo","id","pos","console","onLoad"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,iBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;AACc;;;AAGrE;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;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,aAAa,qOAEN;AACP,KAAK;AACL;AACA,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,0MAEN;AACP,KAAK;AACL;AACA,aAAa,mQAEN;AACP,KAAK;AACL;AACA,aAAa,+NAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP,KAAK;AACL;AACA,aAAa,qOAEN;AACP,KAAK;AACL;AACA,aAAa,8LAEN;AACP,KAAK;AACL;AACA,aAAa,kRAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC9GA;AAAA;AAAA;AAAA;AAAq1B,CAAgB,syBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;ACoKz2B;AAAA;AAAA;AAAA,eAEA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC,wDACA,mEACA;IACA;IACAC;MACA;MACA,eACA,yBACA,kDACA;QACAC;UACAC;UACAC;QACA;MACA;MACA;IACA;IACA;IACAC;MACA;MACA,eACA,yBACA,kDACA;QACAH;UACAC;UACAC;QACA;MACA;MACA;IACA;IACAE;MACA;QAAAC;MAAA;IACA;EAAA,EACA;EACAC;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBAAAb;gBAAA;cAAA;gBAAAc;gBACA;gBACA;gBACA;gBACA;;gBAEA;gBACA;kBACAC;kBACAC;kBACAC;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAC;MACAC;QACAC;MACA;MACA;IACA;IACA;IACAC;MACA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA;gBAAA,OAEA;kBAAAC;gBAAA;cAAA;gBAAAT;gBACAU;kBAAA;gBAAA;gBACA;gBAAA;gBAAA;cAAA;gBAAA;gBAAA;gBAEAC;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAEA;EACA;EACAC;IACA;IACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC9PA;AAAA;AAAA;AAAA;AAAgkD,CAAgB,q6CAAG,EAAC,C;;;;;;;;;;;ACAplD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/homeItem/homeItem.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/homeItem/homeItem.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./homeItem.vue?vue&type=template&id=45bbbac6&\"\nvar renderjs\nimport script from \"./homeItem.vue?vue&type=script&lang=js&\"\nexport * from \"./homeItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./homeItem.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 = \"pages/homeItem/homeItem.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!./homeItem.vue?vue&type=template&id=45bbbac6&\"","var components\ntry {\n components = {\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 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 uSwiper: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-swiper/u-swiper\" */ \"uview-ui/components/u-swiper/u-swiper.vue\"\n )\n },\n ListImgItem: function () {\n return import(\n /* webpackChunkName: \"components/ListImgItem/ListImgItem\" */ \"@/components/ListImgItem/ListImgItem.vue\"\n )\n },\n uCountDown: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-count-down/u-count-down\" */ \"uview-ui/components/u-count-down/u-count-down.vue\"\n )\n },\n uIcon: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uGap: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-gap/u-gap\" */ \"uview-ui/components/u-gap/u-gap.vue\"\n )\n },\n uBadge: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-badge/u-badge\" */ \"uview-ui/components/u-badge/u-badge.vue\"\n )\n },\n AddToCart: function () {\n return import(\n /* webpackChunkName: \"components/AddToCart/AddToCart\" */ \"@/components/AddToCart/AddToCart.vue\"\n )\n },\n CouponInfoList: function () {\n return import(\n /* webpackChunkName: \"components/CouponInfoList/CouponInfoList\" */ \"@/components/CouponInfoList/CouponInfoList.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 var g0 = !!_vm.detail.skuInfoVo ? _vm.swiperList.length : null\n var g1 = !!_vm.detail.skuInfoVo\n ? _vm.detail.skuInfoVo.skuAttrValueList.length\n : null\n var g2 = !!_vm.detail.skuInfoVo ? _vm.detail.activityRuleList.length : null\n var g3 = !!_vm.detail.skuInfoVo ? _vm.skuPosterList.length : null\n var m0 =\n !!_vm.detail.skuInfoVo && _vm.skuId !== 0\n ? _vm.getProductSkuNum(_vm.skuId)\n : null\n var g4 = !!_vm.detail.skuInfoVo ? _vm.detail.couponInfoList.length : null\n var g5 =\n !!_vm.detail.skuInfoVo && g4 > 0 ? _vm.detail.couponInfoList.length : null\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.showCouponInfoList = true\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n g3: g3,\n m0: m0,\n g4: g4,\n g5: g5,\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--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!./homeItem.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!./homeItem.vue?vue&type=script&lang=js&\"","<template>\n <view v-if=\"!detail.skuInfoVo\" class=\"gg\">\n <u-empty mode=\"data\"></u-empty>\n </view>\n <view v-else class=\"gg\">\n <u-navbar :border-bottom=\"false\" :is-back=\"true\" class=\"navbar\"></u-navbar>\n\n <scroll-view class=\"gg-sv\" scroll-y>\n <view class=\"gg-content\">\n <!-- 商品轮播图 -->\n <block v-if=\"swiperList.length > 0\">\n <u-swiper :height=\"500\" :list=\"swiperList\" indicator-pos=\"bottomRight\" mode=\"number\"></u-swiper>\n </block>\n\n <!-- 商品缩略图及属性还有价格购买数量的显示 -->\n <view class=\"u-flex u-type-info-light u-p-20 gg-content-price\">\n <view class=\"u-p-r-20\">\n <ListImgItem\n :showBottom=\"detail.skuInfoVo.skuType === 0 && detail.skuInfoVo.isNewPerson === 1\"\n :showLeft=\"detail.skuInfoVo.skuType === 1\"\n :showRight=\"false\"\n :src=\"detail.skuInfoVo.imgUrl\"\n height=\"120rpx\"\n width=\"120rpx\"\n ></ListImgItem>\n </view>\n <!-- 区别秒杀商品与一般商品的价格体系 -->\n <!-- 秒杀商品显示 -->\n <block v-if=\"detail.skuInfoVo.skuType === 1\">\n <view>\n <view class=\"gg-content-price-current u-flex\">\n <view>秒杀价格:¥{{ detail.seckillSkuVo.seckillSale }}</view>\n <view class=\"u-p-l-20\">市场价格:¥{{ detail.skuInfoVo.marketPrice }}</view>\n </view>\n <view class=\"gg-content-price-limit\">\n <view>\n 限购:{{ detail.seckillSkuVo.seckillLimit }}件 销售:{{ detail.seckillSkuVo.seckillSale }}件\n 库存:{{ detail.seckillSkuVo.seckillStock }}件\n </view>\n <view>\n 秒杀场次:{{ detail.seckillSkuVo.timeName }} 倒计时:\n <u-count-down ref=\"seckillCountDown\" :timestamp=\"seckillSeconds\" @end=\"seckillEnd\"></u-count-down>\n </view>\n </view>\n </view>\n </block>\n <!-- 普通商品显示 -->\n <block v-else>\n <view>\n <view class=\"gg-content-price-current u-flex\">\n <view>当前价格:¥{{ detail.skuInfoVo.price }}</view>\n <view class=\"u-p-l-20\">市场价格:¥{{ detail.skuInfoVo.marketPrice }}</view>\n </view>\n <view class=\"gg-content-price-limit\">\n <view>限购数量:{{ detail.skuInfoVo.perLimit }}件</view>\n </view>\n </view>\n </block>\n </view>\n\n <!-- 商品名称 -->\n <view class=\"u-m-20 u-p-20 gg-content-container\">\n <view class=\"u-flex\">{{ detail.skuInfoVo.skuName }}</view>\n </view>\n\n <!-- 属性列表 -->\n <view v-if=\"detail.skuInfoVo.skuAttrValueList.length > 0\" class=\"u-m-20 u-p-20 gg-content-container\">\n <view v-for=\"skuAttrValueItem in detail.skuInfoVo.skuAttrValueList\" :key=\"skuAttrValueItem.id\"\n class=\"u-p-t-5\">\n {{ skuAttrValueItem.attrName }}{{ skuAttrValueItem.attrValue }}\n </view>\n </view>\n\n <!-- 活动规则 -->\n <view v-if=\"detail.activityRuleList.length > 0\" class=\"u-m-20 u-p-20 gg-content-container\">\n <view v-for=\"activityRuleItem in detail.activityRuleList\" :key=\"activityRuleItem.id\" class=\"u-p-t-5\">\n {{ activityRuleItem.ruleDesc }}\n </view>\n </view>\n\n <!-- 售后与提货地址 -->\n <view class=\"u-m-20 u-p-20 gg-content-container\">\n <view class=\"u-flex\">\n <view class=\"u-font-sm u-m-r-20 u-type-info\">售后无忧</view>\n <view class=\"u-font-sm u-m-r-20 u-flex-1\">\n 支持保价\n <text class=\"u-type-error\">・</text>\n 极速退款\n <text class=\"u-type-error\">・</text>\n 7天无理由退货\n </view>\n <u-icon class=\"u-m-r-20 u-type-info\" name=\"arrow-right\" size=\"24\"></u-icon>\n </view>\n\n <view class=\"u-flex u-m-t-20\">\n <view class=\"u-font-sm u-m-r-20 u-type-info\">提货信息</view>\n <view class=\"u-font-sm u-m-r-20 u-flex-1\">\n <view>\n 现在下单,\n <text class=\"u-type-error\">明天16:00可提货</text>\n </view>\n <view>提货点:{{ leaderAddressVo.takeName ? leaderAddressVo.takeName : '请设置提货点' }}</view>\n </view>\n <u-icon class=\"u-m-r-20 u-type-info\" name=\"arrow-right\" size=\"24\"></u-icon>\n </view>\n </view>\n\n <!-- 商品详情图片清单 -->\n <view v-if=\"skuPosterList.length > 0\" class=\"u-m-20 u-p-20 gg-content-container\">\n <image v-for=\"skuPoster in skuPosterList\" :key=\"skuPoster.id\" :src=\"skuPoster.image\"></image>\n </view>\n <u-gap height=\"30\"></u-gap>\n </view>\n </scroll-view>\n\n <view class=\"gg-navigation\">\n <view class=\"navigation\">\n <view class=\"left\">\n <view class=\"item\" @click=\"gotoHome\">\n <u-icon :color=\"$u.color['contentColor']\" :size=\"40\" name=\"home-fill\"></u-icon>\n <view class=\"text u-line-1\">首页</view>\n </view>\n <view class=\"item car\">\n <u-badge v-if=\"skuId !== 0\" :count=\"getProductSkuNum(skuId)\" :offset=\"[-3, -6]\" class=\"car-num\"\n type=\"error\"></u-badge>\n <u-icon :color=\"$u.color['contentColor']\" :size=\"40\" name=\"shopping-cart-fill\"></u-icon>\n <view class=\"text u-line-1\">购物车</view>\n </view>\n\n <view v-if=\"detail.couponInfoList.length > 0\" class=\"item car\" @click=\"showCouponInfoList = true\">\n <u-badge :count=\"detail.couponInfoList.length\" :offset=\"[-3, -6]\" class=\"car-num\" type=\"error\"></u-badge>\n <u-icon :color=\"$u.color['contentColor']\" :size=\"40\" name=\"gift-fill\"></u-icon>\n <view class=\"text u-line-1\">优惠券</view>\n </view>\n </view>\n <!-- 即将秒杀与加入购物车的显示 -->\n <view v-if=\"!seckillEnded\" class=\"right u-p-r-10 u-flex\">\n <!-- 即将开抢 -->\n <block v-if=\"getDetail.seckillSkuVo.timeStaus === 3\">\n <view class=\"u-m-r-20 u-line-1 u-flex-1 u-text-center\">场次:{{ getDetail.seckillSkuVo.timeName }}</view>\n <view class=\"buy-disabled btn u-line-1\">即将开抢</view>\n </block>\n <!-- 加入购物车 -->\n <block v-else>\n <view class=\"u-m-r-20 u-line-1 u-flex-1\">\n <AddToCart v-if=\"detail.skuInfoVo.id\" :shopDetail=\"getDetail\" :skuId=\"detail.skuInfoVo.id\"></AddToCart>\n </view>\n <view class=\"buy btn u-line-1\">立即购买</view>\n </block>\n </view>\n <!-- 秒杀结束显示 -->\n <view v-else class=\"right u-p-r-10 u-flex\">\n <view class=\"u-m-r-20 u-line-1 u-flex-1\"></view>\n <view class=\"buy-disabled btn u-line-1\">秒杀结束</view>\n </view>\n </view>\n </view>\n\n <CouponInfoList :couponInfoList=\"detail.couponInfoList\" :showCouponInfoList.sync=\"showCouponInfoList\"\n @getCouponInfo=\"getCouponInfo\"></CouponInfoList>\n </view>\n</template>\n\n<script>\nimport {mapState, mapGetters} from 'vuex';\n\nexport default {\n data() {\n return {\n detail: {},\n skuId: 0,\n seckillSeconds: 0,\n seckillEnded: false,\n showCouponInfoList: false\n };\n },\n computed: {\n ...mapState('pickUpLocationModule', ['leaderAddressVo']),\n ...mapGetters('cartModule', ['getProductSkuNum']),\n // 轮播图的获取\n swiperList() {\n let lst = [];\n this.detail &&\n this.detail.skuInfoVo &&\n this.detail.skuInfoVo.skuImagesList.length > 0 &&\n this.detail.skuInfoVo.skuImagesList.forEach(item => {\n lst.push({\n image: item.imgUrl,\n title: item.imgName\n });\n });\n return lst;\n },\n // 商品详情海报图片列表\n skuPosterList() {\n let lst = [];\n this.detail &&\n this.detail.skuInfoVo &&\n this.detail.skuInfoVo.skuPosterList.length > 0 &&\n this.detail.skuInfoVo.skuPosterList.forEach(item => {\n lst.push({\n image: item.imgUrl,\n title: item.imgName\n });\n });\n return lst;\n },\n getDetail() {\n return {...this.detail.skuInfoVo, seckillSkuVo: this.detail.seckillSkuVo};\n }\n },\n methods: {\n async getHomeItemData(skuId) {\n let result = await this.$u.api.getHomeItem({skuId});\n this.detail = result;\n // skuInfoVo 商品信息\n // couponInfoList 优惠券信息\n // activityRuleList 活动信息\n\n // 如果是秒杀商品,需要计算倒计时秒数\n if (this.detail.skuInfoVo.skuType === 1) {\n const now = this.$dayjs();\n const endTime = this.$dayjs(this.$dayjs().format('YYYY-MM-DD') + ' ' + this.detail.seckillSkuVo.endTime);\n const seconds = endTime.diff(now, 'second');\n this.seckillSeconds = seconds;\n }\n },\n // 切换首页\n gotoHome() {\n uni.switchTab({\n url: '/pages/index/index'\n });\n return false;\n },\n // 秒杀倒计时结束\n seckillEnd() {\n this.seckillEnded = true;\n },\n // 领取优惠券\n async getCouponInfo(id) {\n try {\n const result = await this.$u.api.getCouponInfo({id});\n const pos = this.detail.couponInfoList.findIndex(item => item.id === id);\n this.$set(this.detail.couponInfoList[pos], 'couponStatus', 1);\n } catch (e) {\n console.error(e);\n }\n }\n },\n onLoad(options) {\n let skuId = +options.skuId;\n this.skuId = skuId;\n this.getHomeItemData(skuId);\n }\n};\n</script>\n\n<style lang=\"scss\">\n.gg {\n height: 100%;\n\n &-sv {\n height: calc(100vh - 116rpx - 102rpx);\n }\n\n &-content {\n background-color: $u-bg-color;\n\n &-price {\n background: linear-gradient(to right, rgb(255, 180, 61), rgb(255, 101, 0));\n }\n\n &-container {\n z-index: 9999;\n background-color: #fff;\n border-radius: 25rpx;\n }\n }\n\n &-navigation {\n position: fixed;\n bottom: 0;\n width: 100%;\n\n .navigation {\n display: flex;\n border: solid 2rpx #f2f2f2;\n background-color: #ffffff;\n padding: 16rpx 0;\n justify-content: space-around;\n\n .left {\n display: flex;\n font-size: 20rpx;\n\n .item {\n margin: 0 30rpx;\n\n &.car {\n text-align: center;\n position: relative;\n\n .car-num {\n position: absolute;\n top: -10rpx;\n right: -10rpx;\n }\n }\n }\n }\n\n .right {\n width: 375rpx;\n display: flex;\n font-size: 28rpx;\n align-items: center;\n\n .btn {\n line-height: 50rpx;\n padding: 0 30rpx;\n border-radius: 36rpx;\n color: #ffffff;\n }\n\n .buy {\n background-color: #ff7900;\n }\n\n .buy-disabled {\n background-color: $u-type-info;\n }\n }\n }\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!./homeItem.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!./homeItem.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1706061732633\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":""}