pages-my-storage-my-storage.13a15932.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-storage-my-storage"],{"1ba5":function(t,e,r){"use strict";var n=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.GetApplyBigGift=e.ApplyBigGift=e.CheckMoney=e.UploadApplyImg=e.GetUserInfo=e.CheckGoodNum=e.getSzyExpress=e.GetEnrollInfo=e.UpdateAddAddress=e.GetEnrollUserAddress=e._API_SearchStatus=e._API_GetStatus=e._API_payment=e._API_destory=e._API_DestoryOrder=e._API_mergeOrder=e._API_GetExpressTrack=e._API_GetLogistics=e._API_GetOrderGift=e._API_GetallGift=e._API_SubmitTShirtNum=e._API_GetTShirtNum=e._API_OrderAgain=e._API_OrderStorage=e._API_OrderSend=e._API_OrderDetail1=e._API_OrderDetail=e._API_OrderDel=e._API_OrderReceiveMoney=e._API_OrderReceiveGoods1=e._API_OrderReceiveGoods=e._API_PlaceOrder=e._API_OrderDownCompleted=e._API_OrderDownForward=e._API_OrderDownSended=e._API_OrderDownWillsend=e._API_OrderDownWillpay=e.getOrderList=e._API_OrderMy5=e._API_OrderMy4=e._API_OrderMy3=e._API_OrderMy2=e._API_OrderMy1=e._API_GetOrderDetail=e._API_OrderMyCompleted=e._API_OrderMySended=e._API_OrderMyExamine=e._API_OrderLog=e._API_OrderCancel=e._API_OrderPay=e._API_OrderChart=void 0;var i=n(r("daa8")),a=function(t){return i.default.get("/app/chart?type=0",t)};e._API_OrderChart=a;var o=function(t){return i.default.get("/pay_order",t)};e._API_OrderPay=o;var f=function(t){return i.default.get("/destory",t)};e._API_OrderCancel=f;var d=function(t){return i.default.get("/get_log",t)};e._API_OrderLog=d;var s=function(t){return i.default.get("/order/my_order?status=0",t)};e._API_OrderMyExamine=s;var u=function(t){return i.default.get("/order/my_order?status=1",t)};e._API_OrderMySended=u;var l=function(t){return i.default.get("/order/my_order?status=2",t)};e._API_OrderMyCompleted=l;var c=function(t){return i.default.get("/order/GetOrderDetail",t)};e._API_GetOrderDetail=c;var _=function(t){return i.default.get("/order_list?status=0",t)};e._API_OrderMy1=_;var v=function(t){return i.default.get("/order_list?status=1",t)};e._API_OrderMy2=v;var g=function(t){return i.default.get("/order_list?status=2",t)};e._API_OrderMy3=g;var p=function(t){return i.default.get("/order_list?status=3",t)};e._API_OrderMy4=p;var h=function(t){return i.default.get("/order_list?status=4",t)};e._API_OrderMy5=h;var m=function(t,e){return i.default.get("/order_list?status=".concat(t),e)};e.getOrderList=m;var I=function(t){return i.default.get("/order/order_lower?status=0",t)};e._API_OrderDownWillpay=I;var y=function(t){return i.default.get("/order/order_lower?status=1",t)};e._API_OrderDownWillsend=y;var w=function(t){return i.default.get("/order/order_lower?status=2",t)};e._API_OrderDownSended=w;var A=function(t){return i.default.get("/order/order_turn",t)};e._API_OrderDownForward=A;var x=function(t){return i.default.get("/order/order_lower?status=3",t)};e._API_OrderDownCompleted=x;var b=function(t){return i.default.post("/submit_order",t)};e._API_PlaceOrder=b;var P=function(t){return i.default.get("/order/order_complete",t)};e._API_OrderReceiveGoods=P;var O=function(t){return i.default.get("/order/sure_order",t)};e._API_OrderReceiveGoods1=O;var G=function(t){return i.default.get("/order/order_sure_pay",t)};e._API_OrderReceiveMoney=G;var M=function(t){return i.default.get("/order/del",t)};e._API_OrderDel=M;var k=function(t){return i.default.get("/order/detail",t)};e._API_OrderDetail=k;var S=function(t){return i.default.get("/order_detail",t)};e._API_OrderDetail1=S;var C=function(t){return i.default.post("/order/forward",t)};e._API_OrderSend=C;var N=function(t){return i.default.get("/order/my_storage",t)};e._API_OrderStorage=N;var j=function(t){return i.default.get("/order/again",t)};e._API_OrderAgain=j;var z=function(t){return i.default.get("/order/type_count",t)};e._API_GetTShirtNum=z;var D=function(t){return i.default.post("/order/type_submit",t)};e._API_SubmitTShirtNum=D;var B=function(){return i.default.get("/order/get_gift_info")};e._API_GetallGift=B;var X=function(t){return i.default.get("/order/get_gift",t)};e._API_GetOrderGift=X;var E=function(t){return i.default.get("/order/get_order_expresses",t)};e._API_GetLogistics=E;var L=function(t){return i.default.get("/order/get_express",t)};e._API_GetExpressTrack=L;var U=function(t){return i.default.get("/order/search_order",t)};e._API_mergeOrder=U;var T=function(t){return i.default.get("/order/ApplyDestoryOrder",t)};e._API_DestoryOrder=T;var W=function(t){return i.default.get("/order/destory",t)};e._API_destory=W;var $=function(t){return i.default.get("/pays/payment",t)};e._API_payment=$;var R=function(t){return i.default.get("/pays/GetStatus",t)};e._API_GetStatus=R;var V=function(t){return i.default.get("/pays/SearchStatus",t)};e._API_SearchStatus=V;var F=function(t){return i.default.get("/pays/GetEnrollUserAddress",t)};e.GetEnrollUserAddress=F;var H=function(t){return i.default.post("/pays/UpdateAddAddress",t)};e.UpdateAddAddress=H;var J=function(t){return i.default.get("/pays/GetEnrollInfo",t)};e.GetEnrollInfo=J;var q=function(t){return i.default.get("/pays/getSzyExpress",t)};e.getSzyExpress=q;var K=function(t){return i.default.post("/order/CheckGoodNum",t)};e.CheckGoodNum=K;var Q=function(t){return i.default.get("/BigGift/GetUserInfo",t)};e.GetUserInfo=Q;var Y=function(t){return i.default.post("/BigGift/UploadApplyImg",t)};e.UploadApplyImg=Y;var Z=function(t){return i.default.get("/BigGift/CheckMoney",t)};e.CheckMoney=Z;var tt=function(t){return i.default.post("/BigGift/ApplyBigGift",t)};e.ApplyBigGift=tt;var et=function(t){return i.default.get("/BigGift/GetApplyBigGift",t)};e.GetApplyBigGift=et},"20e6":function(t,e,r){"use strict";r.r(e);var n=r("3c4c"),i=r.n(n);for(var a in n)"default"!==a&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"3c4c":function(t,e,r){"use strict";(function(t){r("13d5"),r("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("1ba5"),i={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(t){return function(t){return t.num.reduce((function(t,e){return t+ +e}),0)}}},filters:{totalNumStorage:function(t){return t?t.typeList.reduce((function(t,e){return e.num.reduce((function(t,e){return t+Number(e)}),t)}),0):0},totalValueStorage:function(t){return t?t.typeList.reduce((function(t,e){return e.num.reduce((function(t,e){return t+Number(e)}),t)}),0)*+t.price:0}},mounted:function(){var e=this;if("代理公司"!==this.$store.state.userinfo.level)return uni.navigateBack(),void setTimeout((function(){return uni.$emit("noopening")}));uni.showLoading({mask:!0}),(0,n._API_OrderStorage)().then((function(r){t.log(JSON.stringify(r.data.list),666),e.list=r.data.list,e.$nextTick((function(){return e.$offset(".swiper").then((function(t){e.MIXIN_ScrollViewHeight=t.height}))}))}))},methods:{MIXIN_change:function(t){var e=t.detail.current;this.MIXIN_ActiveIndex=e,this.MIXIN_MoveBarLeft=this.MIXIN_ActiveIndex*(this.MIXIN_ScreenWidth/this.list.length)},switchSwiper:function(t){this.MIXIN_ActiveIndex=t,this.MIXIN_MoveBarLeft=this.MIXIN_ActiveIndex*(this.MIXIN_ScreenWidth/this.list.length)}}};e.default=i}).call(this,r("5a52")["default"])},"44b3":function(t,e,r){"use strict";r.r(e);var n=r("d583"),i=r("20e6");for(var a in i)"default"!==a&&function(t){r.d(e,t,(function(){return i[t]}))}(a);r("c6ae");var o,f=r("f0c5"),d=Object(f["a"])(i["default"],n["b"],n["c"],!1,null,"41f0ff39",null,!1,n["a"],o);e["default"]=d.exports},a7cf:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-41f0ff39]{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-41f0ff39]{margin-top:%?10?%}.app-item uni-input[data-v-41f0ff39], .app-item uni-picker[data-v-41f0ff39], .app-item uni-textarea[data-v-41f0ff39]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-41f0ff39]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-41f0ff39]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-41f0ff39]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-41f0ff39]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-41f0ff39]{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-41f0ff39]{color:#fff;background:#f76454}.small-btn[data-v-41f0ff39]{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-41f0ff39]{color:#999;border-color:#999}.login-btn[data-v-41f0ff39]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-41f0ff39]{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-41f0ff39]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-41f0ff39]{margin-right:%?20?%}.border-right[data-v-41f0ff39]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-41f0ff39]{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-41f0ff39]{margin-right:%?6?%}.position-center[data-v-41f0ff39]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-41f0ff39]{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-41f0ff39]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-41f0ff39]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-41f0ff39]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-41f0ff39]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-41f0ff39]{color:#f76454}.swiper-nav[data-v-41f0ff39]{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-41f0ff39]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-41f0ff39]{color:#f76454}.swiper-nav .moveBar[data-v-41f0ff39]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-41f0ff39]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-41f0ff39]{flex:1;width:100%}.swiper-area uni-swiper[data-v-41f0ff39]{width:100%;height:100%}.article-header[data-v-41f0ff39]{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-41f0ff39]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-41f0ff39]{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-41f0ff39]{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-41f0ff39]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-41f0ff39]{color:#f76454}.article-footer[data-v-41f0ff39]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-41f0ff39]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-41f0ff39]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-41f0ff39]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-41f0ff39]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.test[data-v-41f0ff39]{height:100%;box-sizing:border-box;flex-direction:column;background:#f2f2f2}.test .content[data-v-41f0ff39]{flex:1;height:100%;position:relative;box-sizing:border-box}.test .content[data-v-41f0ff39]{display:flex;align-items:center;justify-content:center;flex-direction:column}.test .content .swiper-nav[data-v-41f0ff39]{height:auto;min-height:%?84?%;margin-bottom:%?1?%}.test .content .swiper-nav .item[data-v-41f0ff39]{text-align:center;box-sizing:border-box;border:%?10?% solid #fff}.test .content .swiper-nav uni-text[data-v-41f0ff39]{width:%?56?%}.test .content .swiper-area[data-v-41f0ff39]{flex:1;width:100%}.test .content .swiper-area .swiper[data-v-41f0ff39]{height:100%}.test .content .swiper-area .swiper uni-scroll-view .item .name-avatar[data-v-41f0ff39]{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-41f0ff39]{width:%?140?%;height:%?140?%;margin-right:%?40?%}.test .content .swiper-area .swiper uni-scroll-view .item .type[data-v-41f0ff39]{height:%?30?%;font-size:%?26?%}',""]),t.exports=e},c6ae:function(t,e,r){"use strict";var n=r("efaa"),i=r.n(n);i.a},d583:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"test"},[r("custom-nav",{ref:"ltm",attrs:{noback:"noback",transparent:"transparent",title:" "}}),r("v-uni-view",{staticClass:"content"},[r("v-uni-view",{staticClass:"swiper-nav"},[t._l(t.list,(function(e,n){return r("v-uni-view",{key:n,staticClass:"item",class:{active:t.MIXIN_ActiveIndex===n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchSwiper(n)}}},[t._v(t._s(e.name))])})),r("v-uni-view",{staticClass:"moveBar",style:{left:t.MIXIN_MoveBarLeft+"px",width:100/t.list.length+"%"}},[r("v-uni-text")],1)],2),r("v-uni-view",{staticClass:"swiper-area"},[r("v-uni-swiper",{staticClass:"swiper",attrs:{current:t.MIXIN_ActiveIndex,duration:234},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.MIXIN_change.apply(void 0,arguments)}}},t._l(t.list,(function(e,n){return r("v-uni-swiper-item",{key:n},[r("v-uni-scroll-view",{style:{height:t.MIXIN_ScrollViewHeight+"px"},attrs:{"scroll-y":!0}},[r("v-uni-view",{staticClass:"item"},[r("v-uni-view",{staticClass:"name-avatar"},[r("v-uni-image",{staticClass:"img",attrs:{src:e.img}}),r("v-uni-text",[t._v(t._s(e.name))])],1),r("v-uni-view",{staticClass:"app-item item-space"},[r("v-uni-text",[t._v("单品价")]),r("v-uni-text",{staticClass:"basecolor"},[t._v("¥"+t._s(e.price))])],1),r("v-uni-view",{staticClass:"app-item"},[r("v-uni-text",[t._v("总库存剩余")]),r("v-uni-text",{staticClass:"basecolor"},[t._v(t._s(t._f("totalNumStorage")(e))+"件")])],1),r("v-uni-view",{staticClass:"app-item"},[r("v-uni-text",[t._v("总库存价值")]),r("v-uni-text",{staticClass:"basecolor"},[t._v("¥"+t._s(t._f("numDot")(t._f("totalValueStorage")(e))))])],1),r("v-uni-view",{staticClass:"app-item item-space type"},[r("v-uni-text",[t._v("商品类型")])],1),r("v-uni-view",{staticClass:"app-item"},[r("v-uni-text",[t._v("总库存价值")]),r("v-uni-text",{staticClass:"basecolor"},[t._v("¥"+t._s(t._f("numDot")(t._f("totalValueStorage")(e))))])],1),t._l(e.typeList,(function(e,n){return t.typeNum(e)?r("v-uni-view",{key:n,staticClass:"app-item"},[r("v-uni-text",[t._v(t._s(e.name))]),r("v-uni-text",{staticClass:"basecolor"},[t._v(t._s(t.typeNum(e)+" ")+"件")])],1):t._e()}))],2)],1)],1)})),1)],1)],1)],1)},a=[]},efaa:function(t,e,r){var n=r("a7cf");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("4f06").default;i("6e1237e5",n,!0,{sourceMap:!1,shadowMode:!1})}}]);