| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-myaid"],{"1b1e":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=a},"3cea":function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.computedOrderkey=n,e.createOrderkey=r,e.balance=d,e.orderPay=l,e.getProjectList=s,e.getProjectInfo=c,e.createProject=u,e.getLogistics=f,e.getAllArea=m,e.getDonationInfo=g,e.getMyorder=p,e.createUser=v,e.getAllOrder=b,e.getUserList=h,e.getBill=w;var o=a(i("db25"));function n(t){return(0,o.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}function r(t,e){return(0,o.default)({url:"/api/donate/create",method:"post",data:t})}function d(t){return(0,o.default)({url:"/api/user/balance",method:"get",data:t})}function l(t){return(0,o.default)({url:"/api/order/pay",method:"post",data:t})}function s(t){return(0,o.default)({url:"/api/project/list",method:"get",data:t})}function c(t){return(0,o.default)({url:"/api/project/info",method:"get",data:t})}function u(t){return(0,o.default)({url:"/api/project/order_create",method:"post",data:t})}function f(t){return(0,o.default)({url:"/api/project/logistics",method:"get",data:t})}function m(t){return(0,o.default)({url:"/api/project/area",method:"get",data:t})}function g(t){return(0,o.default)({url:"/api/project/Donation_info",method:"get",data:t})}function p(t){return(0,o.default)({url:"/api/project/myorder",method:"post",data:t})}function v(t){return(0,o.default)({url:"/api/project/create_user",method:"post",data:t})}function b(t){return(0,o.default)({url:"/api/project/all_order",method:"post",data:t})}function h(t){return(0,o.default)({url:"/api/project/user_list",method:"get",data:t})}function w(t){return(0,o.default)({url:"/api/project/bill",method:"post",data:t})}},4822:function(t,e,i){"use strict";i.r(e);var a=i("9c75"),o=i("b5a8");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("8391");var r,d=i("f0c5"),l=Object(d["a"])(o["default"],a["b"],a["c"],!1,null,"c8f01f2e",null,!1,a["a"],r);e["default"]=l.exports},"791a":function(t,e,i){"use strict";var a=i("e1bf"),o=i.n(a);o.a},8391:function(t,e,i){"use strict";var a=i("b93b"),o=i.n(a);o.a},"9c75":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-load-more"},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[i("v-uni-view",{staticClass:"load1 load"},[i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),i("v-uni-view",{staticClass:"load2 load"},[i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),i("v-uni-view",{staticClass:"load3 load"},[i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}}),i("v-uni-view",{staticClass:"item",style:{background:t.color}})],1)],1),i("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},n=[]},"9f79":function(t,e,i){t.exports=i.p+"static/img/moren.1a0d8ffc.png"},"9fcc":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-03d97c2e],\n.content[data-v-03d97c2e]{background:#f8f8f8;height:100%}.swiper-box[data-v-03d97c2e]{height:calc(100% - 40px)}.list-scroll-content[data-v-03d97c2e]{height:100%}.navbar[data-v-03d97c2e]{display:-webkit-box;display:-webkit-flex;display:flex;height:40px;padding:0 5px;background:#fff;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.06);box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-03d97c2e]{width:%?250?%;-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-03d97c2e]{color:red}.navbar .nav-item.current[data-v-03d97c2e]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid red}.uni-swiper-item[data-v-03d97c2e]{height:auto}.order-item[data-v-03d97c2e]{background-color:#fff;padding:0 %?20?%;margin-bottom:%?15?%;margin-top:%?15?%}.order-item .item-top[data-v-03d97c2e]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:%?79?%;border-bottom:1px solid #e1e1e5;line-height:%?79?%;font-size:%?26?%;font-family:PingFang SC;font-weight:700;color:#333}.order-item .item-main[data-v-03d97c2e]{height:%?210?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.order-item .item-main uni-image[data-v-03d97c2e]{width:%?220?%;height:%?170?%;background:#fff;border:1px solid #ddd;border-radius:%?10?%;margin:%?18?%}.order-item .item-main .item-info[data-v-03d97c2e]{width:%?471?%;height:%?170?%;position:relative}.order-item .item-main .item-info .info-title[data-v-03d97c2e]{font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#323232;line-height:1}.order-item .item-main .item-info .info-content[data-v-03d97c2e]{padding-top:%?14?%;font-size:%?22?%;font-family:PingFang SC;font-weight:500;color:#666;line-height:1.5}.order-item .item-main .item-info .info-time[data-v-03d97c2e]{font-size:%?22?%;font-family:PingFang SC;font-weight:500;color:#999;position:absolute;right:0;bottom:0}.order-item .item-bottom[data-v-03d97c2e]{height:%?96?%;border-top:1px solid #e1e1e5;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.order-item .item-bottom uni-view[data-v-03d97c2e]{width:%?144?%;height:%?55?%;line-height:%?55?%;text-align:center;border-radius:%?28?%;font-size:%?24?%;font-family:PingFang SC;font-weight:500}.order-item .item-bottom .yxs[data-v-03d97c2e]{border:2px solid #fa7e67;color:#fa7e67;line-height:%?50?%}.order-item .item-bottom .zs[data-v-03d97c2e]{background:#fa7e67;color:#fff;margin-left:%?15?%}.mask[data-v-03d97c2e]{z-index:10;position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5);width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.mask .pop[data-v-03d97c2e]{z-index:12;width:%?560?%;height:%?379?%;background:#fff;border-radius:30px}.mask .pop .pop-box[data-v-03d97c2e]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;text-align:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-top:%?-72?%!important}.mask .pop .pop-box .pop-img[data-v-03d97c2e]{width:%?177?%;height:%?186?%;margin-bottom:%?34?%}.mask .pop .pop-box .pop-title[data-v-03d97c2e]{height:%?34?%;font-size:%?36?%;font-weight:500;color:#333;margin-bottom:%?32?%}.mask .pop .pop-box .number[data-v-03d97c2e]{width:%?454?%;height:%?78?%;background:#eaeaea;background:#eaeaea}.mask .pop .close-box[data-v-03d97c2e]{margin-top:%?130?%;text-align:center}.mask .pop .close-box .close[data-v-03d97c2e]{width:%?83?%;height:%?83?%}\n/* load-more */.uni-load-more[data-v-03d97c2e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.uni-load-more__text[data-v-03d97c2e]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-03d97c2e]{height:24px;width:24px;margin-right:10px}.uni-load-more__img > uni-view[data-v-03d97c2e]{position:absolute}.uni-load-more__img > uni-view uni-view[data-v-03d97c2e]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-03d97c2e 1.56s ease infinite;animation:load-data-v-03d97c2e 1.56s ease infinite}.uni-load-more__img > uni-view uni-view[data-v-03d97c2e]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-03d97c2e]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img > uni-view uni-view[data-v-03d97c2e]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-03d97c2e]:nth-child(4){top:11px;left:0}.load1[data-v-03d97c2e],\n.load2[data-v-03d97c2e],\n.load3[data-v-03d97c2e]{height:24px;width:24px}.load2[data-v-03d97c2e]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-03d97c2e]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-03d97c2e]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-03d97c2e]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-03d97c2e]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-03d97c2e]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-03d97c2e]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-03d97c2e]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-03d97c2e]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-03d97c2e]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-03d97c2e]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-03d97c2e]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-03d97c2e]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-03d97c2e]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-03d97c2e{0%{opacity:1}100%{opacity:.2}}.class-box[data-v-03d97c2e]{background:#fff;white-space:nowrap;height:%?78?%}.class-box .item[data-v-03d97c2e]{text-align:center;display:inline-block;color:#606266;margin:%?26?% %?34?% %?15?% %?29?%;background-color:#fff;line-height:1}.class-box .item .time[data-v-03d97c2e]{font-family:PingFang SC;font-weight:700;font-size:%?30?%;padding-bottom:%?19?%}.class-box .item .time.action[data-v-03d97c2e]{color:red;border-bottom:%?4?% solid red}body.?%PAGE?%[data-v-03d97c2e]{background:#f8f8f8}',""]),t.exports=e},a1a9:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var a={uniLoadMore:i("4822").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-scroll-view",{staticClass:"class-box flex",attrs:{"scroll-x":"true","scroll-left":t.scrollLeft,"scroll-with-animation":!0}},t._l(t.navList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(i)}}},[a("v-uni-view",{staticClass:"time",class:{action:i==t.tabCurrentIndex}},[t._v(t._s(e.text))])],1)})),1),a("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,o){return a("v-uni-swiper-item",{key:o,staticClass:"tab-content"},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.orderList.length?a("empty"):t._e(),t._l(e.orderList,(function(e,o){return a("v-uni-view",{key:o,staticClass:"order-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goToOrderDetail(e)}}},[a("v-uni-view",{staticClass:"item-top flex"},[a("v-uni-view",{staticClass:"item-number"},[t._v("项目编号:"+t._s(e.order_sn))]),-1===e.order_status?a("v-uni-view",{staticClass:"item-status",staticStyle:{color:"#999999"}},[t._v(t._s(e.status_txt))]):a("v-uni-view",{staticClass:"item-status",staticStyle:{color:"#FA7E67"}},[t._v(t._s("受捐者反馈"===e.status_txt?"已完成":e.status_txt))])],1),a("v-uni-view",{staticClass:"item-main flex"},[e.img?a("v-uni-image",{attrs:{src:e.img,mode:""}}):a("v-uni-image",{attrs:{src:i("9f79"),mode:""}}),a("v-uni-view",{staticClass:"item-info"},[a("v-uni-view",{staticClass:"info-title"},[t._v(t._s(e.title))]),a("v-uni-view",{staticClass:"info-content"},[t._v("项目进度: 您的捐赠"+t._s(0===e.order_status?"正在审核中,请耐心等待":-1===e.order_status?" 审核未通过,感谢您的爱心!":"审核已通过"))]),a("v-uni-view",{staticClass:"info-time"},[t._v("申请时间 "+t._s(t._f("time")(e.add_time)))])],1)],1),e.order_status>=1?a("v-uni-view",{staticClass:"item-bottom flex"},[6==e.order_status?a("v-uni-view",{staticClass:"zs",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navTo("/pages/user/thank?project_id="+e.project_id+"&name="+e.name+"&time="+e.add_time+"&title="+e.title||!1)}}},[t._v("捐赠证书")]):t._e()],1):t._e()],1)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},n=[]},a1e0:function(t,e,i){"use strict";i.r(e);var a=i("a1a9"),o=i("c51b");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("791a");var r,d=i("f0c5"),l=Object(d["a"])(o["default"],a["b"],a["c"],!1,null,"03d97c2e",null,!1,a["a"],r);e["default"]=l.exports},a2cf:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".uni-load-more[data-v-c8f01f2e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.uni-load-more__text[data-v-c8f01f2e]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-c8f01f2e]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-c8f01f2e]{position:absolute}.uni-load-more__img>.load .item[data-v-c8f01f2e]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-c8f01f2e 1.56s ease infinite;animation:load-data-v-c8f01f2e 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(4){top:11px;left:0}.load1[data-v-c8f01f2e],\n.load2[data-v-c8f01f2e],\n.load3[data-v-c8f01f2e]{height:24px;width:24px}.load2[data-v-c8f01f2e]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-c8f01f2e]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-c8f01f2e{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e},b546:function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("d81d"),i("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(i("5530")),n=a(i("4822")),r=a(i("5f4c")),d=i("2f62"),l=i("088c"),s=i("dd08"),c=i("3cea"),u={filters:{time:function(t){var e="";if(t){var i=new Date(1e3*t),a=i.getFullYear(),o=i.getMonth()>9?i.getMonth():"0"+i.getMonth(),n=i.getDate()>9?i.getDate():"0"+i.getDate();e=a+"-"+o+"-"+n}return e}},components:{uniLoadMore:n.default,empty:r.default},data:function(){return{tabCurrentIndex:0,state:"",showModal:!1,itemWidht:"60",navList:[{state:-2,text:"全部",loadingType:"more",orderList:[],page:1,limit:10},{state:-1,text:"未通过",loadingType:"more",orderList:[],page:1,limit:10},{state:0,text:"审核中",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"审核通过",loadingType:"more",orderList:[],page:1,limit:10},{state:2,text:"已发货",loadingType:"more",orderList:[],page:1,limit:10},{state:3,text:"已入库",loadingType:"more",orderList:[],page:1,limit:10},{state:4,text:"已出库",loadingType:"more",orderList:[],page:1,limit:10},{state:6,text:"已完成",loadingType:"more",orderList:[],page:1,limit:10}]}},onLoad:function(t){this.state=1*t.state,console.log(this.state),(0,l.saveUrl)(),this.loadData()},computed:(0,o.default)((0,o.default)({},(0,d.mapState)(["userInfo"])),{},{scrollLeft:function(){return this.tabCurrentIndex>1?(console.log(this.itemWidht*(this.tabCurrentIndex-1.5)),this.itemWidht*(this.tabCurrentIndex-1.5)):0}}),methods:{orderTake:function(t,e){var i=this;uni.showModal({title:"是否确认收货?",success:function(a){a.confirm?(0,s.orderTake)({uni:t.order_id}).then((function(t){i.navList[i.tabCurrentIndex].orderList.splice(e,1),uni.showToast({title:"收货成功",icon:"none"})})).catch((function(t){console.log(t)})):a.cancel&&console.log("用户点击取消")}})},expressCheck:function(t){uni.navigateTo({url:"/pages/order/expressInfo?id="+t.id})},goToOrderDetail:function(t){uni.navigateTo({url:"/pages/order/orderDetail?id="+t.order_id})},share:function(t){console.log(t),uni.navigateTo({url:"/pages/product/details?pink_id="+t.pink_id})},orderRefund:function(t){uni.navigateTo({url:"/pages/order/orderRefund?id="+t.order_id})},orderPay:function(t){t.combination_id>0?uni.navigateTo({url:"/pages/money/pay?type=1&ordid="+t.order_id+"&money="+t.pay_price+"&goodsType=2"}):uni.navigateTo({url:"/pages/money/pay?type=1&ordid="+t.order_id+"&money="+t.pay_price})},loadData:function(t){var e=this,i=this.tabCurrentIndex,a=this.navList[i],o=a.state;"tabChange"===t&&!0===a.loaded||"loading"!==a.loadingType&&"noMore"!==a.loadingType&&(a.loadingType="loading",(0,c.getMyorder)({page:a.page,limit:a.limit,status:o}).then((function(t){var i=t.data;console.log(i,"888888888888888888888888"),i.list&&(i.list=i.list.map((function(t){return 0!==t.project_id?(0,c.getProjectInfo)({id:t.project_id}).then((function(i){var a=i.data;console.log(a,"project_id+++++++++++++++++++"),e.$set(t,"img",a.img),e.$set(t,"title",a.title),console.log(t)})):(e.$set(t,"img",""),e.$set(t,"title",t.name+"的爱心捐赠")),t}))),a.orderList=a.orderList.concat(i.list),console.log(a.orderList,"++++++++++++++++++++++"),a.page++,a.limit!=i.list.length?(a.loadingType="noMore",e.$set(a,"loaded",!0)):a.loadingType="more"})).catch((function(t){console.log(t)})))},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t,this.loadData("tabChange")},deleteOrder:function(t,e){var i=this;uni.showModal({content:"是否确认删除订单?",success:function(a){uni.showLoading({title:"请稍后"}),setTimeout((function(a){(0,s.orderDel)({uni:t.order_id}).then((function(t){i.navList[i.tabCurrentIndex].orderList.splice(e,1),uni.hideLoading()})).catch((function(t){console.log(t),uni.hideLoading()}))}),1e3)},fail:function(t){console.log(t)}})},orderStateExp:function(t){var e="",i="#EF041F";switch(+t){case 0:e="全部";break;case 1:e="待付款";break;case 2:e="待发货";break;case 3:e="待收货";break;case 4:e="已完成",i="#5dbc7c";break;case 9:e="订单已关闭",i="#909399";break}return{stateTip:e,stateTipColor:i}},navTo:function(t){uni.navigateTo({url:t})},getMyorder:function(){(0,c.getMyorder)({status:6}).then((function(t){console.log(t,"66666666666666")}))}}};e.default=u},b5a8:function(t,e,i){"use strict";i.r(e);var a=i("1b1e"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},b93b:function(t,e,i){var a=i("a2cf");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("690c1af3",a,!0,{sourceMap:!1,shadowMode:!1})},c51b:function(t,e,i){"use strict";i.r(e);var a=i("b546"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},dd08:function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=n,e.orderList=r,e.orderDetail=d,e.orderCancel=l,e.orderDel=s,e.refund=c,e.refundReason=u,e.orderTake=f;var o=a(i("db25"));function n(t){return(0,o.default)({url:"/api/order/confirm",method:"post",data:t})}function r(t){return(0,o.default)({url:"/api/order/list",method:"get",data:t})}function d(t,e){return(0,o.default)({url:"/api/order/detail/"+e,method:"get",data:t})}function l(t){return(0,o.default)({url:"/api/order/cancel",method:"post",data:t})}function s(t){return(0,o.default)({url:"/api/order/del",method:"get",data:t})}function c(t){return(0,o.default)({url:"/api/order/refund/verify",method:"post",data:t})}function u(t){return(0,o.default)({url:"/api/order/refund/reason",method:"get",data:t})}function f(t){return(0,o.default)({url:"/api/order/take",method:"post",data:t})}},e1bf:function(t,e,i){var a=i("9fcc");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("a346ccb6",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
|