pages-order_addcart-order_addcart.1b93e6b2.js 40 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order_addcart-order_addcart"],{"0b87":function(t,i,a){"use strict";a.r(i);var e=a("ebf7"),n=a.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(o);i["default"]=n.a},2996:function(t,i,a){"use strict";a("7a82");var e=a("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e(a("ade3")),o=e(a("c7eb")),s=e(a("1da1"));a("4e82"),a("14d9"),a("d81d"),a("4de4"),a("d3b7"),a("a9e3"),a("99af");var r,c=a("39ed"),d=a("2a39"),u=a("86eb"),l=e(a("8632")),h=a("26cb"),v=e(a("7992")),p=e(a("6cd4")),f=e(a("605de")),g=e(a("19b6")),m=a("00a0"),b={components:{pageFooter:f.default,recommend:v.default,productWindow:p.default,tabBar:l.default},mixins:[g.default],data:function(){return{imgHost:m.HTTP_REQUEST_URL,is_diy:uni.getStorageSync("is_diy"),canShow:!1,cartCount:0,goodsHidden:!0,footerswitch:!0,hostProduct:[],cartList:{valid:[],invalid:[]},isAllSelect:!1,selectValue:[],selectCountPrice:0,isAuto:!1,isShowAuth:!1,hotScroll:!1,hotPage:1,hotLimit:10,loading:!1,loadend:!1,loadTitle:this.$t("我也是有底线的"),page:1,limit:20,loadingInvalid:!1,loadendInvalid:!1,loadTitleInvalid:this.$t("加载更多"),pageInvalid:1,limitInvalid:20,attr:{cartAttr:!1,productAttr:[],productSelect:{}},productValue:[],storeInfo:{},attrValue:"",attrTxt:this.$t("请选择"),cartId:0,product_id:0,sysHeight:0,newData:{},activeRouter:"",is_diy_set:!1,adding:!1}},computed:(0,h.mapGetters)(["isLogin"]),onLoad:function(t){uni.hideTabBar();var i=getCurrentPages(),a=i[i.length-1].route;this.activeRouter="/"+a},onShow:function(){this.isLogin||(0,u.toLogin)(),this.canShow=!1,1==this.isLogin&&(this.hotPage=1,this.hostProduct=[],this.hotScroll=!1,this.getHostProduct(),this.loadend=!1,this.page=1,this.cartList.valid=[],this.getCartList(1),this.loadendInvalid=!1,this.pageInvalid=1,this.cartList.invalid=[],this.getInvalidList(),this.goodsHidden=!0,this.footerswitch=!0,this.hostProduct=[],this.hotScroll=!1,this.hotPage=1,this.hotLimit=10,this.cartList={valid:[],invalid:[]},this.isAllSelect=!1,this.selectValue=[],this.selectCountPrice=0,this.cartCount=0,this.isShowAuth=!1)},methods:(r={authColse:function(t){this.isShowAuth=t},reGoCat:function(){var t=this,i=t.productValue[this.attrValue];if(t.attr.productAttr.length&&void 0===i)return t.$util.Tips({title:t.$t("产品库存不足,请选择其它")});var a={id:t.cartId,product_id:t.product_id,num:t.attr.productSelect.cart_num,unique:void 0!==t.attr.productSelect?t.attr.productSelect.unique:""};(0,c.getResetCart)(a).then((function(i){t.attr.cartAttr=!1,t.$util.Tips({title:t.$t("添加购物车成功"),success:function(){t.loadend=!1,t.page=1,t.cartList.valid=[],t.getCartList(),t.getCartNum()}})})).catch((function(i){return t.$util.Tips({title:i.msg})}))},onMyEvent:function(){this.$set(this.attr,"cartAttr",!1)},reElection:function(t){this.getGoodsDetails(t)},getGoodsDetails:function(t){uni.showLoading({title:this.$t("加载中"),mask:!0});var i=this;i.cartId=t.id,i.product_id=t.product_id,(0,d.getProductDetail)(t.product_id).then((function(t){uni.hideLoading(),i.attr.cartAttr=!0;var a=t.data.storeInfo;i.$set(i,"storeInfo",a),i.$set(i.attr,"productAttr",t.data.productAttr),i.$set(i,"productValue",t.data.productValue),i.DefaultSelect()})).catch((function(t){uni.hideLoading()}))},ChangeAttr:function(t){var i=this.productValue[t];i&&i.stock>0?(this.$set(this.attr.productSelect,"image",i.image),this.$set(this.attr.productSelect,"price",i.price),this.$set(this.attr.productSelect,"stock",i.stock),this.$set(this.attr.productSelect,"unique",i.unique),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"attrValue",t),this.$set(this,"attrTxt",this.$t("已选择"))):(this.$set(this.attr.productSelect,"image",this.storeInfo.image),this.$set(this.attr.productSelect,"price",this.storeInfo.price),this.$set(this.attr.productSelect,"stock",0),this.$set(this.attr.productSelect,"unique",""),this.$set(this.attr.productSelect,"cart_num",0),this.$set(this,"attrValue",""),this.$set(this,"attrTxt",this.$t("请选择")))},DefaultSelect:function(){var t=this.attr.productAttr,i=[];for(var a in this.productValue)if(this.productValue[a].stock>0){i=this.attr.productAttr.length?a.split(","):[];break}for(var e=0;e<t.length;e++)this.$set(t[e],"index",i[e]);var n=this.productValue[i.sort().join(",")];n&&t.length?(this.$set(this.attr.productSelect,"store_name",this.storeInfo.store_name),this.$set(this.attr.productSelect,"image",n.image),this.$set(this.attr.productSelect,"price",n.price),this.$set(this.attr.productSelect,"stock",n.stock),this.$set(this.attr.productSelect,"unique",n.unique),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"attrValue",i.sort().join(",")),this.$set(this,"attrTxt",this.$t("已选择"))):!n&&t.length?(this.$set(this.attr.productSelect,"store_name",this.storeInfo.store_name),this.$set(this.attr.productSelect,"image",this.storeInfo.image),this.$set(this.attr.productSelect,"price",this.storeInfo.price),this.$set(this.attr.productSelect,"stock",0),this.$set(this.attr.productSelect,"unique",""),this.$set(this.attr.productSelect,"cart_num",0),this.$set(this,"attrValue",""),this.$set(this,"attrTxt",this.$t("请选择"))):n||t.length||(this.$set(this.attr.productSelect,"store_name",this.storeInfo.store_name),this.$set(this.attr.productSelect,"image",this.storeInfo.image),this.$set(this.attr.productSelect,"price",this.storeInfo.price),this.$set(this.attr.productSelect,"stock",this.storeInfo.stock),this.$set(this.attr.productSelect,"unique",this.storeInfo.unique||""),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"attrValue",""),this.$set(this,"attrTxt",this.$t("请选择")))},attrVal:function(t){this.$set(this.attr.productAttr[t.indexw],"index",this.attr.productAttr[t.indexw].attr_values[t.indexn])},ChangeCartNum:function(t){var i=this.productValue[this.attrValue];if(void 0!==i||this.attr.productAttr.length||(i=this.attr.productSelect),void 0!==i){var a=i.stock||0,e=this.attr.productSelect;t?(e.cart_num++,e.cart_num>a&&(this.$set(this.attr.productSelect,"cart_num",a||1),this.$set(this,"cart_num",a||1))):(e.cart_num--,e.cart_num<1&&(this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"cart_num",1)))}},iptCartNum:function(t){this.$set(this.attr.productSelect,"cart_num",t)},subDel:function(t){var i=this,a=i.selectValue;if(!(a.length>0))return i.$util.Tips({title:i.$t("请选择产品")});(0,c.cartDel)(a).then((function(t){i.loadend=!1,i.page=1,i.cartList.valid=[],i.getCartList(),i.getCartNum()}))},getSelectValueProductId:function(){var t=this.cartList.valid,i=this.selectValue,a=[];if(i.length>0)for(var e in t)this.inArray(t[e].id,i)&&a.push(t[e].product_id);return a},subCollect:function(t){var i=this,a=i.selectValue;if(!(a.length>0))return i.$util.Tips({title:i.$t("请选择产品")});i.getSelectValueProductId();(0,d.collectAll)(i.getSelectValueProductId().join(",")).then((function(t){return i.$util.Tips({title:t.msg,icon:"success"})})).catch((function(t){return i.$util.Tips({title:t})}))},subOrder:function(t){var i=this.selectValue;if(!(i.length>0))return this.$util.Tips({title:this.$t("请选择产品")});uni.navigateTo({url:"/pages/goods/order_confirm/index?cartId="+i.join(",")})},checkboxAllChange:function(t){var i=t.detail.value;i.length>0?this.setAllSelectValue(1):this.setAllSelectValue(0)},setAllSelectValue:function(t){var i=this,a=[],e=i.cartList.valid;if(e.length>0){var n=e.map((function(e){return t?(i.footerswitch?e.attrStatus?(e.checked=!0,a.push(e.id)):e.checked=!1:(e.checked=!0,a.push(e.id)),i.isAllSelect=!0):(e.checked=!1,i.isAllSelect=!1),e}));i.$set(i.cartList,"valid",n),i.selectValue=a,i.switchSelect()}},checkboxChange:function(t){var i=this,a=t.detail.value,e=i.cartList.valid,n=[],o=[],s=[],r=e.map((function(t){return i.inArray(t.id,a)?i.footerswitch?t.attrStatus?(t.checked=!0,n.push(t)):t.checked=!1:(t.checked=!0,n.push(t)):(t.checked=!1,o.push(t)),t}));i.footerswitch&&(s=o.filter((function(t){return!t.attrStatus}))),i.$set(i.cartList,"valid",r),i.isAllSelect=r.length===n.length+s.length,i.selectValue=a,i.switchSelect()},inArray:function(t,i){for(var a in i)if(i[a]==t)return!0;return!1},switchSelect:function(){var t=this.cartList.valid,i=this.selectValue,a=0;if(i.length<1)this.selectCountPrice=a;else{for(var e in t)this.inArray(t[e].id,i)&&(a=this.$util.$h.Add(a,this.$util.$h.Mul(t[e].cart_num,t[e].truePrice)));this.selectCountPrice=a}}},(0,n.default)(r,"iptCartNum",(function(t){var i=this.cartList.valid[t];i.cart_num&&this.setCartNum(i.id,i.cart_num),this.switchSelect()})),(0,n.default)(r,"blurInput",(function(t){var i=this.cartList.valid[t];i.cart_num||(i.cart_num=1,this.$set(this.cartList,"valid",this.cartList.valid))})),(0,n.default)(r,"subCart",(function(t){var i=this,a=!1,e=i.cartList.valid[t];e.cart_num=Number(e.cart_num)-1,e.cart_num<1&&(a=!0),e.cart_num<=1?(e.cart_num=1,e.numSub=!0):(e.numSub=!1,e.numAdd=!1),0==a&&i.setCartNum(e.id,e.cart_num,(function(a){i.cartList.valid[t]=e,i.getCartNum(),i.switchSelect()}),(function(){e.cart_num=Number(e.cart_num)+1}))})),(0,n.default)(r,"addCart",(function(t){var i=this;if(!this.adding){var a=i.cartList.valid[t];a.cart_num=Number(a.cart_num)+1;var e=a.productInfo;e.hasOwnProperty("attrInfo")&&a.cart_num>=a.productInfo.attrInfo.stock?(a.cart_num=a.productInfo.attrInfo.stock,a.numAdd=!0,a.numSub=!1):(a.numAdd=!1,a.numSub=!1),i.setCartNum(a.id,a.cart_num,(function(e){i.cartList.valid[t]=a,i.getCartNum(),i.switchSelect()}),(function(){a.cart_num=Number(a.cart_num)-1}))}})),(0,n.default)(r,"setCartNum",(function(t,i,a,e){var n=this;(0,c.changeCartNum)(t,i).then((function(t){a&&a(t.data)})).catch((function(t){return e&&e(),n.$util.Tips({title:t})}))})),(0,n.default)(r,"getCartNum",(function(){var t=this,i=this;(0,c.getCartCounts)().then((function(a){i.cartCount=a.data.count,t.adding=!1,t.$store.commit("indexData/setCartNum",a.data.count>99?"..":a.data.count),a.data.count>0?wx.setTabBarBadge({index:2,text:a.data.count+""}):wx.hideTabBarRedDot({index:2})}))})),(0,n.default)(r,"getCartData",(function(t){var i=this;return new Promise((function(a,e){(0,c.getCartList)(t).then((function(t){a(t.data)})).catch((function(t){i.loading=!1,i.canShow=!0,i.$util.Tips({title:t})}))}))})),(0,n.default)(r,"getCartList",(function(t){var i=this;return(0,s.default)((0,o.default)().mark((function a(){var e,n;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:uni.showLoading({title:i.$t("加载中"),mask:!0}),e=i,n={page:e.page,limit:e.limit,status:1},(0,c.getCartCounts)().then(function(){var a=(0,s.default)((0,o.default)().mark((function a(s){var r,c,d,u,l,h,v,p;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:e.cartCount=s.data.count,t&&(i.adding=!1,i.$store.commit("indexData/setCartNum",s.data.count>99?"..":s.data.count),s.data.count>0?wx.setTabBarBadge({index:2,text:s.data.count+""}):wx.hideTabBarRedDot({index:2})),r=0;case 3:if(!(r<Math.ceil(s.data.ids.length/e.limit))){a.next=21;break}return a.next=6,i.getCartData(n);case 6:if(c=a.sent,n.page=n.page+1,d=c.valid,u=e.$util.SplitArray(d,e.cartList.valid),[{numSub:!0},{numSub:!1}],[{numAdd:!0},{numAdd:!1}],l=[],u.length>0)for(h in u)1==u[h].cart_num?u[h].numSub=!0:u[h].numSub=!1,v=u[h].productInfo,v.hasOwnProperty("attrInfo")&&u[h].cart_num==u[h].productInfo.attrInfo.stock||u[h].cart_num==u[h].productInfo.stock?u[h].numAdd=!0:u[h].numAdd=!1,u[h].attrStatus?(u[h].checked=!0,l.push(u[h].id)):u[h].checked=!1;e.$set(e.cartList,"valid",u),e.selectValue=l,p=u.filter((function(t){return t.attrStatus})),e.isAllSelect=p.length==l.length&&p.length,e.switchSelect();case 18:r++,a.next=3;break;case 21:e.loading=!1,i.canShow=!0,uni.hideLoading();case 24:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}());case 4:case"end":return a.stop()}}),a)})))()})),(0,n.default)(r,"getInvalidList",(function(){var t=this;if(this.loadendInvalid)return!1;if(this.loadingInvalid)return!1;var i={page:t.pageInvalid,limit:t.limitInvalid,status:0};(0,c.getCartList)(i).then((function(i){var a=i.data,e=a.invalid,n=e.length<t.limitInvalid,o=t.$util.SplitArray(e,t.cartList.invalid);t.$set(t.cartList,"invalid",o),t.loadendInvalid=n,t.loadTitleInvalid=n?t.$t("我也是有底线的"):t.$t("加载更多"),t.pageInvalid=t.pageInvalid+1,t.loadingInvalid=!1})).catch((function(i){t.loadingInvalid=!1,t.loadTitleInvalid=t.$t("加载更多")}))})),(0,n.default)(r,"getHostProduct",(function(){var t=this;t.hotScroll||(0,d.getProductHot)(t.hotPage,t.hotLimit).then((function(i){t.hotPage++,t.hotScroll=i.data.length<t.hotLimit,t.hostProduct=t.hostProduct.concat(i.data)}))})),(0,n.default)(r,"goodsOpen",(function(){this.goodsHidden=!this.goodsHidden})),(0,n.default)(r,"goRouter",(function(t){var i=getCurrentPages(),a=i[i.length-1].$page.fullPath;t.link!=a&&uni.switchTab({url:t.link,fail:function(i){uni.redirectTo({url:t.link})}})})),(0,n.default)(r,"manage",(function(){var t=this;t.footerswitch=!t.footerswitch;var i=[],a=[],e=t.cartList.valid.map((function(e){return t.footerswitch?e.attrStatus?e.checked&&i.push(e.id):(e.checked=!1,a.push(e)):e.checked&&i.push(e.id),e}));t.cartList.valid=e,t.footerswitch?t.isAllSelect=e.length===i.length+a.length:t.isAllSelect=e.length===i.length,t.selectValue=i,t.switchSelect()})),(0,n.default)(r,"unsetCart",(function(){for(var t=this,i=[],a=0,e=t.cartList.invalid.length;a<e;a++)i.push(t.cartList.invalid[a].id);(0,c.cartDel)(i).then((function(i){t.$util.Tips({title:t.$t("清除成功")}),t.$set(t.cartList,"invalid",[]),t.getCartNum()})).catch((function(t){}))})),r),onReachBottom:function(){this.loadend&&this.getInvalidList(),0==this.cartList.valid.length&&0==this.cartList.invalid.length&&this.getHostProduct()},onPageScroll:function(t){uni.$emit("scroll")}};i.default=b},"2cf1":function(t,i,a){var e=a("24fb");i=e(!1),i.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.recommend[data-v-3a17a103]{background-color:#fff}.recommend .title[data-v-3a17a103]{height:%?135?%;font-size:%?28?%;color:#282828}.recommend .title .name[data-v-3a17a103]{margin:0 %?28?%}.recommend .title .iconfont[data-v-3a17a103]{font-size:%?170?%;color:#454545}.recommend .title .iconfont.lefticon[data-v-3a17a103]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.recommend .recommendList[data-v-3a17a103]{padding:0 %?30?%}.recommend .recommendList .item[data-v-3a17a103]{width:%?335?%;margin-bottom:%?30?%;border-radius:%?20?% %?20?% 0 0;box-shadow:%?0?% %?3?% %?10?% %?2?% rgba(0,0,0,.03);padding-bottom:%?10?%}.recommend .recommendList .item .pictrue[data-v-3a17a103]{position:relative;width:100%;height:%?335?%}.recommend .recommendList .item .pictrue[data-v-3a17a103] ,\n.recommend .recommendList .item .pictrue[data-v-3a17a103] uni-image,\n.recommend .recommendList .item .pictrue[data-v-3a17a103] .easy-loadimage,\n.recommend .recommendList .item .pictrue[data-v-3a17a103] uni-image{width:100%;height:%?335?%;border-radius:%?20?%}.recommend .recommendList .item .name[data-v-3a17a103]{font-size:%?28?%;color:#282828;margin-top:%?20?%;padding:0 %?10?%;line-height:%?34?%;height:%?68?%}.recommend .recommendList .item .money[data-v-3a17a103]{font-size:%?20?%;margin-top:%?8?%;padding:0 %?10?% %?0?% %?10?%}.recommend .vip-money[data-v-3a17a103]{font-size:%?24?%;color:#282828;font-weight:700;display:flex;align-items:center;padding:%?0?% 0 0 %?10?%}.recommend .vip-money uni-image[data-v-3a17a103]{width:%?46?%;height:%?21?%;margin-left:%?4?%}.recommend .recommendList .item .money .num[data-v-3a17a103]{font-size:%?28?%}',""]),t.exports=i},"369f":function(t,i,a){"use strict";var e=a("76ad"),n=a.n(e);n.a},"622b":function(t,i,a){"use strict";a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return o})),a.d(i,"a",(function(){return e}));var e={easyLoadimage:a("cad3").default},n=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{staticClass:"recommend",style:t.colorStyle},[a("v-uni-view",{staticClass:"title acea-row row-center-wrapper"},[a("v-uni-text",{staticClass:"iconfont icon-zhuangshixian"}),a("v-uni-text",{staticClass:"name"},[t._v(t._s(t.$t("热门推荐")))]),a("v-uni-text",{staticClass:"iconfont icon-zhuangshixian lefticon"})],1),a("v-uni-view",{staticClass:"recommendList acea-row row-between-wrapper"},t._l(t.hostProduct,(function(i,e){return a("v-uni-view",{key:e,staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goDetail(i)}}},[a("v-uni-view",{staticClass:"pictrue"},[a("easy-loadimage",{attrs:{mode:"widthFix","image-src":i.image}}),i.activity&&"1"===i.activity.type?a("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("秒杀")))]):t._e(),i.activity&&"2"===i.activity.type?a("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("砍价")))]):t._e(),i.activity&&"3"===i.activity.type?a("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("拼团")))]):t._e()],1),a("v-uni-view",{staticClass:"name line2"},[t._v(t._s(i.store_name))]),a("v-uni-view",{staticClass:"money font-color"},[t._v(t._s(t.$t("¥"))),a("v-uni-text",{staticClass:"num"},[t._v(t._s(i.price))])],1)],1)})),1)],1)},o=[]},6973:function(t,i,a){"use strict";a.d(i,"b",(function(){return e})),a.d(i,"c",(function(){return n})),a.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{style:t.colorStyle},[t.isShow&&t.tabbar.length&&!t.isIframe?a("v-uni-view",{staticClass:"uni-tabbar acea-row row-around row-middle"},t._l(t.tabbar,(function(i,e){return a("v-uni-view",{key:e,staticClass:"uni-tabbar_item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.changeTab(i)}}},[a("v-uni-view",{staticClass:"uni-tabbar_icon"},[i.link==t.pagePath?a("v-uni-image",{attrs:{mode:"aspectFit",src:i.imgList[0]}}):a("v-uni-image",{attrs:{mode:"aspectFit",src:i.imgList[1]}})],1),a("v-uni-view",{staticClass:"uni-tabbar_label",class:{active:i.link==t.pagePath}},[t._v(t._s(t.$t(i.name)))])],1)})),1):t._e(),t.isIframe&&t.tabbar.length?a("v-uni-view",{staticClass:"uni-tabbar acea-row row-around row-middle"},t._l(t.tabbar,(function(i,e){return a("v-uni-view",{key:e,staticClass:"uni-tabbar_item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.changeTab(i)}}},[a("v-uni-view",{staticClass:"uni-tabbar_icon"},[i.link==t.pagePath?a("v-uni-image",{attrs:{mode:"aspectFit",src:i.imgList[0]}}):a("v-uni-image",{attrs:{mode:"aspectFit",src:i.imgList[1]}})],1),a("v-uni-view",{staticClass:"uni-tabbar_label",class:{active:i.link==t.pagePath}},[t._v(t._s(t.$t(i.name)))])],1)})),1):t._e(),t.isIframe&&!t.tabbar.length?a("v-uni-view",{staticClass:"empty-img uni-tabbar acea-row row-around row-middle"},[t._v(t._s(t.$t("暂无数据,请设置")))]):t._e()],1)},n=[]},"6f77":function(t,i,a){var e=a("24fb");i=e(!1),i.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.shoppingCart .labelNav[data-v-68d49c18]{height:%?76?%;padding:0 %?30?%;font-size:%?22?%;color:#8c8c8c;position:fixed;left:0;width:100%;box-sizing:border-box;background-color:#f5f5f5;z-index:5;top:0}.shoppingCart .labelNav .item .iconfont[data-v-68d49c18]{font-size:%?25?%;margin-right:%?10?%}.shoppingCart .nav[data-v-68d49c18]{width:100%;height:%?80?%;background-color:#fff;padding:0 %?30?%;box-sizing:border-box;font-size:%?28?%;color:#282828;position:fixed;left:0;z-index:5;top:%?76?%}.shoppingCart .nav .num[data-v-68d49c18]{margin-left:%?12?%}.shoppingCart .nav .administrate[data-v-68d49c18]{font-size:%?26?%;color:#282828;width:%?110?%;height:%?46?%;border-radius:%?6?%;border:1px solid #a4a4a4}.shoppingCart .noCart[data-v-68d49c18]{margin-top:%?171?%;background-color:#fff;padding-top:%?0.1?%}.shoppingCart .noCart .pictrue[data-v-68d49c18]{width:%?414?%;height:%?336?%;margin:%?78?% auto %?56?% auto}.shoppingCart .noCart .pictrue uni-image[data-v-68d49c18]{width:100%;height:100%}.shoppingCart .list[data-v-68d49c18]{margin-top:%?171?%}.shoppingCart .list .item[data-v-68d49c18]{padding:%?25?% %?30?%;background-color:#fff;margin-bottom:%?15?%}.shoppingCart .list .item .picTxt[data-v-68d49c18]{width:%?627?%;position:relative}.shoppingCart .list .item .picTxt .pictrue[data-v-68d49c18]{width:%?160?%;height:%?160?%}.shoppingCart .list .item .picTxt .pictrue uni-image[data-v-68d49c18]{width:100%;height:100%;border-radius:%?6?%}.shoppingCart .list .item .picTxt .text[data-v-68d49c18]{width:%?444?%;font-size:%?28?%;color:#282828}.shoppingCart .list .item .picTxt .text .reColor[data-v-68d49c18]{color:#999}.shoppingCart .list .item .picTxt .text .reElection[data-v-68d49c18]{margin-top:%?20?%}.shoppingCart .list .item .picTxt .text .reElection .title[data-v-68d49c18]{font-size:%?24?%}.shoppingCart .list .item .picTxt .text .reElection .reBnt[data-v-68d49c18]{padding:0 %?10?%;margin-top:%?6?%;border-radius:%?23?%;font-size:%?26?%}.shoppingCart .list .item .picTxt .text .infor[data-v-68d49c18]{font-size:%?24?%;color:#868686;margin-top:%?16?%}.shoppingCart .list .item .picTxt .text .money[data-v-68d49c18]{font-size:%?32?%;color:var(--view-theme);margin-top:%?28?%}.shoppingCart .list .item .picTxt .carnum[data-v-68d49c18]{height:%?47?%;position:absolute;bottom:%?0?%;right:0}.shoppingCart .list .item .picTxt .carnum uni-view[data-v-68d49c18]{border:%?1?% solid #a4a4a4;width:%?66?%;text-align:center;height:100%;line-height:%?40?%;font-size:%?28?%;color:#a4a4a4}.shoppingCart .list .item .picTxt .carnum .reduce[data-v-68d49c18]{border-right:0;border-radius:%?3?% 0 0 %?3?%}.shoppingCart .list .item .picTxt .carnum .reduce.on[data-v-68d49c18]{border-color:#e3e3e3;color:#dedede}.shoppingCart .list .item .picTxt .carnum .plus[data-v-68d49c18]{border-left:0;border-radius:0 %?3?% %?3?% 0}.shoppingCart .list .item .picTxt .carnum .plus.on[data-v-68d49c18]{border-color:#e3e3e3;color:#dedede}.shoppingCart .list .item .picTxt .carnum .num[data-v-68d49c18]{color:#282828}.shoppingCart .invalidGoods[data-v-68d49c18]{background-color:#fff}.shoppingCart .invalidGoods .goodsNav[data-v-68d49c18]{width:100%;height:%?66?%;padding:0 %?30?%;box-sizing:border-box;font-size:%?28?%;color:#282828}.shoppingCart .invalidGoods .goodsNav .iconfont[data-v-68d49c18]{color:#424242;font-size:%?28?%;margin-right:%?17?%}.shoppingCart .invalidGoods .goodsNav .del[data-v-68d49c18]{font-size:%?26?%;color:#999}.shoppingCart .invalidGoods .goodsNav .del .icon-shanchu1[data-v-68d49c18]{color:#999;font-size:%?33?%;vertical-align:%?-2?%;margin-right:%?8?%}.shoppingCart .invalidGoods .goodsList .item[data-v-68d49c18]{padding:%?20?% %?30?%;border-top:%?1?% solid #f5f5f5}.shoppingCart .invalidGoods .goodsList .item .invalid[data-v-68d49c18]{font-size:%?22?%;color:#fff;width:%?70?%;height:%?36?%;background-color:#aaa;border-radius:%?3?%;text-align:center;line-height:%?36?%}.shoppingCart .invalidGoods .goodsList .item .pictrue[data-v-68d49c18]{width:%?140?%;height:%?140?%}.shoppingCart .invalidGoods .goodsList .item .pictrue uni-image[data-v-68d49c18]{width:100%;height:100%;border-radius:%?6?%}.shoppingCart .invalidGoods .goodsList .item .text[data-v-68d49c18]{width:%?433?%;font-size:%?28?%;color:#999;height:%?140?%}.shoppingCart .invalidGoods .goodsList .item .text .name[data-v-68d49c18]{width:100%}.shoppingCart .invalidGoods .goodsList .item .text .infor[data-v-68d49c18]{font-size:%?24?%}.shoppingCart .invalidGoods .goodsList .item .text .end[data-v-68d49c18]{font-size:%?26?%;color:#bbb}.shoppingCart .footer[data-v-68d49c18]{z-index:999;width:100%;height:%?96?%;background-color:hsla(0,0%,100%,.85);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:fixed;padding:0 %?30?%;box-sizing:border-box;border-top:%?1?% solid #eee;bottom:%?98?%;bottom:calc(%?98?% + constant(safe-area-inset-bottom));bottom:calc(%?98?% + env(safe-area-inset-bottom))}.shoppingCart .footer .checkAll[data-v-68d49c18]{font-size:%?28?%;color:#282828;margin-left:%?16?%}.shoppingCart .footer .money[data-v-68d49c18]{font-size:%?30?%}.shoppingCart .footer .placeOrder[data-v-68d49c18]{color:#fff;font-size:%?30?%;width:%?226?%;height:%?70?%;border-radius:%?50?%;text-align:center;line-height:%?70?%;margin-left:%?22?%}.shoppingCart .footer .button .bnt[data-v-68d49c18]{font-size:%?28?%;color:#999;border-radius:%?50?%;border:1px solid #999;width:%?160?%;height:%?60?%;text-align:center;line-height:%?60?%}.shoppingCart .footer .button uni-form ~ uni-form[data-v-68d49c18]{margin-left:%?17?%}.uni-p-b-96[data-v-68d49c18]{height:%?96?%}.uni-p-b-98[data-v-68d49c18]{height:%?100?%;\n /* 兼容 IOS<11.2 */height:calc(%?100?% + constant(safe-area-inset-bottom));\n /* 兼容 IOS>11.2 */height:calc(%?100?% + env(safe-area-inset-bottom))}.emptyBox[data-v-68d49c18]{text-align:center;padding:%?80?% 0}.emptyBox .tips[data-v-68d49c18]{color:#aaa;font-size:%?26?%}.emptyBox uni-image[data-v-68d49c18]{width:%?414?%;height:%?304?%}',""]),t.exports=i},"76ad":function(t,i,a){var e=a("aef3");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("72cb7bd2",e,!0,{sourceMap:!1,shadowMode:!1})},7744:function(t,i,a){var e=a("2cf1");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("20246d2f",e,!0,{sourceMap:!1,shadowMode:!1})},7992:function(t,i,a){"use strict";a.r(i);var e=a("622b"),n=a("0b87");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(o);a("ad57");var s=a("f0c5"),r=Object(s["a"])(n["default"],e["b"],e["c"],!1,null,"3a17a103",null,!1,e["a"],void 0);i["default"]=r.exports},8632:function(t,i,a){"use strict";a.r(i);var e=a("6973"),n=a("c65f");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(o);a("369f");var s=a("f0c5"),r=Object(s["a"])(n["default"],e["b"],e["c"],!1,null,"22156dd1",null,!1,e["a"],void 0);i["default"]=r.exports},"9a57":function(t,i,a){"use strict";a.r(i);var e=a("2996"),n=a.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(o);i["default"]=n.a},ad57:function(t,i,a){"use strict";var e=a("7744"),n=a.n(e);n.a},aef3:function(t,i,a){var e=a("24fb");i=e(!1),i.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.borderShow[data-v-22156dd1]{position:fixed}.borderShow .uni-tabbar[data-v-22156dd1]::after{content:" ";position:absolute;left:0;top:0;width:100%;height:100%;border:1px dashed #007aff;box-sizing:border-box}.uni-tabbar[data-v-22156dd1]{position:fixed;bottom:0;left:0;z-index:999;width:100%;padding:%?6?% 0;padding-bottom:calc(%?6?% + constant(safe-area-inset-bottom));padding-bottom:calc(%?6?% + env(safe-area-inset-bottom));box-sizing:border-box;border-top:solid %?1?% #f3f3f3;background-color:#fff;box-shadow:0 0 %?17?% %?1?% hsla(0,0%,80.8%,.32);display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-around}.uni-tabbar .uni-tabbar_item[data-v-22156dd1]{width:100%;font-size:%?20?%;text-align:center}.uni-tabbar .uni-tabbar_icon[data-v-22156dd1]{height:%?50?%;width:%?50?%;text-align:center;margin:0 auto}.uni-tabbar .uni-tabbar_icon uni-image[data-v-22156dd1]{width:100%;height:100%}.uni-tabbar .uni-tabbar_label[data-v-22156dd1]{font-size:%?24?%;color:#282828}.uni-tabbar .uni-tabbar_label.active[data-v-22156dd1]{color:var(--view-theme)}',""]),t.exports=i},c65f:function(t,i,a){"use strict";a.r(i);var e=a("cbd1"),n=a.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(o);i["default"]=n.a},cbd1:function(t,i,a){"use strict";a("7a82");var e=a("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=a("5743"),o=a("6557"),s=e(a("19b6")),r=getApp(),c={name:"tabBar",props:{pagePath:null,dataConfig:{type:Object,default:function(){}}},watch:{dataConfig:{immediate:!0,handler:function(t,i){t&&(this.isShow=t.isShow.val)}}},mixins:[s.default],data:function(){return{name:this.$options.name,page:"/pages/index/index",tabbar:this.$Cache.get("TAB_BAR")?JSON.parse(this.$Cache.get("TAB_BAR")):[],isShow:!0,isIframe:r.globalData.isIframe}},mounted:function(){this.tabbar.length||this.getDiyData()},methods:{getDiyData:function(){var t=this;(0,n.getDiy)().then((function(i){var a=i.data.tabBar.default.tabBarList.list;t.$Cache.set("TAB_BAR",a),t.tabbar=a})).catch((function(t){uni.showToast({title:t,icon:"none"})}))},changeTab:function(t){var i=this;(0,o.goPage)().then((function(a){i.page=t.link,uni.switchTab({url:i.page,fail:function(){uni.navigateTo({url:i.page})}})}))}}};i.default=c},d3fb:function(t,i,a){var e=a("6f77");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("213dcd4b",e,!0,{sourceMap:!1,shadowMode:!1})},d488:function(t,i,a){"use strict";a.r(i);var e=a("ddd5"),n=a("9a57");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(o);a("ec96");var s=a("f0c5"),r=Object(s["a"])(n["default"],e["b"],e["c"],!1,null,"68d49c18",null,!1,e["a"],void 0);i["default"]=r.exports},ddd5:function(t,i,a){"use strict";a.d(i,"b",(function(){return e})),a.d(i,"c",(function(){return n})),a.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{style:t.colorStyle},[t.canShow?a("v-uni-view",{staticClass:"shoppingCart copy-data"},[a("v-uni-view",{staticClass:"labelNav acea-row row-around row-middle"},[a("v-uni-view",{staticClass:"item"},[a("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),t._v(t._s(t.$t("100%正品保证")))],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),t._v(t._s(t.$t("所有商品精挑细选")))],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),t._v(t._s(t.$t("售后无忧")))],1)],1),a("v-uni-view",{staticClass:"nav acea-row row-between-wrapper"},[a("v-uni-view",[t._v(t._s(t.$t("购物数量"))),a("v-uni-text",{staticClass:"num font-num"},[t._v(t._s(t.cartCount))])],1),t.cartList.valid.length>0||t.cartList.invalid.length>0?a("v-uni-view",{staticClass:"administrate acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.manage.apply(void 0,arguments)}}},[t._v(t._s(t.footerswitch?t.$t("管理"):t.$t("取消")))]):t._e()],1),(t.cartList.valid.length>0||t.cartList.invalid.length>0)&&t.canShow?a("v-uni-view",[a("v-uni-view",{staticClass:"list"},[a("v-uni-checkbox-group",{on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.checkboxChange.apply(void 0,arguments)}}},[t._l(t.cartList.valid,(function(i,e){return[a("v-uni-view",{key:e+"_0",staticClass:"item acea-row row-between-wrapper"},[a("v-uni-checkbox",{attrs:{value:i.id.toString(),checked:i.checked,disabled:!i.attrStatus&&t.footerswitch}}),a("v-uni-navigator",{staticClass:"picTxt acea-row row-between-wrapper",attrs:{url:"/pages/goods_details/index?id="+i.product_id,"hover-class":"none"}},[a("v-uni-view",{staticClass:"pictrue"},[i.productInfo.attrInfo?a("v-uni-image",{attrs:{src:i.productInfo.attrInfo.image}}):a("v-uni-image",{attrs:{src:i.productInfo.image}})],1),a("v-uni-view",{staticClass:"text"},[a("v-uni-view",{staticClass:"line2",class:i.attrStatus?"":"reColor"},[t._v(t._s(i.productInfo.store_name))]),i.productInfo.attrInfo?a("v-uni-view",{staticClass:"infor line1"},[t._v(t._s(t.$t("属性"))+":"+t._s(i.productInfo.attrInfo.suk))]):t._e(),i.attrStatus?a("v-uni-view",{staticClass:"money"},[t._v(t._s(t.$t("¥"))+t._s(i.truePrice))]):a("v-uni-view",{staticClass:"reElection acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("请重新选择商品规格")))]),a("v-uni-view",{staticClass:"reBnt cart-color acea-row row-center-wrapper",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.reElection(i)}}},[t._v(t._s(t.$t("重选")))])],1)],1),i.attrStatus?a("v-uni-view",{staticClass:"carnum acea-row row-center-wrapper"},[a("v-uni-view",{staticClass:"reduce",class:i.numSub?"on":"",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.subCart(e)}}},[t._v("-")]),a("v-uni-view",{staticClass:"num"},[a("v-uni-input",{attrs:{type:"number"},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i)},input:function(i){arguments[0]=i=t.$handleEvent(i),t.iptCartNum(e)},blur:function(i){arguments[0]=i=t.$handleEvent(i),t.blurInput(e)}},model:{value:i.cart_num,callback:function(a){t.$set(i,"cart_num",a)},expression:"item.cart_num"}})],1),a("v-uni-view",{staticClass:"plus",class:i.numAdd?"on":"",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.addCart(e)}}},[t._v("+")])],1):t._e()],1)],1)]}))],2)],1),t.cartList.invalid.length>0?a("v-uni-view",{staticClass:"invalidGoods"},[a("v-uni-view",{staticClass:"goodsNav acea-row row-between-wrapper"},[a("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goodsOpen.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"iconfont",class:1==t.goodsHidden?"icon-xiangxia":"icon-xiangshang"}),t._v(t._s(t.$t("失效商品")))],1),a("v-uni-view",{staticClass:"del",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.unsetCart.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"iconfont icon-shanchu1"}),t._v(t._s(t.$t("清空")))],1)],1),a("v-uni-view",{staticClass:"goodsList",attrs:{hidden:t.goodsHidden}},[t._l(t.cartList.invalid,(function(i,e){return[a("v-uni-view",{key:e+"_0",staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"invalid"},[t._v(t._s(t.$t("失效")))]),a("v-uni-view",{staticClass:"pictrue"},[i.productInfo.attrInfo?a("v-uni-image",{attrs:{src:i.productInfo.attrInfo.image}}):a("v-uni-image",{attrs:{src:i.productInfo.image}})],1),a("v-uni-view",{staticClass:"text acea-row row-column-between"},[a("v-uni-view",{staticClass:"line1 name"},[t._v(t._s(i.productInfo.store_name))]),i.productInfo.attrInfo?a("v-uni-view",{staticClass:"infor line1"},[t._v(t._s(t.$t("属性"))+":"+t._s(i.productInfo.attrInfo.suk))]):t._e(),a("v-uni-view",{staticClass:"acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"end"},[t._v(t._s(t.$t("该商品已失效")))])],1)],1)],1)]}))],2)],1):t._e(),t.cartList.invalid.length&&t.loadend?a("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[a("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loadingInvalid}}),t._v(t._s(t.loadTitleInvalid))],1):t._e()],1):t._e(),0==t.cartList.valid.length&&0==t.cartList.invalid.length&&t.canShow?a("v-uni-view",{staticClass:"noCart"},[a("v-uni-view",{staticClass:"emptyBox"},[a("v-uni-image",{attrs:{src:t.imgHost+"/statics/images/no-thing.png"}}),a("v-uni-view",{staticClass:"tips"},[t._v(t._s(t.$t("暂无商品")))])],1),t.hostProduct.length?a("recommend",{attrs:{hostProduct:t.hostProduct}}):t._e()],1):t._e(),a("v-uni-view",{staticStyle:{height:"120rpx",color:"#F5F5F5"}}),t.cartList.valid.length>0&&t.canShow?a("v-uni-view",{staticClass:"footer acea-row row-between-wrapper",class:t.is_diy&&t.is_diy_set?"on":""},[a("v-uni-view",[a("v-uni-checkbox-group",{on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.checkboxAllChange.apply(void 0,arguments)}}},[a("v-uni-checkbox",{attrs:{value:"all",checked:!!t.isAllSelect}}),a("v-uni-text",{staticClass:"checkAll"},[t._v(t._s(t.$t("全选"))+"("+t._s(t.selectValue.length)+")")])],1)],1),1==t.footerswitch?a("v-uni-view",{staticClass:"money acea-row row-middle"},[a("v-uni-text",{staticClass:"font-color"},[t._v(t._s(t.$t("¥"))+t._s(t.selectCountPrice))]),a("v-uni-form",{on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subOrder.apply(void 0,arguments)}}},[a("v-uni-button",{staticClass:"placeOrder bg-color",attrs:{formType:"submit"}},[t._v(t._s(t.$t("立即下单")))])],1)],1):a("v-uni-view",{staticClass:"button acea-row row-middle"},[a("v-uni-form",{on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subCollect.apply(void 0,arguments)}}},[a("v-uni-button",{staticClass:"bnt cart-color",attrs:{formType:"submit"}},[t._v(t._s(t.$t("收藏")))])],1),a("v-uni-form",{on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subDel.apply(void 0,arguments)}}},[a("v-uni-button",{staticClass:"bnt",attrs:{formType:"submit"}},[t._v(t._s(t.$t("删除")))])],1)],1)],1):t._e()],1):t._e(),a("productWindow",{attrs:{attr:t.attr,isShow:1,iSplus:1,iScart:1,id:"product-window"},on:{myevent:function(i){arguments[0]=i=t.$handleEvent(i),t.onMyEvent.apply(void 0,arguments)},ChangeAttr:function(i){arguments[0]=i=t.$handleEvent(i),t.ChangeAttr.apply(void 0,arguments)},ChangeCartNum:function(i){arguments[0]=i=t.$handleEvent(i),t.ChangeCartNum.apply(void 0,arguments)},attrVal:function(i){arguments[0]=i=t.$handleEvent(i),t.attrVal.apply(void 0,arguments)},iptCartNum:function(i){arguments[0]=i=t.$handleEvent(i),t.iptCartNum.apply(void 0,arguments)},goCat:function(i){arguments[0]=i=t.$handleEvent(i),t.reGoCat.apply(void 0,arguments)}}}),a("v-uni-view",{staticClass:"uni-p-b-98"}),t.is_diy?a("pageFooter"):a("tabBar",{attrs:{pagePath:"/pages/order_addcart/order_addcart"}})],1)},n=[]},ebf7:function(t,i,a){"use strict";a("7a82");var e=a("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=a("26cb"),o=a("6557"),s=e(a("19b6")),r={computed:(0,n.mapGetters)(["uid"]),props:{hostProduct:{type:Array,default:function(){return[]}}},mixins:[s.default],data:function(){return{}},methods:{goDetail:function(t){(0,o.goShopDetail)(t,this.uid).then((function(i){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))}}};i.default=r},ec96:function(t,i,a){"use strict";var e=a("d3fb"),n=a.n(e);n.a}}]);