diff --git a/addons/unishop/uniapp/uni-shop/pages/product/product.vue b/addons/unishop/uniapp/uni-shop/pages/product/product.vue index 6a27ad0..2700b22 100644 --- a/addons/unishop/uniapp/uni-shop/pages/product/product.vue +++ b/addons/unishop/uniapp/uni-shop/pages/product/product.vue @@ -149,10 +149,14 @@ - + + + + + diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html index 149e353..129707a 100644 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html @@ -1,3 +1,3 @@ 宜家自购商城
\ No newline at end of file + })
\ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.1dccb34e.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.9d549a3c.js similarity index 99% rename from addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.1dccb34e.js rename to addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.9d549a3c.js index f5e872d..df08b27 100644 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.1dccb34e.js +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.9d549a3c.js @@ -1 +1 @@ -(function(e){function n(n){for(var r,i,s=n[0],u=n[1],c=n[2],g=0,p=[];g1&&void 0!==arguments[1]?arguments[1]:3e3,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";!1!==Boolean(e)&&(uni.showToast({title:e,duration:n,mask:o,icon:r}),setTimeout((function(){uni.hideToast()}),n))},g=function(){var e=getCurrentPages(),n=e[e.length-2];return n},d=function(){return new Promise((function(e){if(0==i.default.prototype.$store.state.hasLogin){var n="/pages/public/login";uni.navigateTo({url:n})}else e(!0)}))},p=function e(n,o){o=o||{};for(var r in n)"object"===typeof n[r]?(o[r]=n[r].constructor===Array?[]:{},e(n[r],o[r])):o[r]=n[r];return o},l=function(){var n=(0,a.default)(regeneratorRuntime.mark((function n(o){var r,a,s,u,g,d,p,l,f=arguments;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=f.length>1&&void 0!==f[1]?f[1]:"GET",a=f.length>2&&void 0!==f[2]?f[2]:{},s=!(f.length>3&&void 0!==f[3])||f[3],u={"content-type":"application/x-www-form-urlencoded",lang:i.default.prototype.$store.state.lang,platform:i.default.prototype.$platform},i.default.prototype.$store.state.userInfo.token&&(u.token=i.default.prototype.$store.state.userInfo.token),i.default.prototype.$store.state.cookie&&(u.cookie=i.default.prototype.$store.state.cookie),n.next=8,uni.request({url:i.default.prototype.$unishow+o,method:r,header:u,data:a,timeout:5e3});case 8:return g=n.sent,d=(0,t.default)(g,2),p=d[0],l=d[1],"/pay/submit"==o&&e("log",l," at main.js:139"),n.abrupt("return",new Promise((function(e){if(p&&(s&&c(JSON.stringify(l)),e(!1)),l){if(l.header.hasOwnProperty("Set-Cookie")){var n=l.header["Set-Cookie"].replace("; path=/","");i.default.prototype.$store.commit("setCookie",n)}l.hasOwnProperty("data")?(l.data.hasOwnProperty("code")&&401==l.data.code&&i.default.prototype.$store.commit("logout"),l.data.hasOwnProperty("code")&&1==l.data.code?(l.data.msg?s&&c(l.data.msg):uni.hideToast(),e(l.data.data)):(l.data.hasOwnProperty("msg")?s&&c(l.data.msg):s&&c("返回参数错误"),e(!1))):(s&&c("不能识别数据"),e(!1))}})));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),f=function(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e("log",1111111111,n," at main.js:184"),o&&!i.default.prototype.$store.state.hasLogin&&(n="/pages/public/login"),uni.navigateTo({url:n})};i.default.config.productionTip=!1,i.default.prototype.$fire=new i.default,i.default.prototype.$store=s.default,i.default.prototype.$api={msg:c,prePage:g,checkLogin:d,request:l,deepCopy:p,navTo:f},u.default.mpType="app";var y=new i.default((0,r.default)({},u.default));y.$mount()}).call(this,o("0de9")["log"])},"743d":function(e,n,o){"use strict";o.r(n);var r=o("1ba8"),t=o("0d01");for(var a in t)"default"!==a&&function(e){o.d(n,e,(function(){return t[e]}))}(a);o("032c");var i,s=o("f0c5"),u=Object(s["a"])(t["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);n["default"]=u.exports},a792:function(e,n,o){"use strict";var r=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(o("e143")),a=r(o("2f62"));t.default.use(a.default);var i=new a.default.Store({state:{hasLogin:!1,userInfo:{token:""},lang:"zh-cn",cookie:""},mutations:{login:function(e,n){e.hasLogin=!0,e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorage({key:"userInfo"})},setUserInfo:function(e,n){e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},setCookie:function(e,n){e.cookie=n,uni.setStorage({key:"cookieKey",data:n})}},actions:{}}),s=i;n.default=s},ee81:function(e,n,o){var r=o("3375");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var t=o("4f06").default;t("2c69b8aa",r,!0,{sourceMap:!1,shadowMode:!1})}}); \ No newline at end of file +(function(e){function n(n){for(var r,i,s=n[0],u=n[1],c=n[2],g=0,p=[];g1&&void 0!==arguments[1]?arguments[1]:3e3,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";!1!==Boolean(e)&&(uni.showToast({title:e,duration:n,mask:o,icon:r}),setTimeout((function(){uni.hideToast()}),n))},g=function(){var e=getCurrentPages(),n=e[e.length-2];return n},d=function(){return new Promise((function(e){if(0==i.default.prototype.$store.state.hasLogin){var n="/pages/public/login";uni.navigateTo({url:n})}else e(!0)}))},p=function e(n,o){o=o||{};for(var r in n)"object"===typeof n[r]?(o[r]=n[r].constructor===Array?[]:{},e(n[r],o[r])):o[r]=n[r];return o},l=function(){var n=(0,a.default)(regeneratorRuntime.mark((function n(o){var r,a,s,u,g,d,p,l,f=arguments;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=f.length>1&&void 0!==f[1]?f[1]:"GET",a=f.length>2&&void 0!==f[2]?f[2]:{},s=!(f.length>3&&void 0!==f[3])||f[3],u={"content-type":"application/x-www-form-urlencoded",lang:i.default.prototype.$store.state.lang,platform:i.default.prototype.$platform},i.default.prototype.$store.state.userInfo.token&&(u.token=i.default.prototype.$store.state.userInfo.token),i.default.prototype.$store.state.cookie&&(u.cookie=i.default.prototype.$store.state.cookie),n.next=8,uni.request({url:i.default.prototype.$unishow+o,method:r,header:u,data:a,timeout:5e3});case 8:return g=n.sent,d=(0,t.default)(g,2),p=d[0],l=d[1],"/pay/submit"==o&&e("log",l," at main.js:139"),n.abrupt("return",new Promise((function(e){if(p&&(s&&c(JSON.stringify(l)),e(!1)),l){if(l.header.hasOwnProperty("Set-Cookie")){var n=l.header["Set-Cookie"].replace("; path=/","");i.default.prototype.$store.commit("setCookie",n)}l.hasOwnProperty("data")?(l.data.hasOwnProperty("code")&&401==l.data.code&&i.default.prototype.$store.commit("logout"),l.data.hasOwnProperty("code")&&1==l.data.code?(l.data.msg?s&&c(l.data.msg):uni.hideToast(),e(l.data.data)):(l.data.hasOwnProperty("msg")?s&&c(l.data.msg):s&&c("返回参数错误"),e(!1))):(s&&c("不能识别数据"),e(!1))}})));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),f=function(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e("log",1111111111,n," at main.js:184"),o&&!i.default.prototype.$store.state.hasLogin&&(n="/pages/public/login"),uni.navigateTo({url:n})};i.default.config.productionTip=!1,i.default.prototype.$fire=new i.default,i.default.prototype.$store=s.default,i.default.prototype.$api={msg:c,prePage:g,checkLogin:d,request:l,deepCopy:p,navTo:f},u.default.mpType="app";var y=new i.default((0,r.default)({},u.default));y.$mount()}).call(this,o("0de9")["log"])},"743d":function(e,n,o){"use strict";o.r(n);var r=o("1ba8"),t=o("0d01");for(var a in t)"default"!==a&&function(e){o.d(n,e,(function(){return t[e]}))}(a);o("032c");var i,s=o("f0c5"),u=Object(s["a"])(t["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);n["default"]=u.exports},a792:function(e,n,o){"use strict";var r=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(o("e143")),a=r(o("2f62"));t.default.use(a.default);var i=new a.default.Store({state:{hasLogin:!1,userInfo:{token:""},lang:"zh-cn",cookie:""},mutations:{login:function(e,n){e.hasLogin=!0,e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorage({key:"userInfo"})},setUserInfo:function(e,n){e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},setCookie:function(e,n){e.cookie=n,uni.setStorage({key:"cookieKey",data:n})}},actions:{}}),s=i;n.default=s},ee81:function(e,n,o){var r=o("3375");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var t=o("4f06").default;t("2c69b8aa",r,!0,{sourceMap:!1,shadowMode:!1})}}); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.1405dc7c.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.1405dc7c.js deleted file mode 100644 index 4458270..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.1405dc7c.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-product"],{"0ba1":function(t,e,i){var a=i("1fc1");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("70a3764c",a,!0,{sourceMap:!1,shadowMode:!1})},"0dc6":function(t,e,i){var a=i("b3f9");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("2002502c",a,!0,{sourceMap:!1,shadowMode:!1})},"10b5":function(t,e,i){"use strict";i.r(e);var a=i("a6be"),n=i("7b68");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("4844");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"e73e11fa",null,!1,a["a"],s);e["default"]=c.exports},"1bea":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.mask[data-v-f0809dbe]{position:fixed;left:0;top:0;right:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;z-index:998;-webkit-transition:.3s;transition:.3s}.mask .bottom[data-v-f0809dbe]{position:absolute;left:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;height:%?90?%;background:#fff;z-index:9;font-size:%?30?%;color:#303133}.mask-content[data-v-f0809dbe]{width:100%;height:%?580?%;-webkit-transition:.3s;transition:.3s;background:#fff}.mask-content.has-bottom[data-v-f0809dbe]{padding-bottom:%?90?%}.mask-content .view-content[data-v-f0809dbe]{height:100%}.share-header[data-v-f0809dbe]{height:%?110?%;font-size:%?30?%;color:font-color-dark;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;padding-top:%?10?%}.share-header[data-v-f0809dbe]:before, .share-header[data-v-f0809dbe]:after{content:"";width:%?240?%;heighg:0;border-top:1px solid #e4e7ed;-webkit-transform:scaleY(.5);transform:scaleY(.5);margin-right:%?30?%}.share-header[data-v-f0809dbe]:after{margin-left:%?30?%;margin-right:0}.share-list[data-v-f0809dbe]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.share-item[data-v-f0809dbe]{min-width:33.33%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?180?%}.share-item uni-image[data-v-f0809dbe]{width:%?80?%;height:%?80?%;margin-bottom:%?16?%}.share-item uni-text[data-v-f0809dbe]{font-size:%?28?%;color:#606266}',""]),t.exports=e},"1fc1":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-5d740989]{background:#f8f8f8;padding-bottom:%?160?%}.icon-you[data-v-5d740989]{font-size:%?30?%;color:#888}.carousel[data-v-5d740989]{height:%?722?%;position:relative}.carousel uni-swiper[data-v-5d740989]{height:100%}.carousel .image-wrapper[data-v-5d740989]{width:100%;height:100%}.carousel .swiper-item[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-align-content:center;align-content:center;height:%?750?%;overflow:hidden}.carousel .swiper-item uni-image[data-v-5d740989]{width:100%;height:100%}\n/* 标题简介 */.introduce-section[data-v-5d740989]{background:#fff;padding:%?20?% %?30?%}.introduce-section .title[data-v-5d740989]{font-size:%?32?%;color:#303133;height:%?50?%;line-height:%?50?%}.introduce-section .price-box[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;height:%?64?%;padding:%?10?% 0;font-size:%?26?%;color:#fa436a}.introduce-section .price[data-v-5d740989]{font-size:%?34?%}.introduce-section .m-price[data-v-5d740989]{margin:0 %?12?%;color:#909399;text-decoration:line-through}.introduce-section .coupon-tip[data-v-5d740989]{-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?4?% %?10?%;background:#fa436a;font-size:%?24?%;color:#fff;-webkit-border-radius:%?6?%;border-radius:%?6?%;line-height:1;-webkit-transform:translateY(%?-4?%);transform:translateY(%?-4?%)}.introduce-section .bot-row[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?50?%;font-size:%?24?%;color:#909399}.introduce-section .bot-row uni-text[data-v-5d740989]{-webkit-box-flex:1;-webkit-flex:1;flex:1}\n/* 分享 */.share-section[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#606266;background:-webkit-gradient(linear,left top,right top,from(#fdf5f6),to(#fbebf6));background:-webkit-linear-gradient(left,#fdf5f6,#fbebf6);background:linear-gradient(left,#fdf5f6,#fbebf6);padding:%?12?% %?30?%}.share-section .share-icon[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?70?%;height:%?30?%;line-height:1;border:1px solid #fa436a;-webkit-border-radius:%?4?%;border-radius:%?4?%;position:relative;overflow:hidden;font-size:%?22?%;color:#fa436a}.share-section .share-icon[data-v-5d740989]:after{content:"";width:%?50?%;height:%?50?%;-webkit-border-radius:50%;border-radius:50%;left:%?-20?%;top:%?-12?%;position:absolute;background:#fa436a}.share-section .icon-xingxing[data-v-5d740989]{position:relative;z-index:1;font-size:%?24?%;margin-left:%?2?%;margin-right:%?10?%;color:#fff;line-height:1}.share-section .tit[data-v-5d740989]{font-size:%?28?%;margin-left:%?10?%}.share-section .icon-bangzhu1[data-v-5d740989]{padding:%?10?%;font-size:%?30?%;line-height:1}.share-section .share-btn[data-v-5d740989]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right;font-size:%?24?%;color:#fa436a}.share-section .icon-you[data-v-5d740989]{font-size:%?24?%;margin-left:%?4?%;color:#fa436a}.c-list[data-v-5d740989]{font-size:%?26?%;color:#606266;background:#fff}.c-list .c-row[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?20?% %?30?%;position:relative}.c-list .tit[data-v-5d740989]{width:%?140?%}.c-list .con[data-v-5d740989]{-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#303133}.c-list .con .selected-text[data-v-5d740989]{margin-right:%?10?%}.c-list .bz-list[data-v-5d740989]{height:%?40?%;font-size:%?26?%;color:#303133}.c-list .bz-list uni-text[data-v-5d740989]{display:inline-block;margin-right:%?30?%}.c-list .con-list[data-v-5d740989]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#303133;line-height:%?40?%}.c-list .red[data-v-5d740989]{color:#fa436a}\n/* 评价 */.eva-section[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:%?20?% %?30?%;background:#fff;margin-top:%?16?%}.eva-section .e-header[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?70?%;font-size:%?26?%;color:#909399}.eva-section .e-header .tit[data-v-5d740989]{font-size:%?30?%;color:#303133;margin-right:%?4?%}.eva-section .e-header .tip[data-v-5d740989]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right}.eva-section .e-header .icon-you[data-v-5d740989]{margin-left:%?10?%}.eva-box[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0}.eva-box .portrait[data-v-5d740989]{-webkit-flex-shrink:0;flex-shrink:0;width:%?80?%;height:%?80?%;-webkit-border-radius:100px;border-radius:100px}.eva-box .right[data-v-5d740989]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?28?%;color:#606266;padding-left:%?26?%}.eva-box .right .con[data-v-5d740989]{font-size:%?28?%;color:#303133;padding:%?20?% 0}.eva-box .right .bot[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;font-size:%?24?%;color:#909399}\n/* 详情 */.detail-desc[data-v-5d740989]{background:#fff;margin-top:%?16?%}.detail-desc .d-header[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;font-size:%?30?%;color:#303133;position:relative}.detail-desc .d-header uni-text[data-v-5d740989]{padding:0 %?20?%;background:#fff;position:relative;z-index:1}.detail-desc .d-header[data-v-5d740989]:after{position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:%?300?%;height:0;content:"";border-bottom:1px solid #ccc}\n/* 规格选择弹窗 */.attr-content[data-v-5d740989]{padding:%?10?% %?30?%}.attr-content .a-t[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex}.attr-content .a-t uni-image[data-v-5d740989]{width:%?170?%;height:%?170?%;-webkit-flex-shrink:0;flex-shrink:0;margin-top:%?-40?%;-webkit-border-radius:%?8?%;border-radius:%?8?%}.attr-content .a-t .right[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding-left:%?24?%;font-size:%?26?%;color:#606266;line-height:%?42?%}.attr-content .a-t .right .price[data-v-5d740989]{font-size:%?32?%;color:#fa436a;margin-bottom:%?10?%}.attr-content .a-t .right .selected-text[data-v-5d740989]{margin-right:%?10?%}.attr-content .attr-list[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?30?%;color:#606266;padding-top:%?30?%;padding-left:%?10?%}.attr-content .item-list[data-v-5d740989]{padding:%?20?% 0 0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.attr-content .item-list uni-text[data-v-5d740989]{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;background:#eee;margin-right:%?20?%;margin-bottom:%?20?%;-webkit-border-radius:%?100?%;border-radius:%?100?%;min-width:%?60?%;height:%?60?%;padding:0 %?20?%;font-size:%?28?%;color:#303133}.attr-content .item-list .selected[data-v-5d740989]{background:#fbebee;color:#fa436a}\n/* 弹出层 */.popup[data-v-5d740989]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99}.popup.show[data-v-5d740989]{display:block}.popup.show .mask[data-v-5d740989]{-webkit-animation:showPopup-data-v-5d740989 .2s linear both;animation:showPopup-data-v-5d740989 .2s linear both}.popup.show .layer[data-v-5d740989]{-webkit-animation:showLayer-data-v-5d740989 .2s linear both;animation:showLayer-data-v-5d740989 .2s linear both}.popup.hide .mask[data-v-5d740989]{-webkit-animation:hidePopup-data-v-5d740989 .2s linear both;animation:hidePopup-data-v-5d740989 .2s linear both}.popup.hide .layer[data-v-5d740989]{-webkit-animation:hideLayer-data-v-5d740989 .2s linear both;animation:hideLayer-data-v-5d740989 .2s linear both}.popup.none[data-v-5d740989]{display:none}.popup .mask[data-v-5d740989]{position:fixed;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,.4)}.popup .layer[data-v-5d740989]{position:fixed;z-index:99;bottom:0;width:100%;min-height:40vh;-webkit-border-radius:%?10?% %?10?% 0 0;border-radius:%?10?% %?10?% 0 0;background-color:#fff}.popup .layer .btn[data-v-5d740989]{height:%?66?%;line-height:%?66?%;-webkit-border-radius:%?100?%;border-radius:%?100?%;background:#fa436a;font-size:%?30?%;color:#fff;margin:%?30?% auto %?20?%}@-webkit-keyframes showPopup-data-v-5d740989{0%{opacity:0}100%{opacity:1}}@keyframes showPopup-data-v-5d740989{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes hidePopup-data-v-5d740989{0%{opacity:1}100%{opacity:0}}@keyframes hidePopup-data-v-5d740989{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes showLayer-data-v-5d740989{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes showLayer-data-v-5d740989{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes hideLayer-data-v-5d740989{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}@keyframes hideLayer-data-v-5d740989{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}\n/* 底部操作菜单 */.page-bottom[data-v-5d740989]{position:fixed;left:%?30?%;bottom:%?30?%;z-index:95;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?690?%;height:%?100?%;background:hsla(0,0%,100%,.9);-webkit-box-shadow:0 0 %?20?% 0 rgba(0,0,0,.5);box-shadow:0 0 %?20?% 0 rgba(0,0,0,.5);-webkit-border-radius:%?16?%;border-radius:%?16?%}.page-bottom .p-b-btn[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?24?%;color:#606266;width:%?96?%;height:%?80?%;position:relative\n /* 购物车数量 */}.page-bottom .p-b-btn .cart-count[data-v-5d740989]{border:%?4?% solid #fa436a;width:%?40?%;height:%?40?%;color:#fa436a;text-align:center;-webkit-border-radius:%?40?%;border-radius:%?40?%;position:absolute;background:#fff;top:%?-10?%;right:0}.page-bottom .p-b-btn .yticon[data-v-5d740989]{font-size:%?46?%;line-height:%?48?%;color:#909399}.page-bottom .p-b-btn.active[data-v-5d740989],\n.page-bottom .p-b-btn.active .yticon[data-v-5d740989]{color:#fa436a}.page-bottom .action-btn-group[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;height:%?76?%;-webkit-border-radius:100px;border-radius:100px;overflow:hidden;-webkit-box-shadow:0 %?20?% %?40?% %?-16?% #fa436a;box-shadow:0 %?20?% %?40?% %?-16?% #fa436a;-webkit-box-shadow:1px 2px 5px rgba(219,63,96,.4);box-shadow:1px 2px 5px rgba(219,63,96,.4);background:-webkit-gradient(linear,left top,right top,from(#ffac30),color-stop(#fa436a),to(#f56c6c));background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);margin-left:%?20?%;position:relative}.page-bottom .action-btn-group .only[data-v-5d740989]{width:%?360?%!important}.page-bottom .action-btn-group[data-v-5d740989]:after{content:"";position:absolute;top:50%;right:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:%?28?%;width:0;border-right:1px solid hsla(0,0%,100%,.5)}.page-bottom .action-btn-group .action-btn[data-v-5d740989]{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;width:%?180?%;height:100%;font-size:%?28?%;padding:0;-webkit-border-radius:0;border-radius:0;background:transparent}.flash[data-v-5d740989]{height:%?100?%;background:-webkit-gradient(linear,left top,right top,from(#ffac30),color-stop(#fa436a),to(#f56c6c));background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;position:relative}.flash .sales_price[data-v-5d740989]{color:#fff;font-size:%?50?%}.flash .sales_price .symbol[data-v-5d740989]{font-size:%?30?%;display:inline}.flash .left[data-v-5d740989]{font-size:%?28?%;padding:%?10?%}.flash .left .market_price[data-v-5d740989]{color:#dcdfe6;text-decoration:line-through}.flash .left .sold[data-v-5d740989]{color:#e4e7ed}.flash .right[data-v-5d740989]{height:100%;width:%?300?%;position:absolute;right:0;padding:%?4?%;margin-right:%?20?%}.flash .right .time[data-v-5d740989]{font-size:%?30?%;color:#fffa30;text-align:center}.flash .right .time .uni-countdown[data-v-5d740989]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex}.flash .right .progress[data-v-5d740989]{position:absolute;bottom:%?7?%;right:%?10?%}.flash .right .flashDone[data-v-5d740989]{font-size:%?40?%;height:%?90?%;line-height:%?90?%}\n/* 优惠券列表 */.content-coupon[data-v-5d740989]{padding-bottom:%?100?%;max-height:%?800?%;overflow:auto}.retract[data-v-5d740989]{position:fixed;bottom:0;width:%?700?%;z-index:100;margin:%?20?% %?25?%;color:#fff;background:#fa436a}.coupon-item[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#fff}.coupon-item .con[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;height:%?120?%;padding:0 %?30?%}.coupon-item .con[data-v-5d740989]:after{position:absolute;left:0;bottom:0;content:"";width:100%;height:0;border-bottom:1px dashed #f3f3f3;-webkit-transform:scaleY(50%);transform:scaleY(50%)}.coupon-item .left[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;height:%?100?%}.coupon-item .title[data-v-5d740989]{font-size:%?32?%;color:#303133;margin-bottom:%?10?%}.coupon-item .time[data-v-5d740989]{font-size:%?24?%;color:#909399}.coupon-item .right[data-v-5d740989]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?26?%;color:#606266;height:%?100?%}.coupon-item .price[data-v-5d740989]{font-size:%?44?%;color:#fa436a}.coupon-item .price[data-v-5d740989]:before{content:"¥";font-size:%?34?%}.coupon-item .tips[data-v-5d740989]{font-size:%?24?%;color:#909399;line-height:%?60?%;padding-left:%?30?%}.coupon-item .circle[data-v-5d740989]{position:absolute;left:%?-6?%;bottom:%?-10?%;z-index:10;width:%?20?%;height:%?20?%;background:#f3f3f3;-webkit-border-radius:100px;border-radius:100px}.coupon-item .circle.r[data-v-5d740989]{left:auto;right:%?-6?%}body.?%PAGE?%[data-v-5d740989]{background:#f8f8f8}',""]),t.exports=e},"243a":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{transform:"translateY(50vh)",timer:0,backgroundColor:"rgba(0,0,0,0)",show:!1,config:{}}},props:{contentHeight:{type:Number,default:0},hasTabbar:{type:Boolean,default:!1},shareList:{type:Array,default:function(){return[]}}},created:function(){var t=uni.upx2px(this.contentHeight)+"px";this.config={height:t,transform:"translateY(".concat(t,")"),backgroundColor:"rgba(0,0,0,.4)"},this.transform=this.config.transform},methods:{toggleMask:function(){var t=this;if(1!=this.timer){if(this.timer=1,setTimeout((function(){t.timer=0}),500),this.show)return this.transform=this.config.transform,this.backgroundColor="rgba(0,0,0,0)",void setTimeout((function(){t.show=!1,t.hasTabbar&&uni.showTabBar()}),200);this.show=!0,this.hasTabbar?uni.hideTabBar({success:function(){setTimeout((function(){t.backgroundColor=t.config.backgroundColor,t.transform="translateY(0px)"}),10)}}):setTimeout((function(){t.backgroundColor=t.config.backgroundColor,t.transform="translateY(0px)"}),10)}},stopPrevent:function(){},shareToFriend:function(t){this.$api.msg("分享给".concat(t)),this.toggleMask()}}};e.default=a},"36dc":function(t,e,i){"use strict";i.r(e);var a=i("f0f6"),n=i("3d78");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("d496");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"5d740989",null,!1,a["a"],s);e["default"]=c.exports},"3d78":function(t,e,i){"use strict";i.r(e);var a=i("6c67"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},4844:function(t,e,i){"use strict";var a=i("0dc6"),n=i.n(a);n.a},"6c67":function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("4160"),i("a15b"),i("e25e"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("1da1")),o=a(i("b85c")),s=a(i("5530")),r=i("2f62"),c=a(i("d50b")),d=a(i("71d1")),l=a(i("10b5")),u={components:{share:c.default,ProgressBar:d.default,uniCountdown:l.default},computed:(0,s.default)((0,s.default)({},(0,r.mapGetters)(["userInfo","hasLogin"])),{},{specSelectedName:function(){return this.specSelected.join(" ")},specProduct:function(){if(1==this.product.use_spec){var t,e=this.product.market_price,i=this.product.sales_price,a=this.product.stock,n=this.product.image,s=this.specSelected.join(" "),r=(this.specTableList,(0,o.default)(this.specTableList));try{for(r.s();!(t=r.n()).done;){var c=t.value;c.value.join(" ")==s&&(e=c.market_price,i=c.sales_price,a=c.stock,n=c.image)}}catch(d){r.e(d)}finally{r.f()}return{market_price:e,sales_price:i,stock:a,image:n}}return this.product}}),data:function(){return{couponClass:"none",specClass:"none",specSelected:[],favorite:!1,shareList:[],specList:[],specChildList:[],specTableList:[],product:{},flash:!1,id:!1,countdown:{},progress:{sold:1,number:1}}},onPullDownRefresh:function(){this.$refs&&this.$refs.countd&&(this.$refs.countd.syncFlag=!1),this.getDetail(this.id,this.flash?this.flash:0)},onShareAppMessage:function(t){return{title:this.product.title}},onLoad:function(t){this.id=t.id;var e=t.flash?t.flash:0;0!=e&&(this.flash=e),this.getDetail(this.id,e)},methods:{timeup:function(){this.getDetail(this.id,this.flash?this.flash:0)},getDetail:function(t,e){var i=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var n,s,r,c,d,l,u,f,p;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=0==e?"/product/detail":"/flash/productDetail",a.next=3,i.$api.request(n+"?id=".concat(t,"&flash_id=").concat(e),"GET");case 3:if(s=a.sent,uni.stopPullDownRefresh(),s){a.next=8;break}return setTimeout((function(){uni.navigateBack()}),3e3),a.abrupt("return");case 8:if(i.product=s,s.flash&&(i.countdown=s.flash.countdown,i.progress=s.flash),i.favorite=i.product.favorite,i.product.use_spec){for(f in r=i.product.spec_list,c=i.product.spec_table_list,d=1,l=1,u=[],r)for(p in r[f].id=d++,r[f].child)u.push({id:l++,pid:r[f].id,name:r[f].child[p]});i.specList=r,i.specChildList=u,i.specTableList=c,i.specSelected=[],i.specList.forEach((function(t){var e,a=(0,o.default)(i.specChildList);try{for(a.s();!(e=a.n()).done;){var n=e.value;if(n.pid===t.id){i.$set(n,"selected",!0),i.specSelected.push(n.name);break}}}catch(s){a.e(s)}finally{a.f()}}))}case 12:case"end":return a.stop()}}),a)})))()},toggleCoupon:function(){var t=this;"show"===this.couponClass?(this.couponClass="hide",setTimeout((function(){t.couponClass="none"}),250)):"none"===this.couponClass&&(this.couponClass="show")},toggleSpec:function(){var t=this;"show"===this.specClass?(this.specClass="hide",setTimeout((function(){t.specClass="none"}),250)):"none"===this.specClass&&(this.specClass="show")},selectSpec:function(t,e){var i=this,a=this.specChildList;a.forEach((function(t){t.pid===e&&i.$set(t,"selected",!1)})),this.$set(a[t],"selected",!0),this.specSelected=[],a.forEach((function(t){!0===t.selected&&i.specSelected.push(t.name)}))},share:function(){this.$refs.share.toggleMask()},toFavorite:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.flash){e.next=3;break}return t.$api.msg("秒杀商品不能收藏"),e.abrupt("return");case 3:return e.next=5,t.$api.checkLogin();case 5:if(i=e.sent,!i){e.next=12;break}return t.favorite=!t.favorite,e.next=10,t.$api.request("/product/favorite?id="+t.product.product_id);case 10:a=e.sent,a||(t.favorite=!t.favorite);case 12:case"end":return e.stop()}}),e)})))()},buy:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.checkLogin();case 2:i=e.sent,i&&(a="",1==t.product.use_spec&&(a=t.specSelected.join(",")),n="/pages/order/createOrder?id=".concat(t.product.product_id,"&spec=").concat(a),t.flash&&(n+="&flash_id=".concat(t.flash)),uni.navigateTo({url:n}));case 4:case"end":return e.stop()}}),e)})))()},addCart:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.flash){e.next=3;break}return t.$api.msg("秒杀商品不能加入购物车"),e.abrupt("return");case 3:return e.next=5,t.$api.checkLogin();case 5:if(i=e.sent,!i){e.next=13;break}return a="",1==t.product.use_spec&&(a=t.specSelected.join(",")),e.next=11,t.$api.request("/cart/add?id="+t.product.product_id+"&spec="+a);case 11:n=e.sent,n&&t.product.cart_num++;case 13:case"end":return e.stop()}}),e)})))()},stopPrevent:function(){},percentage:function(t,e){return e?parseInt(e/t*100):0},previewImage:function(t){uni.previewImage({current:this.product.images_text[t],urls:this.product.images_text,indicator:"number",loop:!0})}}};e.default=u},"74cd":function(t,e,i){"use strict";var a=i("b475"),n=i.n(a);n.a},"7b68":function(t,e,i){"use strict";i.r(e);var a=i("d1ed"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"9f62":function(t,e,i){"use strict";i.r(e);var a=i("243a"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},a6be:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-countdown"},[t.showDay?i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.d))]):t._e(),t.showDay?i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("天")]):t._e(),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.h))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"时"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.i))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"分"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.s))]),t.showColon?t._e():i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("秒")])],1)},o=[]},b3f9:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.uni-countdown[data-v-e73e11fa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:%?2?% 0}.uni-countdown__splitor[data-v-e73e11fa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;line-height:%?48?%;padding:%?5?%;font-size:%?24?%}.uni-countdown__number[data-v-e73e11fa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?52?%;height:%?48?%;line-height:%?48?%;margin:%?5?%;text-align:center;font-size:%?24?%}',""]),t.exports=e},b475:function(t,e,i){var a=i("1bea");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("6a47c090",a,!0,{sourceMap:!1,shadowMode:!1})},b85c:function(t,e,i){"use strict";i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=n(i("06c5"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(0,a.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,c=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return r=t.done,t},e:function(t){c=!0,s=t},f:function(){try{r||null==i["return"]||i["return"]()}finally{if(c)throw s}}}}},ce81:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("v-uni-view",{staticClass:"mask",style:{backgroundColor:t.backgroundColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMask.apply(void 0,arguments)},touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask-content",style:[{height:t.config.height,transform:t.transform}],on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-scroll-view",{staticClass:"view-content",attrs:{"scroll-y":!0}},[i("v-uni-view",{staticClass:"share-header"},[t._v("分享到")]),i("v-uni-view",{staticClass:"share-list"},t._l(t.shareList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"share-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.shareToFriend(e.text)}}},[i("v-uni-image",{attrs:{src:e.icon,mode:""}}),i("v-uni-text",[t._v(t._s(e.text))])],1)})),1)],1),i("v-uni-view",{staticClass:"bottom b-t",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMask.apply(void 0,arguments)}}},[t._v("取消")])],1)],1):t._e()},o=[]},d1ed:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniCountdown",props:{showDay:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#000000"},color:{type:String,default:"#000000"},splitorColor:{type:String,default:"#000000"},day:{type:Number,default:0},hour:{type:Number,default:0},minute:{type:Number,default:0},second:{type:Number,default:0},borderWidth:{type:String,default:"52rpx"}},data:function(){return{timer:null,syncFlag:!1,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}},watch:{day:function(t){this.changeFlag()},hour:function(t){this.changeFlag()},minute:function(t){this.changeFlag()},second:function(t){this.changeFlag()}},created:function(t){this.startData()},beforeDestroy:function(){clearInterval(this.timer)},methods:{toSeconds:function(t,e,i,a){return 60*t*60*24+60*e*60+60*i+a},timeUp:function(){clearInterval(this.timer),this.timer=0,this.$emit("timeup",this)},countDown:function(){var t=this.seconds,e=0,i=0,a=0,n=0;t>0?(e=Math.floor(t/86400),i=Math.floor(t/3600)-24*e,a=Math.floor(t/60)-24*e*60-60*i,n=Math.floor(t)-24*e*60*60-60*i*60-60*a):this.timeUp(),e<10&&(e="0"+e),i<10&&(i="0"+i),a<10&&(a="0"+a),n<10&&(n="0"+n),this.d=e,this.h=i,this.i=a,this.s=n},startData:function(){var t=this;this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.seconds<=0?this.timeUp():this.timer>0||(this.countDown(),this.timer=setInterval((function(){t.seconds--,t.seconds<0?t.timeUp():t.countDown()}),1e3))},changeFlag:function(){this.syncFlag||(this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.startData(),this.syncFlag=!0)}}};e.default=a},d496:function(t,e,i){"use strict";var a=i("0ba1"),n=i.n(a);n.a},d50b:function(t,e,i){"use strict";i.r(e);var a=i("ce81"),n=i("9f62");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("74cd");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"f0809dbe",null,!1,a["a"],s);e["default"]=c.exports},f0f6:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniCountdown:i("10b5").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"carousel"},[i("v-uni-swiper",{attrs:{"indicator-dots":!0,circular:"true",duration:"400"}},t._l(t.product.images_text,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"swiper-item"},[i("v-uni-view",{staticClass:"image-wrapper"},[i("v-uni-image",{staticClass:"loaded",attrs:{src:e,mode:"aspectFill"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage(a)}}})],1)],1)})),1)],1),t.flash?i("v-uni-view",{staticClass:"flash"},[t.product.market_price?i("v-uni-view",{staticClass:"sales_price"},[i("v-uni-view",{staticClass:"symbol"},[t._v("¥")]),t._v(t._s(t.specProduct.sales_price))],1):t._e(),t.product.market_price?i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{staticClass:"market_price"},[t._v("¥"+t._s(t.specProduct.market_price))]),t.progress.number?i("v-uni-view",{staticClass:"sold"},[t._v("秒"+t._s(t.progress.number)+"件")]):t._e()],1):t._e(),i("v-uni-view",{staticClass:"right"},[t.countdown&&t.progress.number!=t.progress.sold?i("v-uni-view",{staticClass:"time"},[t._v(t._s(t.product.flash.text)),i("uni-countdown",{ref:"countd",attrs:{showDay:t.countdown.day>0,day:t.countdown.day,hour:t.countdown.hour,minute:t.countdown.minute,second:t.countdown.second,color:"#fffa30",borderWidth:"22rpx",splitorColor:"#fffa30","background-color":"#282f2c00","border-color":"#00B26A"},on:{timeup:function(e){arguments[0]=e=t.$handleEvent(e),t.timeup.apply(void 0,arguments)}}})],1):i("v-uni-view",{staticClass:"time",class:{flashDone:0==t.progress.number}},[t._v("抢购已结束")]),t.progress.number?i("v-uni-view",{staticClass:"progress"},[i("ProgressBar",{staticClass:"ProgressBar",attrs:{Sold:t.progress.sold,widthUpx:250,Width:t.percentage(t.progress.number,t.progress.sold),Type:"candy",Vice:!0}})],1):t._e()],1)],1):t._e(),t.product.product_id?i("v-uni-view",{staticClass:"introduce-section"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.product.title))]),0==t.flash?i("v-uni-view",{staticClass:"price-box"},[i("v-uni-text",{staticClass:"price-tip"},[t._v("¥")]),i("v-uni-text",{staticClass:"price"},[t._v(t._s(t.specProduct.sales_price))]),t.specProduct.market_price?i("v-uni-text",{staticClass:"m-price"},[t._v("¥"+t._s(t.specProduct.market_price))]):t._e(),t.specProduct.market_price>0&&t.specProduct.market_price>t.specProduct.sales_price?i("v-uni-text",{staticClass:"coupon-tip"},[t._v(t._s((t.specProduct.sales_price/t.specProduct.market_price*10).toFixed(1))+"折")]):t._e()],1):t._e(),i("v-uni-view",{staticClass:"bot-row"},[i("v-uni-text",[t._v("销量: "+t._s(t.product.sales))]),i("v-uni-text",[t._v("总库存: "+t._s(t.product.stock))]),i("v-uni-text",[t._v("浏览量: "+t._s(t.product.look))])],1)],1):t._e(),i("v-uni-view",{staticClass:"c-list"},[t.product.use_spec?i("v-uni-view",{staticClass:"c-row b-b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("购买类型")]),i("v-uni-view",{staticClass:"con"},[i("v-uni-text",{staticClass:"selected-text"},[t._v(t._s(t.specSelectedName))]),i("v-uni-text",{staticStyle:{"margin-left":"50rpx"}},[t._v("库存:"+t._s(t.specProduct.stock))])],1),i("v-uni-text",{staticClass:"yticon icon-you"})],1):t._e(),t.product.coupon.length?i("v-uni-view",{staticClass:"c-row b-b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("优惠券")]),i("v-uni-text",{staticClass:"con t-r red"},[t._v("查看可用优惠券")]),i("v-uni-text",{staticClass:"yticon icon-you"})],1):t._e(),t.product.server?i("v-uni-view",{staticClass:"c-row b-b"},[i("v-uni-text",{staticClass:"tit"},[t._v("服务")]),i("v-uni-view",{staticClass:"bz-list con"},[t._v(t._s(t.product.server))])],1):t._e()],1),t.product.evaluate_data&&t.product.evaluate_data.count>0?i("v-uni-view",{staticClass:"eva-section"},[i("v-uni-view",{staticClass:"e-header",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/product/evaluate?product_id="+t.product.product_id)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("评价")]),i("v-uni-text",[t._v("("+t._s(t.product.evaluate_data.count)+")")]),i("v-uni-text",{staticClass:"tip"},[t._v("好评率 "+t._s(t.product.evaluate_data.avg)+"%")]),i("v-uni-text",{staticClass:"yticon icon-you"})],1),t._l(t.product.evaluate_list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"eva-box"},[i("v-uni-image",{staticClass:"portrait",attrs:{src:e.avatar,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"name"},[t._v(t._s(e.username))]),i("v-uni-text",{staticClass:"con"},[t._v(t._s(e.comment))]),i("v-uni-view",{staticClass:"bot"},[e.spec?i("v-uni-text",{staticClass:"attr"},[t._v("购买类型:"+t._s(e.spec))]):i("v-uni-text",{staticClass:"attr"}),i("v-uni-text",{staticClass:"time"},[t._v(t._s(e.createtime_text))])],1)],1)],1)}))],2):t._e(),t.product.desc?i("v-uni-view",{staticClass:"detail-desc"},[i("v-uni-view",{staticClass:"d-header"},[i("v-uni-text",[t._v("图文详情")])],1),i("v-uni-rich-text",{attrs:{nodes:t.product.desc}})],1):t._e(),i("v-uni-view",{staticClass:"page-bottom"},[i("v-uni-navigator",{staticClass:"p-b-btn",attrs:{url:"/pages/index/index","open-type":"switchTab"}},[i("v-uni-text",{staticClass:"yticon icon-fangzi"}),i("v-uni-text",[t._v("Home")])],1),t.flash?i("v-uni-view",{staticClass:"p-b-btn"},[i("v-uni-text")],1):i("v-uni-view",{staticClass:"p-b-btn",class:{active:t.favorite},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toFavorite.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"yticon icon-shoucang"}),i("v-uni-text",[t._v("收藏")])],1),i("v-uni-view",{staticClass:"action-btn-group"},[i("v-uni-button",{staticClass:" action-btn no-border buy-now-btn",class:{only:t.flash},attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buy.apply(void 0,arguments)}}},[t._v("Buy Now")])],1)],1),i("v-uni-view",{staticClass:"popup spec",class:t.couponClass,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask"}),i("v-uni-view",{staticClass:"layer attr-content content-coupon",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},t._l(t.product.coupon,(function(e,a){return i("v-uni-view",{key:a,staticClass:"coupon-item"},[i("v-uni-view",{staticClass:"con"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(e.title))]),i("v-uni-text",{staticClass:"time"},[t._v("有效期至"+t._s(e.endtime_text))])],1),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"price"},[t._v(t._s(e.value))]),i("v-uni-text",[t._v("满"+t._s(e.least)+"可用")])],1),i("v-uni-view",{staticClass:"circle l"}),i("v-uni-view",{staticClass:"circle r"})],1),i("v-uni-text",{staticClass:"tips"},[t._v("限一张使用")])],1)})),1),i("v-uni-button",{staticClass:"btn retract",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[t._v("收起")])],1),i("v-uni-view",{staticClass:"popup spec",class:t.specClass,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask"}),i("v-uni-view",{staticClass:"layer attr-content",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"a-t"},[t.specProduct.image?i("v-uni-image",{attrs:{mode:"aspectFill",src:t.specProduct.image}}):t._e(),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.specProduct.sales_price))]),i("v-uni-text",{staticClass:"stock"},[t._v("库存:"+t._s(t.specProduct.stock)+"件")]),i("v-uni-view",{staticClass:"selected"},[t._v("已选:"),i("v-uni-text",{staticClass:"selected-text"},[t._v(t._s(t.specSelectedName))])],1)],1)],1),t._l(t.specList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"attr-list"},[i("v-uni-text",[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"item-list"},t._l(t.specChildList,(function(a,n){return a.pid===e.id?i("v-uni-text",{key:n,staticClass:"tit",class:{selected:a.selected},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectSpec(n,a.pid)}}},[t._v(t._s(a.name))]):t._e()})),1)],1)})),i("v-uni-button",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[t._v("Finish")])],2)],1)],1)},o=[]}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.35958ef0.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.35958ef0.js new file mode 100644 index 0000000..e77c572 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.35958ef0.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-product"],{"0dc6":function(t,e,i){var a=i("b3f9");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("2002502c",a,!0,{sourceMap:!1,shadowMode:!1})},"10b5":function(t,e,i){"use strict";i.r(e);var a=i("a6be"),n=i("7b68");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("4844");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"e73e11fa",null,!1,a["a"],s);e["default"]=c.exports},"17a4":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-777882ae]{background:#f8f8f8;padding-bottom:%?160?%}.icon-you[data-v-777882ae]{font-size:%?30?%;color:#888}.carousel[data-v-777882ae]{height:%?722?%;position:relative}.carousel uni-swiper[data-v-777882ae]{height:100%}.carousel .image-wrapper[data-v-777882ae]{width:100%;height:100%}.carousel .swiper-item[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-align-content:center;align-content:center;height:%?750?%;overflow:hidden}.carousel .swiper-item uni-image[data-v-777882ae]{width:100%;height:100%}\n/* 标题简介 */.introduce-section[data-v-777882ae]{background:#fff;padding:%?20?% %?30?%}.introduce-section .title[data-v-777882ae]{font-size:%?32?%;color:#303133;height:%?50?%;line-height:%?50?%}.introduce-section .price-box[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;height:%?64?%;padding:%?10?% 0;font-size:%?26?%;color:#fa436a}.introduce-section .price[data-v-777882ae]{font-size:%?34?%}.introduce-section .m-price[data-v-777882ae]{margin:0 %?12?%;color:#909399;text-decoration:line-through}.introduce-section .coupon-tip[data-v-777882ae]{-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?4?% %?10?%;background:#fa436a;font-size:%?24?%;color:#fff;-webkit-border-radius:%?6?%;border-radius:%?6?%;line-height:1;-webkit-transform:translateY(%?-4?%);transform:translateY(%?-4?%)}.introduce-section .bot-row[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?50?%;font-size:%?24?%;color:#909399}.introduce-section .bot-row uni-text[data-v-777882ae]{-webkit-box-flex:1;-webkit-flex:1;flex:1}\n/* 分享 */.share-section[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#606266;background:-webkit-gradient(linear,left top,right top,from(#fdf5f6),to(#fbebf6));background:-webkit-linear-gradient(left,#fdf5f6,#fbebf6);background:linear-gradient(left,#fdf5f6,#fbebf6);padding:%?12?% %?30?%}.share-section .share-icon[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?70?%;height:%?30?%;line-height:1;border:1px solid #fa436a;-webkit-border-radius:%?4?%;border-radius:%?4?%;position:relative;overflow:hidden;font-size:%?22?%;color:#fa436a}.share-section .share-icon[data-v-777882ae]:after{content:"";width:%?50?%;height:%?50?%;-webkit-border-radius:50%;border-radius:50%;left:%?-20?%;top:%?-12?%;position:absolute;background:#fa436a}.share-section .icon-xingxing[data-v-777882ae]{position:relative;z-index:1;font-size:%?24?%;margin-left:%?2?%;margin-right:%?10?%;color:#fff;line-height:1}.share-section .tit[data-v-777882ae]{font-size:%?28?%;margin-left:%?10?%}.share-section .icon-bangzhu1[data-v-777882ae]{padding:%?10?%;font-size:%?30?%;line-height:1}.share-section .share-btn[data-v-777882ae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right;font-size:%?24?%;color:#fa436a}.share-section .icon-you[data-v-777882ae]{font-size:%?24?%;margin-left:%?4?%;color:#fa436a}.c-list[data-v-777882ae]{font-size:%?26?%;color:#606266;background:#fff}.c-list .c-row[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?20?% %?30?%;position:relative}.c-list .tit[data-v-777882ae]{width:%?140?%}.c-list .con[data-v-777882ae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#303133}.c-list .con .selected-text[data-v-777882ae]{margin-right:%?10?%}.c-list .bz-list[data-v-777882ae]{height:%?40?%;font-size:%?26?%;color:#303133}.c-list .bz-list uni-text[data-v-777882ae]{display:inline-block;margin-right:%?30?%}.c-list .con-list[data-v-777882ae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#303133;line-height:%?40?%}.c-list .red[data-v-777882ae]{color:#fa436a}\n/* 评价 */.eva-section[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:%?20?% %?30?%;background:#fff;margin-top:%?16?%}.eva-section .e-header[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?70?%;font-size:%?26?%;color:#909399}.eva-section .e-header .tit[data-v-777882ae]{font-size:%?30?%;color:#303133;margin-right:%?4?%}.eva-section .e-header .tip[data-v-777882ae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right}.eva-section .e-header .icon-you[data-v-777882ae]{margin-left:%?10?%}.eva-box[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0}.eva-box .portrait[data-v-777882ae]{-webkit-flex-shrink:0;flex-shrink:0;width:%?80?%;height:%?80?%;-webkit-border-radius:100px;border-radius:100px}.eva-box .right[data-v-777882ae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?28?%;color:#606266;padding-left:%?26?%}.eva-box .right .con[data-v-777882ae]{font-size:%?28?%;color:#303133;padding:%?20?% 0}.eva-box .right .bot[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;font-size:%?24?%;color:#909399}\n/* 详情 */.detail-desc[data-v-777882ae]{background:#fff;margin-top:%?16?%}.detail-desc .d-header[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;font-size:%?30?%;color:#303133;position:relative}.detail-desc .d-header uni-text[data-v-777882ae]{padding:0 %?20?%;background:#fff;position:relative;z-index:1}.detail-desc .d-header[data-v-777882ae]:after{position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:%?300?%;height:0;content:"";border-bottom:1px solid #ccc}\n/* 规格选择弹窗 */.attr-content[data-v-777882ae]{padding:%?10?% %?30?%}.attr-content .a-t[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex}.attr-content .a-t uni-image[data-v-777882ae]{width:%?170?%;height:%?170?%;-webkit-flex-shrink:0;flex-shrink:0;margin-top:%?-40?%;-webkit-border-radius:%?8?%;border-radius:%?8?%}.attr-content .a-t .right[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding-left:%?24?%;font-size:%?26?%;color:#606266;line-height:%?42?%}.attr-content .a-t .right .price[data-v-777882ae]{font-size:%?32?%;color:#fa436a;margin-bottom:%?10?%}.attr-content .a-t .right .selected-text[data-v-777882ae]{margin-right:%?10?%}.attr-content .attr-list[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?30?%;color:#606266;padding-top:%?30?%;padding-left:%?10?%}.attr-content .item-list[data-v-777882ae]{padding:%?20?% 0 0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.attr-content .item-list uni-text[data-v-777882ae]{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;background:#eee;margin-right:%?20?%;margin-bottom:%?20?%;-webkit-border-radius:%?100?%;border-radius:%?100?%;min-width:%?60?%;height:%?60?%;padding:0 %?20?%;font-size:%?28?%;color:#303133}.attr-content .item-list .selected[data-v-777882ae]{background:#fbebee;color:#fa436a}\n/* 弹出层 */.popup[data-v-777882ae]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99}.popup.show[data-v-777882ae]{display:block}.popup.show .mask[data-v-777882ae]{-webkit-animation:showPopup-data-v-777882ae .2s linear both;animation:showPopup-data-v-777882ae .2s linear both}.popup.show .layer[data-v-777882ae]{-webkit-animation:showLayer-data-v-777882ae .2s linear both;animation:showLayer-data-v-777882ae .2s linear both}.popup.hide .mask[data-v-777882ae]{-webkit-animation:hidePopup-data-v-777882ae .2s linear both;animation:hidePopup-data-v-777882ae .2s linear both}.popup.hide .layer[data-v-777882ae]{-webkit-animation:hideLayer-data-v-777882ae .2s linear both;animation:hideLayer-data-v-777882ae .2s linear both}.popup.none[data-v-777882ae]{display:none}.popup .mask[data-v-777882ae]{position:fixed;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,.4)}.popup .layer[data-v-777882ae]{position:fixed;z-index:99;bottom:0;width:100%;min-height:40vh;-webkit-border-radius:%?10?% %?10?% 0 0;border-radius:%?10?% %?10?% 0 0;background-color:#fff}.popup .layer .btn[data-v-777882ae]{height:%?66?%;line-height:%?66?%;-webkit-border-radius:%?100?%;border-radius:%?100?%;background:#fa436a;font-size:%?30?%;color:#fff;margin:%?30?% auto %?20?%}@-webkit-keyframes showPopup-data-v-777882ae{0%{opacity:0}100%{opacity:1}}@keyframes showPopup-data-v-777882ae{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes hidePopup-data-v-777882ae{0%{opacity:1}100%{opacity:0}}@keyframes hidePopup-data-v-777882ae{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes showLayer-data-v-777882ae{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes showLayer-data-v-777882ae{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes hideLayer-data-v-777882ae{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}@keyframes hideLayer-data-v-777882ae{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}\n/* 底部操作菜单 */.page-bottom[data-v-777882ae]{position:fixed;left:%?30?%;bottom:%?30?%;z-index:95;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?690?%;height:%?100?%;background:hsla(0,0%,100%,.9);-webkit-box-shadow:0 0 %?20?% 0 rgba(0,0,0,.5);box-shadow:0 0 %?20?% 0 rgba(0,0,0,.5);-webkit-border-radius:%?16?%;border-radius:%?16?%}.page-bottom .p-b-btn[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?24?%;color:#606266;width:%?96?%;height:%?80?%;position:relative\n /* 购物车数量 */}.page-bottom .p-b-btn .cart-count[data-v-777882ae]{border:%?4?% solid #fa436a;width:%?40?%;height:%?40?%;color:#fa436a;text-align:center;-webkit-border-radius:%?40?%;border-radius:%?40?%;position:absolute;background:#fff;top:%?-10?%;right:0}.page-bottom .p-b-btn .yticon[data-v-777882ae]{font-size:%?46?%;line-height:%?48?%;color:#909399}.page-bottom .p-b-btn.active[data-v-777882ae],\n.page-bottom .p-b-btn.active .yticon[data-v-777882ae]{color:#fa436a}.page-bottom .action-btn-group[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;height:%?76?%;-webkit-border-radius:100px;border-radius:100px;overflow:hidden;-webkit-box-shadow:0 %?20?% %?40?% %?-16?% #fa436a;box-shadow:0 %?20?% %?40?% %?-16?% #fa436a;-webkit-box-shadow:1px 2px 5px rgba(219,63,96,.4);box-shadow:1px 2px 5px rgba(219,63,96,.4);background:-webkit-gradient(linear,left top,right top,from(#ffac30),color-stop(#fa436a),to(#f56c6c));background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);margin-left:%?20?%;position:relative}.page-bottom .action-btn-group .only[data-v-777882ae]{width:%?360?%!important}.page-bottom .action-btn-group[data-v-777882ae]:after{content:"";position:absolute;top:50%;right:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:%?28?%;width:0;border-right:1px solid hsla(0,0%,100%,.5)}.page-bottom .action-btn-group .action-btn[data-v-777882ae]{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;width:%?180?%;height:100%;font-size:%?28?%;padding:0;-webkit-border-radius:0;border-radius:0;background:transparent}.flash[data-v-777882ae]{height:%?100?%;background:-webkit-gradient(linear,left top,right top,from(#ffac30),color-stop(#fa436a),to(#f56c6c));background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;position:relative}.flash .sales_price[data-v-777882ae]{color:#fff;font-size:%?50?%}.flash .sales_price .symbol[data-v-777882ae]{font-size:%?30?%;display:inline}.flash .left[data-v-777882ae]{font-size:%?28?%;padding:%?10?%}.flash .left .market_price[data-v-777882ae]{color:#dcdfe6;text-decoration:line-through}.flash .left .sold[data-v-777882ae]{color:#e4e7ed}.flash .right[data-v-777882ae]{height:100%;width:%?300?%;position:absolute;right:0;padding:%?4?%;margin-right:%?20?%}.flash .right .time[data-v-777882ae]{font-size:%?30?%;color:#fffa30;text-align:center}.flash .right .time .uni-countdown[data-v-777882ae]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex}.flash .right .progress[data-v-777882ae]{position:absolute;bottom:%?7?%;right:%?10?%}.flash .right .flashDone[data-v-777882ae]{font-size:%?40?%;height:%?90?%;line-height:%?90?%}\n/* 优惠券列表 */.content-coupon[data-v-777882ae]{padding-bottom:%?100?%;max-height:%?800?%;overflow:auto}.retract[data-v-777882ae]{position:fixed;bottom:0;width:%?700?%;z-index:100;margin:%?20?% %?25?%;color:#fff;background:#fa436a}.coupon-item[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#fff}.coupon-item .con[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;height:%?120?%;padding:0 %?30?%}.coupon-item .con[data-v-777882ae]:after{position:absolute;left:0;bottom:0;content:"";width:100%;height:0;border-bottom:1px dashed #f3f3f3;-webkit-transform:scaleY(50%);transform:scaleY(50%)}.coupon-item .left[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;height:%?100?%}.coupon-item .title[data-v-777882ae]{font-size:%?32?%;color:#303133;margin-bottom:%?10?%}.coupon-item .time[data-v-777882ae]{font-size:%?24?%;color:#909399}.coupon-item .right[data-v-777882ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?26?%;color:#606266;height:%?100?%}.coupon-item .price[data-v-777882ae]{font-size:%?44?%;color:#fa436a}.coupon-item .price[data-v-777882ae]:before{content:"¥";font-size:%?34?%}.coupon-item .tips[data-v-777882ae]{font-size:%?24?%;color:#909399;line-height:%?60?%;padding-left:%?30?%}.coupon-item .circle[data-v-777882ae]{position:absolute;left:%?-6?%;bottom:%?-10?%;z-index:10;width:%?20?%;height:%?20?%;background:#f3f3f3;-webkit-border-radius:100px;border-radius:100px}.coupon-item .circle.r[data-v-777882ae]{left:auto;right:%?-6?%}body.?%PAGE?%[data-v-777882ae]{background:#f8f8f8}',""]),t.exports=e},"1bea":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.mask[data-v-f0809dbe]{position:fixed;left:0;top:0;right:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;z-index:998;-webkit-transition:.3s;transition:.3s}.mask .bottom[data-v-f0809dbe]{position:absolute;left:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;height:%?90?%;background:#fff;z-index:9;font-size:%?30?%;color:#303133}.mask-content[data-v-f0809dbe]{width:100%;height:%?580?%;-webkit-transition:.3s;transition:.3s;background:#fff}.mask-content.has-bottom[data-v-f0809dbe]{padding-bottom:%?90?%}.mask-content .view-content[data-v-f0809dbe]{height:100%}.share-header[data-v-f0809dbe]{height:%?110?%;font-size:%?30?%;color:font-color-dark;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;padding-top:%?10?%}.share-header[data-v-f0809dbe]:before, .share-header[data-v-f0809dbe]:after{content:"";width:%?240?%;heighg:0;border-top:1px solid #e4e7ed;-webkit-transform:scaleY(.5);transform:scaleY(.5);margin-right:%?30?%}.share-header[data-v-f0809dbe]:after{margin-left:%?30?%;margin-right:0}.share-list[data-v-f0809dbe]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.share-item[data-v-f0809dbe]{min-width:33.33%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?180?%}.share-item uni-image[data-v-f0809dbe]{width:%?80?%;height:%?80?%;margin-bottom:%?16?%}.share-item uni-text[data-v-f0809dbe]{font-size:%?28?%;color:#606266}',""]),t.exports=e},"243a":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{transform:"translateY(50vh)",timer:0,backgroundColor:"rgba(0,0,0,0)",show:!1,config:{}}},props:{contentHeight:{type:Number,default:0},hasTabbar:{type:Boolean,default:!1},shareList:{type:Array,default:function(){return[]}}},created:function(){var t=uni.upx2px(this.contentHeight)+"px";this.config={height:t,transform:"translateY(".concat(t,")"),backgroundColor:"rgba(0,0,0,.4)"},this.transform=this.config.transform},methods:{toggleMask:function(){var t=this;if(1!=this.timer){if(this.timer=1,setTimeout((function(){t.timer=0}),500),this.show)return this.transform=this.config.transform,this.backgroundColor="rgba(0,0,0,0)",void setTimeout((function(){t.show=!1,t.hasTabbar&&uni.showTabBar()}),200);this.show=!0,this.hasTabbar?uni.hideTabBar({success:function(){setTimeout((function(){t.backgroundColor=t.config.backgroundColor,t.transform="translateY(0px)"}),10)}}):setTimeout((function(){t.backgroundColor=t.config.backgroundColor,t.transform="translateY(0px)"}),10)}},stopPrevent:function(){},shareToFriend:function(t){this.$api.msg("分享给".concat(t)),this.toggleMask()}}};e.default=a},"36dc":function(t,e,i){"use strict";i.r(e);var a=i("a527"),n=i("3d78");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("38c3");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"777882ae",null,!1,a["a"],s);e["default"]=c.exports},"38c3":function(t,e,i){"use strict";var a=i("d2e6"),n=i.n(a);n.a},"3d78":function(t,e,i){"use strict";i.r(e);var a=i("6c67"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},4844:function(t,e,i){"use strict";var a=i("0dc6"),n=i.n(a);n.a},"6c67":function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("4160"),i("a15b"),i("e25e"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("1da1")),o=a(i("b85c")),s=a(i("5530")),r=i("2f62"),c=a(i("d50b")),l=a(i("71d1")),d=a(i("10b5")),u={components:{share:c.default,ProgressBar:l.default,uniCountdown:d.default},computed:(0,s.default)((0,s.default)({},(0,r.mapGetters)(["userInfo","hasLogin"])),{},{specSelectedName:function(){return this.specSelected.join(" ")},specProduct:function(){if(1==this.product.use_spec){var t,e=this.product.market_price,i=this.product.sales_price,a=this.product.stock,n=this.product.image,s=this.specSelected.join(" "),r=(this.specTableList,(0,o.default)(this.specTableList));try{for(r.s();!(t=r.n()).done;){var c=t.value;c.value.join(" ")==s&&(e=c.market_price,i=c.sales_price,a=c.stock,n=c.image)}}catch(l){r.e(l)}finally{r.f()}return{market_price:e,sales_price:i,stock:a,image:n}}return this.product}}),data:function(){return{couponClass:"none",specClass:"none",specSelected:[],favorite:!1,shareList:[],specList:[],specChildList:[],specTableList:[],product:{},flash:!1,id:!1,countdown:{},progress:{sold:1,number:1}}},onPullDownRefresh:function(){this.$refs&&this.$refs.countd&&(this.$refs.countd.syncFlag=!1),this.getDetail(this.id,this.flash?this.flash:0)},onShareAppMessage:function(t){return{title:this.product.title}},onLoad:function(t){this.id=t.id;var e=t.flash?t.flash:0;0!=e&&(this.flash=e),this.getDetail(this.id,e)},methods:{timeup:function(){this.getDetail(this.id,this.flash?this.flash:0)},getDetail:function(t,e){var i=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var n,s,r,c,l,d,u,f,p;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=0==e?"/product/detail":"/flash/productDetail",a.next=3,i.$api.request(n+"?id=".concat(t,"&flash_id=").concat(e),"GET");case 3:if(s=a.sent,uni.stopPullDownRefresh(),s){a.next=8;break}return setTimeout((function(){uni.navigateBack()}),3e3),a.abrupt("return");case 8:if(i.product=s,s.flash&&(i.countdown=s.flash.countdown,i.progress=s.flash),i.favorite=i.product.favorite,i.product.use_spec){for(f in r=i.product.spec_list,c=i.product.spec_table_list,l=1,d=1,u=[],r)for(p in r[f].id=l++,r[f].child)u.push({id:d++,pid:r[f].id,name:r[f].child[p]});i.specList=r,i.specChildList=u,i.specTableList=c,i.specSelected=[],i.specList.forEach((function(t){var e,a=(0,o.default)(i.specChildList);try{for(a.s();!(e=a.n()).done;){var n=e.value;if(n.pid===t.id){i.$set(n,"selected",!0),i.specSelected.push(n.name);break}}}catch(s){a.e(s)}finally{a.f()}}))}case 12:case"end":return a.stop()}}),a)})))()},toggleCoupon:function(){var t=this;"show"===this.couponClass?(this.couponClass="hide",setTimeout((function(){t.couponClass="none"}),250)):"none"===this.couponClass&&(this.couponClass="show")},toggleSpec:function(){var t=this;"show"===this.specClass?(this.specClass="hide",setTimeout((function(){t.specClass="none"}),250)):"none"===this.specClass&&(this.specClass="show")},selectSpec:function(t,e){var i=this,a=this.specChildList;a.forEach((function(t){t.pid===e&&i.$set(t,"selected",!1)})),this.$set(a[t],"selected",!0),this.specSelected=[],a.forEach((function(t){!0===t.selected&&i.specSelected.push(t.name)}))},share:function(){this.$refs.share.toggleMask()},toFavorite:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.flash){e.next=3;break}return t.$api.msg("秒杀商品不能收藏"),e.abrupt("return");case 3:return e.next=5,t.$api.checkLogin();case 5:if(i=e.sent,!i){e.next=12;break}return t.favorite=!t.favorite,e.next=10,t.$api.request("/product/favorite?id="+t.product.product_id);case 10:a=e.sent,a||(t.favorite=!t.favorite);case 12:case"end":return e.stop()}}),e)})))()},buy:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.checkLogin();case 2:i=e.sent,i&&(a="",1==t.product.use_spec&&(a=t.specSelected.join(",")),n="/pages/order/createOrder?id=".concat(t.product.product_id,"&spec=").concat(a),t.flash&&(n+="&flash_id=".concat(t.flash)),uni.navigateTo({url:n}));case 4:case"end":return e.stop()}}),e)})))()},addCart:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.flash){e.next=3;break}return t.$api.msg("秒杀商品不能加入购物车"),e.abrupt("return");case 3:return e.next=5,t.$api.checkLogin();case 5:if(i=e.sent,!i){e.next=13;break}return a="",1==t.product.use_spec&&(a=t.specSelected.join(",")),e.next=11,t.$api.request("/cart/add?id="+t.product.product_id+"&spec="+a);case 11:n=e.sent,n&&t.product.cart_num++;case 13:case"end":return e.stop()}}),e)})))()},stopPrevent:function(){},percentage:function(t,e){return e?parseInt(e/t*100):0},previewImage:function(t){uni.previewImage({current:this.product.images_text[t],urls:this.product.images_text,indicator:"number",loop:!0})}}};e.default=u},"74cd":function(t,e,i){"use strict";var a=i("b475"),n=i.n(a);n.a},"7b68":function(t,e,i){"use strict";i.r(e);var a=i("d1ed"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"9f62":function(t,e,i){"use strict";i.r(e);var a=i("243a"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},a527:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniCountdown:i("10b5").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"carousel"},[i("v-uni-swiper",{attrs:{"indicator-dots":!0,circular:"true",duration:"400"}},t._l(t.product.images_text,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"swiper-item"},[i("v-uni-view",{staticClass:"image-wrapper"},[i("v-uni-image",{staticClass:"loaded",attrs:{src:e,mode:"aspectFill"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage(a)}}})],1)],1)})),1)],1),t.flash?i("v-uni-view",{staticClass:"flash"},[t.product.market_price?i("v-uni-view",{staticClass:"sales_price"},[i("v-uni-view",{staticClass:"symbol"},[t._v("¥")]),t._v(t._s(t.specProduct.sales_price))],1):t._e(),t.product.market_price?i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{staticClass:"market_price"},[t._v("¥"+t._s(t.specProduct.market_price))]),t.progress.number?i("v-uni-view",{staticClass:"sold"},[t._v("秒"+t._s(t.progress.number)+"件")]):t._e()],1):t._e(),i("v-uni-view",{staticClass:"right"},[t.countdown&&t.progress.number!=t.progress.sold?i("v-uni-view",{staticClass:"time"},[t._v(t._s(t.product.flash.text)),i("uni-countdown",{ref:"countd",attrs:{showDay:t.countdown.day>0,day:t.countdown.day,hour:t.countdown.hour,minute:t.countdown.minute,second:t.countdown.second,color:"#fffa30",borderWidth:"22rpx",splitorColor:"#fffa30","background-color":"#282f2c00","border-color":"#00B26A"},on:{timeup:function(e){arguments[0]=e=t.$handleEvent(e),t.timeup.apply(void 0,arguments)}}})],1):i("v-uni-view",{staticClass:"time",class:{flashDone:0==t.progress.number}},[t._v("抢购已结束")]),t.progress.number?i("v-uni-view",{staticClass:"progress"},[i("ProgressBar",{staticClass:"ProgressBar",attrs:{Sold:t.progress.sold,widthUpx:250,Width:t.percentage(t.progress.number,t.progress.sold),Type:"candy",Vice:!0}})],1):t._e()],1)],1):t._e(),t.product.product_id?i("v-uni-view",{staticClass:"introduce-section"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.product.title))]),0==t.flash?i("v-uni-view",{staticClass:"price-box"},[i("v-uni-text",{staticClass:"price-tip"},[t._v("¥")]),i("v-uni-text",{staticClass:"price"},[t._v(t._s(t.specProduct.sales_price))]),t.specProduct.market_price?i("v-uni-text",{staticClass:"m-price"},[t._v("¥"+t._s(t.specProduct.market_price))]):t._e(),t.specProduct.market_price>0&&t.specProduct.market_price>t.specProduct.sales_price?i("v-uni-text",{staticClass:"coupon-tip"},[t._v(t._s((t.specProduct.sales_price/t.specProduct.market_price*10).toFixed(1))+"折")]):t._e()],1):t._e(),i("v-uni-view",{staticClass:"bot-row"},[i("v-uni-text",[t._v("销量: "+t._s(t.product.sales))]),i("v-uni-text",[t._v("总库存: "+t._s(t.product.stock))]),i("v-uni-text",[t._v("浏览量: "+t._s(t.product.look))])],1)],1):t._e(),i("v-uni-view",{staticClass:"c-list"},[t.product.use_spec?i("v-uni-view",{staticClass:"c-row b-b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("购买类型")]),i("v-uni-view",{staticClass:"con"},[i("v-uni-text",{staticClass:"selected-text"},[t._v(t._s(t.specSelectedName))]),i("v-uni-text",{staticStyle:{"margin-left":"50rpx"}},[t._v("库存:"+t._s(t.specProduct.stock))])],1),i("v-uni-text",{staticClass:"yticon icon-you"})],1):t._e(),t.product.coupon.length?i("v-uni-view",{staticClass:"c-row b-b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("优惠券")]),i("v-uni-text",{staticClass:"con t-r red"},[t._v("查看可用优惠券")]),i("v-uni-text",{staticClass:"yticon icon-you"})],1):t._e(),t.product.server?i("v-uni-view",{staticClass:"c-row b-b"},[i("v-uni-text",{staticClass:"tit"},[t._v("服务")]),i("v-uni-view",{staticClass:"bz-list con"},[t._v(t._s(t.product.server))])],1):t._e()],1),t.product.evaluate_data&&t.product.evaluate_data.count>0?i("v-uni-view",{staticClass:"eva-section"},[i("v-uni-view",{staticClass:"e-header",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/product/evaluate?product_id="+t.product.product_id)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("评价")]),i("v-uni-text",[t._v("("+t._s(t.product.evaluate_data.count)+")")]),i("v-uni-text",{staticClass:"tip"},[t._v("好评率 "+t._s(t.product.evaluate_data.avg)+"%")]),i("v-uni-text",{staticClass:"yticon icon-you"})],1),t._l(t.product.evaluate_list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"eva-box"},[i("v-uni-image",{staticClass:"portrait",attrs:{src:e.avatar,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"name"},[t._v(t._s(e.username))]),i("v-uni-text",{staticClass:"con"},[t._v(t._s(e.comment))]),i("v-uni-view",{staticClass:"bot"},[e.spec?i("v-uni-text",{staticClass:"attr"},[t._v("购买类型:"+t._s(e.spec))]):i("v-uni-text",{staticClass:"attr"}),i("v-uni-text",{staticClass:"time"},[t._v(t._s(e.createtime_text))])],1)],1)],1)}))],2):t._e(),t.product.desc?i("v-uni-view",{staticClass:"detail-desc"},[i("v-uni-view",{staticClass:"d-header"},[i("v-uni-text",[t._v("图文详情")])],1),i("v-uni-rich-text",{attrs:{nodes:t.product.desc}})],1):t._e(),i("v-uni-view",{staticClass:"page-bottom"},[i("v-uni-navigator",{staticClass:"p-b-btn",attrs:{url:"/pages/index/index","open-type":"switchTab"}},[i("v-uni-text",{staticClass:"yticon icon-fangzi"}),i("v-uni-text",[t._v("Home")])],1),t.flash?i("v-uni-view",{staticClass:"p-b-btn"},[i("v-uni-text")],1):i("v-uni-view",{staticClass:"p-b-btn",class:{active:t.favorite},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toFavorite.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"yticon icon-shoucang"}),i("v-uni-text",[t._v("收藏")])],1),t.countdown&&t.progress.number!=t.progress.sold?i("v-uni-view",{staticClass:"action-btn-group"},[i("v-uni-button",{staticClass:" action-btn no-border buy-now-btn",class:{only:t.flash},attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buy.apply(void 0,arguments)}}},[t._v("Buy Now")])],1):i("v-uni-view",{staticClass:"p-b-btn"},[i("v-uni-text")],1)],1),i("v-uni-view",{staticClass:"popup spec",class:t.couponClass,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask"}),i("v-uni-view",{staticClass:"layer attr-content content-coupon",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},t._l(t.product.coupon,(function(e,a){return i("v-uni-view",{key:a,staticClass:"coupon-item"},[i("v-uni-view",{staticClass:"con"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(e.title))]),i("v-uni-text",{staticClass:"time"},[t._v("有效期至"+t._s(e.endtime_text))])],1),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"price"},[t._v(t._s(e.value))]),i("v-uni-text",[t._v("满"+t._s(e.least)+"可用")])],1),i("v-uni-view",{staticClass:"circle l"}),i("v-uni-view",{staticClass:"circle r"})],1),i("v-uni-text",{staticClass:"tips"},[t._v("限一张使用")])],1)})),1),i("v-uni-button",{staticClass:"btn retract",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[t._v("收起")])],1),i("v-uni-view",{staticClass:"popup spec",class:t.specClass,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask"}),i("v-uni-view",{staticClass:"layer attr-content",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"a-t"},[t.specProduct.image?i("v-uni-image",{attrs:{mode:"aspectFill",src:t.specProduct.image}}):t._e(),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.specProduct.sales_price))]),i("v-uni-text",{staticClass:"stock"},[t._v("库存:"+t._s(t.specProduct.stock)+"件")]),i("v-uni-view",{staticClass:"selected"},[t._v("已选:"),i("v-uni-text",{staticClass:"selected-text"},[t._v(t._s(t.specSelectedName))])],1)],1)],1),t._l(t.specList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"attr-list"},[i("v-uni-text",[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"item-list"},t._l(t.specChildList,(function(a,n){return a.pid===e.id?i("v-uni-text",{key:n,staticClass:"tit",class:{selected:a.selected},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectSpec(n,a.pid)}}},[t._v(t._s(a.name))]):t._e()})),1)],1)})),i("v-uni-button",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[t._v("Finish")])],2)],1)],1)},o=[]},a6be:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-countdown"},[t.showDay?i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.d))]):t._e(),t.showDay?i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("天")]):t._e(),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.h))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"时"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.i))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"分"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.s))]),t.showColon?t._e():i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("秒")])],1)},o=[]},b3f9:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.uni-countdown[data-v-e73e11fa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:%?2?% 0}.uni-countdown__splitor[data-v-e73e11fa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;line-height:%?48?%;padding:%?5?%;font-size:%?24?%}.uni-countdown__number[data-v-e73e11fa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?52?%;height:%?48?%;line-height:%?48?%;margin:%?5?%;text-align:center;font-size:%?24?%}',""]),t.exports=e},b475:function(t,e,i){var a=i("1bea");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("6a47c090",a,!0,{sourceMap:!1,shadowMode:!1})},b85c:function(t,e,i){"use strict";i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=n(i("06c5"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(0,a.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,c=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return r=t.done,t},e:function(t){c=!0,s=t},f:function(){try{r||null==i["return"]||i["return"]()}finally{if(c)throw s}}}}},ce81:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("v-uni-view",{staticClass:"mask",style:{backgroundColor:t.backgroundColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMask.apply(void 0,arguments)},touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask-content",style:[{height:t.config.height,transform:t.transform}],on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-scroll-view",{staticClass:"view-content",attrs:{"scroll-y":!0}},[i("v-uni-view",{staticClass:"share-header"},[t._v("分享到")]),i("v-uni-view",{staticClass:"share-list"},t._l(t.shareList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"share-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.shareToFriend(e.text)}}},[i("v-uni-image",{attrs:{src:e.icon,mode:""}}),i("v-uni-text",[t._v(t._s(e.text))])],1)})),1)],1),i("v-uni-view",{staticClass:"bottom b-t",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMask.apply(void 0,arguments)}}},[t._v("取消")])],1)],1):t._e()},o=[]},d1ed:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniCountdown",props:{showDay:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#000000"},color:{type:String,default:"#000000"},splitorColor:{type:String,default:"#000000"},day:{type:Number,default:0},hour:{type:Number,default:0},minute:{type:Number,default:0},second:{type:Number,default:0},borderWidth:{type:String,default:"52rpx"}},data:function(){return{timer:null,syncFlag:!1,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}},watch:{day:function(t){this.changeFlag()},hour:function(t){this.changeFlag()},minute:function(t){this.changeFlag()},second:function(t){this.changeFlag()}},created:function(t){this.startData()},beforeDestroy:function(){clearInterval(this.timer)},methods:{toSeconds:function(t,e,i,a){return 60*t*60*24+60*e*60+60*i+a},timeUp:function(){clearInterval(this.timer),this.timer=0,this.$emit("timeup",this)},countDown:function(){var t=this.seconds,e=0,i=0,a=0,n=0;t>0?(e=Math.floor(t/86400),i=Math.floor(t/3600)-24*e,a=Math.floor(t/60)-24*e*60-60*i,n=Math.floor(t)-24*e*60*60-60*i*60-60*a):this.timeUp(),e<10&&(e="0"+e),i<10&&(i="0"+i),a<10&&(a="0"+a),n<10&&(n="0"+n),this.d=e,this.h=i,this.i=a,this.s=n},startData:function(){var t=this;this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.seconds<=0?this.timeUp():this.timer>0||(this.countDown(),this.timer=setInterval((function(){t.seconds--,t.seconds<0?t.timeUp():t.countDown()}),1e3))},changeFlag:function(){this.syncFlag||(this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.startData(),this.syncFlag=!0)}}};e.default=a},d2e6:function(t,e,i){var a=i("17a4");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("af181c7a",a,!0,{sourceMap:!1,shadowMode:!1})},d50b:function(t,e,i){"use strict";i.r(e);var a=i("ce81"),n=i("9f62");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("74cd");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"f0809dbe",null,!1,a["a"],s);e["default"]=c.exports}}]); \ No newline at end of file