1 line
49 KiB
JavaScript
1 line
49 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-538c53cb"],{"02c3":function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,"#yz_goodsPopup[data-v-4cf6e8c8]{height:100%;overflow-y:scroll}#yz_goodsPopup .optionsBox[data-v-4cf6e8c8]{padding:0 .75rem;-webkit-box-sizing:border-box;box-sizing:border-box}#yz_goodsPopup .optionsBox .single[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#yz_goodsPopup .optionsBox .single .left[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:1rem}#yz_goodsPopup .optionsBox .single .left .txt[data-v-4cf6e8c8]{font-size:.75rem;color:#999;margin-left:.5rem}#yz_goodsPopup .optionsBox .single .right .editCount[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#yz_goodsPopup .optionsBox .single .right .editCount .add[data-v-4cf6e8c8],#yz_goodsPopup .optionsBox .single .right .editCount .cut[data-v-4cf6e8c8]{width:1.5rem;height:1.5rem;border:1px solid #ccc;border-radius:50%;color:#000;font-size:1.3rem;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;line-height:1.2rem}#yz_goodsPopup .optionsBox .single .right .editCount .van-cell[data-v-4cf6e8c8]{padding:0;background:transparent;width:2.22rem;text-align:center}#yz_goodsPopup .optionsBox .single .right .editCount .van-field__control[data-v-4cf6e8c8]{text-align:center}#yz_goodsPopup .bottomCartBtn[data-v-4cf6e8c8]{width:100%;position:fixed;bottom:0;left:0;background:#fff;padding:.25rem .75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#yz_goodsPopup .bottomCartBtn .left[data-v-4cf6e8c8]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:2.56rem;border:1px solid var(--color);border-radius:1.28rem;font-size:.88rem;color:var(--color);padding:.66rem .88rem;-webkit-box-sizing:border-box;box-sizing:border-box;margin-right:.75rem}#yz_goodsPopup .bottomCartBtn .right[data-v-4cf6e8c8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.56rem;background:var(--color);border-radius:1.28rem;font-size:.88rem;line-height:2.56rem;color:#fff}#yz_goodsPopup .van-popup[data-v-4cf6e8c8]{scrollbar-width:none;-ms-overflow-style:none}#yz_goodsPopup .van-popup[data-v-4cf6e8c8]::-webkit-scrollbar{display:none}#yz_goodsPopup[data-v-4cf6e8c8] .van-popup__close-icon{border-radius:50%;background:rgba(0,0,0,.5);color:#fff;padding:.25rem;right:.75rem;top:5rem}#yz_goodsPopup .yz_goodsPopup-main[data-v-4cf6e8c8]{overflow-y:scroll;overflow-x:hidden;height:100%;padding-bottom:7rem;border-radius:1.5rem 1.5rem 0 0;position:relative}#yz_goodsPopup .closeIcon[data-v-4cf6e8c8]{position:absolute;right:.75rem;top:1rem;background:rgba(0,0,0,.5);color:#fff;padding:.25rem;border-radius:50%;z-index:19}#yz_goodsPopup .banner_pcStyle[data-v-4cf6e8c8]{font-size:0}#yz_goodsPopup .rob-time[data-v-4cf6e8c8]{height:2.625rem;line-height:2.625rem;color:#fff;background:var(--color);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .875rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#yz_goodsPopup .rob-time .rt-text[data-v-4cf6e8c8]{font-size:1rem}#yz_goodsPopup .rob-time .bottom_time em[data-v-4cf6e8c8]{background:#fff;color:#000}#yz_goodsPopup .van-count-down[data-v-4cf6e8c8]{color:#fff}#yz_goodsPopup .yz-gp-goods-info[data-v-4cf6e8c8]{padding:.5rem .875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#yz_goodsPopup .yz-gp-goods-info .yz-g-price-box[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#yz_goodsPopup .yz-gp-goods-info .yz-g-price-box .van-stepper[data-v-4cf6e8c8] .van-stepper__minus{color:#639!important;border-color:var(--color)!important}#yz_goodsPopup .yz-gp-goods-info .yz-g-price-box .van-stepper[data-v-4cf6e8c8] .van-stepper__plus{background-color:var(--color)!important}#yz_goodsPopup .yz-gp-goods-info .yz-g-price[data-v-4cf6e8c8]{color:#f15353;font-size:.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;-ms-flex-align:baseline;align-items:baseline;padding-bottom:.375rem}#yz_goodsPopup .yz-gp-goods-info .yz-g-price .big-font[data-v-4cf6e8c8]{font-size:1.25rem;font-weight:700;color:#f15353;margin:0 .5rem 0 .125rem}#yz_goodsPopup .yz-gp-goods-info .yz-g-title[data-v-4cf6e8c8]{text-align:left;font-size:1rem;line-height:1.25rem;color:#333;margin-bottom:.375rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#yz_goodsPopup .yz-gp-goods-info .yz-g-other[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#6e6e79;font-size:.81rem}#yz_goodsPopup .yz-gp-goods-info .yz-g-other .other-info[data-v-4cf6e8c8]{margin-right:.875rem}#yz_goodsPopup .yz-gp-brand[data-v-4cf6e8c8]{height:3.875rem;line-height:3.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .875rem;font-size:1rem;color:#333}#yz_goodsPopup .yz-gp-brand .logo_img[data-v-4cf6e8c8]{width:1.875rem;height:1.875rem;border-radius:100%;overflow:hidden;margin:0 .75rem 0 0}#yz_goodsPopup .yz-g-detail .yz-g-d-title[data-v-4cf6e8c8]{height:2.875rem;line-height:2.875rem;color:#999}#yz_goodsPopup .yz-g-detail .yz-content[data-v-4cf6e8c8] img{max-width:100%;vertical-align:bottom}.shopinfo[data-v-4cf6e8c8]{text-align:left;margin:0 0 1.5rem 0;max-height:50vh;overflow:scroll}.shopinfo dl dt[data-v-4cf6e8c8]{color:#000;font-size:1rem}.shopinfo dl dd[data-v-4cf6e8c8],.shopinfo dl dt[data-v-4cf6e8c8]{margin-bottom:.3125rem}.noVantRadio .van-radio-group[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.noVantRadio .van-radio-group .van-radio[data-v-4cf6e8c8]{margin-right:.75rem;margin-bottom:.75rem;padding:.5rem 1.22rem;background:#fff;border:1px solid #fb4a4a;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:.13rem;color:#fb4a4a;min-width:4rem}.noVantRadio .van-radio-group[data-v-4cf6e8c8] .vantRadioshow{background-color:#f15353;border-color:#f15353}.noVantRadio .van-radio-group[data-v-4cf6e8c8] .vantRadioshow .van-radio__label{color:var(--color)!important}.noVantRadio .van-radio-group[data-v-4cf6e8c8] .van-radio__label{color:inherit}.goods-member-level[data-v-4cf6e8c8]{padding:.6rem .875rem 0 .875rem}.goods-member-level .container[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%;min-height:2.75rem;padding:.3rem .625rem;color:#fff;background-color:#493f41;border-radius:.313rem}.goods-member-level .container .icon-huiyuanguanli-copy[data-v-4cf6e8c8]{font-size:1.1rem}.goods-member-level .container .level-name[data-v-4cf6e8c8]{margin-left:.344rem;font-size:13px;font-weight:700}.goods-member-level .container .level-list[data-v-4cf6e8c8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:0 .5rem 0 .8rem;text-align:left}.goods-member-level .container .level-list .level-item[data-v-4cf6e8c8]{font-size:13px;font-weight:700}.goods-member-level .container .level-list .level-item.level-item-style-1[data-v-4cf6e8c8]{color:#e4c5a5}.goods-member-level .container .level-list .level-item.level-item-style-2[data-v-4cf6e8c8]{color:#cca86e}.goods-member-level .container .level-button[data-v-4cf6e8c8]{line-height:1.1;font-size:13px;font-weight:700}.goods-member-level .container .icon-advertise-next[data-v-4cf6e8c8]{margin-left:.113rem}.goods-member-level .container-style2 .level-list-container[data-v-4cf6e8c8]{overflow:auto}.goods-member-level .container-style2 .level-list-container[data-v-4cf6e8c8]::-webkit-scrollbar{display:none}.goods-member-level .container-style2 .item[data-v-4cf6e8c8]{padding-right:8px;height:1rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.goods-member-level .container-style2 .item .bubble[data-v-4cf6e8c8]{padding:0 6px;margin:0 0 0 4px;height:1rem;line-height:1rem;font-size:10px;color:#ffefce;border-radius:0 6px 6px 6px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;background:#333}.goods-member-level .container-style2 .item .is-select-color[data-v-4cf6e8c8]{color:#fff;background:#999}.goods-member-level .container-style2 .updata-level[data-v-4cf6e8c8]{margin:8px 0;border-radius:40px;width:100%;color:#fff;overflow:hidden;font-size:12px;font-weight:700}.goods-member-level .container-style2 .updata-level .updata-level-child-1[data-v-4cf6e8c8]{padding:8px 18px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;background:#333}.goods-member-level .container-style2 .updata-level .updata-level-child-2[data-v-4cf6e8c8]{width:4.625rem;color:#333;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;background:-webkit-gradient(linear,left top,right top,from(#fedeaf),to(#ecbc81));background:-webkit-linear-gradient(left,#fedeaf,#ecbc81);background:linear-gradient(90deg,#fedeaf,#ecbc81)}.goods-additional-info[data-v-4cf6e8c8]{text-align:left;padding:.5rem .875rem}.goods-additional-info .goods-additional-text[data-v-4cf6e8c8]{width:3.156rem;font-size:.813rem;color:#9c9c9c}.goods-additional-info .goods-additional-text_diy[data-v-4cf6e8c8]{color:#565656;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.goods-additional-info .text-right[data-v-4cf6e8c8]{text-align:right}.goods-additional-info .goods-additional-content[data-v-4cf6e8c8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:13px;font-weight:700;color:#565656}.goods-additional-info .goods-additional-button[data-v-4cf6e8c8]{font-size:12px;margin-left:.5rem;font-weight:700;color:#f14e4e}.goods-additional-info .iconfont-button[data-v-4cf6e8c8]{color:#f14e4e}.goods-additional-info .collect-order[data-v-4cf6e8c8],.goods-additional-info .selfbuy-discount[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:.8rem 0}.goods-additional-info .selfbuy-discount .selfbuy-discount-items[data-v-4cf6e8c8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.goods-additional-info .selfbuy-discount .selfbuy-discount-items .goods-additional-content[data-v-4cf6e8c8]:not(:first-child){margin-top:.8rem}.goods-additional-info .service-box[data-v-4cf6e8c8]{padding:0 .75rem .5rem 0;text-align:left;color:#5a5a5a;font-size:13px;background:#fff}.goods-additional-info .goods-activity[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:.8rem 0}.goods-additional-info .goods-activity .goods-activity-items[data-v-4cf6e8c8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.goods-additional-info .goods-activity .goods-activity-items .goods-activity-item[data-v-4cf6e8c8]:not(:first-child){margin-top:.75rem}.goods-additional-info .goods-activity .goods-activity-items .goods-activity-item[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.goods-additional-info .goods-activity .goods-activity-items .goods-activity-item .goods-activity-item-label[data-v-4cf6e8c8]{padding:2px 8px;font-size:.625rem;color:#f14e4e;background:rgba(241,78,78,.1);border-radius:15px}.goods-additional-info .goods-activity .goods-activity-items .goods-activity-item .goods-additional-content[data-v-4cf6e8c8]{margin-left:.406rem}.yz-g-addCar[data-v-4cf6e8c8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;margin:.63rem .75rem}.yz-g-addCar .yz-g-addCar_btn[data-v-4cf6e8c8]{padding:.78rem .94rem;-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--color);border-radius:1.88rem;font-size:.94rem;font-weight:500;color:#fff;position:relative}.yz-g-addCar .yz-g-addCar_btn .optionBtn_pos[data-v-4cf6e8c8]{position:absolute;right:.1rem;top:-.3rem;min-width:1.13rem;height:1.13rem;border-radius:100%;background:#fca624;text-align:center;line-height:1rem}.yz-g-addCar i[data-v-4cf6e8c8]{background:var(--color);color:#fff;width:1.5rem;height:1.5rem;text-align:center;line-height:1.5rem;border-radius:50%;display:block}",""]),t.exports=e},"12e4":function(t,e,o){"use strict";o("b8a6")},"1c27":function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,".title[data-v-c1b67ed0]{border-radius:.625rem .625rem 0 0;width:100%;background-color:#fff;font-size:16px;top:0}.title[data-v-c1b67ed0],.title i[data-v-c1b67ed0]{line-height:2.75rem;position:absolute}.title i[data-v-c1b67ed0]{right:.875rem;color:#999;font-size:1.125rem}.icon-adsystem_icon_cancle[data-v-c1b67ed0]{font-size:2rem;color:#fff}.spec_big_box[data-v-c1b67ed0]{position:relative;background:#fff;width:20rem;height:24.5rem;border-radius:.94rem;padding:.75rem;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;margin-bottom:1rem}.spec_big_box .headGood[data-v-c1b67ed0]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.spec_big_box .headGood .headGood_l[data-v-c1b67ed0]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:3.75rem;height:3.75rem}.spec_big_box .headGood .headGood_l img[data-v-c1b67ed0]{width:100%;height:100%;border-radius:.5rem}.spec_big_box .headGood .headGood_r[data-v-c1b67ed0]{margin-left:.59rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.spec_big_box .headGood .headGood_r .headGood_r_t[data-v-c1b67ed0]{font-size:.88rem;font-weight:500;color:#3b3b4a;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.spec_big_box .headGood .headGood_r .sku_r[data-v-c1b67ed0]{font-size:.81rem;font-weight:400;color:#aaaab3;margin-top:.41rem}.spec_big_box .spec_big_box_title[data-v-c1b67ed0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;width:19rem}.spec_box[data-v-c1b67ed0]{background:#fff;height:17.375rem;overflow-y:scroll;top:2.5rem}.spec_box .spec_a[data-v-c1b67ed0]{margin-top:.625rem}.spec_box .spec_a h5[data-v-c1b67ed0]{display:block;line-height:2.5rem;text-align:left;color:#6e6e79;font-size:.81rem}.spec_box .spec_a .option[data-v-c1b67ed0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 0;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.spec_box .spec_a .option .cur[data-v-c1b67ed0]{border:solid .0625rem var(--themeBaseColor);background:#faf0f0;color:var(--themeBaseColor)}.spec_box .spec_a .option li[data-v-c1b67ed0]{cursor:pointer;padding:0 6px;min-height:1.875rem;line-height:1.875rem;margin-right:.625rem;margin-bottom:.625rem;background:#f5f5f5;border:.0625rem solid #ebebeb;border-radius:.1875rem}.add_car[data-v-c1b67ed0]{width:100%;background-color:#fff}.add_car .car_btn[data-v-c1b67ed0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.add_car .car_btn .left[data-v-c1b67ed0]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#f15353;font-size:1.31rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.add_car .car_btn .left span[data-v-c1b67ed0]{font-size:.68rem}.add_car .car_btn .right[data-v-c1b67ed0]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.add_car .car_btn .right span[data-v-c1b67ed0]{display:block;font-size:.81rem;line-height:1.13rem;padding:.59rem 1rem;border-radius:1rem;background:var(--themeBaseColor);color:#fff;font-size:14px}.Box[data-v-c1b67ed0]{position:absolute;bottom:.625rem;right:.625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.Box .iconfont[data-v-c1b67ed0]{width:1.75rem;height:1.75rem;line-height:1.75rem;font-size:26px;color:var(--themeBaseColor)}.Box .icon-store_reduceLine[data-v-c1b67ed0]{color:#aaa}.Box input[data-v-c1b67ed0]{width:2rem}.Box input[data-v-c1b67ed0],.Box label[data-v-c1b67ed0]{text-align:center;font-size:12px}.Box label[data-v-c1b67ed0]{right:2.1875rem;color:#333;padding:0;width:1.5rem;height:1.75rem;overflow:hidden;display:inline-block;line-height:1.75rem;vertical-align:top;background-origin:content-box;background-color:transparent}.Box .hide[data-v-c1b67ed0]{display:none}.van-stepper[data-v-c1b67ed0] .van-stepper__minus{color:var(--color);border-color:var(--color)}.van-stepper[data-v-c1b67ed0] .van-stepper__plus{background-color:var(--color)}",""]),t.exports=e},"78cf":function(t,e,o){"use strict";o("e94d")},"7fdd":function(t,e,o){"use strict";o("f686")},"946b":function(t,e,o){"use strict";var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"scroll-hide"},[o("van-popup",{staticStyle:{background:"transparent"},attrs:{position:"center",round:""},on:{close:t.close},model:{value:t.show2,callback:function(e){t.show2=e},expression:"show2"}},[o("div",{staticClass:"spec_big_box"},[o("div",{staticClass:"headGood"},[o("div",{staticClass:"headGood_l"},[o("img",{attrs:{src:t.goodsInfo.thumb,alt:""}})]),o("div",{staticClass:"headGood_r"},[o("div",{staticClass:"headGood_r_t"},[t._v(t._s(t.goodsInfo.title))]),o("div",{staticClass:"sku_r"},[t._v("库存"+t._s(t.popStock))])])]),o("div",{staticClass:"spec_box q5",style:{width:3==t.fun.getPhoneEnv()?"375px":"100%"}},[o("div",{staticClass:"spec_a"},t._l(t.goodsInfo.has_many_specs,(function(e,i){return o("div",{key:i},[o("h5",[t._v(t._s(e.title)+":")]),o("ul",{staticClass:"option"},t._l(e.specitem,(function(e,i){return o("li",{key:i,class:t.specid.indexOf(e.id)>=0?"cur":"",on:{click:function(o){return o.stopPropagation(),t.selectSpecs(e,e.id)}}},[t._v(" "+t._s(e.title)+" ")])})),0)])})),0)]),o("div",{staticClass:"add_car"},[o("ul",{staticClass:"car_btn"},[o("li",{staticClass:"left"},[o("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.popPrice)+" ")]),t.checkCartJson(t.goodsInfo)?o("div",{staticClass:"Box"},[o("van-stepper",{style:{"--color":""+t.themeColor},attrs:{theme:"round","button-size":"20",min:"0"},on:{blur:function(e){t.inpblur(t.checkCartJson(t.goodsInfo).total)},focus:function(e){t.focus(t.checkCartJson(t.goodsInfo).total)},minus:function(e){return t.updateCartChild(t.popCard.id,-1)},plus:function(e){return t.updateCartChild(t.popCard.id,1)}},model:{value:t.checkCartJson(t.goodsInfo).total,callback:function(e){t.$set(t.checkCartJson(t.goodsInfo),"total",e)},expression:"checkCartJson(goodsInfo).total"}})],1):o("li",{staticClass:"right"},[o("span",{on:{click:function(e){return e.stopPropagation(),t.submitAction.apply(null,arguments)}}},[t._v("加入购物车")])])])])]),o("i",{staticClass:"iconfont icon-adsystem_icon_cancle",on:{click:t.close}})])],1)},s=[],a=(o("a434"),o("14d9"),o("4e82"),[]),n="",r=1,d={model:{prop:"show2",event:"onEmit"},props:{show2:{type:Boolean,default:!1},goodsInfo:{type:Object,default:{}},carts:{type:null},store_id:{tyep:null},themeColor:{type:null}},data:function(){return{moreCate:"",specid:"",popNum:0,goodsCartsOld:""}},watch:{show2:function(t,e){if(t){if(this.goodsInfo.vip_level_status&&1==this.goodsInfo.vip_level_status.status)return Toast(this.goodsInfo.vip_level_status.tips),!1;this.show2=!0,this.initPopView()}},carts:function(t,e){t&&this.initSpecs()}},computed:{checkCartJson:function(t){return function(t){var e=this.carts;if(0==this.carts.length)return!1;for(var o=[],i=0;i<e.length;i++)if(e[i].goods_id==t.id&&e[i].goods_option&&e[i].goods_option.id==n){o=e[i];break}return!(o.length<=0)&&o}}},methods:{inpblur:function(t){if(0!==t){if(""!=t)if(t<this.goodsCartsOld){var e="-".concat(this.goodsCartsOld-t);this.updateCartRequest(this.popCard.id,e)}else if(t>this.goodsCartsOld){var o=t-this.goodsCartsOld;this.updateCartRequest(this.popCard.id,o)}else if(t==this.goodsCartsOld)return}else this.delItemByCart({id:this.popCard.id})},focus:function(t){this.goodsCartsOld=t},close:function(){this.$emit("close")},updateCartChild:function(t,e){("1"==e||"-1"==e)&&this.updateCartRequest(t,e)},submitAction:function(){var t={id:this.goodsInfo.id,option_id:n};this.addCart(t,"")},updateCartRequest:function(t,e){var o=this;$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.updateNum",{id:t,num:e,store_id:this.store_id},"加载中").then((function(t){o.cartPostClick=!0,1==t.result?o.$emit("updateCart"):o.$dialog.alert({message:t.msg})}),(function(t){}))},addCart:function(t,e,o){var i=this,s="";s="cart"===e?t.goods_id:t.id,$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.store",{goods_id:s,total:1,store_id:this.store_id,option_id:t.option_id||0},"添加中").then((function(t){i.cartPostClick=!0,1===t.result?i.$emit("updateCart"):i.$dialog.alert({message:t.msg})}),(function(t){}))},delItemByCart:function(t){var e=this;$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.destroy",{store_id:this.store_id,ids:t.id},"").then((function(t){1==t.result?e.$emit("updateCart"):e.$dialog.alert({message:t.msg})}),(function(t){}))},initPopView:function(t){if(n="",a=[],this.specid="",this.popNum=0,1===this.goodsInfo.has_option){this.popTitle=this.goodsInfo.title,this.popThumb=this.goodsInfo.thumb,this.popStock=this.goodsInfo.stock,this.popCard={},this.specid.length||(this.popPrice=this.goodsInfo.min_price+"-"+this.goodsInfo.max_price),this.goodsDescription="请选择";for(var e=0;e<this.goodsInfo.has_many_specs.length;e++)this.goodsDescription+=" "+this.goodsInfo.has_many_specs[e].title;if(!n)for(var o=0;o<this.goodsInfo.has_many_specs.length;o++)this.selectSpecs(this.goodsInfo.has_many_specs[o].specitem[0],this.goodsInfo.has_many_specs[o].specitem[0].id)}else this.goodsDescription="",r=this.goodsInfo.stock},initSpecs:function(){for(var t=0;t<this.carts.length;t++){if(this.carts[t].goods_id===this.goodsInfo.id&&this.carts[t].option_id===n){this.popNum=this.carts[t].total,this.popCard=this.carts[t];break}this.popNum=0,this.popCard={}}},selectSpecs:function(t,e){this.manageSpecs(t),this.setGoodsSpecs(t),this.setGoodsSpecsChangeInfo(e),this.getMaxCount()},getMaxCount:function(){a.length==this.goodsInfo.has_many_specs.length&&(0==r&&(this.popNum=0),this.popNum>r&&(this.popNum=r))},manageSpecs:function(t){var e=new Object;if(e.id=t.id,e.specid=t.specid,e.title=t.title,a.length>0){for(var o=0;o<a.length;o++)a[o].specid==e.specid&&a.splice(o,1);a.push(e)}else a.push(e);if(a.length==this.goodsInfo.has_many_specs.length){for(var i=[],s=0;s<this.goodsInfo.has_many_specs.length;s++)for(var n=0;n<a.length;n++)if(this.goodsInfo.has_many_specs[s].id==a[n].specid){i.push(a[n]);break}a=i}this.setGoodsDescription()},setGoodsDescription:function(){var t="";if(a.length==this.goodsInfo.has_many_specs.length){t="已选择 ";for(var e=0;e<a.length;e++)t+=a[e].title+" ";this.goodsDescription=t}else{t="请选择 ";for(var o=0;o<this.goodsInfo.has_many_specs.length;o++)for(var i=0;i<a.length;i++)if(this.goodsInfo.has_many_specs[o].id!=a[i].specid){t+=this.goodsInfo.has_many_specs[o].title+" ";break}this.goodsDescription=t}},setGoodsSpecs:function(t){for(var e=0;e<this.goodsInfo.has_many_specs.length;e++)t.specid!=this.goodsInfo.has_many_specs[e].id&&this.setGoodsSpecsStatus(this.goodsInfo.has_many_specs[e].specitem,t.id)},setGoodsSpecsStatus:function(t,e){for(var o=[],i=0;i<this.goodsInfo.has_many_options.length;i++)for(var s=this.goodsInfo.has_many_options[i].specs.split("_"),a=0;a<s.length;a++)s[a]==e&&o.push(this.goodsInfo.has_many_options[i]);for(var n=0;n<o.length;n++)for(var r=o[n].specs.split("_"),d=0;d<r.length;d++)if(r[d]!=e&&0==o[n].stock)for(var l=0;l<t.length;l++)r[d]==t[l].id&&(t[l].c=!0);else if(r[d]!=e&&o[n].stock>0)for(var c=0;c<t.length;c++)r[d]==t[c].id&&(t[c].c=!1)},setGoodsSpecsBySort:function(t){var e=t.split("_");e.sort((function(t,e){return t-e}));for(var o="",i=0;i<e.length;i++)o+=e[i]+"_";return o=o.substring(0,o.length-1),o},setGoodsSpecsChangeInfo:function(t){if(a.sort((function(t,e){return t.id-e.id})),a.length===this.goodsInfo.has_many_specs.length){for(var e="",o=0;o<a.length;o++)e+=a[o].id+"_";e=e.substring(0,e.length-1),this.specid=e;for(var i=0;i<this.goodsInfo.has_many_options.length;i++)if(e===this.setGoodsSpecsBySort(this.goodsInfo.has_many_options[i].specs)){this.popmPrice=this.goodsInfo.has_many_options[i].market_price,this.popPrice=this.goodsInfo.has_many_options[i].product_price,this.popThumb=this.fun.isTextEmpty(this.goodsInfo.has_many_options[i].thumb)?this.goodsInfo.thumb:this.goodsInfo.has_many_options[i].thumb,this.popStock=this.goodsInfo.has_many_options[i].stock,n=this.goodsInfo.has_many_options[i].id,r=this.goodsInfo.has_many_options[i].stock,r>0&&(this.popNum=0);break}for(var s=0;s<this.carts.length;s++){if(this.carts[s].goods_id===this.goodsInfo.id&&this.carts[s].option_id===n){this.popNum=this.carts[s].total,this.popCard=this.carts[s];break}this.popNum=0,this.popCard={}}}else{for(var d="",l=0;l<a.length;l++)d+=a[l].id+"_";this.specid=d}}}},l=d,c=(o("78cf"),o("2877")),f=Object(c["a"])(l,i,s,!1,null,"c1b67ed0",null);e["a"]=f.exports},"969d":function(t,e,o){"use strict";var i,s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{style:{"--color":""+t.themeColor},attrs:{id:"yz_goodsPopup"}},[o("van-popup",{staticStyle:{background:"transparent"},style:{height:(t.isScanCode,"95%")},attrs:{position:"bottom","click-overlay":"close",round:t.roundShow},model:{value:t.showgp,callback:function(e){t.showgp=e},expression:"showgp"}},[o("div",{staticStyle:{height:"100%",overflow:"hidden",background:"transparent"}},[t.addCartBtn&&t.showgp?[o("div",{staticClass:"yz-g-addCar"},[1==t.goodsInfo.has_option?o("div",{staticClass:"yz-g-addCar_btn",on:{click:function(e){return e.stopPropagation(),t.ShowspecsTap.apply(null,arguments)}}},[t.optionsCheck(t.goodsInfo.id)?o("span",{staticClass:"optionBtn_pos"},[t._v(t._s(t.optionsCheck(t.goodsInfo.id)))]):t._e(),t._v(" 选择规格 ")]):t.goodsInfo.has_option||t.optionsCheck(t.goodsInfo)||t.checkCartJson(t.goodsInfo)?t._e():o("div",{staticClass:"yz-g-addCar_btn",on:{click:function(e){return t.changeStepper("addOne",t.goodsInfo.id,"1")}}},[t._v("加入购物车")])])]:t._e(),o("div",{staticClass:"yz_goodsPopup-main",staticStyle:{background:"#f8f8f8"}},[o("van-icon",{staticClass:"closeIcon",attrs:{name:"cross"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}}),o("div",{staticClass:"yz-gp-img"},[o("viewer",{staticClass:"section",staticStyle:{position:"relative"},attrs:{images:t.goodsInfo.thumb_url}},[o("c-myswipe",{staticClass:"banner_pcStyle",style:{height:3==t.fun.getPhoneEnv()?"375px":"100vw"},attrs:{"pagination-visible":!0,slides:t.goodsInfo.thumb_url,repeating:!0,auto:0}},[t.fun.isTextEmpty(t.goodsInfo.goods_video)?t._e():o("div",[o("video",{staticStyle:{width:"100%",height:"100%","object-fit":"scale-down"},attrs:{id:"goods_vedio",poster:t.goodsInfo.video_image,src:t.goodsInfo.goods_video,controls:"","webkit-playsinline":"true",playsinline:"true","x5-playsinline":"true","x-webkit-airplay":"true","x5-video-ignore-metadata":"true",width:"100%",height:"100%"}},[o("source",{attrs:{src:t.goodsInfo.goods_video}})])]),t.goodsInfo.thumb_url&&null!=t.goodsInfo.thumb_url&&0!=t.goodsInfo.thumb_url.length?t._e():o("div",[o("img",{attrs:{src:t.goodsInfo.thumb,width:"100%"}})]),t._l(t.goodsInfo.thumb_url,(function(e,i){return o("div",{key:i},[e?[o("img",{attrs:{src:e,width:"100%"}})]:t._e()],2)}))],2)],1)],1),!t.goodsInfo.end_time||"0"==t.goodsInfo.end_time&&0==t.goodsInfo.end_time?t._e():o("div",{staticClass:"rob-time"},[o("div",{staticClass:"rt-text"},[t._v("截止倒计时:")]),o("van-count-down",{staticClass:"bottom_time",attrs:{time:t.fun.getTimeDifference(t.goodsInfo.end_time),format:"DD天HH时mm分ss秒"},on:{finish:t.timeEnd},scopedSlots:t._u([{key:"default",fn:function(e){return[o("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[t._v(t._s(e.days<10?"0"+e.days:e.days)+" ")]),t._v("天 "),o("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[t._v(t._s(e.hours<10?"0"+e.hours:e.hours))]),o("b",[t._v(":")]),o("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[t._v(t._s(e.minutes<10?"0"+e.minutes:e.minutes))]),o("b",[t._v(":")]),o("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[t._v(t._s(e.seconds<10?"0"+e.seconds:e.seconds))])]}}],null,!1,762405183)})],1),o("div",{staticClass:"yz-gp-goods-info"},[o("div",{staticClass:"yz-g-price-box"},[t.showPrice?o("div",{staticClass:"yz-g-price"},[t._v(" "+t._s(t.$i18n.t("money"))+" "),t.goodsInfo.vip_level_status&&1==t.goodsInfo.vip_level_status.status?o("div",{staticClass:"big-font"},[t._v(t._s(t.goodsInfo.vip_level_status.word))]):o("div",{staticClass:"big-font"},[t._v(t._s(1==t.goodsInfo.has_option?t.goodsInfo.min_price==t.goodsInfo.max_price?t.goodsInfo.min_price:t.goodsInfo.min_price+"-"+t.goodsInfo.max_price:t.goodsInfo.price))]),Number(t.goodsInfo.market_price)>Number(t.goodsInfo.price)&&Number(t.goodsInfo.market_price)>0?o("font",{staticStyle:{"text-decoration":"line-through",color:"#999"}},[t._v(t._s(t.fun.getMarketPrice())+":"+t._s(t.goodsInfo.market_price))]):t._e()],1):t._e(),0==t.goodsInfo.has_option&&t.checkCartJson(t.goodsInfo)?o("div",{staticClass:"yz-g-stepper"},[o("van-stepper",{style:{"--color":""+t.themeColor},attrs:{theme:"round","button-size":"20",min:"0"},on:{focus:function(e){t.changeStepper("foucs",t.checkCartJson(t.goodsInfo).id,t.checkCartJson(t.goodsInfo).total)},blur:function(e){t.changeStepper("blur",t.checkCartJson(t.goodsInfo).id,t.checkCartJson(t.goodsInfo).total)},plus:function(e){t.changeStepper("plus",t.checkCartJson(t.goodsInfo).id,t.checkCartJson(t.goodsInfo).total)},minus:function(e){t.changeStepper("minus",t.checkCartJson(t.goodsInfo).id,t.checkCartJson(t.goodsInfo).total)}},model:{value:t.checkCartJson(t.goodsInfo).total,callback:function(e){t.$set(t.checkCartJson(t.goodsInfo),"total",e)},expression:"checkCartJson(goodsInfo).total"}})],1):t._e()]),o("div",{staticClass:"yz-g-title"},[t._v(t._s(t.goodsInfo.title))]),o("div",{staticClass:"yz-g-other"},[o("div",{staticClass:"other-info"},[t._v("库存:"+t._s(t.goodsInfo.stock))]),o("div",{staticClass:"other-info"},[t._v("销量:"+t._s(parseInt(t.goodsInfo.show_sales)+parseInt(t.goodsInfo.virtual_sales)))])])]),this.fun.isTextEmpty(t.goodsInfo.has_one_brand)?t._e():o("div",{staticStyle:{height:"10px",background:"#f8f8f8"}}),"1"==t.openVip?o("div",{staticClass:"goods-member-level"},[t.goodsInfo.member_discount&&t.goodsInfo.member_discount.all_level_price?o("div",{staticClass:"container-style2"},[o("div",{staticClass:"flex-a-c level-list-container"},t._l(t.goodsInfo.member_discount.all_level_price,(function(e){return o("div",{key:e.level_id,staticClass:"item flex-a-c"},[o("div",[t._v("¥"+t._s(e.price))]),o("div",{staticClass:"bubble flex-a-c",class:{"is-select-color":e.is_select}},[t._v(t._s(e.level_name))])])})),0),o("div",{staticClass:"flex updata-level"},[o("div",{staticClass:"updata-level-child-1",style:{background:t.goodsInfo.member_discount.can_upgrade?"#333":"#999"}},[t._v(" 升级为【"+t._s(t.lastMemLevelInfo.level_name||t.activeMemLevelInfo.level_name)+"】会员立享商品低价优惠 ")]),t.goodsInfo.member_discount&&t.goodsInfo.member_discount.can_upgrade&&"1"==t.goodsInfo.member_discount.display_page?o("div",{staticClass:"updata-level-child-2 flex-a-c"},[o("span",{on:{click:function(e){return e.stopPropagation(),t.gotoMemberGradeList(t.goodsInfo.member_discount.display_page)}}},[t._v("去升级")])]):t._e()])]):o("div",{staticClass:"container",on:{click:function(e){return t.gotoMemberGradeList(t.goodsInfo.member_discount.display_page)}}},[o("i",{staticClass:"iconfont icon-huiyuanguanli-copy"}),o("div",{staticClass:"level-name"},[t._v("会员")]),o("div",{staticClass:"level-list"},[t.goodsInfo.member_discount&&t.goodsInfo.member_discount.discount_value?o("div",{staticClass:"level-item level-item-style-1"},[t._v(" "+t._s(t.goodsInfo.member_discount.level_name)+"专享价"+t._s(t.$i18n.t("money"))+" "+t._s(t.goodsInfo.vip_level_status&&1==t.goodsInfo.vip_level_status.status?"暂无权限":t.goodsInfo.member_discount.discount_value)+" "),t.isRent?o("span",[t._v("/天")]):t._e()]):t._e(),t.goodsInfo.member_discount&&t.goodsInfo.member_discount.next_level_price!=t.goodsInfo.member_discount.discount_value?o("div",{staticClass:"level-item level-item-style-2"},[t._v(" 加入"+t._s(t.goodsInfo.member_discount.next_level_name)+"专享价"+t._s(t.$i18n.t("money"))+" "+t._s(t.goodsInfo.vip_level_status&&1==t.goodsInfo.vip_level_status.status?"暂无权限":t.goodsInfo.member_discount.next_level_price)+" "),t.isRent?o("span",[t._v("/天")]):t._e()]):t._e()]),t.goodsInfo.member_discount&&"1"==t.goodsInfo.member_discount.display_page?[o("div",{staticClass:"level-button"},[t._v("立即开通")]),o("i",{staticClass:"iconfont icon-advertise-next"})]:t._e()],2)]):t._e(),o("selfParameterServicetag",{attrs:{goods_info:t._goodsInfo,loading:t.show1}}),this.fun.isTextEmpty(t.goodsInfo.has_one_brand)?t._e():o("div",{staticClass:"yz-gp-brand"},[o("img",{staticClass:"logo_img",attrs:{src:t.goodsInfo.has_one_brand.logo,alt:""}}),t._v(" "+t._s(t.goodsInfo.has_one_brand.name)+" ")]),t.goods_plugin.group_code&&1==t.goods_plugin.group_code.goods_entrance?o("div",{staticClass:"group-code"},[t.goods_plugin.group_code.code_logo?o("div",{staticClass:"group-code-face"},[o("img",{attrs:{src:t.goods_plugin.group_code.code_logo,alt:""}})]):t._e(),o("div",{staticClass:"group-code-content"},[o("div",{staticClass:"group-code-name"},[t._v(t._s(t.goods_plugin.group_code.code_title)+"邀请您添加专属福利群!")]),o("div",{staticClass:"group-code-desc"},[t._v(t._s(t.goods_plugin.group_code.citation_copy))])]),o("div",{staticClass:"group-code-button",on:{click:t.toGroupCode}},[t._v("去加群")])]):t._e(),t.isScanCode?o("div",{staticClass:"optionsBox"},[t.fun.isTextEmpty(t.goodsInfo.has_many_specs)?t._e():o("div",{staticClass:"shopinfo noVantRadio"},t._l(t.goodsInfo.has_many_specs,(function(e,i){return o("dl",{key:i},[o("dt",[t._v(t._s(e.title))]),o("dd",[o("van-radio-group",{attrs:{"checked-color":"#f15353"},on:{change:t.selectSpecs},model:{value:e.description,callback:function(o){t.$set(e,"description",o)},expression:"specs.description"}},t._l(e.specitem,(function(i,s){return o("van-radio",{key:s,class:{vantRadioshow:e.description==i},style:{borderColor:e.description==i?""+t.themeColor:"transparent",backgroundColor:"#f6f6f6",color:e.description!=i?"#999999":t.themeColor+"!important"},attrs:{disabled:i.c,name:i,"checked-color":""+t.themeColor}},[t._v(" "+t._s(i.title)+" ")])})),1)],1)])})),0),o("div",{staticClass:"single"},[o("div",{staticClass:"left"},[t._v(" 购买数量 "),o("span",{staticClass:"txt"},[t._v("(库存"+t._s(t.popStock)+"个)")])]),o("div",{staticClass:"right"},[o("div",{staticClass:"editCount"},[o("div",{staticClass:"cut",on:{click:function(e){return e.stopPropagation(),t.reduceGoods.apply(null,arguments)}}},[t._v("-")]),o("van-field",{attrs:{type:"digit","input-align":"center"},model:{value:t.goodsCount,callback:function(e){t.goodsCount=e},expression:"goodsCount"}}),o("div",{staticClass:"add",on:{click:function(e){return e.stopPropagation(),t.addGoods.apply(null,arguments)}}},[t._v("+")])],1)])])]):t._e(),1==t.goodsInfo.is_order_detail_comment_show?o("c-comment",{staticClass:"section",attrs:{commentInfo:t.commentLimit,num:t.totalComment,rate:t.favorable_rate,is_show_default_praise:t.is_show_default_praise,goods_id:this.$route.params.id},on:{RouterTo:t.FromTo}}):t._e(),o("div",{staticStyle:{height:"10px",background:"#f8f8f8"}}),o("div",{staticClass:"yz-g-detail"},[o("div",{staticClass:"yz-g-d-title"},[t._v("— 商品详情 —")]),o("div",{staticClass:"yz-content",domProps:{innerHTML:t._s(t.goodsInfo.content)}})]),t.isScanCode?o("div",{staticStyle:{height:"3rem",background:"#f8f8f8"}}):t._e()],1),t.isScanCode?o("div",{staticClass:"bottomCartBtn set-pc-style"},[o("div",{staticClass:"left",on:{click:t.storeAddCart}},[t._v("加入购物车")]),o("div",{staticClass:"right",on:{click:t.closeCart}},[t._v("结算购物车")])]):t._e()],2)]),t.cardata?o("manySpecs",{attrs:{store_id:t.store_id,goodsInfo:t.goodsInfo,carts:t.cardata},on:{updateCart:t.updateChild,close:t.manySpecsClose},model:{value:t.Showspecs,callback:function(e){t.Showspecs=e},expression:"Showspecs"}}):t._e(),t.showgp?o("posCart",{attrs:{cartsNum:t.cartsNum,cartsTotal:t.cartsTotal,themeColor:t.themeColor,cardata:t.cardata,showGood:t.showgp,store_id:t.store_id}}):t._e()],1)},a=[],n=o("ade3"),r=(o("14d9"),o("c992")),d=o("9e2a"),l=o("1cba"),c=o("946b"),f=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{},[o("div",{staticClass:"posCartBox set-pc-style",class:[t.fun.isIphoneX()?"iphoneXStyle":"",t.showGood&&!t.showCarList?"posCartBoxTop":""],on:{click:function(e){t.showCarList=!0}}},[o("div",{staticClass:"left"},[t.cartsNum?o("div",{staticClass:"posCartNum"},[t._v(t._s(t.cartsNum))]):t._e(),t._m(0),o("div",{staticClass:"price"},[o("span",{staticClass:"left_t"},[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(t.cartsTotal)+" ")])]),o("div",{staticClass:"right",on:{click:function(e){return e.stopPropagation(),t.goodsOrder.apply(null,arguments)}}},[t._v("去结算")])]),t.cardata&&t.showGood?o("yzCartList",{attrs:{showDestory:!0,cardata:t.cardata,themeColor:t.themeColor},on:{focus:t.numberRight1,blur:t.numberRight1,clearCart:t.clearCartChild,minus:t.numberRight1,plus:t.numberRight1},model:{value:t.showCarList,callback:function(e){t.showCarList=e},expression:"showCarList"}},[o("div",{staticClass:"showCartGoodList"},[o("div",{staticClass:"left"},[o("span",{staticClass:"left_t"},[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(t.cartsTotal)+" ")]),o("div",{staticClass:"right"},[o("div",{staticClass:"btn",on:{click:function(e){return e.stopPropagation(),t.goodsOrder.apply(null,arguments)}}},[t._v("去结算")])])])]):t._e()],1)},p=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"buyIcon"},[o("i",{staticClass:"iconfont icon-gouwuche_"})])}],g=(o("b0c0"),o("d3b7"),o("159b"),o("25bd")),m={props:{themeColor:{type:String,default:"#f14e4e"},cardata:{type:null},showGood:{type:Boolean,default:!1},store_id:{type:String,default:""},cartsNum:{type:null},cartsTotal:{type:null},childTag:{type:String},tag:{type:String,default:""}},data:function(){return{cartsTotal:0,showCarList:!1,goodsCartsOld:"",cartPostClick:!0}},components:{yzCartList:g["a"]},methods:{goodsOrder:function(){this.tag||this.$parent.$emit("toOrder")},numberRight1:function(t){if(this.cartPostClick)if(this.cartPostClick=!1,"addOne"==t.name&&this.addCart(t,"",t.total),"minus"==t.name){for(var e,o=0;o<this.cardata.length;o++)if(this.cardata[o].id==t.id){e=this.cardata[o];break}this.updateCartRequest(e.id,-1)}else if("plus"==t.name){for(var i,s,a=0;a<this.cardata.length;a++)if(this.cardata[a].id==t.id){s=a,i=this.cardata[a];break}this.addCart(i,"cart",s)}else if("blur"==t.name){for(var n,r=0;r<this.cardata.length;r++)if(this.cardata[r].id==t.id){r,n=this.cardata[r];break}if(n.total<0)return Toast("商品数量不能为负数"),void(n.total=this.goodsCartsOld);if(n.total<this.goodsCartsOld){var d=this.goodsCartsOld-n.total;this.updateCartRequest(n.id,-d)}else if(n.total>this.goodsCartsOld){var l=n.total-this.goodsCartsOld;this.updateCartRequest(n.id,l)}else if(n.total==this.goodsCartsOld)return}else"focus"==t.name&&(this.cartPostClick=!0,this.goodsCartsOld=t.total);else this.$toast("请求中")},clearCartChild:function(){var t=this,e=[];this.cardata.forEach((function(t){e.push(t.id)})),$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.destroy",{store_id:this.store_id,ids:e},"").then((function(e){1==e.result?(t.$parent.$emit("cartUpdate"),t.showCarList=!1):t.$dialog.alert({message:e.msg})}),(function(t){}))},addCart:function(t,e,o){var i=this,s="";s="cart"===e?t.goods_id:t.id,$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.store",{goods_id:s,total:1,store_id:this.store_id,option_id:t.option_id||0},"添加中").then((function(e){i.cartPostClick=!0,1===e.result?i.tag||i.$parent.$emit("cartUpdate",t):i.$dialog.alert({message:e.msg})}),(function(t){}))},updateCartRequest:function(t,e){var o=this;$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.updateNum",{id:t,num:e,store_id:this.store_id},"加载中").then((function(t){o.cartPostClick=!0,1==t.result?(o.popNum=o.popNum+e,o.tag||o.$parent.$emit("cartUpdate")):o.$dialog.alert({message:t.msg})}),(function(t){}))}}},h=m,u=(o("7fdd"),o("2877")),b=Object(u["a"])(h,f,p,!1,null,"41c3456a",null),v=b.exports,_={model:{prop:"showgp",event:"onEmit"},props:{showgp:{type:Boolean,required:!1},_goodsInfo:{type:Object,default:function(){return{}}},goodsInfo:{type:Object,default:function(){return{}}},themeColor:{type:String,default:"#f14e4e"},addCartBtn:{type:Boolean,default:!0},isScanCode:{type:Boolean,default:!1},showPrice:{type:Boolean,default:!0},roundShow:{type:Boolean,default:!1},goodsCartsTotal:{type:null},cardata:{type:null},store_id:{type:String,default:""},cartsNum:{type:null},cartsTotal:{type:null},tag:{type:String,default:""}},data:function(){return{valueNUm:"1",activitySwitch:!1,show1:!1,openVip:2,goods_plugin:[],commentLimit:[],totalComment:"",is_show_default_praise:0,favorable_rate:"100%",timer:null,Showspecs:!1,goodsCartsOld:""}},components:{cMyswipe:r["a"],selfParameterServicetag:d["a"],cComment:l["a"],manySpecs:c["a"],posCart:v},computed:{optionsCheck:function(t){return function(t){if(this.goodsCartsTotal[t])return this.goodsCartsTotal[t].total}},checkCartJson:function(t){return function(t){var e=[];this.cardata&&(e=this.cardata);var o=[];if(0==e.length)return!1;for(var i=0;i<e.length;i++)if(e[i].goods_id==t.id){o=e[i];break}return!(o.length<=0)&&o}}},watch:{showgp:function(t,e){t&&this.init()},goodsInfo:function(t,e){t&&(this.goodsInfo.member_discount&&this.goodsInfo.member_discount.discount&&(this.fun.isTextEmpty(this.goodsInfo.member_discount.discount)?this.openVip=1:this.openVip=this.goodsInfo.member_discount.discount),this.goods_plugin=this._goodsInfo.plugin,this.getData(t))},_goodsInfo:function(t,e){this.show1=!0}},mounted:function(){this.show1=!0},methods:(i={updateChild:function(){this.$emit("updateChild")},close:function(){this.$emit("onEmit",!1)},addCart:function(){this.$emit("showgoodspecs",!0)},init:function(){this.isScanCode&&(this.popupSpecs=!1,this.initPopViewisScanCode())},closeCart:function(){this.$emit("closeCart")},storeAddCart:function(){this.$emit("addCart",{goodsInfo:this.goodsInfo,optionsId:this.optionsId,goodsCount:this.goodsCount})}},Object(n["a"])(i,"closeCart",(function(){this.$emit("toOrderChild")})),Object(n["a"])(i,"gotoMemberGradeList",(function(t){"1"==t&&this.$router.push(this.fun.getUrl("MemberGradeList",{}))})),Object(n["a"])(i,"changeStepper",(function(t,e,o){if("plus"==t)this.updateCartRequest(e,"1");else if("minus"==t)this.updateCartRequest(e,"-1");else if("addOne"==t)this.addCart({id:e},"");else if("foucs"==t)this.goodsCartsOld=o;else if("blur"==t){if(0===o&&this.delItemByCart({id:e}),""==o)return;if(o<this.goodsCartsOld){var i="-".concat(this.goodsCartsOld-o);this.updateCartRequest(e,i)}else if(o>this.goodsCartsOld){var s=o-this.goodsCartsOld;this.updateCartRequest(e,s)}else if(o==this.goodsCartsOld)return}})),Object(n["a"])(i,"getData",(function(t){t.comment?(this.commentLimit=t.comment.data,this.totalComment=t.comment.total_summary?t.comment.total_summary:0):t.get_comment&&(this.commentLimit=t.get_comment.data,this.totalComment=t.get_comment.total_summary?t.get_comment.total_summary:0,this.is_show_default_praise=t.get_comment.is_show_good_reputation_text)})),Object(n["a"])(i,"manySpecsClose",(function(){this.Showspecs=!1})),Object(n["a"])(i,"ShowspecsTap",(function(){this.Showspecs=!0})),Object(n["a"])(i,"updateCartRequest",(function(t,e){var o=this;$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.updateNum",{id:t,num:e,store_id:this.store_id},"加载中").then((function(t){o.cartPostClick=!0,1==t.result?o.updateChild():o.$dialog.alert({message:t.msg})}),(function(t){}))})),Object(n["a"])(i,"addCart",(function(t,e,o){var i=this,s="";s="cart"===e?t.goods_id:t.id,$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.store",{goods_id:s,total:1,store_id:this.store_id,option_id:t.option_id||0},"添加中").then((function(t){i.cartPostClick=!0,1===t.result?i.updateChild():i.$dialog.alert({message:t.msg})}),(function(t){}))})),Object(n["a"])(i,"delItemByCart",(function(t){var e=this;$http.get("plugin.store-cashier.frontend.shoppingCart.member-cart.destroy",{store_id:this.store_id,ids:t.id},"").then((function(t){1==t.result?e.updateChild():e.$dialog.alert({message:t.msg})}),(function(t){}))})),i)},x=_,y=(o("12e4"),Object(u["a"])(x,s,a,!1,null,"4cf6e8c8",null));e["a"]=y.exports},b8a6:function(t,e,o){var i=o("02c3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=o("499e").default;s("4801e2ac",i,!0,{sourceMap:!1,shadowMode:!1})},e94d:function(t,e,o){var i=o("1c27");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=o("499e").default;s("25126652",i,!0,{sourceMap:!1,shadowMode:!1})},ee3b:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,".posCartBox[data-v-41c3456a]{position:fixed;bottom:4rem;left:0;height:3rem;border-radius:1.53rem;background:#fff;margin:0 .75rem;z-index:99;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.posCartBox .right[data-v-41c3456a]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:5.63rem;border-radius:0 1.53rem 1.53rem 0;background:var(--themeBaseColor);font-size:.94rem;font-weight:500;color:#fff;-ms-flex-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.posCartBox .left[data-v-41c3456a],.posCartBox .right[data-v-41c3456a]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.posCartBox .left[data-v-41c3456a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:16.31rem;-ms-flex-align:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding-left:.37rem;background:#00001c;border-radius:1.53rem 0 0 1.53rem;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.posCartBox .left .posCartNum[data-v-41c3456a]{position:absolute;left:2.06rem;top:0;font-size:.75rem;color:#fff;font-weight:500;padding:.16rem .34rem;border-radius:100%;background:#fca624;max-width:2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.posCartBox .left .price[data-v-41c3456a]{font-size:1.13rem;font-weight:700;color:#fff;margin-left:.78rem}.posCartBox .left .price .left_t[data-v-41c3456a]{font-size:.75rem}.posCartBox .left .buyIcon[data-v-41c3456a]{width:2.25rem;height:2.25rem;background:-webkit-linear-gradient(121deg,#ff1313,#fb7676);background:linear-gradient(329deg,#ff1313,#fb7676);border-radius:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.posCartBox .left .buyIcon .icon-gouwuche_[data-v-41c3456a]{color:#fff;font-size:1.5rem}.posCartBoxTop[data-v-41c3456a]{bottom:2rem!important;z-index:99999}.showCartGoodList[data-v-41c3456a]{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem .78rem}.showCartGoodList[data-v-41c3456a],.showCartGoodList .left[data-v-41c3456a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.showCartGoodList .left[data-v-41c3456a]{font-size:1.13rem;font-weight:700;color:#f15353;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.showCartGoodList .left .left_t[data-v-41c3456a]{font-size:.75rem}.showCartGoodList .right[data-v-41c3456a]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.showCartGoodList .right .btn[data-v-41c3456a]{padding:.78rem 1.72rem;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:.94rem;font-weight:500;color:#fff;background:var(--themeBaseColor);border-radius:1.56rem}",""]),t.exports=e},f686:function(t,e,o){var i=o("ee3b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=o("499e").default;s("63c39322",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |