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.
shop-app/h5/static/js/pages-order-list.e82754bf.js

1 line
12 KiB

3 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-list"],{"0091":function(t,e,n){var a=n("6561");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=n("4f06").default;r("6c54e124",a,!0,{sourceMap:!1,shadowMode:!1})},"2ba7":function(t,e,n){"use strict";n.r(e);var a=n("9989"),r=n("958e");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("3cae"),n("dc99");var i,s=n("f0c5"),u=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"6ab97961",null,!1,a["a"],i);e["default"]=u.exports},"336e":function(t,e,n){"use strict";n.r(e);var a=n("eabf"),r=n("5bed");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var i,s=n("f0c5"),u=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"27d4e601",null,!1,a["a"],i);e["default"]=u.exports},"3cae":function(t,e,n){"use strict";var a=n("0091"),r=n.n(a);r.a},4136:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("1687")),o=(n("c0d4"),n("5767")),i={components:{UiRadioPicker:r.default},props:{show:{type:Boolean,default:!1},order:{type:Object,default:function(){return{}}}},data:function(){return{options:[{label:"微信支付",value:"wxpay"},{label:"支付宝支付",value:"alipay"}]}},methods:{confirm:function(t){var e=this.order.orderId;"wxpay"===t.value?((0,o.Wxpay)({orderId:e,openId:this.$store.state.openId}),this.close()):uni.$u.toast("暂不支持支付宝支付")},close:function(){this.$emit("update:show",!1)}}};e.default=i},"595c":function(t,e,n){"use strict";var a=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var r=a(n("1da1")),o=a(n("8832")),i=a(n("359f")),s=n("c0d4"),u=a(n("336e")),d=a(n("7932")),c=a(n("eb0d")),l=a(n("dd25")),f={components:{BsEmpty:o.default,UiButton:i.default,BsPay:u.default,UiGoodsInfo:d.default,UiGoodsInfoMax:c.default,UiMoney:l.default},data:function(){return{tabListData:[{key:"-1",name:"全部"},{key:"1",name:"待付款"},{key:"3",name:"待发货"},{key:"4",name:"待收货"}],currentTabKey:this.$Route.query.tab||"-1",orderListData:[],loadingStatus:"loading",pageIndex:1,pageSize:10,payShow:!1,payOrder:null}},onLoad:function(){this.getOrderList()},onReachBottom:function(){this.next()},methods:{changeTab:function(t){this.currentTabKey=t,this.pageIndex=1,this.orderListData=[],this.getOrderList()},getOrderList:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loadingStatus="loading",e.next=3,(0,s.ApiGetOrderList)({length:t.pageSize,pageIndex:t.pageIndex,orderStatus:t.currentTabKey>-1?t.currentTabKey:null});case 3:if(n=e.sent,a=n.error,r=n.result,!a){e.next=9;break}return uni.$u.toast(a.message),e.abrupt("return",!1);case 9:r.records.length<t.pageSize&&(t.loadingStatus="nomore"),t.orderListData=t.orderListData.concat(r.records);case 11:case"end":return e.stop()}}),e)})))()},next:function(){if("nomore"===this.loadingStatus)return!1;this.pageIndex++,this.getOrderList()},pay:function(t){this.payShow=!0,this.payOrder=t},receive:function(t){var e=this;return(0,r.default)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$msb.confirm({content:"确认已经收到货了吗?",confirm:function(){var n=(0,r.default)(regeneratorRuntime.mark((function n(){var a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,s.ApiPutOrderReceive)({orderId:t.orderId});case 2:if(a=n.sent,r=a.error,!r){n.next=7;break}return uni.$toast(r.message),n.abrupt("return",!1);case 7:e.$Router.push("/orderSuccess");case 8:case"end":return n.stop()}}),n)})));function a(){return n.apply(this,arguments)}return a}()});case 1:case"end":return n.stop()}}),n)})))()}}};e.default=f},"5bed":function(t,e,n){"use strict";n.r(e);var a=n("4136"),r=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=r.a},6561:f