mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-14 12:32:50 +00:00
1 line
50 KiB
JavaScript
1 line
50 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order_addcart-order_addcart"],{"05d2":function(n,t,e){"use strict";var i=e("d4cc"),a=e.n(i);a.a},"090c":function(n,t,e){"use strict";e.r(t);var i=e("1bb9"),a=e.n(i);for(var o in i)"default"!==o&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},"0ae3":function(n,t,e){"use strict";var i=e("0cc1"),a=e.n(i);a.a},"0cc1":function(n,t,e){var i=e("3d6d");"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var a=e("4f06").default;a("5f8c7ad2",i,!0,{sourceMap:!1,shadowMode:!1})},1754:function(n,t,e){"use strict";e("99af"),e("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.goShopDetail=a,t.goPage=o;var i=getApp();function a(n,t){return new Promise((function(e){n.activity&&"1"===n.activity.type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(n.activity.id,"&time=").concat(n.activity.time,"&status=1")}):n.activity&&"2"===n.activity.type?uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(n.activity.id,"&bargain=").concat(t)}):n.activity&&"3"===n.activity.type?uni.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(n.activity.id)}):e(n)}))}function o(){return new Promise((function(n){if(0!=i.globalData.isIframe)return!1;n(!0)}))}},"1bb9":function(n,t,e){"use strict";(function(n){var i=e("4ea4");e("99af"),e("4de4"),e("d81d"),e("4e82"),e("a9e3"),e("d3b7"),e("ac1f"),e("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(e("ade3"));e("96cf");var o,r=i(e("1da1")),s=e("3f7d"),c=e("5019"),u=e("858e"),d=i(e("e49f")),l=e("26cb"),h=i(e("ecac")),v=i(e("aa37")),f=i(e("9123")),p=i(e("2d3a")),g=e("6fe3"),m=0,b={components:{pageFooter:f.default,recommend:h.default,productWindow:v.default,tabBar:d.default},mixins:[p.default],data:function(){return{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:"我也是有底线的",page:1,limit:20,loadingInvalid:!1,loadendInvalid:!1,loadTitleInvalid:"加载更多",pageInvalid:1,limitInvalid:20,attr:{cartAttr:!1,productAttr:[],productSelect:{}},productValue:[],storeInfo:{},attrValue:"",attrTxt:"请选择",cartId:0,product_id:0,sysHeight:m,newData:{},activeRouter:"",is_diy_set:!1}},computed:(0,l.mapGetters)(["isLogin"]),onLoad:function(n){var t=this;this.is_diy?(uni.getStorageSync("FOOTER_BAR")?uni.hideTabBar():this.is_diy_set=!0,(0,g.getNavigation)().then((function(n){t.newData=n.data,t.newData.status&&t.newData.status.status?uni.hideTabBar():uni.showTabBar()}))):uni.hideTabBar();var e=this;0==e.isLogin&&(0,u.toLogin)();var i=getCurrentPages(),a=i[i.length-1].route;this.activeRouter="/"+a},onShow:function(){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(),this.loadendInvalid=!1,this.pageInvalid=1,this.cartList.invalid=[],this.getInvalidList(),this.getCartNum(),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:(o={authColse:function(n){this.isShowAuth=n},reGoCat:function(){var n=this,t=n.productValue[this.attrValue];if(n.attr.productAttr.length&&void 0===t)return n.$util.Tips({title:"产品库存不足,请选择其它"});var e={id:n.cartId,product_id:n.product_id,num:n.attr.productSelect.cart_num,unique:void 0!==n.attr.productSelect?n.attr.productSelect.unique:""};(0,s.getResetCart)(e).then((function(t){n.attr.cartAttr=!1,n.$util.Tips({title:"添加购物车成功",success:function(){n.loadend=!1,n.page=1,n.cartList.valid=[],n.getCartList(),n.getCartNum()}})})).catch((function(t){return n.$util.Tips({title:t.msg})}))},onMyEvent:function(){this.$set(this.attr,"cartAttr",!1)},reElection:function(n){this.getGoodsDetails(n)},getGoodsDetails:function(n){uni.showLoading({title:"加载中",mask:!0});var t=this;t.cartId=n.id,t.product_id=n.product_id,(0,c.getProductDetail)(n.product_id).then((function(n){uni.hideLoading(),t.attr.cartAttr=!0;var e=n.data.storeInfo;t.$set(t,"storeInfo",e),t.$set(t.attr,"productAttr",n.data.productAttr),t.$set(t,"productValue",n.data.productValue),t.DefaultSelect()})).catch((function(n){uni.hideLoading()}))},ChangeAttr:function(n){var t=this.productValue[n];t&&t.stock>0?(this.$set(this.attr.productSelect,"image",t.image),this.$set(this.attr.productSelect,"price",t.price),this.$set(this.attr.productSelect,"stock",t.stock),this.$set(this.attr.productSelect,"unique",t.unique),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"attrValue",n),this.$set(this,"attrTxt","已选择")):(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","请选择"))},DefaultSelect:function(){var n=this.attr.productAttr,t=[];for(var e in this.productValue)if(this.productValue[e].stock>0){t=this.attr.productAttr.length?e.split(","):[];break}for(var i=0;i<n.length;i++)this.$set(n[i],"index",t[i]);var a=this.productValue[t.sort().join(",")];a&&n.length?(this.$set(this.attr.productSelect,"store_name",this.storeInfo.store_name),this.$set(this.attr.productSelect,"image",a.image),this.$set(this.attr.productSelect,"price",a.price),this.$set(this.attr.productSelect,"stock",a.stock),this.$set(this.attr.productSelect,"unique",a.unique),this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"attrValue",t.sort().join(",")),this.$set(this,"attrTxt","已选择")):!a&&n.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","请选择")):a||n.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","请选择"))},attrVal:function(n){this.$set(this.attr.productAttr[n.indexw],"index",this.attr.productAttr[n.indexw].attr_values[n.indexn])},ChangeCartNum:function(n){var t=this.productValue[this.attrValue];if(void 0!==t||this.attr.productAttr.length||(t=this.attr.productSelect),void 0!==t){var e=t.stock||0,i=this.attr.productSelect;n?(i.cart_num++,i.cart_num>e&&(this.$set(this.attr.productSelect,"cart_num",e||1),this.$set(this,"cart_num",e||1))):(i.cart_num--,i.cart_num<1&&(this.$set(this.attr.productSelect,"cart_num",1),this.$set(this,"cart_num",1)))}},iptCartNum:function(n){this.$set(this.attr.productSelect,"cart_num",n)},subDel:function(n){var t=this,e=t.selectValue;if(!(e.length>0))return t.$util.Tips({title:"请选择产品"});(0,s.cartDel)(e).then((function(n){t.loadend=!1,t.page=1,t.cartList.valid=[],t.getCartList(),t.getCartNum()}))},getSelectValueProductId:function(){var n=this,t=n.cartList.valid,e=n.selectValue,i=[];if(e.length>0)for(var a in t)n.inArray(t[a].id,e)&&i.push(t[a].product_id);return i},subCollect:function(n){var t=this,e=t.selectValue;if(!(e.length>0))return t.$util.Tips({title:"请选择产品"});t.getSelectValueProductId();(0,c.collectAll)(t.getSelectValueProductId().join(",")).then((function(n){return t.$util.Tips({title:n.msg,icon:"success"})})).catch((function(n){return t.$util.Tips({title:n})}))},subOrder:function(n){var t=this,e=t.selectValue;if(!(e.length>0))return t.$util.Tips({title:"请选择产品"});uni.navigateTo({url:"/pages/users/order_confirm/index?cartId="+e.join(",")})},checkboxAllChange:function(n){var t=n.detail.value;t.length>0?this.setAllSelectValue(1):this.setAllSelectValue(0)},setAllSelectValue:function(n){var t=this,e=[],i=t.cartList.valid;if(i.length>0){var a=i.map((function(i){return n?(t.footerswitch?i.attrStatus?(i.checked=!0,e.push(i.id)):i.checked=!1:(i.checked=!0,e.push(i.id)),t.isAllSelect=!0):(i.checked=!1,t.isAllSelect=!1),i}));t.$set(t.cartList,"valid",a),t.selectValue=e,t.switchSelect()}},checkboxChange:function(n){var t=this,e=n.detail.value,i=t.cartList.valid,a=[],o=[],r=[],s=i.map((function(n){return t.inArray(n.id,e)?t.footerswitch?n.attrStatus?(n.checked=!0,a.push(n)):n.checked=!1:(n.checked=!0,a.push(n)):(n.checked=!1,o.push(n)),n}));t.footerswitch&&(r=o.filter((function(n){return!n.attrStatus}))),t.$set(t.cartList,"valid",s),t.isAllSelect=s.length===a.length+r.length,t.selectValue=e,t.switchSelect()},inArray:function(n,t){for(var e in t)if(t[e]==n)return!0;return!1},switchSelect:function(){var n=this,t=n.cartList.valid,e=n.selectValue,i=0;if(e.length<1)n.selectCountPrice=i;else{for(var a in t)n.inArray(t[a].id,e)&&(i=n.$util.$h.Add(i,n.$util.$h.Mul(t[a].cart_num,t[a].truePrice)));n.selectCountPrice=i}}},(0,a.default)(o,"iptCartNum",(function(n){var t=this.cartList.valid[n];t.cart_num&&this.setCartNum(t.id,t.cart_num),this.switchSelect()})),(0,a.default)(o,"blurInput",(function(n){var t=this.cartList.valid[n];t.cart_num||(t.cart_num=1,this.$set(this.cartList,"valid",this.cartList.valid))})),(0,a.default)(o,"subCart",(function(n){var t=this,e=!1,i=t.cartList.valid[n];i.cart_num=Number(i.cart_num)-1,i.cart_num<1&&(e=!0),i.cart_num<=1?(i.cart_num=1,i.numSub=!0):(i.numSub=!1,i.numAdd=!1),0==e&&t.setCartNum(i.id,i.cart_num,(function(e){t.cartList.valid[n]=i,t.getCartNum(),t.switchSelect()}))})),(0,a.default)(o,"addCart",(function(n){var t=this,e=t.cartList.valid[n];e.cart_num=Number(e.cart_num)+1;var i=e.productInfo;i.hasOwnProperty("attrInfo")&&e.cart_num>=e.productInfo.attrInfo.stock?(e.cart_num=e.productInfo.attrInfo.stock,e.numAdd=!0,e.numSub=!1):(e.numAdd=!1,e.numSub=!1),t.setCartNum(e.id,e.cart_num,(function(i){t.cartList.valid[n]=e,t.getCartNum(),t.switchSelect()}))})),(0,a.default)(o,"setCartNum",(function(n,t,e){var i=this;(0,s.changeCartNum)(n,t).then((function(n){e&&e(n.data)})).catch((function(n){return i.$util.Tips({title:n})}))})),(0,a.default)(o,"getCartNum",(function(){var n=this,t=this;(0,s.getCartCounts)().then((function(e){t.cartCount=e.data.count,n.$store.commit("indexData/setCartNum",e.data.count>99?"..":e.data.count),e.data.count>0?wx.setTabBarBadge({index:2,text:e.data.count+""}):wx.hideTabBarRedDot({index:2})}))})),(0,a.default)(o,"getCartData",(function(n){var t=this;return new Promise((function(e,i){(0,s.getCartList)(n).then((function(n){e(n.data)})).catch((function(n){t.loading=!1,t.canShow=!0,t.$util.Tips({title:n})}))}))})),(0,a.default)(o,"getCartList",(function(){var n=this;return(0,r.default)(regeneratorRuntime.mark((function t(){var e,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:uni.showLoading({title:"加载中",mask:!0}),e=n,i={page:e.page,limit:e.limit,status:1},(0,s.getCartCounts)().then(function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(a){var o,r,s,c,u,d,l,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.cartCount=a.data.count,o=0;case 2:if(!(o<Math.ceil(a.data.ids.length/e.limit))){t.next=20;break}return t.next=5,n.getCartData(i);case 5:if(r=t.sent,s=r.valid,c=e.$util.SplitArray(s,e.cartList.valid),[{numSub:!0},{numSub:!1}],[{numAdd:!0},{numAdd:!1}],u=[],c.length>0)for(d in c)1==c[d].cart_num?c[d].numSub=!0:c[d].numSub=!1,l=c[d].productInfo,l.hasOwnProperty("attrInfo")&&c[d].cart_num==c[d].productInfo.attrInfo.stock||c[d].cart_num==c[d].productInfo.stock?c[d].numAdd=!0:c[d].numAdd=!1,c[d].attrStatus?(c[d].checked=!0,u.push(c[d].id)):c[d].checked=!1;e.$set(e.cartList,"valid",c),i.page=e.page+1,e.selectValue=u,h=c.filter((function(n){return n.attrStatus})),e.isAllSelect=h.length==u.length&&h.length,e.switchSelect();case 17:o++,t.next=2;break;case 20:e.loading=!1,n.canShow=!0,uni.hideLoading();case 23:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()})),(0,a.default)(o,"getInvalidList",(function(){var n=this;if(this.loadendInvalid)return!1;if(this.loadingInvalid)return!1;var t={page:n.pageInvalid,limit:n.limitInvalid,status:0};(0,s.getCartList)(t).then((function(t){var e=t.data,i=e.invalid,a=i.length<n.limitInvalid,o=n.$util.SplitArray(i,n.cartList.invalid);n.$set(n.cartList,"invalid",o),n.loadendInvalid=a,n.loadTitleInvalid=a?"我也是有底线的":"加载更多",n.pageInvalid=n.pageInvalid+1,n.loadingInvalid=!1})).catch((function(t){n.loadingInvalid=!1,n.loadTitleInvalid="加载更多"}))})),(0,a.default)(o,"getHostProduct",(function(){var n=this;n.hotScroll||(0,c.getProductHot)(n.hotPage,n.hotLimit).then((function(t){n.hotPage++,n.hotScroll=t.data.length<n.hotLimit,n.hostProduct=n.hostProduct.concat(t.data)}))})),(0,a.default)(o,"goodsOpen",(function(){var n=this;n.goodsHidden=!n.goodsHidden})),(0,a.default)(o,"goRouter",(function(n){var t=getCurrentPages(),e=t[t.length-1].$page.fullPath;n.link!=e&&uni.switchTab({url:n.link,fail:function(t){uni.redirectTo({url:n.link})}})})),(0,a.default)(o,"manage",(function(){var n=this;n.footerswitch=!n.footerswitch;var t=[],e=[],i=n.cartList.valid.map((function(i){return n.footerswitch?i.attrStatus?i.checked&&t.push(i.id):(i.checked=!1,e.push(i)):i.checked&&t.push(i.id),i}));n.cartList.valid=i,n.footerswitch?n.isAllSelect=i.length===t.length+e.length:n.isAllSelect=i.length===t.length,n.selectValue=t,n.switchSelect()})),(0,a.default)(o,"unsetCart",(function(){for(var n=this,t=[],e=0,i=n.cartList.invalid.length;e<i;e++)t.push(n.cartList.invalid[e].id);(0,s.cartDel)(t).then((function(t){n.$util.Tips({title:"清除成功"}),n.$set(n.cartList,"invalid",[]),n.getCartNum()})).catch((function(n){}))})),o),onReachBottom:function(){var n=this;n.loadend&&n.getInvalidList(),0==n.cartList.valid.length&&0==n.cartList.invalid.length&&n.getHostProduct()}};t.default=b}).call(this,e("5a52")["default"])},"1c3c":function(n,t,e){"use strict";var i;e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",{style:n.colorStyle},[n.isShow&&n.tabbar.length&&!n.isIframe?e("v-uni-view",{staticClass:"uni-tabbar acea-row row-around row-middle"},n._l(n.tabbar,(function(t,i){return e("v-uni-view",{key:i,staticClass:"uni-tabbar_item",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.changeTab(t)}}},[e("v-uni-view",{staticClass:"uni-tabbar_icon"},[t.link==n.pagePath?e("v-uni-image",{attrs:{mode:"aspectFit",src:t.imgList[0]}}):e("v-uni-image",{attrs:{mode:"aspectFit",src:t.imgList[1]}})],1),e("v-uni-view",{staticClass:"uni-tabbar_label",class:{active:t.link==n.pagePath}},[n._v(n._s(t.name))])],1)})),1):n._e(),n.isIframe&&n.tabbar.length?e("v-uni-view",{staticClass:"uni-tabbar acea-row row-around row-middle"},n._l(n.tabbar,(function(t,i){return e("v-uni-view",{key:i,staticClass:"uni-tabbar_item",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.changeTab(t)}}},[e("v-uni-view",{staticClass:"uni-tabbar_icon"},[t.link==n.pagePath?e("v-uni-image",{attrs:{mode:"aspectFit",src:t.imgList[0]}}):e("v-uni-image",{attrs:{mode:"aspectFit",src:t.imgList[1]}})],1),e("v-uni-view",{staticClass:"uni-tabbar_label",class:{active:t.link==n.pagePath}},[n._v(n._s(t.name))])],1)})),1):n._e(),n.isIframe&&!n.tabbar.length?e("v-uni-view",{staticClass:"empty-img uni-tabbar acea-row row-around row-middle"},[n._v("暂无数据,请设置")]):n._e()],1)},o=[]},"1ddf":function(n,t,e){"use strict";e.r(t);var i=e("4bee"),a=e.n(i);for(var o in i)"default"!==o&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},"24e8":function(n,t,e){"use strict";var i=e("250f"),a=e.n(i);a.a},"250f":function(n,t,e){var i=e("25fc");"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var a=e("4f06").default;a("29ca5e0c",i,!0,{sourceMap:!1,shadowMode:!1})},"25fc":function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.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/* 文章场景相关 */.page-footer[data-v-2ce4e353]{position:fixed;bottom:0;z-index:30;display:flex;align-items:center;justify-content:space-around;width:100%;height:calc(98rpx+ constant(safe-area-inset-bottom));height:calc(%?98?% + 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);padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.page-footer .foot-item[data-v-2ce4e353]{display:flex;width:-webkit-max-content;width:max-content;align-items:center;justify-content:center;flex-direction:column;position:relative}.page-footer .foot-item .count-num[data-v-2ce4e353]{position:absolute;display:flex;justify-content:center;align-items:center;width:%?40?%;height:%?40?%;top:%?0?%;right:%?-15?%;color:#fff;font-size:%?20?%;background-color:#fd502f;border-radius:50%;padding:%?4?%}.page-footer .foot-item uni-image[data-v-2ce4e353]{height:%?50?%;width:%?50?%;text-align:center;margin:0 auto}.page-footer .foot-item .txt[data-v-2ce4e353]{font-size:%?24?%}.shoppingCart .labelNav[data-v-2ce4e353]{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-2ce4e353]{font-size:%?25?%;margin-right:%?10?%}.shoppingCart .nav[data-v-2ce4e353]{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-2ce4e353]{margin-left:%?12?%}.shoppingCart .nav .administrate[data-v-2ce4e353]{font-size:%?26?%;color:var(--view-theme);width:%?110?%;height:%?46?%;border-radius:%?6?%;border:1px solid var(--view-theme)}.shoppingCart .noCart[data-v-2ce4e353]{margin-top:%?171?%;background-color:#fff;padding-top:%?0.1?%}.shoppingCart .noCart .pictrue[data-v-2ce4e353]{width:%?414?%;height:%?336?%;margin:%?78?% auto %?56?% auto}.shoppingCart .noCart .pictrue uni-image[data-v-2ce4e353]{width:100%;height:100%}.shoppingCart .list[data-v-2ce4e353]{margin-top:%?171?%}.shoppingCart .list .item[data-v-2ce4e353]{padding:%?25?% %?30?%;background-color:#fff;margin-bottom:%?15?%}.shoppingCart .list .item .picTxt[data-v-2ce4e353]{width:%?627?%;position:relative}.shoppingCart .list .item .picTxt .pictrue[data-v-2ce4e353]{width:%?160?%;height:%?160?%}.shoppingCart .list .item .picTxt .pictrue uni-image[data-v-2ce4e353]{width:100%;height:100%;border-radius:%?6?%}.shoppingCart .list .item .picTxt .text[data-v-2ce4e353]{width:%?444?%;font-size:%?28?%;color:#282828}.shoppingCart .list .item .picTxt .text .reColor[data-v-2ce4e353]{color:#999}.shoppingCart .list .item .picTxt .text .reElection[data-v-2ce4e353]{margin-top:%?20?%}.shoppingCart .list .item .picTxt .text .reElection .title[data-v-2ce4e353]{font-size:%?24?%}.shoppingCart .list .item .picTxt .text .reElection .reBnt[data-v-2ce4e353]{width:%?120?%;height:%?46?%;border-radius:%?23?%;font-size:%?26?%}.shoppingCart .list .item .picTxt .text .infor[data-v-2ce4e353]{font-size:%?24?%;color:#868686;margin-top:%?16?%}.shoppingCart .list .item .picTxt .text .money[data-v-2ce4e353]{font-size:%?32?%;color:var(--view-theme);margin-top:%?28?%}.shoppingCart .list .item .picTxt .carnum[data-v-2ce4e353]{height:%?47?%;position:absolute;bottom:%?7?%;right:0}.shoppingCart .list .item .picTxt .carnum uni-view[data-v-2ce4e353]{border:%?1?% solid var(--view-theme);width:%?66?%;text-align:center;height:100%;line-height:%?40?%;font-size:%?28?%;color:var(--view-theme)}.shoppingCart .list .item .picTxt .carnum .reduce[data-v-2ce4e353]{border-right:0;border-radius:%?3?% 0 0 %?3?%}.shoppingCart .list .item .picTxt .carnum .reduce.on[data-v-2ce4e353]{border-color:#e3e3e3;color:#dedede}.shoppingCart .list .item .picTxt .carnum .plus[data-v-2ce4e353]{border-left:0;border-radius:0 %?3?% %?3?% 0}.shoppingCart .list .item .picTxt .carnum .plus.on[data-v-2ce4e353]{border-color:#e3e3e3;color:#dedede}.shoppingCart .list .item .picTxt .carnum .num[data-v-2ce4e353]{color:var(--view-theme)}.shoppingCart .invalidGoods[data-v-2ce4e353]{background-color:#fff}.shoppingCart .invalidGoods .goodsNav[data-v-2ce4e353]{width:100%;height:%?66?%;padding:0 %?30?%;box-sizing:border-box;font-size:%?28?%;color:#282828}.shoppingCart .invalidGoods .goodsNav .iconfont[data-v-2ce4e353]{color:#424242;font-size:%?28?%;margin-right:%?17?%}.shoppingCart .invalidGoods .goodsNav .del[data-v-2ce4e353]{font-size:%?26?%;color:#999}.shoppingCart .invalidGoods .goodsNav .del .icon-shanchu1[data-v-2ce4e353]{color:#999;font-size:%?33?%;vertical-align:%?-2?%;margin-right:%?8?%}.shoppingCart .invalidGoods .goodsList .item[data-v-2ce4e353]{padding:%?20?% %?30?%;border-top:%?1?% solid #f5f5f5}.shoppingCart .invalidGoods .goodsList .item .invalid[data-v-2ce4e353]{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-2ce4e353]{width:%?140?%;height:%?140?%}.shoppingCart .invalidGoods .goodsList .item .pictrue uni-image[data-v-2ce4e353]{width:100%;height:100%;border-radius:%?6?%}.shoppingCart .invalidGoods .goodsList .item .text[data-v-2ce4e353]{width:%?433?%;font-size:%?28?%;color:#999;height:%?140?%}.shoppingCart .invalidGoods .goodsList .item .text .name[data-v-2ce4e353]{width:100%}.shoppingCart .invalidGoods .goodsList .item .text .infor[data-v-2ce4e353]{font-size:%?24?%}.shoppingCart .invalidGoods .goodsList .item .text .end[data-v-2ce4e353]{font-size:%?26?%;color:#bbb}.shoppingCart .footer[data-v-2ce4e353]{z-index:999;width:100%;height:%?96?%;background-color:#fafafa;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-2ce4e353]{font-size:%?28?%;color:#282828;margin-left:%?16?%}.shoppingCart .footer .money[data-v-2ce4e353]{font-size:%?30?%}.shoppingCart .footer .placeOrder[data-v-2ce4e353]{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-2ce4e353]{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-2ce4e353]{margin-left:%?17?%}.uni-p-b-96[data-v-2ce4e353]{height:%?96?%}.uni-p-b-98[data-v-2ce4e353]{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))}',""]),n.exports=t},"2a01":function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.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-2f7414c2]{background-color:#fff}.recommend .title[data-v-2f7414c2]{height:%?135?%;font-size:%?28?%;color:#282828}.recommend .title .name[data-v-2f7414c2]{margin:0 %?28?%}.recommend .title .iconfont[data-v-2f7414c2]{font-size:%?170?%;color:#454545}.recommend .title .iconfont.lefticon[data-v-2f7414c2]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.recommend .recommendList[data-v-2f7414c2]{padding:0 %?30?%}.recommend .recommendList .item[data-v-2f7414c2]{width:%?335?%;margin-bottom:%?30?%;border-radius:%?20?% %?20?% 0 0;box-shadow:%?0?% %?3?% %?10?% %?2?% rgba(0,0,0,.03)}.recommend .recommendList .item .pictrue[data-v-2f7414c2]{position:relative;width:100%;height:%?335?%}.recommend .recommendList .item .pictrue uni-image[data-v-2f7414c2]{width:100%;height:100%;border-radius:%?20?%}.recommend .recommendList .item .name[data-v-2f7414c2]{font-size:%?28?%;color:#282828;margin-top:%?20?%;padding:0 %?10?%}.recommend .recommendList .item .money[data-v-2f7414c2]{font-size:%?20?%;margin-top:%?8?%;padding:0 %?10?% %?10?% %?10?%}.recommend .recommendList .item .money .num[data-v-2f7414c2]{font-size:%?28?%}',""]),n.exports=t},"2a6b":function(n,t,e){"use strict";(function(n){var i=e("4ea4");e("a9e3"),e("ac1f"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,o=i(e("ade3")),r=i(e("5530")),s=e("26cb"),c=e("6fe3"),u=e("3f7d"),d=(a={name:"pageFooter",props:{noTop:{type:Boolean,default:!0},status:{type:Number|String,default:1},countNum:{type:Number|String,default:0}},computed:(0,r.default)({},(0,s.mapState)({configData:function(n){return n.app.pageFooter}}))},(0,o.default)(a,"computed",(0,s.mapGetters)(["isLogin","cartNum"])),(0,o.default)(a,"watch",{configData:{handler:function(n,t){var e=this,i=uni.createSelectorQuery().in(this);this.newData=n,this.$nextTick((function(){i.select("#target").boundingClientRect((function(n){uni.$emit("footHeight",n.height),n&&(e.footHeight=n.height+50)})).exec()}))},deep:!0},cartNum:function(n,t){this.$store.commit("indexData/setCartNum",n+""),n>0?uni.setTabBarBadge({index:Number(uni.getStorageSync("FOOTER_ADDCART")),text:n+""}):wx.hideTabBarRedDot({index:Number(uni.getStorageSync("FOOTER_ADDCART"))})}}),(0,o.default)(a,"created",(function(){var n=getCurrentPages(),t=n[n.length-1].route;this.activeRouter="/"+t})),(0,o.default)(a,"onShow",(function(){var n=this;(0,c.getNavigation)().then((function(t){uni.setStorageSync("pageFoot",t.data),n.$store.commit("FOOT_UPLOAD",t.data),n.newData=t.data,n.newData.status&&n.newData.status.status||uni.showTabBar()}))})),(0,o.default)(a,"mounted",(function(){this.newData=this.$store.state.app.pageFooter,this.newData.status&&this.newData.status.status?uni.hideTabBar():uni.showTabBar(),this.newData,this.isLogin&&this.getCartNum()})),(0,o.default)(a,"data",(function(){return{newData:{},activeRouter:"/",footHeight:0}})),(0,o.default)(a,"methods",{goRouter:function(n){var t=getCurrentPages();if(t.length)var e=t[t.length-1].$page.fullPath;else e="";n.link!=e&&uni.switchTab({url:n.link,fail:function(t){uni.redirectTo({url:n.link})}})},getCartNum:function(){var n=this,t=this;(0,u.getCartCounts)().then((function(e){t.cartCount=e.data.count,n.$store.commit("indexData/setCartNum",e.data.count>99?"...":e.data.count)}))}}),a);t.default=d}).call(this,e("5a52")["default"])},"385f":function(n,t,e){"use strict";var i;e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",[e("v-uni-view",{style:{height:n.footHeight+"px"}}),n.newData.bgColor?e("v-uni-view",[e("v-uni-view",{staticClass:"page-footer",style:{"background-color":n.newData.bgColor.color[0].item},attrs:{id:"target"}},n._l(n.newData.menuList,(function(t,i){return e("v-uni-view",{key:i,staticClass:"foot-item",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.goRouter(t)}}},[t.link==n.activeRouter?[e("v-uni-image",{attrs:{src:t.imgList[0]}}),e("v-uni-view",{staticClass:"txt",style:{color:n.newData.activeTxtColor.color[0].item}},[n._v(n._s(t.name))])]:[e("v-uni-image",{attrs:{src:t.imgList[1]}}),e("v-uni-view",{staticClass:"txt",style:{color:n.newData.txtColor.color[0].item}},[n._v(n._s(t.name))])],"/pages/order_addcart/order_addcart"===t.link&&n.$store.state.indexData.cartNum&&n.$store.state.indexData.cartNum>0?e("div",{staticClass:"count-num"},[n._v(n._s(n.$store.state.indexData.cartNum))]):n._e()],2)})),1)],1):n._e()],1)},o=[]},"3d6d":function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.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/* 文章场景相关 */.page-footer[data-v-a118da66]{position:fixed;bottom:0;z-index:30;display:flex;align-items:center;justify-content:space-around;width:100%;height:calc(98rpx+ constant(safe-area-inset-bottom));height:calc(%?98?% + 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);padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.page-footer .foot-item[data-v-a118da66]{display:flex;width:-webkit-max-content;width:max-content;align-items:center;justify-content:center;flex-direction:column;position:relative}.page-footer .foot-item .count-num[data-v-a118da66]{position:absolute;display:flex;justify-content:center;align-items:center;width:%?40?%;height:%?40?%;top:%?0?%;right:%?-15?%;color:#fff;font-size:%?20?%;background-color:#fd502f;border-radius:50%;padding:%?4?%}.page-footer .foot-item uni-image[data-v-a118da66]{height:%?50?%;width:%?50?%;text-align:center;margin:0 auto}.page-footer .foot-item .txt[data-v-a118da66]{font-size:%?24?%}',""]),n.exports=t},"46be":function(n,t,e){var i=e("c7bd");"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var a=e("4f06").default;a("a6d1505c",i,!0,{sourceMap:!1,shadowMode:!1})},"4bee":function(n,t,e){"use strict";var i=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=e("f44a"),o=e("1754"),r=i(e("2d3a")),s=getApp(),c={name:"tabBar",props:{pagePath:null,dataConfig:{type:Object,default:function(){}}},watch:{dataConfig:{immediate:!0,handler:function(n,t){n&&(this.isShow=n.isShow.val)}}},mixins:[r.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:s.globalData.isIframe}},mounted:function(){this.tabbar.length||this.getDiyData()},methods:{getDiyData:function(){var n=this;(0,a.getDiy)().then((function(t){var e=t.data.tabBar.default.tabBarList.list;n.$Cache.set("TAB_BAR",e),n.tabbar=e})).catch((function(n){uni.showToast({title:n,icon:"none"})}))},changeTab:function(n){var t=this;(0,o.goPage)().then((function(e){t.page=n.link,uni.switchTab({url:t.page,fail:function(){uni.navigateTo({url:t.page})}})}))}}};t.default=c},"4ca1":function(n,t,e){"use strict";var i;e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",{staticClass:"recommend",style:n.colorStyle},[e("v-uni-view",{staticClass:"title acea-row row-center-wrapper"},[e("v-uni-text",{staticClass:"iconfont icon-zhuangshixian"}),e("v-uni-text",{staticClass:"name"},[n._v("热门推荐")]),e("v-uni-text",{staticClass:"iconfont icon-zhuangshixian lefticon"})],1),e("v-uni-view",{staticClass:"recommendList acea-row row-between-wrapper"},n._l(n.hostProduct,(function(t,i){return e("v-uni-view",{key:i,staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.goDetail(t)}}},[e("v-uni-view",{staticClass:"pictrue"},[e("v-uni-image",{attrs:{src:t.image}}),t.activity&&"1"===t.activity.type?e("span",{staticClass:"pictrue_log_big pictrue_log_class"},[n._v("秒杀")]):n._e(),t.activity&&"2"===t.activity.type?e("span",{staticClass:"pictrue_log_big pictrue_log_class"},[n._v("砍价")]):n._e(),t.activity&&"3"===t.activity.type?e("span",{staticClass:"pictrue_log_big pictrue_log_class"},[n._v("拼团")]):n._e()],1),e("v-uni-view",{staticClass:"name line1"},[n._v(n._s(t.store_name))]),e("v-uni-view",{staticClass:"money font-color"},[n._v("¥"),e("v-uni-text",{staticClass:"num"},[n._v(n._s(t.price))])],1)],1)})),1)],1)},o=[]},"4e4a":function(n,t,e){var i=e("2a01");"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var a=e("4f06").default;a("4168d65b",i,!0,{sourceMap:!1,shadowMode:!1})},"8bee":function(n,t,e){"use strict";var i=e("46be"),a=e.n(i);a.a},9116:function(n,t,e){"use strict";var i=e("4e4a"),a=e.n(i);a.a},9123:function(n,t,e){"use strict";e.r(t);var i=e("385f"),a=e("d7f1");for(var o in a)"default"!==o&&function(n){e.d(t,n,(function(){return a[n]}))}(o);e("0ae3");var r,s=e("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"a118da66",null,!1,i["a"],r);t["default"]=c.exports},a0fc:function(n,t,e){"use strict";var i;e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var a=function(){var n=this,t=n.$createElement,i=n._self._c||t;return i("v-uni-view",{style:n.colorStyle},[n.canShow?i("v-uni-view",{staticClass:"shoppingCart copy-data"},[i("v-uni-view",{staticClass:"labelNav acea-row row-around row-middle"},[i("v-uni-view",{staticClass:"item"},[i("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),n._v("100%正品保证")],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),n._v("所有商品精挑细选")],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),n._v("售后无忧")],1)],1),i("v-uni-view",{staticClass:"nav acea-row row-between-wrapper"},[i("v-uni-view",[n._v("购物数量"),i("v-uni-text",{staticClass:"num font-num"},[n._v(n._s(n.cartCount))])],1),n.cartList.valid.length>0||n.cartList.invalid.length>0?i("v-uni-view",{staticClass:"administrate acea-row row-center-wrapper",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.manage.apply(void 0,arguments)}}},[n._v(n._s(n.footerswitch?"管理":"取消"))]):n._e()],1),(n.cartList.valid.length>0||n.cartList.invalid.length>0)&&n.canShow?i("v-uni-view",[i("v-uni-view",{staticClass:"list"},[i("v-uni-checkbox-group",{on:{change:function(t){arguments[0]=t=n.$handleEvent(t),n.checkboxChange.apply(void 0,arguments)}}},[n._l(n.cartList.valid,(function(t,e){return[i("v-uni-view",{key:e+"_0",staticClass:"item acea-row row-between-wrapper"},[i("v-uni-checkbox",{attrs:{value:t.id.toString(),checked:t.checked,disabled:!t.attrStatus&&n.footerswitch}}),i("v-uni-navigator",{staticClass:"picTxt acea-row row-between-wrapper",attrs:{url:"/pages/goods_details/index?id="+t.product_id,"hover-class":"none"}},[i("v-uni-view",{staticClass:"pictrue"},[t.productInfo.attrInfo?i("v-uni-image",{attrs:{src:t.productInfo.attrInfo.image}}):i("v-uni-image",{attrs:{src:t.productInfo.image}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"line1",class:t.attrStatus?"":"reColor"},[n._v(n._s(t.productInfo.store_name))]),t.productInfo.attrInfo?i("v-uni-view",{staticClass:"infor line1"},[n._v("属性:"+n._s(t.productInfo.attrInfo.suk))]):n._e(),t.attrStatus?i("v-uni-view",{staticClass:"money"},[n._v("¥"+n._s(t.truePrice))]):i("v-uni-view",{staticClass:"reElection acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"title"},[n._v("请重新选择商品规格")]),i("v-uni-view",{staticClass:"reBnt cart-color acea-row row-center-wrapper",on:{click:function(e){e.stopPropagation(),arguments[0]=e=n.$handleEvent(e),n.reElection(t)}}},[n._v("重选")])],1)],1),t.attrStatus?i("v-uni-view",{staticClass:"carnum acea-row row-center-wrapper"},[i("v-uni-view",{staticClass:"reduce",class:t.numSub?"on":"",on:{click:function(t){t.stopPropagation(),arguments[0]=t=n.$handleEvent(t),n.subCart(e)}}},[n._v("-")]),i("v-uni-view",{staticClass:"num"},[i("v-uni-input",{attrs:{type:"number"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=n.$handleEvent(t)},input:function(t){arguments[0]=t=n.$handleEvent(t),n.iptCartNum(e)},blur:function(t){arguments[0]=t=n.$handleEvent(t),n.blurInput(e)}},model:{value:t.cart_num,callback:function(e){n.$set(t,"cart_num",e)},expression:"item.cart_num"}})],1),i("v-uni-view",{staticClass:"plus",class:t.numAdd?"on":"",on:{click:function(t){t.stopPropagation(),arguments[0]=t=n.$handleEvent(t),n.addCart(e)}}},[n._v("+")])],1):n._e()],1)],1)]}))],2)],1),n.cartList.invalid.length>0?i("v-uni-view",{staticClass:"invalidGoods"},[i("v-uni-view",{staticClass:"goodsNav acea-row row-between-wrapper"},[i("v-uni-view",{on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.goodsOpen.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont",class:1==n.goodsHidden?"icon-xiangxia":"icon-xiangshang"}),n._v("失效商品")],1),i("v-uni-view",{staticClass:"del",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.unsetCart.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-shanchu1"}),n._v("清空")],1)],1),i("v-uni-view",{staticClass:"goodsList",attrs:{hidden:n.goodsHidden}},[n._l(n.cartList.invalid,(function(t,e){return[i("v-uni-view",{key:e+"_0",staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"invalid"},[n._v("失效")]),i("v-uni-view",{staticClass:"pictrue"},[t.productInfo.attrInfo?i("v-uni-image",{attrs:{src:t.productInfo.attrInfo.image}}):i("v-uni-image",{attrs:{src:t.productInfo.image}})],1),i("v-uni-view",{staticClass:"text acea-row row-column-between"},[i("v-uni-view",{staticClass:"line1 name"},[n._v(n._s(t.productInfo.store_name))]),t.productInfo.attrInfo?i("v-uni-view",{staticClass:"infor line1"},[n._v("属性:"+n._s(t.productInfo.attrInfo.suk))]):n._e(),i("v-uni-view",{staticClass:"acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"end"},[n._v("该商品已失效")])],1)],1)],1)]}))],2)],1):n._e(),n.cartList.invalid.length&&n.loadend?i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==n.loadingInvalid}}),n._v(n._s(n.loadTitleInvalid))],1):n._e()],1):n._e(),0==n.cartList.valid.length&&0==n.cartList.invalid.length&&n.canShow?i("v-uni-view",{staticClass:"noCart"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e("b50b")}})],1),i("recommend",{attrs:{hostProduct:n.hostProduct}})],1):n._e(),i("v-uni-view",{staticStyle:{height:"120rpx",color:"#F5F5F5"}}),n.cartList.valid.length>0&&n.canShow?i("v-uni-view",{staticClass:"footer acea-row row-between-wrapper",class:n.is_diy&&n.is_diy_set?"on":""},[i("v-uni-view",[i("v-uni-checkbox-group",{on:{change:function(t){arguments[0]=t=n.$handleEvent(t),n.checkboxAllChange.apply(void 0,arguments)}}},[i("v-uni-checkbox",{attrs:{value:"all",checked:!!n.isAllSelect}}),i("v-uni-text",{staticClass:"checkAll"},[n._v("全选("+n._s(n.selectValue.length)+")")])],1)],1),1==n.footerswitch?i("v-uni-view",{staticClass:"money acea-row row-middle"},[i("v-uni-text",{staticClass:"font-color"},[n._v("¥"+n._s(n.selectCountPrice))]),i("v-uni-form",{on:{submit:function(t){arguments[0]=t=n.$handleEvent(t),n.subOrder.apply(void 0,arguments)}}},[i("v-uni-button",{staticClass:"placeOrder bg-color",attrs:{formType:"submit"}},[n._v("立即下单")])],1)],1):i("v-uni-view",{staticClass:"button acea-row row-middle"},[i("v-uni-form",{on:{submit:function(t){arguments[0]=t=n.$handleEvent(t),n.subCollect.apply(void 0,arguments)}}},[i("v-uni-button",{staticClass:"bnt cart-color",attrs:{formType:"submit"}},[n._v("收藏")])],1),i("v-uni-form",{on:{submit:function(t){arguments[0]=t=n.$handleEvent(t),n.subDel.apply(void 0,arguments)}}},[i("v-uni-button",{staticClass:"bnt",attrs:{formType:"submit"}},[n._v("删除")])],1)],1)],1):n._e()],1):n._e(),i("productWindow",{attrs:{attr:n.attr,isShow:1,iSplus:1,iScart:1,id:"product-window"},on:{myevent:function(t){arguments[0]=t=n.$handleEvent(t),n.onMyEvent.apply(void 0,arguments)},ChangeAttr:function(t){arguments[0]=t=n.$handleEvent(t),n.ChangeAttr.apply(void 0,arguments)},ChangeCartNum:function(t){arguments[0]=t=n.$handleEvent(t),n.ChangeCartNum.apply(void 0,arguments)},attrVal:function(t){arguments[0]=t=n.$handleEvent(t),n.attrVal.apply(void 0,arguments)},iptCartNum:function(t){arguments[0]=t=n.$handleEvent(t),n.iptCartNum.apply(void 0,arguments)},goCat:function(t){arguments[0]=t=n.$handleEvent(t),n.reGoCat.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"uni-p-b-98"}),n.is_diy?n.is_diy&&n.newData.status&&n.newData.status.status?i("v-uni-view",{staticClass:"foot"},[i("v-uni-view",{staticClass:"page-footer",style:{"background-color":n.newData.bgColor.color[0].item},attrs:{id:"target"}},n._l(n.newData.menuList,(function(t,e){return i("v-uni-view",{key:e,staticClass:"foot-item",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.goRouter(t)}}},[t.link==n.activeRouter?[i("v-uni-image",{attrs:{src:t.imgList[0]}}),i("v-uni-view",{staticClass:"txt",style:{color:n.newData.activeTxtColor.color[0].item}},[n._v(n._s(t.name))])]:[i("v-uni-image",{attrs:{src:t.imgList[1]}}),i("v-uni-view",{staticClass:"txt",style:{color:n.newData.txtColor.color[0].item}},[n._v(n._s(t.name))])],"/pages/order_addcart/order_addcart"===t.link&&n.cartCount>0?i("div",{staticClass:"count-num"},[n._v(n._s(n.cartCount))]):n._e()],2)})),1)],1):n._e():i("tabBar",{attrs:{pagePath:"/pages/order_addcart/order_addcart"}})],1)},o=[]},b4cd:function(n,t,e){"use strict";e.r(t);var i=e("a0fc"),a=e("090c");for(var o in a)"default"!==o&&function(n){e.d(t,n,(function(){return a[n]}))}(o);e("24e8"),e("8bee");var r,s=e("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"2ce4e353",null,!1,i["a"],r);t["default"]=c.exports},b50b:function(n,t,e){n.exports=e.p+"static/img/noCart.50b36491.png"},c7bd:function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* \t@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)){\n.shoppingCart .footer{\nbottom: calc(var(--window-bottom) + constant(safe-area-inset-bottom));\nbottom: calc(var(--window-bottom) + env(safe-area-inset-bottom));\n}\n} */",""]),n.exports=t},c939:function(n,t,e){"use strict";e.r(t);var i=e("cec9"),a=e.n(i);for(var o in i)"default"!==o&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},cec9:function(n,t,e){"use strict";var i=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=e("26cb"),o=e("1754"),r=i(e("2d3a")),s={computed:(0,a.mapGetters)(["uid"]),props:{hostProduct:{type:Array,default:function(){return[]}}},mixins:[r.default],data:function(){return{}},methods:{goDetail:function(n){(0,o.goShopDetail)(n,this.uid).then((function(t){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(n.id)})}))}}};t.default=s},d4cc:function(n,t,e){var i=e("e623");"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var a=e("4f06").default;a("466e4b80",i,!0,{sourceMap:!1,shadowMode:!1})},d7f1:function(n,t,e){"use strict";e.r(t);var i=e("2a6b"),a=e.n(i);for(var o in i)"default"!==o&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},e49f:function(n,t,e){"use strict";e.r(t);var i=e("1c3c"),a=e("1ddf");for(var o in a)"default"!==o&&function(n){e.d(t,n,(function(){return a[n]}))}(o);e("05d2");var r,s=e("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"084e3590",null,!1,i["a"],r);t["default"]=c.exports},e623:function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.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-084e3590]{position:fixed}.borderShow .uni-tabbar[data-v-084e3590]::after{content:" ";position:absolute;left:0;top:0;width:100%;height:100%;border:1px dashed #007aff;box-sizing:border-box}.uni-tabbar[data-v-084e3590]{position:fixed;bottom:0;left:0;z-index:999;width:100%;height:%?98?%;height:calc(98rpx+ constant(safe-area-inset-bottom));height:calc(%?98?% + env(safe-area-inset-bottom));padding-bottom:calc(constant(safe-area-inset-bottom));padding-bottom:calc(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}.uni-tabbar .uni-tabbar_item[data-v-084e3590]{width:100%;font-size:%?20?%;text-align:center}.uni-tabbar .uni-tabbar_icon[data-v-084e3590]{height:%?50?%;width:%?50?%;text-align:center;margin:0 auto}.uni-tabbar .uni-tabbar_icon uni-image[data-v-084e3590]{width:100%;height:100%}.uni-tabbar .uni-tabbar_label[data-v-084e3590]{font-size:%?24?%;color:#282828}.uni-tabbar .uni-tabbar_label.active[data-v-084e3590]{color:var(--view-theme)}',""]),n.exports=t},ecac:function(n,t,e){"use strict";e.r(t);var i=e("4ca1"),a=e("c939");for(var o in a)"default"!==o&&function(n){e.d(t,n,(function(){return a[n]}))}(o);e("9116");var r,s=e("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"2f7414c2",null,!1,i["a"],r);t["default"]=c.exports}}]); |