1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-detail-goods-detail"],{"06c5":function(t,i,e){"use strict";e("a630"),e("fb6a"),e("d3b7"),e("25f0"),e("3ca3"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=a;var n=o(e("6b75"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,i){if(t){if("string"===typeof t)return(0,n.default)(t,i);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?(0,n.default)(t,i):void 0}}},"0f2b":function(t,i,e){"use strict";e.r(i);var n=e("95f3"),o=e("adda");for(var a in o)"default"!==a&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("aa1f");var s,r=e("f0c5"),c=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"b142b060",null,!1,n["a"],s);i["default"]=c.exports},2909:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=c;var n=r(e("6005")),o=r(e("db90")),a=r(e("06c5")),s=r(e("3427"));function r(t){return t&&t.__esModule?t:{default:t}}function c(t){return(0,n.default)(t)||(0,o.default)(t)||(0,a.default)(t)||(0,s.default)()}},"29e5":function(t,i,e){var n=e("8dde");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("cdcf2946",n,!0,{sourceMap:!1,shadowMode:!1})},3427:function(t,i,e){"use strict";function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n},"3cc0":function(t,i,e){"use strict";e.r(i);var n=e("7f93"),o=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},6005:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=a;var n=o(e("6b75"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t))return(0,n.default)(t)}},6062:function(t,i,e){"use strict";var n=e("6d61"),o=e("6566");t.exports=n("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},6566:function(t,i,e){"use strict";var n=e("9bf2").f,o=e("7c73"),a=e("e2cc"),s=e("0366"),r=e("19aa"),c=e("2266"),u=e("7dd0"),l=e("2626"),d=e("83ab"),v=e("f183").fastKey,f=e("69f3"),p=f.set,h=f.getterFor;t.exports={getConstructor:function(t,i,e,u){var l=t((function(t,n){r(t,l,i),p(t,{type:i,index:o(null),first:void 0,last:void 0,size:0}),d||(t.size=0),void 0!=n&&c(n,t[u],t,e)})),f=h(i),g=function(t,i,e){var n,o,a=f(t),s=b(t,i);return s?s.value=e:(a.last=s={index:o=v(i,!0),key:i,value:e,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=s),n&&(n.next=s),d?a.size++:t.size++,"F"!==o&&(a.index[o]=s)),t},b=function(t,i){var e,n=f(t),o=v(i);if("F"!==o)return n.index[o];for(e=n.first;e;e=e.next)if(e.key==i)return e};return a(l.prototype,{clear:function(){var t=this,i=f(t),e=i.index,n=i.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;i.first=i.last=void 0,d?i.size=0:t.size=0},delete:function(t){var i=this,e=f(i),n=b(i,t);if(n){var o=n.next,a=n.previous;delete e.index[n.index],n.removed=!0,a&&(a.next=o),o&&(o.previous=a),e.first==n&&(e.first=o),e.last==n&&(e.last=a),d?e.size--:i.size--}return!!n},forEach:function(t){var i,e=f(this),n=s(t,arguments.length>1?arguments[1]:void 0,3);while(i=i?i.next:e.first){n(i.value,i.key,this);while(i&&i.removed)i=i.previous}},has:function(t){return!!b(this,t)}}),a(l.prototype,e?{get:function(t){var i=b(this,t);return i&&i.value},set:function(t,i){return g(this,0===t?0:t,i)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),d&&n(l.prototype,"size",{get:function(){return f(this).size}}),l},setStrong:function(t,i,e){var n=i+" Iterator",o=h(i),a=h(n);u(t,i,(function(t,i){p(this,{type:n,target:t,state:o(t),kind:i,last:void 0})}),(function(){var t=a(this),i=t.kind,e=t.last;while(e&&e.removed)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?"keys"==i?{value:e.key,done:!1}:"values"==i?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),e?"entries":"values",!e,!0),l(i)}}},"6b75":function(t,i,e){"use strict";function n(t,i){(null==i||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n},7088:function(t,i,e){var n=e("f719");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("6c3e410f",n,!0,{sourceMap:!1,shadowMode:!1})},"7f93":function(t,i,e){"use strict";var n=e("4ea4");e("4de4"),e("d81d"),e("a9e3"),e("b64b"),e("d3b7"),e("6062"),e("3ca3"),e("ddb0"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=n(e("2909")),a=n(e("0115")),s=e("6436"),r=e("51da"),c=e("4b9e"),u=n(e("0f2b")),l={components:{popUp:a.default,errPop:u.default},data:function(){return{pop:{popShow:!1,content:"",showCancel:!0,cancelText:"",cancelBg:"",confirmBg:"",confirmText:"",confirmColor:"",suceShow:!1},count:0,tabType:"女款",isSize:!1,goods:"",goodsSize:[],banner:"",allImg:0,current:0,timer:null,scrollviewHeight:0,scrollTop:0,oldScrollTop:0,sku:[],isVip:"",oldVip:"",countDown:0,phone:"",sms:"",isEdit:!1,isSend:!0,phoneShow:!1,errShow:!1,errMsg:"",hintShow:!1,hintMsg:"",store_id:"",is_agent:"",isTest:0}},onLoad:function(t){this.store_id=uni.getStorageSync("storeInfo").id,this.isTest=uni.getStorageSync("storeInfo").is_test,t.id&&this.getDetail(t.id),this.is_agent=t.is_agent},onShow:function(){this.isVip=this.oldVip=uni.getStorageSync("isVip")},computed:{maleNum:function(){var t=0;return this.goodsSize.map((function(i){"男款"==i.style&&(t+=i.num)})),t},femalNum:function(){var t=0;return this.goodsSize.map((function(i){"女款"==i.style&&(t+=i.num)})),t},totalNum:function(){var t=0;return this.goodsSize.map((function(i){t+=Number(i.num)})),t},totalPrice:function(){var t=this,i=0;return this.goodsSize.map((function(e){i+=e.num*t.goods.price})),i},vipPrice:function(){var t=this,i=0;return this.goodsSize.map((function(e){i+=e.num*t.goods.vip_price})),i}},methods:{errOpera:function(t){var i=this;if(0==t)return(0,c.mergeUser)({phone:this.phone}).then((function(t){200==t.code?(uni.setStorageSync("userToken",t.data),uni.showToast({title:"合并账号成功"}),i.errShow=!1,i.placeOrder()):uni.showModal({content:t.msg||"合并账号失败,请重试",showCancel:!1})})),!1;this.hintShow=!1},getUser:function(t,i){var e=this;(0,c.getUserInfo)({store_id:this.store_id}).then((function(n){200==n.code?n.data.phone?(uni.showTabBar(),1==t?e.addToCart(i):e.placeOrder()):(e.phoneShow=!0,uni.hideTabBar()):uni.showModal({content:n.msg||"获取用户信息失败",showCancel:!1})}))},sendCode:function(){var t=this,i=this;return i.countDown?(uni.showModal({content:"验证码已发送,请稍后重试",showCancel:!1}),!1):i.phone&&11==i.phone.length?void(0,c.sendCode)({phone:i.phone}).then((function(i){200==i.code?(t.isEdit=!0,uni.showModal({content:"验证码发送成功",showCancel:!1}),t.countDown=60,t.timer=setInterval((function(){t.countDown--,t.countDown||(t.countDown=0,clearInterval(t.timer))}),1e3)):(t.countDown=0,clearInterval(t.timer),t.isEdit=!1,t.hintShow=!0,t.hintMsg=i.msg||"获取验证码失败")})).finally((function(){t.isEdit=!1})):(uni.showModal({content:"手机号格式不正确",showCancel:!1}),!1)},submit:function(){var t=this,i=this;return i.phone&&11==i.phone.length?i.sms&&6==i.sms.length?!!i.isSend&&(i.isSend=!1,void(0,c.editPhone)({phone:this.phone,phone_code:this.sms}).then((function(e){if(450005==Number(e.code))return i.phoneShow=!1,t.errShow=!0,t.errMsg="该手机号已注册未绑定,为了更便于你的操作,我们将合并你的账号",!1;if(200==e.code){if(uni.showTabBar(),i.phoneShow=!1,uni.showToast({title:"绑定成功",duration:3e3}),uni.setStorageSync("is_agent",e.data.is_agent),1==e.data.is_agent)return uni.showModal({content:"代理不能下单",showCancel:!1,success:function(t){t.confirm&&uni.switchTab({url:"../index/index"})}}),!1}else t.hintShow=!0,t.hintMsg=e.msg||"验证手机号失败"})).catch((function(t){i.isEdit=!1,i.isSend=!0})).finally((function(){i.isEdit=!1,i.isSend=!0}))):(uni.showModal({content:"验证码格式不正确"}),!1):(uni.showModal({content:"手机号格式不正确"}),!1)},copy:function(t){(0,r.handleClipboard)(t,event,(function(){uni.showToast({icon:"none",title:"复制成功"})}),(function(){uni.showToast({icon:"none",title:"复制失败"})}))},checkVip:function(){var t=this.goodsSize,i=0;t.map((function(t){i+=t.num})),this.isVip=i>=2?1:0},scroll:function(t){this.oldScrollTop=t.detail.scrollTop},goTop:function(t){var i=this;this.scrollTop=this.oldScrollTop,this.$nextTick((function(){i.scrollTop=0}))},contact:function(){var t=uni.getStorageSync("storeInfo").phone;t?uni.makePhoneCall({phoneNumber:t}):uni.showToast({title:"暂无联系方式~",icon:"none"})},getVal:function(t,i,e){var n=this;if(Math.ceil(Math.abs(Number(t.detail.value)))>e&&1==this.isTest)return uni.showToast({title:"库存不足,请联系卖家",icon:"none"}),setTimeout((function(){n.goodsSize[i].num=e}),0),!1;this.goodsSize[i].num=Math.ceil(Math.abs(Number(t.detail.value)));var o=0;this.goodsSize.map((function(t){o+=t.num}));var a=this.sku;a.map((function(t){t.type==n.goodsSize[i].style&&(t.num=o)})),1!=this.oldVip&&this.checkVip()},down:function(t,i,e){if(0==i)return uni.showToast({title:"数量至少为1",icon:"none"}),!1;this.goodsSize[t].num--;var n=this.sku;n.map((function(t){t.type==e&&t.num--})),1!=this.oldVip&&this.checkVip()},up:function(t,i,e,n){if(this.goodsSize[t].num==n&&1==this.isTest)return uni.showToast({title:"库存不足,请联系卖家",icon:"none"}),!1;this.goodsSize[t].num++;var o=this.sku;o.map((function(t){t.type==e&&t.num++})),1!=this.oldVip&&this.checkVip()},getDetail:function(t){var i=this;(0,s.getGoods)({goods_id:t,store_id:this.store_id}).then((function(t){if(200==t.code){i.goods=t.data,t.data.banner&&(i.banner=JSON.parse(t.data.banner),i.allImg=i.banner.length);var e=t.data.sku;e.map((function(t){i.sku.push({num:0,type:t})}));var n=t.data.size;for(var o in n){var a=n[o];for(var s in a)i.goodsSize.push({stock:a[s].num,size:s,id:a[s].id,num:0,style:o,price:i.goods.price,vip_price:i.goods.vip_price})}}}))},choose:function(t){this.goTop(),this.tabType=t},zh:function(t){var i=[];for(var e in t)for(var n in i[e]=[],t[e])i[e].push(t[e][n]);return i},deleteJsonKey:function(t,i){if(0==t.length)return t;var e=[];if(Array.isArray(i)){var n=Object.keys.apply(Object,(0,o.default)(t)).filter((function(t){return!new Set(i).has(t)}));e=JSON.parse(JSON.stringify(t,n))}else e=JSON.parse(JSON.stringify(t,(function(t,e){if(t!==i)return e})));return e},close:function(t){if(t)return this.pop.popShow=!1,!1;uni.switchTab({url:"../index/index"})},goOn:function(t){if(t)return this.pop.popShow=!1,!1;uni.switchTab({url:"../shopping-cart/shopping-cart"})},addCart:function(){var t=this.deleteJsonKey(this.goodsSize,["style","size","price","stock"]),i=t.filter((function(t,i){return 0!=t.num})),e=this.zh(i);if(0==e.length)return uni.showModal({content:"请至少选择一个尺码",showCancel:!1}),!1;this.getUser(1,e)},addToCart:function(t){var i=this;(0,s.addCart)({arr:t}).then((function(t){200==t.code?i.pop={popShow:!0,content:"加入购物车成功",showCancel:!0,cancelText:"继续购买",cancelBg:"#E9E9E9",confirmBg:"#85CE52",confirmText:"去结算",confirmColor:"#fff",suceShow:!0}:uni.showModal({content:t.msg||"加入购物车失败",showCancel:!1})}))},buyNow:function(){var t=this.deleteJsonKey(this.goodsSize,["style","size","price"]),i=t.filter((function(t,i){return 0!=t.num})),e=this.zh(i);if(0==e.length)return uni.showModal({content:"请至少选择一个尺码",showCancel:!1}),!1;this.getUser(2)},placeOrder:function(){var t=this.goodsSize,i=t.filter((function(t){return t.num>0}));uni.setStorageSync("order",i),uni.navigateTo({url:"../detail-order/detail-order?img="+this.goods.img+"&name="+this.goods.name})},swiperChange:function(t){this.current=t.target.current}}};i.default=l},"8dde":function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.richText[data-v-5ea1a4dc]{width:%?632?%;margin:%?28?% auto 0;z-index:99;min-height:%?500?%;padding-bottom:%?110?%}.rich[data-v-5ea1a4dc]{width:%?690?%;margin:0 auto;padding-bottom:%?280?%}uni-rich-text img[data-v-5ea1a4dc]{max-width:100%!important}.rg[data-v-5ea1a4dc]{position:relative}.rg .rg_bug[data-v-5ea1a4dc]{position:fixed;bottom:0;left:0;right:0;height:%?100?%;font-size:%?32?%;color:#fff;background:-webkit-linear-gradient(357deg,#ff232c,#ff571b);background:linear-gradient(93deg,#ff232c,#ff571b);text-align:center;line-height:%?100?%}.rg .rg_imgs[data-v-5ea1a4dc]{margin-bottom:%?100?%}.rg .rg_imgs uni-image[data-v-5ea1a4dc]{width:100%}.rg .size[data-v-5ea1a4dc]{width:%?690?%;margin:%?30?% auto;background-color:#f9f9fb;border-radius:%?14?%;padding:%?25?% %?30?%}.rg .size .spec[data-v-5ea1a4dc]{-webkit-flex-shrink:0;flex-shrink:0}.rg .size .iconfont[data-v-5ea1a4dc]{color:#fb231f;font-size:%?50?%}.rg .size .iconiconfontjiantou2[data-v-5ea1a4dc]{font-size:%?30?%;margin-left:%?88?%;color:#999}.rg .size uni-text[data-v-5ea1a4dc],\r\n.rg .size uni-view[data-v-5ea1a4dc]{color:#999}.rg .size .line[data-v-5ea1a4dc]{width:%?2?%;height:%?84?%;background-color:#eee;margin:0 %?30?%}.rg .size .size_del[data-v-5ea1a4dc]{width:70%}.rg .rg_info[data-v-5ea1a4dc]{width:100%;padding:%?30?%;box-sizing:border-box;background-color:#fff;border-bottom:%?2?% solid #e9e9e9}.rg .rg_info .goods_name[data-v-5ea1a4dc]{font-size:%?32?%;font-weight:700}.rg .rg_info .vip_con[data-v-5ea1a4dc]{width:%?690?%;margin:0 auto;padding:0 %?30?%;height:%?140?%;background-size:100% 100%;box-sizing:border-box;background:#fff4f3;border-radius:%?16?%}.rg .rg_info .vip_con uni-view[data-v-5ea1a4dc]{margin-left:%?20?%}.rg .rg_info .vip_con uni-view uni-text[data-v-5ea1a4dc]{font-size:%?32?%;color:#fb231f;font-weight:700}.rg .rg_info .vip_con uni-view uni-text[data-v-5ea1a4dc]:last-child{display:inline-block;margin-top:%?10?%}.rg .rg_info .vip_con .dart_icon[data-v-5ea1a4dc]{width:%?56?%;height:%?56?%;-webkit-flex-shrink:0;flex-shrink:0}.rg .vip_img[data-v-5ea1a4dc]{width:%?88?%;height:%?36?%;vertical-align:%?-6?%;margin-right:%?10?%}.rg .rg_swiper[data-v-5ea1a4dc]{width:100%;height:%?600?%;position:relative}.rg .rg_swiper uni-image[data-v-5ea1a4dc],\r\n.rg .rg_swiper uni-swiper[data-v-5ea1a4dc]{width:100%;height:%?600?%}.rg .rg_swiper .rg_swiper_page[data-v-5ea1a4dc]{height:%?48?%;border-radius:%?48?%;background-color:rgba(0,0,0,.6);font-size:%?28?%;line-height:%?48?%;padding:0 %?36?%;position:absolute;right:%?30?%;bottom:%?30?%}.rg .rg_swiper .rg_swiper_page uni-text[data-v-5ea1a4dc]{color:#fff}.rg .rg_swiper .rg_swiper_page uni-text[data-v-5ea1a4dc]:nth-of-type(1){font-size:%?28?%}.rg .buy_box[data-v-5ea1a4dc]{width:100%;height:%?140?%;position:fixed;bottom:0;left:0;padding:0 %?30?%;z-index:888;background-color:#fff}.rg .buy_box .iconfont[data-v-5ea1a4dc]{margin-right:%?15?%;color:#fb231f;font-size:%?45?%}.rg .buy_box .btn_con uni-view[data-v-5ea1a4dc]{width:%?220?%;text-align:center;height:%?88?%;line-height:%?88?%;font-size:%?28?%;color:#fff}.rg .buy_box .btn_con uni-view[data-v-5ea1a4dc]:first-child{background-color:#ffb845;border-radius:%?44?% 0 0 %?44?%}.rg .buy_box .btn_con uni-view[data-v-5ea1a4dc]:last-child{background-color:#fb231f;border-radius:0 %?44?% %?44?% 0}.rg .pop_cover[data-v-5ea1a4dc]{width:100vw;height:100vh;background:rgba(0,0,0,.7);position:absolute;top:0;left:0}.rg .sizePop[data-v-5ea1a4dc]{width:100%;height:80vh;position:fixed;bottom:0;left:0;background:#fff;z-index:999;border-radius:%?24?% %?24?% 0 0;padding:%?30?% 0;box-sizing:border-box}.rg .sizePop .goods_img[data-v-5ea1a4dc]{width:%?180?%;height:%?144?%;border-radius:%?8?%;margin-right:%?25?%}.rg .sizePop .iconguanbi[data-v-5ea1a4dc]{position:absolute;top:%?10?%;right:%?10?%;font-size:%?50?%;color:#999}.rg .sizePop .styleTab[data-v-5ea1a4dc]{width:100%;height:%?99?%;background:#f9f9fb;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.rg .sizePop .styleTab > uni-view[data-v-5ea1a4dc]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:%?90?%;line-height:%?90?%}.rg .sizePop .styleTab > uni-view .cur_type[data-v-5ea1a4dc]{text-align:center}.rg .sizePop .styleTab > uni-view .active[data-v-5ea1a4dc]::after{content:"";display:block;width:100%;height:%?4?%;background:#fb231f}.rg .sizePop .styleTab > uni-view .num[data-v-5ea1a4dc]{background:-webkit-linear-gradient(357deg,#ff232c,#ff571b);background:linear-gradient(93deg,#ff232c,#ff571b);color:#fff;height:%?40?%;line-height:%?40?%;padding:0 %?10?%;border-radius:%?24?%;margin-left:%?10?%}.rg .sizePop .scroll_con[data-v-5ea1a4dc]{padding-bottom:%?170?%}.rg .sizePop .size_list[data-v-5ea1a4dc]{padding:0 %?30?%}.rg .sizePop .size_list .size_del[data-v-5ea1a4dc]{font-size:%?32?%;font-weight:700}.rg .sizePop .size_list .list_con[data-v-5ea1a4dc]{margin-top:%?30?%}.rg .sizePop .size_list .iconfont[data-v-5ea1a4dc]{font-size:%?45?%;vertical-align:%?-2?%;margin-left:%?15?%;color:#999}.rg .sizePop .size_list .stock[data-v-5ea1a4dc]{font-size:%?26?%;color:#999}.rg .sizePop .size_list .count[data-v-5ea1a4dc]{margin-left:%?20?%;width:%?220?%;height:%?64?%;background:#fff4f3;border:2px solid #fb231f;border-radius:%?16?%;overflow:hidden}.rg .sizePop .size_list .count uni-input[data-v-5ea1a4dc]{border-left:%?1?% solid #fb231f;border-right:%?1?% solid #fb231f;height:100%;width:40%;text-align:center}.rg .sizePop .size_list .count uni-view[data-v-5ea1a4dc]{color:#fb231f;width:30%;font-size:%?44?%;-webkit-flex-shrink:0;flex-shrink:0}.rg .sizePop .total uni-text[data-v-5ea1a4dc]:last-child{font-size:%?36?%}.rg .sizePop .buy_box[data-v-5ea1a4dc]{height:%?104?%;border-top:%?2?% solid #eee}.rg .sizePop .buy_box .btn_con uni-view[data-v-5ea1a4dc]{width:%?284?%}',""]),t.exports=i},"95f3":function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var o=function(){var t=this,i=t.$createElement,n=t._self._c||i;return t.errShow?n("v-uni-view",{staticClass:"err_pop"},[n("v-uni-view",{staticClass:"err_con"},[n("v-uni-image",{staticClass:"hint_icon",attrs:{src:e("98ff")}}),n("v-uni-view",{staticClass:"err_title"},[t._v("温馨提示")]),n("v-uni-view",{staticClass:"err_intr flexCC"},[t._v(t._s(t.content))]),n("v-uni-view",{staticClass:"sub_btn flexC",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.confirm.apply(void 0,arguments)}}},[t._v(t._s(t.confirmText))])],1),t.showClose?n("v-uni-text",{staticClass:"iconfont iconguanbi",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.close.apply(void 0,arguments)}}}):t._e()],1):t._e()},a=[]},"98ff":function(t,i,e){t.exports=e.p+"static/img/hint.66cac4e9.png"},a4d5:function(t,i,e){"use strict";var n=e("29e5"),o=e.n(n);o.a},aa1f:function(t,i,e){"use strict";var n=e("7088"),o=e.n(n);o.a},adda:function(t,i,e){"use strict";e.r(i);var n=e("f2fc"),o=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},b108:function(t,i,e){"use strict";e.r(i);var n=e("d588"),o=e("3cc0");for(var a in o)"default"!==a&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("a4d5");var s,r=e("f0c5"),c=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"5ea1a4dc",null,!1,n["a"],s);i["default"]=c.exports},d588:function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var o=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{staticClass:"rg"},[n("v-uni-view",{staticClass:"rg_swiper"},[n("v-uni-swiper",{on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.swiperChange.apply(void 0,arguments)}}},t._l(t.banner,(function(t,i){return n("v-uni-swiper-item",{key:i},[n("v-uni-image",{attrs:{src:t,mode:"aspectFit"}})],1)})),1),n("v-uni-view",{staticClass:"rg_swiper_page"},[n("v-uni-text",[t._v(t._s(t.allImg?t.current+1:t.current)+"/"+t._s(t.allImg))])],1)],1),n("v-uni-view",{staticClass:"rg_info"},[n("v-uni-view",{staticClass:"goods_name flexB"},[n("v-uni-text",[t._v(t._s(t.goods.name))]),n("v-uni-text",{staticClass:"year"},[t._v("3条装")])],1),n("v-uni-view",{staticClass:"price_box",staticStyle:{"margin-top":"20rpx"}},[1==t.isVip?n("v-uni-view",{staticClass:"goods_price flexS"},[n("v-uni-view",{staticClass:"flexS"},[n("v-uni-view",{staticClass:"vip_ident"},[t._v("VIP")]),n("v-uni-text",{staticClass:"big_price"},[n("v-uni-text",[t._v("¥")]),n("v-uni-text",[t._v(t._s(t.goods.vip_price))])],1)],1),n("v-uni-view",{staticClass:"draw_off"},[n("v-uni-text",[t._v("(")]),n("v-uni-text",{staticClass:"old_price"},[n("v-uni-text",{staticClass:"symbol"},[t._v("¥")]),n("v-uni-text",[t._v(t._s(t.goods.price))])],1),n("v-uni-text",[t._v(")")])],1)],1):n("v-uni-view",{staticClass:"goods_price flexS"},[n("v-uni-text",{staticClass:"big_price"},[n("v-uni-text",[t._v("¥")]),n("v-uni-text",[t._v(t._s(t.goods.price))])],1),n("v-uni-view",{staticClass:"save_box"},[t._v("VIP可省"+t._s(Number(t.goods.price)-Number(t.goods.vip_price)||0))])],1)],1),n("v-uni-view",{staticClass:"safe_box"},[n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),n("v-uni-text",[t._v("支付安全有保障")])],1),n("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[n("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),n("v-uni-text",[t._v("90天-366天不满意全额退款")])],1),n("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[n("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),n("v-uni-text",[t._v("一次性购买满2套,在本店终身享受VIP价格")])],1)],1)],1),n("v-uni-view",{staticClass:"size flexS",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),1!=t.is_agent&&(t.isSize=!0)}}},[n("v-uni-view",{staticClass:"spec"},[n("v-uni-text",{staticClass:"iconfont icondingdanzhongxin"}),n("v-uni-view",{staticStyle:{"margin-top":"15rpx"}},[t._v("规格")])],1),n("v-uni-view",{staticClass:"line"}),n("v-uni-view",{staticClass:"size_del"},[t.goods.sku?n("v-uni-view",[t._v(t._s(t.goods.sku.length)+"种款式可选")]):t._e()],1),n("v-uni-text",{staticClass:"iconfont iconiconfontjiantou2"})],1),n("v-uni-view",{staticClass:"rich"},[n("v-uni-rich-text",{attrs:{nodes:t._f("formatRichText")(t.goods.content)}})],1),0==t.is_agent?n("v-uni-view",{staticClass:"buy_box flexB"},[n("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.contact.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont iconshouye"}),n("v-uni-text",[t._v("联系卖家")])],1),n("v-uni-view",{staticClass:"btn_con flexS",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.isSize=!0}}},[n("v-uni-view",[t._v("加入购物车")]),n("v-uni-view",[t._v("立即购买")])],1)],1):t._e(),t.isSize?n("v-uni-view",{staticClass:"pop_cover"},[n("v-uni-view",{staticClass:"sizePop"},[n("v-uni-view",{staticClass:"flexS info",staticStyle:{padding:"0 30rpx 20rpx"}},[n("v-uni-image",{staticClass:"goods_img",attrs:{src:t.goods.img}}),n("v-uni-view",[n("v-uni-view",{staticClass:"pro_name"},[t._v(t._s(t.goods.name))]),n("v-uni-view",{staticClass:"price_box",staticStyle:{"margin-top":"20rpx"}},[1==t.isVip?n("v-uni-view",{staticClass:"goods_price flexS"},[n("v-uni-view",{staticClass:"flexS"},[n("v-uni-view",{staticClass:"vip_ident"},[t._v("VIP")]),n("v-uni-text",{staticClass:"big_price"},[n("v-uni-text",[t._v("¥")]),n("v-uni-text",[t._v(t._s(t.goods.vip_price))])],1)],1),n("v-uni-view",{staticClass:"draw_off"},[n("v-uni-text",[t._v("(")]),n("v-uni-text",{staticClass:"old_price"},[n("v-uni-text",{staticClass:"symbol"},[t._v("¥")]),n("v-uni-text",[t._v(t._s(t.goods.price))])],1),n("v-uni-text",[t._v(")")])],1)],1):n("v-uni-view",{staticClass:"goods_price flexS"},[n("v-uni-text",{staticClass:"big_price"},[n("v-uni-text",[t._v("¥")]),n("v-uni-text",[t._v(t._s(t.goods.price))])],1),n("v-uni-view",{staticClass:"save_box"},[t._v("VIP可省"+t._s(Number(t.goods.price)-Number(t.goods.vip_price)||0))])],1)],1)],1),n("v-uni-text",{staticClass:"iconfont iconguanbi",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.isSize=!1}}})],1),n("v-uni-scroll-view",{staticStyle:{width:"100%"},attrs:{"scroll-x":!0}},[n("v-uni-view",{staticClass:"styleTab"},t._l(t.sku,(function(i,e){return n("v-uni-view",{key:e,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.choose(i.type)}}},[n("v-uni-view",{staticClass:"cur_type",class:t.tabType==i.type?"active":""},[t._v(t._s(i.type))]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(i.num))])],1)})),1)],1),n("v-uni-scroll-view",{staticStyle:{height:"60vh"},attrs:{"scroll-y":!0,"scroll-top":t.scrollTop},on:{scroll:function(i){arguments[0]=i=t.$handleEvent(i),t.scroll.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"scroll_con"},[t._l(t.goodsSize,(function(i,e){return t.tabType==i.style?n("v-uni-view",{key:e,staticClass:"size_list"},[n("v-uni-view",{staticClass:"flexB list_con"},[n("v-uni-view",{staticClass:"size_del"},[t._v(t._s(i.size))]),n("v-uni-view",{staticClass:"flexS"},[1==t.isTest?n("v-uni-view",{staticClass:"stock"},[t._v("库存 "+t._s(i.stock))]):t._e(),n("v-uni-view",{staticClass:"count flexS"},[n("v-uni-view",{staticClass:"flexC",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.down(e,i.num,i.style)}}},[t._v("-")]),n("v-uni-input",{attrs:{type:"number"},on:{input:function(n){arguments[0]=n=t.$handleEvent(n),t.getVal(n,e,i.stock)}},model:{value:i.num,callback:function(e){t.$set(i,"num",e)},expression:"item.num"}}),n("v-uni-view",{staticClass:"flexC",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.up(e,i.num,i.style,i.stock)}}},[t._v("+")])],1)],1)],1)],1):t._e()})),n("v-uni-view",{staticClass:"flexE",staticStyle:{margin:"30rpx 30rpx 0 0"}},[n("v-uni-text",{staticClass:"gray"},[t._v("共"+t._s(t.totalNum)+"套,")]),n("v-uni-text",[t._v("合计:")]),n("v-uni-view",{staticClass:"price_box"},[n("v-uni-view",{staticClass:"goods_price flexS"},[n("v-uni-text",{staticClass:"big_price"},[n("v-uni-text",[t._v("¥")]),n("v-uni-text",[t._v(t._s(1==t.isVip?t.vipPrice:t.totalPrice))])],1),1==t.isVip?n("v-uni-view",{staticClass:"year",staticStyle:{"margin-left":"20rpx"}},[t._v("已省"+t._s(t.totalPrice-t.vipPrice))]):t._e()],1)],1)],1)],2)],1),n("v-uni-view",{staticClass:"buy_box flexCC"},[n("v-uni-view",{staticClass:"btn_con flexC"},[n("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.addCart.apply(void 0,arguments)}}},[t._v("加入购物车")]),n("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.buyNow.apply(void 0,arguments)}}},[t._v("立即购买")])],1)],1)],1)],1):t._e(),t.phoneShow?n("v-uni-view",{staticClass:"phone_pop flexCC"},[n("v-uni-view",{staticClass:"phone_con"},[n("v-uni-image",{staticClass:"hint_icon",attrs:{src:e("98ff")}}),n("v-uni-view",{staticClass:"title"},[t._v("验证手机号")]),n("v-uni-view",{staticClass:"phone_inp"},[n("v-uni-input",{staticClass:"num",attrs:{type:"number",placeholder:"请输入手机号",maxlength:"11",disabled:t.isEdit},model:{value:t.phone,callback:function(i){t.phone=i},expression:"phone"}}),n("v-uni-view",{staticClass:"num flexB"},[n("v-uni-input",{attrs:{type:"number",placeholder:"请输入验证码",maxlength:"6"},model:{value:t.sms,callback:function(i){t.sms=i},expression:"sms"}}),n("v-uni-view",{staticClass:"code",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.sendCode()}}},[t._v(t._s(t.countDown?"重新获取("+t.countDown+"s)":"获取验证码"))])],1)],1),n("v-uni-view",{staticClass:"flexB btn_box"},[n("v-uni-view",{staticClass:"cancel_order_btn",staticStyle:{background:"#E9E9E9",color:"#999",border:"none"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.phoneShow=!1}}},[t._v("取消")]),n("v-uni-view",{staticClass:"base_btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.submit.apply(void 0,arguments)}}},[t._v("立即查询")])],1)],1)],1):t._e(),n("err-pop",{attrs:{errShow:t.errShow,content:t.errMsg},on:{confirm:function(i){arguments[0]=i=t.$handleEvent(i),t.errOpera(0)}}}),n("err-pop",{attrs:{errShow:t.hintShow,content:t.hintMsg},on:{confirm:function(i){arguments[0]=i=t.$handleEvent(i),t.errOpera(1)}}}),n("pop-up",{attrs:{popShow:t.pop.popShow,content:t.pop.content,showCancel:t.pop.showCancel,cancelText:t.pop.cancelText,confirmText:t.pop.confirmText,confirmBg:t.pop.confirmBg,cancelBg:t.pop.cancelBg,confirmColor:t.pop.confirmColor,suceShow:t.pop.suceShow},on:{cancel:function(i){arguments[0]=i=t.$handleEvent(i),t.close.apply(void 0,arguments)},confirm:function(i){arguments[0]=i=t.$handleEvent(i),t.goOn.apply(void 0,arguments)}}})],1)},a=[]},db90:function(t,i,e){"use strict";function n(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}e("a4d3"),e("e01a"),e("d28b"),e("a630"),e("d3b7"),e("3ca3"),e("ddb0"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=n},f2fc:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={props:{errShow:{type:Boolean,default:!1},showClose:{type:Boolean,default:!1},content:{type:String,default:""},confirmText:{type:String,default:"我知道了"}},methods:{confirm:function(){this.$emit("confirm")},close:function(){this.$emit("closePop")}}};i.default=n},f719:function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.err_pop[data-v-b142b060]{width:100vw;height:100vh;background:rgba(0,0,0,.8);position:fixed;top:0;left:0;z-index:99999;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.err_pop .err_con[data-v-b142b060]{position:relative;width:%?620?%;text-align:center;margin:0 auto;min-height:%?384?%;background:#fff;border-radius:%?8?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?30?%}.err_pop .err_con .err_title[data-v-b142b060]{font-size:%?32?%;font-weight:700;margin-top:%?85?%}.err_pop .err_con .err_intr[data-v-b142b060]{font-size:%?28?%;margin:%?25?% 0;min-height:%?100?%;color:#999}.err_pop .err_con .hint_icon[data-v-b142b060]{width:%?183?%;height:%?135?%;position:absolute;top:%?-67?%;margin-left:%?18?%}.err_pop .iconfont[data-v-b142b060]{color:#fff;font-size:%?60?%;margin-top:%?30?%}',""]),t.exports=i}}]);
|