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.
jiaojiu/dist/js/chunk-89ae394a.9ab0a2f9.js

2 lines
4.2 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-89ae394a"],{"27c9":function(t,e,n){"use strict";var r=n("6c0f"),i=n.n(r);i.a},"41ad":function(t,e,n){"use strict";var r=n("be99"),i=n.n(r);i.a},"475e":function(t,e,n){},"5aa0":function(t,e,n){t.exports=n.p+"img/back.8059563a.svg"},"6c0f":function(t,e,n){},a90f:function(t,e,n){"use strict";var r=n("475e"),i=n.n(r);i.a},be99:function(t,e,n){},f01a:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mineorder"},[r("NavBar",{staticClass:"nav-bar"},[r("div",{staticClass:"back",attrs:{slot:"left"},on:{click:t.backClick},slot:"left"},[r("img",{attrs:{src:n("5aa0"),alt:""}})]),r("div",{attrs:{slot:"center"},slot:"center"},[t._v("我的订单")])]),r("Scroll",{ref:"scroll",staticClass:"content",attrs:{"probe-type":3,"pull-up-load":!0},on:{pullingUp:t.loadMore,pullingDown:t.pullingDown}},[r("OrderMineList",{attrs:{list:t.list}})],1)],1)},i=[],a=(n("96cf"),n("1da1")),s=n("a7ac"),o=n("8d33"),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cart"},t._l(t.list,(function(e,r){return n("ordermineListItem",{key:r,attrs:{"item-info":e}},[t._v(t._s(e)+"> ")])})),1)},l=[],u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isexit?n("div",{attrs:{id:"shop-item"}},[n("van-swipe-cell",{scopedSlots:t._u([{key:"right",fn:function(){return[n("van-button",{staticClass:"delete-button",attrs:{square:"",text:"删除",type:"danger"},on:{click:t.remove}})]},proxy:!0}],null,!1,1181944412)},[n("van-card",{staticClass:"goods-card",attrs:{num:t.itemInfo.count,price:t.itemInfo.price,desc:t.itemInfo.detail,title:t.itemInfo.title,thumb:t.itemInfo.picture},scopedSlots:t._u([{key:"tags",fn:function(){return[n("van-tag",{attrs:{plain:"",type:"danger"}},[t._v("收货地址:"+t._s(t.itemInfo.province)+t._s(t.itemInfo.city)+t._s(t.itemInfo.area)+t._s(t.itemInfo.address))]),n("van-tag",{attrs:{plain:"",type:"danger"}},[t._v("收货人:"+t._s(t.itemInfo.name))]),n("van-tag",{attrs:{plain:"",type:"danger"}},[t._v("电话号码:"+t._s(t.itemInfo.telephone))]),n("van-tag",{attrs:{plain:"",type:"primary"}},[t._v("货物状态:"+t._s(t.isemit()))])]},proxy:!0}],null,!1,3038769813)})],1)],1):t._e()},f=[],p={name:"ordermineListItem",components:{},data:function(){return{isexit:!0}},props:{itemInfo:{type:Object,default:function(){return{}}}},created:function(){},computed:{},methods:{remove:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$http.delete("/order/remove/"+t.itemInfo.id);case 3:t.isexit=!1,t.$message.success("删除成功"),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$message.error("删除失败");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},isemit:function(){return"2"==this.itemInfo.isemit?(this.isexit=!1,"发货"):"3"==this.itemInfo.isemit?(this.isexit=!1,"已完成"):"未发货"}}},m=p,d=(n("a90f"),n("2877")),v=Object(d["a"])(m,u,f,!1,null,"4d4b246e",null),h=v.exports,g={name:"ordermineList",components:{ordermineListItem:h},props:{list:{type:Array,defalut:function(){return[]}}}},b=g,_=(n("41ad"),Object(d["a"])(b,c,l,!1,null,"9451bb66",null)),k=_.exports,w=n("6251"),x={name:"MineOrder",data:function(){return{list:[],token:""}},components:{NavBar:s["a"],Scroll:o["a"],OrderMineList:k},methods:{backClick:function(){this.$router.push("/profile")},loadMore:function(){this.$refs.scroll.refresh()},pullingDown:function(){var t=this;this.pullingdown=!0,setTimeout((function(){t.pullingdown=!1,t.$refs.scroll.finishPullDown()}),0)}},created:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.token=window.localStorage.getItem("token"),t.token){e.next=5;break}t.$router.push("/login"),e.next=9;break;case 5:return e.next=7,Object(w["a"])();case 7:n=e.sent,t.list=n.data;case 9:case"end":return e.stop()}}),e)})))()}},I=x,y=(n("27c9"),Object(d["a"])(I,r,i,!1,null,"1cba4641",null));e["default"]=y.exports}}]);
//# sourceMappingURL=chunk-89ae394a.9ab0a2f9.js.map