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.
xxdj1/unpackage/dist/build/h5/static/js/user-pages-refund-list.bea9...

1 line
7.0 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-refund-list"],{"565f":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af"),i("a434");var a=n(i("c7eb")),s=n(i("1da1")),o=n(i("5530")),r=i("26cb"),c={components:{},data:function(){return{options:{},activeIndex:0,tabList:[{title:"全部",id:0},{title:"退款中",id:1},{title:"退款成功",id:2},{title:"退款失败",id:3}],statusType:{1:"退款中",2:"退款成功",3:"退款失败"},param:{page:1},list:{data:[]},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.options=t;var e=t.tab,i=void 0===e?0:e;this.activeIndex=i,this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,o.default)((0,o.default)({},(0,r.mapMutations)([""])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,a.default)().mark((function i(){var n;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],n||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return i.next=7,e.getList();case 7:e.$util.setNavigationBarColor({bg:e.primaryColor});case 8:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var i,n,s,o,r;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.list,n=t.param,s=t.tabList,o=t.activeIndex,n.status=s[o].id,e.next=4,t.$api.order.refundOrderList(n);case 4:r=e.sent,1==t.param.page||(r.data=i.data.concat(r.data)),t.list=r,t.loading=!1,t.$util.hideAll();case 8:case"end":return e.stop()}}),e)})))()},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.getList()},toCancel:function(t){var e=this;return(0,s.default)((0,a.default)().mark((function i(){var n,s,o,r,c;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=e.list.data[t],s=n.id,o=n.order_code,r=n.order_goods,c=r[0].goods_cover,e.popupInfo={id:s,name:"退款单号:".concat(o),image:c,index:t},e.$refs.cancel_item.open();case 4:case"end":return i.stop()}}),i)})))()},confirmCancel:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var i,n,s;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.popupInfo,n=i.id,s=i.index,e.next=3,t.$api.order.cancelRefundOrder({id:n});case 3:t.list.data.splice(s,1),t.$util.showToast({title:"取消成功"}),t.$refs.cancel_item.close();case 6:case"end":return e.stop()}}),e)})))()},goDetail:function(t){var e=this.list.data[t].id,i="/user/pages/refund/detail?id=".concat(e);this.$util.goUrl({url:i})},toTel:function(){var t=this.configInfo.mobile;this.$util.goUrl({url:t,openType:"call"})}})};e.default=c},"8cc3":function(t,e,i){"use strict";i.r(e);var n=i("9464"),a=i("cfba");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);var o=i("f0c5"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"0f31ce82",null,!1,n["a"],void 0);e["default"]=r.exports},9464:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"order-pages"},[i("fixed",[i("tab",{attrs:{list:t.tabList,activeIndex:1*t.activeIndex,activeColor:t.primaryColor,width:"25%",height:"100rpx"},on:{change:fun