pages-my-storage-my-storage.cfeec96a.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-storage-my-storage"],{"11ff":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"test"},[a("custom-nav",{ref:"ltm",attrs:{noback:"noback",transparent:"transparent",title:" "}}),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"swiper-nav"},[e._l(e.list,(function(t,i){return a("v-uni-view",{key:i,staticClass:"item",class:{active:e.MIXIN_ActiveIndex===i},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.switchSwiper(i)}}},[e._v(e._s(t.name))])})),a("v-uni-view",{staticClass:"moveBar",style:{left:e.MIXIN_MoveBarLeft+"px",width:100/e.list.length+"%"}},[a("v-uni-text")],1)],2),a("v-uni-view",{staticClass:"swiper-area"},[a("v-uni-swiper",{staticClass:"swiper",attrs:{current:e.MIXIN_ActiveIndex,duration:234},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.MIXIN_change.apply(void 0,arguments)}}},e._l(e.list,(function(t,i){return a("v-uni-swiper-item",{key:i},[a("v-uni-scroll-view",{style:{height:e.MIXIN_ScrollViewHeight+"px"},attrs:{"scroll-y":!0}},[a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name-avatar"},[a("v-uni-image",{staticClass:"img",attrs:{src:t.img}}),a("v-uni-text",[e._v(e._s(t.name))])],1),a("v-uni-view",{staticClass:"app-item item-space"},[a("v-uni-text",[e._v("单品价")]),a("v-uni-text",{staticClass:"basecolor"},[e._v("¥"+e._s(t.price))])],1),a("v-uni-view",{staticClass:"app-item"},[a("v-uni-text",[e._v("总库存剩余")]),a("v-uni-text",{staticClass:"basecolor"},[e._v(e._s(e._f("totalNumStorage")(t))+"件")])],1),a("v-uni-view",{staticClass:"app-item"},[a("v-uni-text",[e._v("总库存价值")]),a("v-uni-text",{staticClass:"basecolor"},[e._v("¥"+e._s(e._f("numDot")(e._f("totalValueStorage")(t))))])],1),a("v-uni-view",{staticClass:"app-item item-space type"},[a("v-uni-text",[e._v("商品类型")])],1),a("v-uni-view",{staticClass:"app-item"},[a("v-uni-text",[e._v("总库存价值")]),a("v-uni-text",{staticClass:"basecolor"},[e._v("¥"+e._s(e._f("numDot")(e._f("totalValueStorage")(t))))])],1),e._l(t.typeList,(function(t,i){return e.typeNum(t)?a("v-uni-view",{key:i,staticClass:"app-item"},[a("v-uni-text",[e._v(e._s(t.name))]),a("v-uni-text",{staticClass:"basecolor"},[e._v(e._s(e.typeNum(t)+" ")+"件")])],1):e._e()}))],2)],1)],1)})),1)],1)],1)],1)},r=[]},"7c74":function(e,t,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderList=t._API_mergeOrder=t._API_destory=t._API_PlaceOrder=t._API_OrderStorage=t._API_OrderReceiveGoods1=t._API_OrderReceiveGoods=t._API_OrderPay=t._API_OrderLog=t._API_OrderDetail1=t._API_OrderDetail=t._API_OrderDel=t._API_OrderCancel=t._API_GetallGift=t._API_GetOrderGift=t._API_GetOrderDetail=t._API_GetLogistics=t._API_GetExpressTrack=t.CheckGoodNum=void 0;var r=i(a("ef1d"));t._API_OrderPay=function(e){return r.default.get("/pay_order",e)};t._API_OrderCancel=function(e){return r.default.get("/destory",e)};t._API_OrderLog=function(e){return r.default.get("/get_log",e)};t._API_GetOrderDetail=function(e){return r.default.get("/order/GetOrderDetail",e)};t.getOrderList=function(e,t){return r.default.get("/order_list?status=".concat(e),t)};t._API_PlaceOrder=function(e){return r.default.post("/submit_order",e)};t._API_OrderReceiveGoods=function(e){return r.default.get("/order/order_complete",e)};t._API_OrderReceiveGoods1=function(e){return r.default.get("/order/sure_order",e)};t._API_OrderDel=function(e){return r.default.get("/order/del",e)};t._API_OrderDetail=function(e){return r.default.get("/order/detail",e)};t._API_OrderDetail1=function(e){return r.default.get("/order_detail",e)};t._API_OrderStorage=function(e){return r.default.get("/order/my_storage",e)};t._API_GetallGift=function(){return r.default.get("/order/get_gift_info")};t._API_GetOrderGift=function(e){return r.default.get("/order/get_gift",e)};t._API_GetLogistics=function(e){return r.default.get("/order/get_order_expresses",e)};t._API_GetExpressTrack=function(e){return r.default.get("/order/get_express",e)};t._API_mergeOrder=function(e){return r.default.get("/order/search_order",e)};t._API_destory=function(e){return r.default.get("/order/destory",e)};t.CheckGoodNum=function(e){return r.default.post("/order/CheckGoodNum",e)}},b9e6:function(e,t,a){"use strict";a.r(t);var i=a("f9b9"),r=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(n);t["default"]=r.a},bc46:function(e,t,a){"use strict";var i=a("e4cd"),r=a.n(i);r.a},c2f3:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-dc3aa31e]{margin-top:%?10?%}.app-item uni-input[data-v-dc3aa31e], .app-item uni-picker[data-v-dc3aa31e], .app-item uni-textarea[data-v-dc3aa31e]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-dc3aa31e]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-dc3aa31e]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-dc3aa31e]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-dc3aa31e]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-dc3aa31e]{color:#fff;background:#f76454}.small-btn[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-dc3aa31e]{color:#999;border-color:#999}.login-btn[data-v-dc3aa31e]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-dc3aa31e]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-dc3aa31e]{margin-right:%?20?%}.border-right[data-v-dc3aa31e]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-dc3aa31e]{margin-right:%?6?%}.position-center[data-v-dc3aa31e]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-dc3aa31e]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-dc3aa31e]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-dc3aa31e]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-dc3aa31e]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-dc3aa31e]{color:#f76454}.swiper-nav[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-dc3aa31e]{color:#f76454}.swiper-nav .moveBar[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-dc3aa31e]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-dc3aa31e]{flex:1;width:100%}.swiper-area uni-swiper[data-v-dc3aa31e]{width:100%;height:100%}.article-header[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-dc3aa31e]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-dc3aa31e]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-dc3aa31e]{color:#f76454}.article-footer[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-dc3aa31e]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-dc3aa31e]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-dc3aa31e]{color:#f76454}\n/*主题色及按钮渐变背景*/\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.test[data-v-dc3aa31e]{height:100%;box-sizing:border-box;flex-direction:column;background:#f2f2f2}.test .content[data-v-dc3aa31e]{flex:1;height:100%;position:relative;box-sizing:border-box}.test .content[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:column}.test .content .swiper-nav[data-v-dc3aa31e]{height:auto;min-height:%?84?%;margin-bottom:%?1?%}.test .content .swiper-nav .item[data-v-dc3aa31e]{text-align:center;box-sizing:border-box;border:%?10?% solid #fff}.test .content .swiper-nav uni-text[data-v-dc3aa31e]{width:%?56?%}.test .content .swiper-area[data-v-dc3aa31e]{flex:1;width:100%}.test .content .swiper-area .swiper[data-v-dc3aa31e]{height:100%}.test .content .swiper-area .swiper uni-scroll-view .item .name-avatar[data-v-dc3aa31e]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?180?%;font-size:%?32?%;margin-top:%?10?%;background:#fff;padding:%?20?% %?30?%;box-sizing:border-box;justify-content:flex-start}.test .content .swiper-area .swiper uni-scroll-view .item .name-avatar .img[data-v-dc3aa31e]{width:%?140?%;height:%?140?%;margin-right:%?40?%}.test .content .swiper-area .swiper uni-scroll-view .item .type[data-v-dc3aa31e]{height:%?30?%;font-size:%?26?%}',""]),e.exports=t},def8:function(e,t,a){"use strict";a.r(t);var i=a("11ff"),r=a("b9e6");for(var n in r)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return r[e]}))}(n);a("bc46");var o=a("f0c5"),d=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"dc3aa31e",null,!1,i["a"],void 0);t["default"]=d.exports},e4cd:function(e,t,a){var i=a("c2f3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("4f06").default;r("409db922",i,!0,{sourceMap:!1,shadowMode:!1})},f9b9:function(e,t,a){"use strict";(function(e){a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("13d5"),a("d3b7"),a("a9e3"),a("e9c4");var i=a("7c74"),r={data:function(){return{title:"我的库存",list:[0,0,0],MIXIN_ActiveIndex:0,MIXIN_MoveBarLeft:0,MIXIN_ScrollViewHeight:0,MIXIN_ScreenWidth:this.$store.state.device.screenWidth}},computed:{typeNum:function(e){return function(e){return e.num.reduce((function(e,t){return e+ +t}),0)}}},filters:{totalNumStorage:function(e){return e?e.typeList.reduce((function(e,t){return t.num.reduce((function(e,t){return e+Number(t)}),e)}),0):0},totalValueStorage:function(e){return e?e.typeList.reduce((function(e,t){return t.num.reduce((function(e,t){return e+Number(t)}),e)}),0)*+e.price:0}},mounted:function(){var t=this;if(3!==this.$store.state.userinfo.user_type)return uni.navigateBack(),void setTimeout((function(){return uni.$emit("noopening")}));uni.showLoading({mask:!0}),(0,i._API_OrderStorage)().then((function(a){e.log(JSON.stringify(a.data.list),666),t.list=a.data.list,t.$nextTick((function(){return t.$offset(".swiper").then((function(e){t.MIXIN_ScrollViewHeight=e.height}))}))}))},methods:{MIXIN_change:function(e){var t=e.detail.current;this.MIXIN_ActiveIndex=t,this.MIXIN_MoveBarLeft=this.MIXIN_ActiveIndex*(this.MIXIN_ScreenWidth/this.list.length)},switchSwiper:function(e){this.MIXIN_ActiveIndex=e,this.MIXIN_MoveBarLeft=this.MIXIN_ActiveIndex*(this.MIXIN_ScreenWidth/this.list.length)}}};t.default=r}).call(this,a("5a52")["default"])}}]);