1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-view"],{"070d":function(t,e,o){"use strict";o("fb6a"),o("4d63"),o("ac1f"),o("25f0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{value:{type:Boolean,default:!1},fields:{required:!0,type:Array,default:function(){return[]}},goods:{default:function(){return{}}},attribute:{default:function(){return[]}},item:{default:function(){return{}}},goodsInfo:{default:function(){return{}}}},data:function(){return{maxHeight:0,number:1,minNumber:1,maxNumber:0,specSelected:"",selectedSku:[],goodsPrice:"",goodsStockNumber:"",selectedGoodsInfo:{}}},mounted:function(){var t=this.$utils.getSystemInfo();this.maxHeight=t.h-this.$utils.px2rpx(200)},watch:{goods:{handler:function(t,e){this.goodsStockNumber=this.goods.store_nums,this.goodsPrice=this.goods.sell_price;var o={};for(var i in this.goods)this.$utils.in_array(i,this.fields)&&(o[i]=this.goods[i]);Object.assign(o,{num:this.number,isSubmit:!0,selectedSku:{id:"",specSelected:""}}),this.selectedGoodsInfo=o},deep:!0},attribute:{handler:function(t,e){if(!(this.attribute.length<=0)){var o=[];for(var i in this.selectedSku=[],this.attribute)for(var n in this.attribute[i]["list"])this.attribute[i]["list"][n]["selected"]&&!this.attribute[i]["list"][n]["disable"]&&(this.selectedSku.push(this.attribute[i]["list"][n]),o.push({name:this.attribute[i].name,value:this.attribute[i]["list"][n].value}));var s=[];for(var a in this.selectedSku)s.push(this.selectedSku[a].pid+"_"+this.selectedSku[a].id);if(this.attribute.length==s.length&&void 0!=this.item[s.join("_")]){var r=this.item[s.join("_")];this.goodsPrice=r.sell_price,this.goodsStockNumber=r.store_nums,this.number>=r.store_nums&&(this.number=r.store_nums),this.selectedGoodsInfo.selectedSku.id=r.product_id,this.selectedGoodsInfo.isSubmit=!0}else this.selectedGoodsInfo.isSubmit=!1;this.specSelected="";var d=[];for(var c in o)d.push(o[c].name+":"+o[c].value);d.length>0&&(this.selectedGoodsInfo.selectedSku.specSelected=d.join(","),this.specSelected="已选择:"+d.join(","))}},deep:!0},selectedGoodsInfo:{handler:function(t,e){this.$emit("update:goods-info",this.selectedGoodsInfo)},deep:!0}},methods:{minus:function(){this.number<=1||(this.number-=1,this.selectedGoodsInfo.num=this.number)},plus:function(){this.number>=this.goodsStockNumber||(this.number+=1,this.selectedGoodsInfo.num=this.number)},onClose:function(){this.$emit("input",!this.value)},checkStatus:function(t,e){var o=this.attribute,i=!1;for(var n in o)if(t==o[n]["id"])for(var s in o[n]["list"]){var a=o[n]["list"][s];if(t==a["pid"]&&e==a["id"]&&a["disable"]){i=!0;break}}return i},onSelected:function(t,e){if(!this.checkStatus(t,e)){var o=[];for(var i in this.attribute)if(o[i]="[A-Za-z0-9_\\:\\,]+",t==this.attribute[i]["id"])for(var n in this.attribute[i]["list"]){var s=this.attribute[i]["list"][n];if(t==s["pid"]&&e==s["id"]){var a=!s.selected;this.$set(this.attribute[i]["list"][n],"selected",a),1==a&&(o[i]=s.pid+":"+s.id)}else this.$set(this.attribute[i]["list"][n],"selected",!1)}for(var r in this.attribute)for(var d in this.attribute[r]["list"]){var c=this.attribute[r]["list"][d],u=o.slice();u[r]=c.pid+":"+c.id;var l=!0;for(var f in this.item){var p=new RegExp(u.join(","));p.test(this.item[f].key)&&this.item[f].store_nums>0&&(l=!1)}this.$set(this.attribute[r]["list"][d],"disable",l)}}}}};e.default=i},"087c":function(t,e,o){var i=o("4f87");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("6f87fa36",i,!0,{sourceMap:!1,shadowMode:!1})},"0b19":function(t,e,o){"use strict";o.r(e);var i=o("88e5"),n=o.n(i);for(var s in i)"default"!==s&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},1263:function(t,e,o){t.exports=o.p+"static/img/share_i.283b7a09.png"},"1e59":function(t,e,o){"use strict";o("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{icon:{type:String,default:""},text:{type:String,default:""},count:{type:[String,Number],default:"0"},active:{type:Boolean,default:!1}},methods:{btn:function(){this.$emit("click")}}};e.default=i},2149:function(t,e,o){"use strict";var i=o("3c96"),n=o.n(i);n.a},"23f4":function(t,e,o){"use strict";o.r(e);var i=o("e6f4"),n=o("adc9");for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("e21b");var a,r=o("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"2a6093e0",null,!1,i["a"],a);e["default"]=d.exports},"35e5":function(t,e,o){"use strict";var i=o("535b"),n=o.n(i);n.a},"3c7e":function(t,e,o){"use strict";o.r(e);var i=o("47dd"),n=o.n(i);for(var s in i)"default"!==s&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"3c96":function(t,e,o){var i=o("4156");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("565d437e",i,!0,{sourceMap:!1,shadowMode:!1})},"3dbb":function(t,e,o){var i=o("a247");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("1b8f1d0c",i,!0,{sourceMap:!1,shadowMode:!1})},4156:function(t,e,o){var i=o("24fb"),n=o("1de5"),s=o("1263");e=i(!1);var a=n(s);e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.poster-box[data-v-1af286df]{z-index:100003;position:fixed;top:40%;left:50%;-webkit-transform:translate(-50%,-40%);transform:translate(-50%,-40%)}.poster-box .savePoster[data-v-1af286df]{margin-top:%?20?%;background-color:#b91922;width:100%;height:%?100?%;line-height:%?100?%;font-size:%?35?%;color:#fff;text-align:center;border-radius:%?15?%}.poster-box .poster-close[data-v-1af286df]{width:100%;height:%?100?%;line-height:%?100?%;color:#fff;font-size:%?45?%;text-align:center;font-weight:400}#swiper-inner-box[data-v-1af286df]{position:relative}#swiper-inner-box .swiper-box[data-v-1af286df]{width:100%;height:%?800?%}#swiper-inner-box .swiper-box uni-image[data-v-1af286df]{width:100%;height:%?800?%}#swiper-inner-box .custom-indicator[data-v-1af286df]{position:absolute;right:%?40?%;bottom:%?40?%;padding:%?12?% %?30?%;font-size:%?28?%;background:rgba(0,0,0,.3);color:#fff;border-radius:%?12?%}.goods-price[data-v-1af286df]{width:100%;height:%?140?%;background-color:#1b43c4}.goods-price .price[data-v-1af286df]{height:%?140?%;float:left;margin-left:%?32?%}.goods-price .price uni-view[data-v-1af286df]{display:block;color:#fff}.goods-price .price uni-view[data-v-1af286df]:first-child{font-size:%?42?%;padding-top:%?24?%;font-style:normal}.goods-price .price uni-view[data-v-1af286df]:last-child{font-size:%?24?%;padding-top:0}.goods-price .price uni-view:last-child uni-text[data-v-1af286df]{font-style:normal;font-size:%?26?%;position:relative;top:%?2?%;text-decoration:line-through;padding-left:%?4?%}.goods-info[data-v-1af286df]{background-color:#fff}.goods-info .title[data-v-1af286df]{display:block;padding:%?24?% %?30?% %?6?% %?30?%;color:#333;font-size:%?32?%;position:relative;min-height:%?88?%}.goods-info .title .goods-name[data-v-1af286df]{padding-right:%?77?%}.goods-info .title .goods-share[data-v-1af286df]{position:absolute;top:%?24?%;right:%?30?%}.goods-info .title .goods-share uni-view[data-v-1af286df]{text-align:center;border-left:1px solid #ddd;padding-left:%?10?%}.goods-info .title .goods-share uni-view[data-v-1af286df]:first-child{font-size:%?45?%;color:#1b43c4;padding-bottom:%?10?%}.goods-info .title .goods-share uni-view[data-v-1af286df]:last-child{font-size:%?28?%;color:#666}.goods-info .goods-info-box[data-v-1af286df]{display:block;padding:0 %?30?%;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center}.goods-info .goods-info-box uni-text[data-v-1af286df]{width:50%;height:%?80?%;line-height:%?80?%;text-align:left;font-size:%?30?%;color:#888}.goods-comments[data-v-1af286df]{margin-top:%?20?%;background-color:#fff;height:auto}.goods-comments .title[data-v-1af286df]{height:%?80?%;line-height:%?80?%;font-size:%?32?%;width:100%;border-bottom:%?2?% solid #e8e8e8}.goods-comments .title uni-text[data-v-1af286df]:nth-child(1){float:left;color:#333;padding-left:%?30?%}.goods-comments .title uni-text[data-v-1af286df]:nth-child(2){float:right;color:#999;padding-right:%?30?%}.goods-comments .comments-empty[data-v-1af286df]{padding:%?100?% %?30?%;text-align:center;font-size:%?32?%;color:#666}.goods-comments .goods-comments-list .goods-comments-box[data-v-1af286df]{border-bottom:%?2?% solid #e8e8e8;min-height:%?240?%;background-color:#fff;padding-bottom:%?40?%}.goods-comments .goods-comments-list .goods-comments-box .t[data-v-1af286df]{padding:0 %?30?%;height:%?170?%;line-height:%?160?%;color:#666}.goods-comments .goods-comments-list .goods-comments-box .t .u[data-v-1af286df]{float:left;font-size:%?30?%}.goods-comments .goods-comments-list .goods-comments-box .t .u uni-view[data-v-1af286df]{float:left}.goods-comments .goods-comments-list .goods-comments-box .t .u uni-view[data-v-1af286df]:first-child{width:%?96?%;height:%?96?%;overflow:hidden;border-radius:50%;background-color:#eee;display:inline-block;position:relative;top:%?30?%}.goods-comments .goods-comments-list .goods-comments-box .t .u uni-view:first-child uni-image[data-v-1af286df]{width:%?96?%;height:%?96?%}.goods-comments .goods-comments-list .goods-comments-box .t .u uni-view[data-v-1af286df]:last-child{position:relative;left:%?20?%}.goods-comments .goods-comments-list .goods-comments-box .t .time[data-v-1af286df]{float:right;font-size:%?28?%}.goods-comments .goods-comments-list .goods-comments-box .c[data-v-1af286df]{padding:0 %?30?% %?10?% %?30?%;font-size:%?30?%;color:#333}.goods-comments .goods-comments-list .goods-comments-box .d[data-v-1af286df]{background-color:#f7f7f7;margin:0 %?30?%}.goods-comments .goods-comments-list .goods-comments-box .d .d-1[data-v-1af286df]{padding:%?10?% %?30?% 0 %?30?%;font-size:%?30?%}.goods-comments .goods-comments-list .goods-comments-box .d .d-2[data-v-1af286df]{padding:%?20?% %?30?% %?20?% %?30?%;font-size:%?28?%}.goods-content[data-v-1af286df]{background-color:#fff;width:100%;margin-top:%?30?%;margin-bottom:%?100?%}.goods-content .title[data-v-1af286df]{font-size:%?32?%;color:#282828;height:%?96?%;width:100%;background-color:#fff;text-align:center;line-height:%?96?%}.goods-content uni-image[data-v-1af286df]{width:100%;height:auto;float:left}.goods-action[data-v-1af286df]{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:initial;height:%?100?%;border-top:%?2?% solid #d9d9d9;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);background-color:#fff;z-index:100000;overflow:hidden}.goods-action .goods-action-button[data-v-1af286df]{position:relative;display:inline-block;box-sizing:border-box;margin:0;padding:0;text-align:center;cursor:pointer;transition:opacity .2s;-webkit-appearance:none;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?100?%;line-height:%?100?%;font-weight:500;font-size:%?28?%;border:none;color:#fff}.goods-action .button-cart[data-v-1af286df]{background-color:#ffc03a}.goods-action .button-buy[data-v-1af286df]{background-color:#1b43c4}.share-weixin[data-v-1af286df]{z-index:211191;position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);left:0;top:0;background-image:url('+a+");background-repeat:no-repeat;background-size:90%;background-position-x:right}",""]),t.exports=e},"47dd":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{value:{type:[Boolean],default:!0},isGoHome:{type:[Boolean],default:!1},isBack:{type:[Boolean],default:!1}},data:function(){return{platformAgent:null}},mounted:function(){this.platformAgent=this.$utils.platformAgent()},methods:{login:function(){uni.navigateTo({url:"/pages/public/login"})},close:function(){if(this.$emit("input",!this.value),this.isGoHome)uni.switchTab({url:"/pages/index/index"});else{if(!this.isBack)return;var t=getCurrentPages(),e=t[t.length-1];if("pages/ucenter/index"==e.route)return;if(t.length<=1)return void uni.switchTab({url:"/pages/index/index"});uni.navigateBack()}}}};e.default=i},"4a45":function(t,e,o){"use strict";o.r(e);var i=o("c2be"),n=o("0b19");for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("c6a4");var a,r=o("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"c13f37d8",null,!1,i["a"],a);e["default"]=d.exports},"4f87":function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.goods-action-button[data-v-2a6093e0]{position:relative;display:inline-block;box-sizing:border-box;margin:0;padding:0;text-align:center;cursor:pointer;transition:opacity .2s;-webkit-appearance:none;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?100?%;line-height:%?100?%;font-weight:500;font-size:%?28?%;border:none;color:#fff}.button-cart[data-v-2a6093e0]{background-color:#ffc03a}.button-buy[data-v-2a6093e0]{background-color:#b91922}',""]),t.exports=e},"535b":function(t,e,o){var i=o("9149");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("5db0660b",i,!0,{sourceMap:!1,shadowMode:!1})},5474:function(t,e,o){"use strict";o.r(e);var i=o("8592"),n=o("7f54");for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("b10c");var a,r=o("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"4990109e",null,!1,i["a"],a);e["default"]=d.exports},6051:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */:root .dotting[data-v-c13f37d8]{margin-right:8px}.loading[data-v-c13f37d8]{font-size:%?50?%;position:fixed;left:47%;top:40%;z-index:100002;background-size:100%;-webkit-transform:translateX(-47%);transform:translateX(-47%);-webkit-transform:translateY(-40%);transform:translateY(-40%);-webkit-animation:aaa-spin-data-v-c13f37d8 2s infinite linear;animation:aaa-spin-data-v-c13f37d8 2s infinite linear;display:inline-block}.loading-text[data-v-c13f37d8]{width:100%;font-size:%?29?%;text-align:center;position:fixed;top:47%;color:#333;z-index:100002;background-size:100%;-webkit-transform:translateY(-40%);transform:translateY(-40%)}.loading-text uni-view[data-v-c13f37d8]{width:80%;margin:0 auto}.loading-text uni-view .dotting[data-v-c13f37d8]{display:inline-block;min-width:2px;min-height:2px;-webkit-animation:dot-data-v-c13f37d8 4s infinite step-start both;animation:dot-data-v-c13f37d8 4s infinite step-start both;font-size:%?29?%}.layer-box[data-v-c13f37d8]{width:100%;height:100%;position:fixed;top:0;left:0;background-color:hsla(0,0%,100%,.1);z-index:100001}@-webkit-keyframes aaa-spin-data-v-c13f37d8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes aaa-spin-data-v-c13f37d8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes dot-data-v-c13f37d8{25%{box-shadow:none}50%{box-shadow:2px 0 #666}75%{box-shadow:2px 0 #666,6px 0 #666}}@keyframes dot-data-v-c13f37d8{25%{box-shadow:none}50%{box-shadow:2px 0 #666}75%{box-shadow:2px 0 #666,6px 0 #666}}',""]),t.exports=e},"61ec":function(t,e,o){"use strict";var i;o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[t.value?o("v-uni-view",{staticClass:"popup-box"},[o("v-uni-view",{staticClass:"title"},[t._v("申请授权")]),null!=t.platformAgent&&t.platformAgent.isWechat?o("v-uni-view",{staticClass:"tip"},[t._v("获得你的公开信息(昵称、头像等),以便为您提供更好的服务")]):t._e(),null==t.platformAgent||t.platformAgent.isWechat?t._e():o("v-uni-view",{staticClass:"tip"},[t._v("您还没有登录,请登录后在继续操作。")]),o("v-uni-view",{staticClass:"bottom flex"},[o("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),null!=t.platformAgent&&t.platformAgent.isWechat?o("v-uni-button",{staticClass:"item grant",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.login.apply(void 0,arguments)}}},[t._v("去授权")]):t._e(),null==t.platformAgent||t.platformAgent.isWechat?t._e():o("v-uni-button",{staticClass:"item grant",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.login.apply(void 0,arguments)}}},[t._v("去登录")])],1)],1):t._e(),t.value?o("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e()],1)},s=[]},"62e1":function(t,e,o){var i=o("a24b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("b48001da",i,!0,{sourceMap:!1,shadowMode:!1})},"67c1":function(t,e,o){"use strict";o.r(e);var i=o("d8fa"),n=o("a5f2");for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("35e5");var a,r=o("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"d06779c8",null,!1,i["a"],a);e["default"]=d.exports},"682a":function(t,e,o){"use strict";var i=o("b45e"),n=o.n(i);n.a},"707c":function(t,e,o){"use strict";o.r(e);var i=o("a3ad"),n=o("be61");for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("2149");var a,r=o("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"1af286df",null,!1,i["a"],a);e["default"]=d.exports},"74c8":function(t,e,o){"use strict";o.r(e);var i=o("070d"),n=o.n(i);for(var s in i)"default"!==s&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"7f54":function(t,e,o){"use strict";o.r(e);var i=o("1e59"),n=o.n(i);for(var s in i)"default"!==s&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"84e1":function(t,e,o){"use strict";o.r(e);var i=o("61ec"),n=o("3c7e");for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("b06c");var a,r=o("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"77fbea68",null,!1,i["a"],a);e["default"]=d.exports},8592:function(t,e,o){"use strict";var i;o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"goods-action-icon",class:"goods-action-icon-"+t.icon,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.btn.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"goods-action-btn"},["home"==t.icon?o("v-uni-view",{staticClass:"icon iconfont",staticStyle:{"font-size":"18px"}},[t._v("")]):t._e(),"online"==t.icon?o("v-uni-view",{staticClass:"icon iconfont",staticStyle:{"font-size":"18px"}},[t._v("")]):t._e(),"cart"==t.icon?o("v-uni-view",{staticClass:"icon iconfont",staticStyle:{"font-size":"18px"}},[t._v("")]):t._e(),"collect"==t.icon?o("v-uni-view",{staticClass:"icon iconfont",class:{active:t.active},staticStyle:{"font-size":"18px"}},[t._v("")]):t._e(),t.count>0?o("v-uni-text",[t._v(t._s(t.count))]):t._e()],1),o("v-uni-view",[o("v-uni-text",{class:{active:t.active}},[t._v(t._s(t.text))])],1)],1)},s=[]},"88e5":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading",props:{text:{type:String,default:""},isShowLoading:{type:Boolean,default:!0},layer:{type:Boolean,default:!1},color:{type:String,default:"rgba(255,255,255,0.1)"}},mounted:function(){}};e.default=i},9149:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.goods-action[data-v-d06779c8]{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:initial;height:%?100?%;border-top:%?2?% solid #d9d9d9;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);background-color:#fff;z-index:100000;overflow:hidden}',""]),t.exports=e},a247:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.goods-action-icon[data-v-4990109e]{display:flex;flex-direction:column;justify-content:center;min-width:%?108?%;height:%?99?%;color:#646566;font-size:%?24?%;text-align:center;background-color:#fff;cursor:pointer}.goods-action-icon .goods-action-btn[data-v-4990109e]{display:block;text-align:center;font-size:%?26?%;color:#666;position:relative}.goods-action-icon .goods-action-btn[data-v-4990109e]:first-child{position:relative}.goods-action-icon .goods-action-btn:first-child uni-view[data-v-4990109e]{display:inline-block;width:%?36?%;height:%?36?%;padding:%?6?% 0}.goods-action-icon .goods-action-btn:first-child .active[data-v-4990109e]{color:#ff5000}.goods-action-icon .goods-action-btn:first-child uni-text[data-v-4990109e]{position:absolute;top:%?10?%;right:%?24?%;box-sizing:border-box;min-width:%?36?%;padding:0 %?6?%;color:#fff;font-weight:500;font-size:%?24?%;line-height:%?28?%;text-align:center;background-color:#ee0a24;border:%?2?% solid #fff;border-radius:%?64?%;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%}.goods-action-icon .goods-action-btn[data-v-4990109e]:last-child{font-size:%?48?%;-webkit-transform:scale(.9)}.goods-action-icon .goods-action-btn:last-child .active[data-v-4990109e]{color:#ff5000}',""]),t.exports=e},a24b:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.popup-box[data-v-77fbea68]{width:%?500?%;background-color:#fff;position:fixed;top:50%;left:50%;margin-left:%?-250?%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:311220}.popup-box .title[data-v-77fbea68]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%}.popup-box .tip[data-v-77fbea68]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%}.popup-box .bottom .item[data-v-77fbea68]{width:50%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;font-size:%?24?%;color:#666;margin-top:%?54?%}.popup-box .bottom .item.on[data-v-77fbea68]{width:100%}.flex[data-v-77fbea68]{display:flex}.popup-box .bottom .item.grant[data-v-77fbea68]{font-size:%?28?%;color:#fff;font-weight:700;background-color:#1b43c4;border-radius:0;padding:0}.mask[data-v-77fbea68]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.3);z-index:311110}',""]),t.exports=e},a3ad:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return i}));var i={navbar:o("cbc9").default,mescrollBody:o("38a3").default,skuAction:o("c95f").default,authorize:o("84e1").default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[o("navbar",{attrs:{scroll:t.scrollNum,iSimmersive:!0,title:"商品详情"}}),o("mescroll-body",{ref:"mescrollRef",attrs:{up:t.upOption},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)}}},[t.isLoading?t._e():o("v-uni-view",[o("v-uni-view",{attrs:{id:"swiper-inner-box"}},[o("v-uni-swiper",{staticClass:"swiper-box",attrs:{circular:!0,current:t.current},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onSwiperChange.apply(void 0,arguments)}}},t._l(t.images,(function(e,i){return t.images?o("v-uni-swiper-item",{key:i,staticClass:"have-none"},[o("v-uni-image",{attrs:{src:e,mode:"scaleToFill"}})],1):t._e()})),1),t.images?o("v-uni-view",{staticClass:"custom-indicator"},[t._v(t._s(t.current+1)+" / "+t._s(t.images.length))]):t._e()],1),o("v-uni-view",{staticClass:"goods-price"},[o("v-uni-view",{staticClass:"price"},[o("v-uni-view",[t._v("¥"),o("v-uni-text",[t._v(t._s(t.products.sell_price||""))])],1),o("v-uni-view",[t._v("原价格"),o("v-uni-text",[t._v("¥"+t._s(t.products.market_price||""))])],1)],1)],1),o("v-uni-view",{staticClass:"goods-info clear"},[o("v-uni-view",{staticClass:"title"},[o("v-uni-view",{staticClass:"goods-name"},[t._v(t._s(t.products.title||""))]),t.products.briefly.length?o("v-uni-view",{staticClass:"goods-name",staticStyle:{"font-size":"29rpx"},style:{color:t.products.briefly_color.length?t.products.briefly_color:"#333"}},[t._v(t._s(t.products.briefly||""))]):t._e()],1),o("v-uni-view",{staticClass:"goods-info-box"},[o("v-uni-text",[t._v("库存: "+t._s(t.products.store_nums||"")+"件")]),o("v-uni-text",[t._v("销量: "+t._s(t.products.sale||"0")+"件")])],1)],1),o("v-uni-view",{staticClass:"goods-comments clear"},[o("v-uni-view",{staticClass:"title"},[o("v-uni-text",[t._v("商品评价")]),t.comments.length>0?o("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$utils.navigateTo("comments/view",{id:t.goods_id,type:"goods"})}}},[t._v("更多 >")]):t._e()],1),t.comments.length<=0?o("v-uni-view",{staticClass:"comments-empty"},[t._v("该商品还没有评论哦!")]):t._e(),t.comments.length>0?o("v-uni-view",{staticClass:"goods-comments-list clear"},t._l(t.comments,(function(e,i){return o("v-uni-view",{key:i,staticClass:"goods-comments-box clear"},[o("v-uni-view",{staticClass:"t"},[o("v-uni-view",{staticClass:"u"},[o("v-uni-view",[o("v-uni-image",{attrs:{src:e.avatar}})],1),o("v-uni-view",[t._v(t._s(e.username))])],1),o("v-uni-view",{staticClass:"time"},[t._v(t._s(e.time))])],1),o("v-uni-view",{staticClass:"c"},[t._v(t._s(e.content))]),e.reply_content?o("v-uni-view",{staticClass:"d"},[o("v-uni-view",{staticClass:"d-1"},[t._v("商家回复")]),o("v-uni-view",{staticClass:"d-2"},[t._v(t._s(e.reply_content))])],1):t._e()],1)})),1):t._e()],1),o("v-uni-view",{staticClass:"goods-content clear"},[o("v-uni-view",{staticClass:"title"},[t._v("图文详情")]),o("v-uni-view",{staticClass:"clear",domProps:{innerHTML:t._s(t.products.content)}})],1)],1)],1),o("sku-action",{attrs:{goods:t.products,attribute:t.attribute,item:t.item,"goods-info":t.selectedGoodsInfo,fields:t.fields},on:{"update:goodsInfo":function(e){arguments[0]=e=t.$handleEvent(e),t.selectedGoodsInfo=e},"update:goods-info":function(e){arguments[0]=e=t.$handleEvent(e),t.selectedGoodsInfo=e},sku:function(e){arguments[0]=e=t.$handleEvent(e),t.updateSku.apply(void 0,arguments)}},model:{value:t.isSkuStatus,callback:function(e){t.isSkuStatus=e},expression:"isSkuStatus"}}),o("v-uni-view",{staticClass:"goods-action"},[o("goods-action-icon",{attrs:{icon:"online",text:"客服"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$utils.navigateTo("message/view")}}}),o("goods-action-icon",{attrs:{icon:"cart",text:"购物车",count:t.cartCount},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$utils.switchTab("cart/index")}}}),o("goods-action-icon",{attrs:{icon:"collect",text:"收藏",active:t.collect},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.favorite.apply(void 0,arguments)}}}),o("v-uni-view",{staticClass:"goods-action-button button-cart",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onAddCartClicked.apply(void 0,arguments)}}},[t._v("加入购物车")]),o("v-uni-view",{staticClass:"goods-action-button button-buy",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onBuyClicked.apply(void 0,arguments)}}},[t._v("立即购买")])],1),t.isLoading?o("loading",{attrs:{color:"rgba(255,255,255,1)",layer:!0}}):t._e(),o("authorize",{model:{value:t.isAuthShow,callback:function(e){t.isAuthShow=e},expression:"isAuthShow"}})],1)},s=[]},a5f2:function(t,e,o){"use strict";o.r(e);var i=o("c250"),n=o.n(i);for(var s in i)"default"!==s&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},adc9:function(t,e,o){"use strict";o.r(e);var i=o("fbd9"),n=o.n(i);for(var s in i)"default"!==s&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},b06c:function(t,e,o){"use strict";var i=o("62e1"),n=o.n(i);n.a},b10c:function(t,e,o){"use strict";var i=o("3dbb"),n=o.n(i);n.a},b45e:function(t,e,o){var i=o("b937");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("6bfb5245",i,!0,{sourceMap:!1,shadowMode:!1})},b937:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.sku-action[data-v-235625b4]{box-shadow:0 1px 10px #999;position:fixed;left:0;bottom:0;background-color:#fff;width:100%;border-radius:%?20?% %?20?% 0 0;display:flex;flex-direction:column;align-items:stretch;min-height:50%;max-height:80%;font-size:%?28?%;z-index:9999;overflow:hidden;transition:all .3s cubic-bezier(.65,.7,.7,.9);-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.sku-action .sku-header[data-v-235625b4]{margin:0 %?32?%;border-bottom:%?2?% solid #ebedf0}.sku-action .sku-header .sku-header-image[data-v-235625b4]{position:relative;float:left;width:%?192?%;height:%?192?%;margin:%?24?% 0;overflow:hidden;background:#f7f8fa;border-radius:%?8?%}.sku-action .sku-header .sku-header-image uni-image[data-v-235625b4]{position:absolute;top:0;right:0;bottom:0;left:0;max-width:100%;max-height:100%;margin:auto}.sku-action .sku-header .sku-header-goods-info[data-v-235625b4]{display:flex;flex-direction:column;justify-content:flex-end;min-height:96px;padding:%?24?% %?40?% %?24?% %?16?%;overflow:hidden}.sku-action .sku-header .sku-header-goods-info .sku-header-goods-price[data-v-235625b4]{color:#ee0a24}.sku-action .sku-header .sku-header-goods-info .sku-header-goods-price .symbol[data-v-235625b4]{font-size:%?32?%;vertical-align:bottom}.sku-action .sku-header .sku-header-goods-info .sku-header-goods-price .price[data-v-235625b4]{font-weight:500;font-size:%?44?%;vertical-align:bottom;word-wrap:break-word}.sku-action .sku-header .sku-header-goods-info .sku-header-item[data-v-235625b4]{margin-top:%?16?%;color:#969799;font-size:%?24?%;line-height:%?32?%}.sku-action .sku-header .sku-header-goods-info .sku-header-item .sku-stock[data-v-235625b4]{display:inline-block;margin-right:%?16?%;color:#969799;font-size:%?24?%}.sku-action .sku-header .sku-header-goods-info .sku-header-item .sku-stock .stock-num[data-v-235625b4]{display:inline-block;margin:0 %?8?%;color:#969799;font-size:%?24?%;font-style:normal}.sku-action .sku-body[data-v-235625b4]{flex:1 1 auto;min-height:%?88?%;overflow-y:scroll;-webkit-overflow-scrolling:touch}.sku-action .sku-body .sku-group-container[data-v-235625b4]{padding-top:%?24?%}.sku-action .sku-body .sku-group-container .sku-row[data-v-235625b4]{margin:0 %?32?% %?24?%;border-bottom:%?2?% solid #ebedf0}.sku-action .sku-body .sku-group-container .sku-row .sku-row-title[data-v-235625b4]{padding-bottom:%?24?%}.sku-action .sku-body .sku-group-container .sku-row .sku-row-item[data-v-235625b4]{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:%?80?%;margin:0 %?24?% %?24?% 0;overflow:hidden;color:#323233;font-size:%?26?%;line-height:%?32?%;vertical-align:middle;border-radius:%?8?%;cursor:pointer}.sku-action .sku-body .sku-group-container .sku-row .sku-row-item[data-v-235625b4]:before{position:absolute;top:0;left:0;width:100%;height:100%;background:#f7f8fa;content:""}.sku-action .sku-body .sku-group-container .sku-row .sku-row-item uni-text[data-v-235625b4]{font-style:normal;z-index:1;padding:%?16?%}.sku-action .sku-body .sku-group-container .sku-row .sku-row-item-active[data-v-235625b4]{color:#ee0a24}.sku-action .sku-body .sku-group-container .sku-row .sku-row-item-active[data-v-235625b4]:before{background:#ee0a24;opacity:.1}.sku-action .sku-body .sku-group-container .sku-row .sku-row-item-disable[data-v-235625b4]{color:#a8a7a7}.sku-action .sku-body .sku-stepper-stock[data-v-235625b4]{padding:%?24?% %?32?%;overflow:hidden;line-height:%?60?%}.sku-action .sku-body .sku-stepper-stock .sku-stepper-title[data-v-235625b4]{float:left}.sku-action .sku-body .sku-stepper-stock .stepper[data-v-235625b4]{font-size:0;-webkit-user-select:none;user-select:none}.sku-action .sku-body .sku-stepper-stock .sku-stepper[data-v-235625b4]{float:right;padding-left:%?8?%}.sku-action .sku-body .sku-stepper-stock .stepper-input[data-v-235625b4]{box-sizing:border-box;width:%?64?%;height:%?56?%;margin:0 %?4?%;padding:0;color:#323233;font-size:%?28?%;line-height:normal;text-align:center;vertical-align:middle;background-color:#f2f3f5;border:0;border-width:%?2?% 0;border-radius:0;-webkit-appearance:none;float:left}.sku-action .sku-body .sku-stepper-stock .stepper-minus[data-v-235625b4]{float:left}.sku-action .sku-body .sku-stepper-stock .stepper-plus[data-v-235625b4]{float:right}.sku-action .sku-body .sku-stepper-stock .stepper-minus[data-v-235625b4],\n.sku-action .sku-body .sku-stepper-stock .stepper-plus[data-v-235625b4]{display:inline-block;position:relative;box-sizing:border-box;width:%?56?%;height:%?56?%;margin:0;padding:0;color:#323233;vertical-align:middle;background-color:#f2f3f5;border:0;cursor:pointer}.sku-action .sku-body .sku-stepper-stock .stepper-minus[data-v-235625b4]:before,\n.sku-action .sku-body .sku-stepper-stock .stepper-plus[data-v-235625b4]:before{width:50%;height:%?2?%}.sku-action .sku-body .sku-stepper-stock .stepper-plus[data-v-235625b4]:after{width:%?2?%;height:50%}.sku-action .sku-body .sku-stepper-stock .stepper-minus[data-v-235625b4]:after,\n.sku-action .sku-body .sku-stepper-stock .stepper-minus[data-v-235625b4]:before,\n.sku-action .sku-body .sku-stepper-stock .stepper-plus[data-v-235625b4]:after,\n.sku-action .sku-body .sku-stepper-stock .stepper-plus[data-v-235625b4]:before{position:absolute;top:50%;left:50%;background-color:#323233;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);content:""}.sku-action .sku-body .sku-stepper-stock .stepper-minus-disabled[data-v-235625b4],\n.sku-action .sku-body .sku-stepper-stock .stepper-plus-disabled[data-v-235625b4]{color:#c8c9cc;background-color:#f7f8fa;cursor:not-allowed}.sku-action .sku-body .sku-stepper-stock .stepper-minus-disabled[data-v-235625b4]:after,\n.sku-action .sku-body .sku-stepper-stock .stepper-minus-disabled[data-v-235625b4]:before,\n.sku-action .sku-body .sku-stepper-stock .stepper-plus-disabled[data-v-235625b4]:after,\n.sku-action .sku-body .sku-stepper-stock .stepper-plus-disabled[data-v-235625b4]:before{color:#c8c9cc;background-color:#c8c9cc}.sku-action .sku-body .sku-stepper-stock .stepper-minus[data-v-235625b4]{border-radius:%?8?% 0 0 %?8?%}.sku-action .close[data-v-235625b4]{position:absolute;display:inline-block;top:%?30?%;right:%?30?%;z-index:1;color:#c8c9cc;font-size:%?44?%;cursor:pointer}.sku-show[data-v-235625b4]{-webkit-transform:translateZ(0);transform:translateZ(0)}',""]),t.exports=e},be61:function(t,e,o){"use strict";o.r(e);var i=o("c3c2"),n=o.n(i);for(var s in i)"default"!==s&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},c250:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={};e.default=i},c2be:function(t,e,o){"use strict";var i;o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[t.isShowLoading?o("v-uni-view",{staticClass:"iconfont loading"},[t._v("")]):t._e(),""!=t.text?o("v-uni-view",{staticClass:"loading-text"},[o("v-uni-view",[t._v(t._s(t.text)),o("v-uni-text",{staticClass:"dotting"})],1)],1):t._e(),t.layer?o("v-uni-view",{staticClass:"layer-box",style:"background-color:"+t.color}):t._e()],1)},s=[]},c3c2:function(t,e,o){"use strict";var i=o("4ea4");o("d3b7"),o("25f0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o("3186")),s=i(o("c95f")),a=i(o("67c1")),r=i(o("23f4")),d=i(o("5474")),c=i(o("4a45")),u=i(o("cbc9")),l=(o("c8af"),i(o("84e1"))),f={mixins:[n.default],components:{SkuAction:s.default,GoodsAction:a.default,GoodsActionButton:r.default,authorize:l.default,GoodsActionIcon:d.default,loading:c.default,navbar:u.default},data:function(){return{isAuthShow:!1,isWechat:!1,path:"",isShowPoster:!1,isCreatePoster:!1,scrollNum:0,isLoading:!0,isError:!1,upOption:{use:!1,auto:!1},fields:["id"],isSkuStatus:!1,isShareStatus:!1,images:[],collect:!1,cartCount:0,current:0,selectedGoodsInfo:{},products:{},attribute:[],comments:[],item:{},goods_id:0,url:"",painter:{width:"650rpx",height:"950rpx",views:[]}}},onLoad:function(t){this.goods_id=t.id},onShow:function(){var t=this.$storage.getJson("users");this.cartCount=null!=t?t.shop_count:0},onPageScroll:function(t){this.scrollNum=t.scrollTop},methods:{updateSku:function(t){this.attribute=t},onSwiperChange:function(t){this.current=t.detail.current},downCallback:function(){var t=this;setTimeout((function(){t.loadGoodsData(),t.mescroll.endSuccess(10,!1)}),1200)},triggerDownScroll:function(){this.mescroll.triggerDownScroll()},loadGoodsData:function(){var t=this;this.$http.getGoodsDetail({id:this.goods_id}).then((function(e){e.status?(t.collect=!!e.data.collect,t.products=e.data.goods,t.attribute=e.data.attr,t.comments=e.data.comments,t.item=e.data.item,t.images=e.data.photo,t.isLoading=!1):t.$utils.redirectTo("public/404")})).catch((function(e){alert(e),t.$utils.redirectTo("public/404")}))},favorite:function(){var t=this;this.$store.dispatch("usersStatus").then((function(){t.$http.goodsDetailFavorite({id:t.goods_id}).then((function(e){e.status?t.collect=1==e.data:t.$utils.msg(e.info)}))})).catch((function(){t.isAuthShow=!0}))},onChange:function(t){this.current=t},onBuyClicked:function(){var t=this;if(0!=this.isSkuStatus)return this.selectedGoodsInfo.isSubmit?void this.$store.dispatch("usersStatus").then((function(){t.$utils.navigateTo("cart/confirm",{id:t.selectedGoodsInfo.id,sku_id:t.selectedGoodsInfo.selectedSku.id,num:t.selectedGoodsInfo.num,type:"buy"})})).catch((function(){t.isAuthShow=!0})):(this.$utils.msg("请选择规格!"),!1);this.isSkuStatus=!0},onAddCartClicked:function(){var t=this;if(0!=this.isSkuStatus)return this.selectedGoodsInfo.isSubmit?void this.$store.dispatch("usersStatus").then((function(){t.$http.goodsDetailAddCart({id:t.selectedGoodsInfo.id,sku_id:t.selectedGoodsInfo.selectedSku.id,num:t.selectedGoodsInfo.num}).then((function(e){t.isShow=!1,e.status?(t.cartCount=e.data.count,t.$store.commit("UPDATECART",e.data.count),t.$utils.msg(e.info),e.data.count>0?uni.setTabBarBadge({index:2,text:e.data.count.toString()}):uni.removeTabBarBadge({index:2})):t.$utils.msg(e.info)})).catch((function(e){t.$utils.msg("网络出错,请检查网络是否连接")}))})).catch((function(){t.isAuthShow=!0})):(this.$utils.msg("请选择规格!"),!1);this.isSkuStatus=!0}}};e.default=f},c6a4:function(t,e,o){"use strict";var i=o("ccd0"),n=o.n(i);n.a},c95f:function(t,e,o){"use strict";o.r(e);var i=o("e904"),n=o("74c8");for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("682a");var a,r=o("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"235625b4",null,!1,i["a"],a);e["default"]=d.exports},ccd0:function(t,e,o){var i=o("6051");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("0396a0ce",i,!0,{sourceMap:!1,shadowMode:!1})},d8fa:function(t,e,o){"use strict";var i;o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"goods-action"},[t._t("default")],2)},s=[]},e21b:function(t,e,o){"use strict";var i=o("087c"),n=o.n(i);n.a},e6f4:function(t,e,o){"use strict";var i;o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"goods-action-button",class:"button-"+t.type,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.btn.apply(void 0,arguments)}}},[t._v(t._s(t.text))])},s=[]},e904:function(t,e,o){"use strict";var i;o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[o("v-uni-view",{staticClass:"sku-action",class:{"sku-show":1==t.value}},[o("v-uni-view",{staticClass:"sku-header"},[o("v-uni-view",{staticClass:"sku-header-image"},[o("v-uni-image",{attrs:{src:t.goods.photo}})],1),o("v-uni-view",{staticClass:"sku-header-goods-info"},[t._t("sku-header-price",[o("v-uni-view",{staticClass:"sku-header-goods-price"},[o("v-uni-text",{staticClass:"symbol"},[t._v("¥")]),o("v-uni-text",{staticClass:"price"},[t._v(t._s(t.goodsPrice||""))])],1)],{price:t.goodsPrice}),o("v-uni-view",{staticClass:"sku-header-item"},[o("v-uni-view",{staticClass:"sku-stock"},[t._v("剩余"),o("v-uni-text",{staticClass:"stock-num"},[t._v(t._s(t.goodsStockNumber||t.goods.store_nums||"0"))]),t._v("件")],1)],1),o("v-uni-view",{staticClass:"sku-header-item"},[t._v(t._s(t.specSelected||""))])],2)],1),o("v-uni-view",{staticClass:"sku-body",style:{"max-height":t.maxHeight+"px"}},[o("v-uni-view",{staticClass:"sku-group-container"},t._l(t.attribute,(function(e,i){return o("v-uni-view",{key:i,staticClass:"sku-row"},[o("v-uni-view",{staticClass:"sku-row-title"},[t._v(t._s(e.name))]),t._l(e.list,(function(i,n){return o("v-uni-view",{key:n,staticClass:"sku-row-item",class:{"sku-row-item-active":i.selected&&0==i.disable,"sku-row-item-disable":i.disable}},[o("v-uni-text",{staticClass:"sku-row-item-name",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.onSelected(e.id,i.id)}}},[t._v(t._s(i.value))])],1)}))],2)})),1),o("v-uni-view",{staticClass:"sku-stepper-stock"},[o("v-uni-view",{staticClass:"sku-stepper-title"},[t._v("购买数量")]),o("v-uni-view",{staticClass:"stepper sku-stepper"},[o("v-uni-view",{staticClass:"stepper-minus",class:{"stepper-minus-disabled":t.number<=1},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.minus.apply(void 0,arguments)}}}),o("v-uni-input",{staticClass:"stepper-input",attrs:{type:"number",value:t.number,disabled:"disabled"}}),o("v-uni-view",{staticClass:"stepper-plus",class:{"stepper-minus-disabled":t.number>=t.goodsStockNumber},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.plus.apply(void 0,arguments)}}})],1)],1),o("v-uni-view",{staticStyle:{width:"100%",height:"110rpx"}})],1),o("v-uni-text",{staticClass:"iconfont close",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.onClose.apply(void 0,arguments)}}},[t._v("")])],1)],1)},s=[]},fbd9:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{type:{type:String,default:""},text:{type:String,default:"按钮"}},methods:{btn:function(){this.$emit("click")}}};e.default=i}}]);
|