pages-good-detail-good-detail.186c642d.js 36 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-good-detail-good-detail"],{"0429":function(t,e,i){"use strict";var o=i("f7e9"),n=i.n(o);n.a},"2ca33":function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-c0f06c0a]{margin-top:%?10?%}.app-item uni-input[data-v-c0f06c0a], .app-item uni-picker[data-v-c0f06c0a], .app-item uni-textarea[data-v-c0f06c0a]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-c0f06c0a]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-c0f06c0a]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-c0f06c0a]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-c0f06c0a]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-c0f06c0a]{color:#fff;background:#f76454}.small-btn[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-c0f06c0a]{color:#999;border-color:#999}.login-btn[data-v-c0f06c0a]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-c0f06c0a]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-c0f06c0a]{margin-right:%?20?%}.border-right[data-v-c0f06c0a]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?20?%;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-c0f06c0a]{margin-right:%?6?%}.position-center[data-v-c0f06c0a]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-c0f06c0a]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-c0f06c0a]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-c0f06c0a]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-c0f06c0a]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-c0f06c0a]{color:#f76454}.swiper-nav[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-c0f06c0a]{color:#f76454}.swiper-nav .moveBar[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-c0f06c0a]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-c0f06c0a]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-c0f06c0a]{width:100%;height:100%}.article-header[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-c0f06c0a]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-c0f06c0a]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-c0f06c0a]{color:#f76454}.article-footer[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-c0f06c0a]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-c0f06c0a]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-c0f06c0a]{color:#f76454}\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.good-detail[data-v-c0f06c0a]{height:100%;box-sizing:border-box;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#f2f2f2}.good-detail .content[data-v-c0f06c0a]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;position:relative;box-sizing:border-box}.good-detail .shopcar-buy[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;left:0;right:0;bottom:0;z-index:1;height:%?98?%;position:fixed}.good-detail .shopcar-buy uni-view[data-v-c0f06c0a], .good-detail .shopcar-buy uni-navigator[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;color:#fff;font-size:%?32?%;position:relative}.good-detail .shopcar-buy uni-view.shopcar[data-v-c0f06c0a], .good-detail .shopcar-buy uni-navigator.shopcar[data-v-c0f06c0a]{background:#fff;color:#f76454}.good-detail .shopcar-buy uni-view.shopcar .cuIcon-cart[data-v-c0f06c0a], .good-detail .shopcar-buy uni-navigator.shopcar .cuIcon-cart[data-v-c0f06c0a]{font-size:%?40?%;margin-right:%?6?%}.good-detail .shopcar-buy uni-view.shopcar .num[data-v-c0f06c0a], .good-detail .shopcar-buy uni-navigator.shopcar .num[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:%?12?%;right:%?20?%;height:%?34?%;min-width:%?34?%;padding:0 %?8?%;color:#fff;min-width:%?34?%;font-size:%?20?%;position:absolute;border-radius:%?16?%;background:#f76454}.good-detail .shopcar-buy uni-view.addshopcar[data-v-c0f06c0a], .good-detail .shopcar-buy uni-navigator.addshopcar[data-v-c0f06c0a]{background:#ffa94c}.good-detail .shopcar-buy uni-view.buy[data-v-c0f06c0a], .good-detail .shopcar-buy uni-navigator.buy[data-v-c0f06c0a]{background:#f76454}.good-detail .content uni-swiper[data-v-c0f06c0a]{height:%?400?%}.good-detail .content uni-swiper uni-image[data-v-c0f06c0a]{width:100%;height:100%}.good-detail .content .app-item[data-v-c0f06c0a]{font-size:%?26?%}.good-detail .content .goodinfo[data-v-c0f06c0a]{height:%?134?%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.good-detail .content .goodinfo .name[data-v-c0f06c0a]{font-size:%?32?%;margin-top:%?30?%}.good-detail .content .goodinfo .price-storage[data-v-c0f06c0a]{margin-top:%?12?%}.good-detail .content .goodinfo .price-storage .price[data-v-c0f06c0a]{color:#f76454}.good-detail .content .goodinfo .price-storage .storage[data-v-c0f06c0a]{margin-left:%?30?%;color:#999}.good-detail .content .choose-size .size-right[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin-left:%?30?%;height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.good-detail .content .choose-size .size-right .size[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.good-detail .content .choose-size .size-right .size uni-view[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;position:relative;width:%?68?%;height:%?44?%;font-size:%?26?%;margin-right:%?18?%;border-radius:%?4?%;border:%?2?% solid #333}.good-detail .content .choose-size .size-right .size uni-view .num[data-v-c0f06c0a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:%?-10?%;width:%?30?%;height:%?30?%;right:%?-10?%;color:#fff;font-size:%?18?%;position:absolute;border-radius:50%;background:#f76454}.good-detail .content .choose-money uni-text[data-v-c0f06c0a]:nth-child(2), .good-detail .content .freight uni-text[data-v-c0f06c0a]:nth-child(2){color:#f76454}.good-detail flyto-cart uni-text[data-v-c0f06c0a]{font-size:%?18?%}',""])},3655:function(t,e,i){"use strict";var o=i("288e");Object.defineProperty(e,"__esModule",{value:!0}),e._API_GoodDetail=e._API_GoodList=void 0;var n=o(i("23aa")),a=function(t){return n.default.get("/goods/list",t)};e._API_GoodList=a;var r=function(t){return n.default.get("/goods/detail",t)};e._API_GoodDetail=r},"3a85":function(t,e,i){"use strict";var o,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"good-detail"},[i("custom-nav",{ref:"ltm",attrs:{noback:"noback",transparent:"transparent",title:" "}}),i("v-uni-view",{staticClass:"shopcar-buy"},[i("v-uni-navigator",{staticClass:"shopcar",attrs:{url:"../shop-car/shop-car",id:"shopcar"}},[i("v-uni-text",{staticClass:"cuIcon-cart"}),i("v-uni-text",[t._v("购物车")]),t.shopcarNum?i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.shopcarNum))]):t._e()],1),i("v-uni-view",{staticClass:"addshopcar",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addToshopCar.apply(void 0,arguments)}}},[t._v("加入购物车")]),i("v-uni-view",{staticClass:"buy",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buy.apply(void 0,arguments)}}},[t._v("立即购买")])],1),i("v-uni-view",{staticClass:"content"},[i("v-uni-swiper",{attrs:{"indicator-dots":!0,circular:!0,autoplay:!0,interval:3456,duration:234,"indicator-color":"#FFFFFF","indicator-active-color":"#F76454"}},t._l(t.goodInfo.imgList,function(t,e){return i("v-uni-swiper-item",{key:e},[i("v-uni-image",{attrs:{src:t}})],1)}),1),i("v-uni-view",{staticClass:"goodinfo app-item"},[i("v-uni-view",{staticClass:"name"},[t._v("商品名称:"+t._s(t.goodInfo.name||""))]),i("v-uni-view",{staticClass:"price-storage"},[i("v-uni-text",{staticClass:"price"},[t._v("进货价:¥"+t._s(t.goodInfo.price||""))]),i("v-uni-text",{staticClass:"storage"},[t._v("我的库存:"+t._s(t.goodInfo.storage||"")+" 套")])],1)],1),i("v-uni-navigator",{staticClass:"choose-size app-item",attrs:{url:"../choose-size/choose-size?typeList="+JSON.stringify(t.goodInfo.typeList)}},[i("v-uni-text",[t._v("选择尺码")]),i("v-uni-view",{staticClass:"size-right"},[i("v-uni-view",{staticClass:"size"},[t.s?i("v-uni-view",[i("v-uni-text",[t._v("S")]),t.flying?t._e():i("v-uni-text",{staticClass:"num",attrs:{id:"s"}},[t._v(t._s(t.s))])],1):t._e(),t.m?i("v-uni-view",[i("v-uni-text",[t._v("M")]),t.flying?t._e():i("v-uni-text",{staticClass:"num",attrs:{id:"m"}},[t._v(t._s(t.m))])],1):t._e(),t.l?i("v-uni-view",[i("v-uni-text",[t._v("L")]),t.flying?t._e():i("v-uni-text",{staticClass:"num",attrs:{id:"l"}},[t._v(t._s(t.l))])],1):t._e(),t.xl?i("v-uni-view",[i("v-uni-text",[t._v("XL")]),t.flying?t._e():i("v-uni-text",{staticClass:"num",attrs:{id:"xl"}},[t._v(t._s(t.xl))])],1):t._e(),t.xxl?i("v-uni-view",[i("v-uni-text",[t._v("XXL")]),t.flying?t._e():i("v-uni-text",{staticClass:"num",attrs:{id:"xxl"}},[t._v(t._s(t.xxl))])],1):t._e(),t.xxxl?i("v-uni-view",[i("v-uni-text",[t._v("XXXL")]),t.flying?t._e():i("v-uni-text",{staticClass:"num",attrs:{id:"xxxl"}},[t._v(t._s(t.xxxl))])],1):t._e()],1),i("v-uni-text",{staticClass:"cuIcon-right"})],1)],1),i("v-uni-view",{staticClass:"choose-num app-item item-space"},[i("v-uni-text",[t._v("已选数量")]),i("v-uni-text",[t._v(t._s(t.choosedNum+" ")+"套")])],1),i("v-uni-view",{staticClass:"choose-money app-item"},[i("v-uni-text",[t._v("总计金额")]),i("v-uni-text",[t._v("¥"+t._s(" "+t.choosedPrice+" .00")+"元")])],1)],1),t.s?i("flyto-cart",{ref:"flytoCart1",attrs:{self:t.positions.s,cart:t.positions.shopcar}},[i("v-uni-text",[t._v(t._s(t.s))])],1):t._e(),t.m?i("flyto-cart",{ref:"flytoCart2",attrs:{self:t.positions.m,cart:t.positions.shopcar}},[i("v-uni-text",[t._v(t._s(t.m))])],1):t._e(),t.l?i("flyto-cart",{ref:"flytoCart3",attrs:{self:t.positions.l,cart:t.positions.shopcar}},[i("v-uni-text",[t._v(t._s(t.l))])],1):t._e(),t.xl?i("flyto-cart",{ref:"flytoCart4",attrs:{self:t.positions.xl,cart:t.positions.shopcar}},[i("v-uni-text",[t._v(t._s(t.xl))])],1):t._e(),t.xxl?i("flyto-cart",{ref:"flytoCart5",attrs:{self:t.positions.xxl,cart:t.positions.shopcar}},[i("v-uni-text",[t._v(t._s(t.xxl))])],1):t._e(),t.xxxl?i("flyto-cart",{ref:"flytoCart6",attrs:{self:t.positions.xxxl,cart:t.positions.shopcar}},[i("v-uni-text",[t._v(t._s(t.xxxl))])],1):t._e()],1)},a=[];i.d(e,"b",function(){return n}),i.d(e,"c",function(){return a}),i.d(e,"a",function(){return o})},"436a":function(t,e,i){"use strict";var o=i("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("cebc")),a=o(i("f499")),r=i("3655"),c=i("f8c5"),s=o(i("fb37")),l={components:{flytoCart:s.default},data:function(){return{title:"商品详情",flying:!1,goodInfo:{},positions:{s:{},m:{},l:{},xl:{},xxl:{},xxxl:{},shopcar:{}}}},computed:{s:function(){return this.$store.getters["choosed/S"]},m:function(){return this.$store.getters["choosed/M"]},l:function(){return this.$store.getters["choosed/L"]},xl:function(){return this.$store.getters["choosed/XL"]},xxl:function(){return this.$store.getters["choosed/XXL"]},xxxl:function(){return this.$store.getters["choosed/XXXL"]},choosedList:function(){return this.$store.state.choosed.list},choosedNum:function(){return this.$store.getters["choosed/total"]},choosedPrice:function(){return this.choosedNum*(this.goodInfo.price||0)},shopcarNum:function(){return this.$store.getters["shopcar/shopcarNum"]}},created:function(){this.$store.commit("choosed/CLEAR")},onShow:function(){var t=this;this.$nextTick(function(){t.getSizePositons()})},onLoad:function(t){var e=this;(0,r._API_GoodDetail)({id:t.id}).then(function(i){e.goodInfo=i.data,e.goodInfo.storage=t.storage})},methods:{buy:function(){if(this.choosedNum){var t=(0,c.deepClone)(this.choosedList);(0,c.clearTypeListZeros)(t),uni.navigateTo({url:"../confirm-order/confirm-order?from=gooddetail&order=".concat((0,a.default)([(0,n.default)({},this.goodInfo,{typeList:t})]))})}else uni.toast("您还没有选择尺寸")},addToshopCar:function(t){var e=this;this.choosedNum?this.flying||(this.$refs.flytoCart1&&this.$refs.flytoCart1.fly(),this.$refs.flytoCart2&&this.$refs.flytoCart2.fly(),this.$refs.flytoCart3&&this.$refs.flytoCart3.fly(),this.$refs.flytoCart4&&this.$refs.flytoCart4.fly(),this.$refs.flytoCart5&&this.$refs.flytoCart5.fly(),this.$refs.flytoCart6&&this.$refs.flytoCart6.fly(),this.goodInfo.choosed=!0,(0,c.clearTypeListZeros)(this.choosedList),this.$store.commit("shopcar/ADD",(0,n.default)({},this.goodInfo,{typeList:(0,c.deepClone)(this.choosedList)})),this.flying=!0,setTimeout(function(){e.flying=!1,e.$store.commit("choosed/CLEAR")},678)):uni.toast("您还没有选择尺寸")},getSizePositons:function(){var t=this;this.$offset("#s").then(function(e){return t.positions.s=e}),this.$offset("#m").then(function(e){return t.positions.m=e}),this.$offset("#l").then(function(e){return t.positions.l=e}),this.$offset("#xl").then(function(e){return t.positions.xl=e}),this.$offset("#xxl").then(function(e){return t.positions.xxl=e}),this.$offset("#xxxl").then(function(e){return t.positions.xxxl=e}),this.$offset("#shopcar").then(function(e){return t.positions.shopcar=e})}},onBackPress:function(t){return!(!this.choosedNum||"backbutton"!==t.from)&&(this.$refs.ltm.modal("提示",["离开页面将不会保存您选择的尺寸"]).then(function(){uni.navigateBack()}),!0)}};e.default=l},"48b7":function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-2d360c00]{margin-top:%?10?%}.app-item uni-input[data-v-2d360c00], .app-item uni-picker[data-v-2d360c00], .app-item uni-textarea[data-v-2d360c00]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-2d360c00]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-2d360c00]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-2d360c00]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-2d360c00]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-2d360c00]{color:#fff;background:#f76454}.small-btn[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-2d360c00]{color:#999;border-color:#999}.login-btn[data-v-2d360c00]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-2d360c00]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-2d360c00]{margin-right:%?20?%}.border-right[data-v-2d360c00]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?20?%;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-2d360c00]{margin-right:%?6?%}.position-center[data-v-2d360c00]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-2d360c00]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-2d360c00]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-2d360c00]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-2d360c00]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-2d360c00]{color:#f76454}.swiper-nav[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-2d360c00]{color:#f76454}.swiper-nav .moveBar[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-2d360c00]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-2d360c00]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-2d360c00]{width:100%;height:100%}.article-header[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-2d360c00]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-2d360c00]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-2d360c00]{color:#f76454}.article-footer[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-2d360c00]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-2d360c00]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-2d360c00]{color:#f76454}\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.fly-to-cart[data-v-2d360c00]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;z-index:150;color:#fff;position:fixed;overflow:hidden;border-radius:50%;background:#f76454}',""])},"4fb1":function(t,e,i){"use strict";i.r(e);var o=i("436a"),n=i.n(o);for(var a in o)"default"!==a&&function(t){i.d(e,t,function(){return o[t]})}(a);e["default"]=n.a},5379:function(t,e,i){"use strict";var o=i("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("9081")),a={props:{self:Object,cart:Object},data:function(){return{count:0,hide:!0,finger:{},busPos:{},top:this.self.y-this.self.height/2,left:this.self.x-this.self.width/2}},methods:{fly:function(){var t={x:this.self.x,y:this.self.y},e={x:Math.abs(this.self.x-this.cart.x)/2,y:this.self.y-175},i={x:this.cart.x,y:this.cart.y};this.linePos=(0,n.default)([i,e,t],30),this.hide=!1,this.startAnimation()},startAnimation:function(){var t=this,e=this.linePos.length;this.timer=setInterval(function(){e--,t.linePos[e]&&(t.top=t.linePos[e].y),t.linePos[e]&&(t.left=t.linePos[e].x),e<1&&(clearInterval(t.timer),t.hide=!0)},20)}}};e.default=a},"8c08":function(t,e,i){var o=i("48b7");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("4f06").default;n("082bfaac",o,!0,{sourceMap:!1,shadowMode:!1})},9081:function(t,e,i){"use strict";function o(t,e){for(var i,o,n,a=[],r=0;r<=e;r++){n=t.slice(0),o=[];while(i=n.shift())if(n.length)o.push(c([i,n[0]],r/e));else{if(!(o.length>1))break;n=o,o=[]}a.push(o[0])}function c(t,e){var i,o,n,a,r,c,s,l,f=[];return i=t[0],o=t[1],a=o.x-i.x,r=o.y-i.y,n=Math.pow(Math.pow(a,2)+Math.pow(r,2),.5),c=r/a,s=Math.atan(c),l=n*e,f={x:i.x+l*Math.cos(s),y:i.y+l*Math.sin(s)},f}return a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o},"9f28":function(t,e,i){"use strict";var o=i("8c08"),n=i.n(o);n.a},c218:function(t,e,i){"use strict";i.r(e);var o=i("5379"),n=i.n(o);for(var a in o)"default"!==a&&function(t){i.d(e,t,function(){return o[t]})}(a);e["default"]=n.a},d4d5:function(t,e,i){"use strict";var o,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.hide?t._e():i("v-uni-view",{staticClass:"fly-to-cart",style:{width:t.self.width+"px",height:t.self.height+"px",top:t.top+"px",left:t.left+"px"}},[t._t("default")],2)},a=[];i.d(e,"b",function(){return n}),i.d(e,"c",function(){return a}),i.d(e,"a",function(){return o})},f6b9:function(t,e,i){"use strict";i.r(e);var o=i("3a85"),n=i("4fb1");for(var a in n)"default"!==a&&function(t){i.d(e,t,function(){return n[t]})}(a);i("0429");var r,c=i("f0c5"),s=Object(c["a"])(n["default"],o["b"],o["c"],!1,null,"c0f06c0a",null,!1,o["a"],r);e["default"]=s.exports},f7e9:function(t,e,i){var o=i("2ca33");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("4f06").default;n("3551ef30",o,!0,{sourceMap:!1,shadowMode:!1})},fb37:function(t,e,i){"use strict";i.r(e);var o=i("d4d5"),n=i("c218");for(var a in n)"default"!==a&&function(t){i.d(e,t,function(){return n[t]})}(a);i("9f28");var r,c=i("f0c5"),s=Object(c["a"])(n["default"],o["b"],o["c"],!1,null,"2d360c00",null,!1,o["a"],r);e["default"]=s.exports}}]);