You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
17 KiB
1 lines
17 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-warehouse-sell"],{"16e8":function(t,e,a){"use strict";a.r(e);var s=a("3086"),i=a.n(s);for(var r in s)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(r);e["default"]=i.a},2909:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,s.default)(t)||(0,i.default)(t)||(0,r.default)(t)||(0,o.default)()};var s=n(a("6005")),i=n(a("db90")),r=n(a("06c5")),o=n(a("3427"));function n(t){return t&&t.__esModule?t:{default:t}}},"2de2":function(t,e,a){var s=a("4b36");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=a("4f06").default;i("45fbc35c",s,!0,{sourceMap:!1,shadowMode:!1})},3086:function(t,e,a){"use strict";a("7a82");var s=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=s(a("2909")),r=s(a("5530"));a("d3b7"),a("159b"),a("a9e3"),a("4de4"),a("14d9");var o=a("4838"),n={data:function(){return{page:1,limit:10,status:[-2],tableData:[],total:0,tool:"",statusList:[{id:0,name:"待付款"},{id:1,name:"已付款"},{id:2,name:"待转售"},{id:3,name:"委卖中"},{id:4,name:"提货中"},{id:5,name:"已提货"},{id:-1,name:"已取消"},{id:6,name:"已完成"}],tabList:[{name:"全部",status:[-2]},{name:"待付款",status:[0]},{name:"上架中",status:[2]},{name:"已结束",status:[6]}]}},onLoad:function(t){var e=t.type.split(",");e.length>0?e.forEach((function(t,a){e[a]=Number(t)})):e=[-2],console.log(e,"arr"),this.status=e,this.getList()},methods:{getstatusLabel:function(t){var e=this.statusList.filter((function(e){return e.id==t}));return e.length>0?e[0].name:"-"},getList:function(t){var e=this,a={page:this.page,limit:this.limit,status:-2==this.status?"":this.status.join(",")};(0,o.getSellerOrderList)((0,r.default)((0,r.default)({},a),{},{custom:{auth:!0}})).then((function(a){var s;t?(s=e.tableData).push.apply(s,(0,i.default)(a.data.data)):(e.tableData=a.data.data,e.total=a.data.total)}))},onOrderTab:function(t){this.status=4==t?"4,5":t,this.getList()},onOrderList:function(t){uni.navigateTo({url:"/pages/OrderDetails/OrderDetails?id="+t.id+"&tool=sell"})},confirmPay:function(t,e){var a=this,s={status:e,id:t.id};(0,o.orderPay)(s).then((function(t){a.getList()}))}},onReachBottom:function(){this.tableData.length<this.total&&(this.page++,this.getList("over"))}};e.default=n},3427:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},a("d9e2"),a("d401")},4257:function(t,e,a){t.exports=a.p+"static/img/empty.f3782c52.png"},4838:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.withdraw=e.userRegister=e.updateUserInfo=e.submitPingzheng=e.smsSend=e.smsCheck=e.recharge=e.privacyPolicy=e.payUpGoods=e.orderPay=e.orderDetail=e.logout=e.loginApi=e.incomeDetail=e.getgoodsDetail=e.getWithdrawList=e.getWarehouseList=e.getUserProfitStatistic=e.getUserProfitList=e.getUserInfo=e.getUserFansStatistic=e.getUserFansOrderStatistic=e.getUserFansOrderList=e.getUserFansList=e.getUserCommissionStatistic=e.getUserCommissionList=e.getUserCommissionApi=e.getSellerOrderList=e.getGoodsList=e.getBuyerOrderList=e.getArea=e.getAddrList=e.getAddrDesc=e.forgetPsw=e.editAddr=e.deleteAddr=e.createOrder=e.couponList=e.confirmSign=e.confirmPay=e.changePassword=e.cancelOrder=e.bindInvitor=e.addAddr=void 0;var s=uni.$u.http;e.smsSend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.post("/api/sms/send",t,e)};e.smsCheck=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.post("/api/sms/check",t,e)};e.userRegister=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.post("/api/user/register",t,e)};e.loginApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.post("/api/user/login",t,e)};e.privacyPolicy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.post("/addons/shopro/data.richtext/index",t,e)};e.forgetPsw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.post("/api/user/resetpwd",t,e)};e.getUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserinfo",t,e)};e.getAddrList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/addons/shopro/user.address/index",t,e)};e.getArea=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/addons/shopro/data.area/index",t,e)};e.addAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/addons/shopro/user.address/add",t,e)};e.editAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/addons/shopro/user.address/edit",t,e)};e.deleteAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/addons/shopro/user.address/delete",t,e)};e.getAddrDesc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/addons/shopro/user.address/detail",t,e)};e.changePassword=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/addons/shopro/user.user/changePassword",t,e)};e.logout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/logout",t,e)};e.updateUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/updateUserInfo",t,e)};e.couponList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/addons/shopro/user.coupon/index",t,e)};e.getUserCommissionStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserCommissionStatistic",t,e)};e.getUserCommissionApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserCommission",t,e)};e.getUserCommissionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserCommissionList",t,e)};e.getUserFansStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserFansStatistic",t,e)};e.getUserFansList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserFansList",t,e)};e.getUserFansOrderStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserFansOrderStatistic",t,e)};e.getUserFansOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserFansOrderList",t,e)};e.getUserProfitStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserProfitStatistic",t,e)};e.getUserProfitList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/getUserProfitList",t,e)};e.getWarehouseList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/order/getWarehouseList",t,e)};e.getGoodsList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/order/getGoodsList",t,e)};e.getgoodsDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.get("/api/order/goodsDetail",{params:t},e)};e.getBuyerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.get("/api/order/getBuyerOrderList",{params:t},e)};e.getSellerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.get("/api/order/getSellerOrderList",{params:t},e)};e.createOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/order/createOrder",t,e)};e.cancelOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/order/cancelOrder",t,e)};e.orderDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.get("/api/order/orderDetail",{params:t},e)};e.orderPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/order/orderPay",t,e)};e.bindInvitor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/bindInvitor",t,e)};e.payUpGoods=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/order/payUpGoods",t,e)};e.incomeDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.get("/api/user/getUserIncomeAndExpandList",{params:t},e)};e.submitPingzheng=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/submitPay",t,e)};e.confirmPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/confirmPay",t,e)};e.confirmSign=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/updateUserInfo",t,e)};e.recharge=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/recharge",t,e)};e.withdraw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/withdraw",t,e)};e.getWithdrawList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return s.post("/api/user/withdrawList",t,e)}},"4b36":function(t,e,a){var s=a("24fb");e=s(!1),e.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/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.page[data-v-ad1a8ee0]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f6f6f6}\n/* 订单tab */.order-tab[data-v-ad1a8ee0]{position:fixed;left:0;top:%?88?%;z-index:10;display:flex;align-items:center;width:100%;height:%?90?%;background:#236030}.order-tab .tab[data-v-ad1a8ee0]{position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:0 20px;width:25%;height:80%}.order-tab .tab uni-text[data-v-ad1a8ee0]{font-size:%?26?%;color:#4d9a5e}.order-tab .action uni-text[data-v-ad1a8ee0]{color:#fff;font-weight:700}.order-tab .action .line[data-v-ad1a8ee0]{position:absolute;left:50%;bottom:0;width:%?60?%;height:%?6?%;background:#fff;border-radius:3px;-webkit-transform:translate(-50%);transform:translate(-50%)}\n/* 订单列表 */.order-list[data-v-ad1a8ee0]{margin:0 %?24?%;margin-top:%?110?%}.order-list .list[data-v-ad1a8ee0]{padding:0 4%;min-height:%?390?%;background-color:#fff;border-radius:%?20?%;margin-bottom:%?20?%}.order-list .list .title-status[data-v-ad1a8ee0]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?80?%;border-bottom:1px solid #eaeaee}.order-list .list .title-status .title[data-v-ad1a8ee0]{display:flex;align-items:center}.order-list .list .title-status .title uni-text[data-v-ad1a8ee0]{font-size:%?26?%;color:grey}.order-list .list .title-status .status[data-v-ad1a8ee0]{display:flex;align-items:center}.order-list .list .title-status .status uni-text[data-v-ad1a8ee0]{font-size:%?26?%;color:#236030}.order-list .list .goods-list[data-v-ad1a8ee0]{width:100%}.order-list .list .goods-list .cangku[data-v-ad1a8ee0]{text-align:left;color:grey;padding:%?10?% 0 0 0}.order-list .list .goods-list .goods[data-v-ad1a8ee0]{display:flex;align-items:center;width:100%;height:%?180?%}.order-list .list .goods-list .goods .thumb[data-v-ad1a8ee0]{display:flex;align-items:center;width:30%;height:100%}.order-list .list .goods-list .goods .thumb uni-image[data-v-ad1a8ee0]{width:%?160?%;height:%?160?%;border-radius:%?10?%}.order-list .list .goods-list .goods .item[data-v-ad1a8ee0]{display:flex;flex-direction:column;justify-content:space-around;margin-left:%?20?%;width:100%;height:100%}.order-list .list .goods-list .goods .item .goods-name uni-text[data-v-ad1a8ee0]{font-size:%?26?%;color:#555}.order-list .list .goods-list .goods .item .goods-price[data-v-ad1a8ee0]{display:flex;align-items:center}.order-list .list .goods-list .goods .item .goods-price uni-text[data-v-ad1a8ee0]{color:#236030}.order-list .list .goods-list .goods .item .goods-price .min[data-v-ad1a8ee0]{font-size:%?26?%}.order-list .list .goods-list .goods .item .goods-price .max[data-v-ad1a8ee0]{font-size:%?34?%}.status-btn[data-v-ad1a8ee0]{display:flex;align-items:center;justify-content:space-between;width:100%}.status-btn .btnGroup[data-v-ad1a8ee0]{display:flex;align-items:center;justify-content:flex-end;width:100%}.status-btn .btn[data-v-ad1a8ee0]{background-color:#236030;padding:%?10?% %?10?%;border-radius:%?10?%;font-size:%?24?%;color:#fff;text-align:center;margin-left:%?10?%}.empty[data-v-ad1a8ee0]{text-align:center;margin-top:30%}.empty uni-image[data-v-ad1a8ee0]{width:40%;height:auto}.empty .emptyText[data-v-ad1a8ee0]{text-align:center;font-size:%?26?%;color:grey}',""]),t.exports=e},"562b":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-uni-view",{staticClass:"page"},[s("v-uni-view",{staticClass:"order-tab"},t._l(t.tabList,(function(e,a){return s("v-uni-view",{key:a,staticClass:"tab",class:{action:e.status.join(",")===t.status.join(",")},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onOrderTab(e.status)}}},[s("v-uni-text",[t._v(t._s(e.name))]),s("v-uni-text",{staticClass:"line"})],1)})),1),s("v-uni-view",{staticClass:"order-list"},[t.tableData.length>0?s("v-uni-view",t._l(t.tableData,(function(e,a){return s("v-uni-view",{key:a,staticClass:"list",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onOrderList(e)}}},[s("v-uni-view",{staticClass:"title-status"},[s("v-uni-view",{staticClass:"title"},[s("v-uni-text",[t._v("订单号:"+t._s(e.order_sn))])],1),s("v-uni-view",{staticClass:"status"},[s("v-uni-text",[t._v(t._s(t.getstatusLabel(e.status)))])],1)],1),s("v-uni-view",{staticClass:"goods-list"},[s("v-uni-view",{staticClass:"cangku"},[t._v("所属仓库:"+t._s(e.warehouse.length>0?e.warehouse[0].title:"-"))]),s("v-uni-view",{staticClass:"goods"},[s("v-uni-view",{staticClass:"thumb"},[s("v-uni-image",{attrs:{src:e.order_goods[0]?e.order_goods[0].goods_image:"",mode:"aspectFill"}})],1),s("v-uni-view",{staticClass:"item"},[s("v-uni-view",{staticClass:"goods-name"},[s("v-uni-text",{staticClass:"two-omit"},[t._v(t._s(e.order_goods[0]?e.order_goods[0].goods_name:""))])],1),s("v-uni-view",{staticClass:"goods-price"},[s("v-uni-text",{staticClass:"min"},[t._v("¥"+t._s(e.order_goods[0]?e.order_goods[0].goods_price:""))])],1)],1)],1)],1)],1)})),1):s("v-uni-view",{staticClass:"empty"},[s("v-uni-image",{attrs:{src:a("4257"),mode:"widthFix"}}),s("v-uni-view",{staticClass:"emptyText"},[t._v("暂无数据")])],1)],1)],1)},i=[]},6005:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return(0,s.default)(t)};var s=function(t){return t&&t.__esModule?t:{default:t}}(a("6b75"))},"9bbb":function(t,e,a){"use strict";var s=a("2de2"),i=a.n(s);i.a},cba9:function(t,e,a){"use strict";a.r(e);var s=a("562b"),i=a("16e8");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("9bbb");var o=a("f0c5"),n=Object(o["a"])(i["default"],s["b"],s["c"],!1,null,"ad1a8ee0",null,!1,s["a"],void 0);e["default"]=n.exports}}]); |