1 line
7.9 KiB
JavaScript
1 line
7.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37805004"],{"6559e":function(t,a,e){"use strict";e("8903")},8903:function(t,a,e){var i=e("deab6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("499e").default;s("41881e75",i,!0,{sourceMap:!1,shadowMode:!1})},aeb2:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"withdrawal-list"},[i("c-title",{attrs:{hide:!1,text:"提现记录"}}),i("van-sticky",{attrs:{"offset-top":40}},[i("van-search",{staticClass:"search-box",attrs:{placeholder:"搜索会员",shape:"round"},on:{search:t.searchRecord},model:{value:t.keyword,callback:function(a){t.keyword=a},expression:"keyword"}}),i("van-tabs",{staticClass:"status-tab",on:{change:t.changeTabs},model:{value:t.status,callback:function(a){t.status=a},expression:"status"}},t._l(t.types,(function(t,a){return i("van-tab",{key:a,attrs:{title:t.title,name:t.name}})})),1)],1),i("van-list",{staticClass:"list",attrs:{offset:30,finished:t.finished,"immediate-check":!1,"finished-text":"没有更多了"},on:{load:t.loadMore},model:{value:t.loading,callback:function(a){t.loading=a},expression:"loading"}},t._l(t.recordList,(function(a){return i("div",{key:a.id,staticClass:"item",on:{click:function(e){return t.toDetail(a.id)}}},[i("div",{staticClass:"top-order"},[i("i",{class:["iconfont",a.pay_way_icon]}),i("div",{staticClass:"order"},[i("p",{staticClass:"order-number"},[t._v(t._s(a.withdraw_sn))]),i("p",{staticClass:"time"},[t._v(t._s(a.created_at))])]),i("div",{class:["status",t.colorClass(a.status)]},[t._v(t._s(a.status_name))])]),i("div",{staticClass:"bottom-member"},[i("div",{staticClass:"avatar"},[i("img",{attrs:{src:a.has_one_member?a.has_one_member.avatar:e("b17d"),alt:""}})]),i("div",{staticClass:"name-box"},[i("p",{staticClass:"nickname overflow"},[t._v(t._s(a.has_one_member?a.has_one_member.nickname:""))]),i("p",{staticClass:"describe"},[t._v(t._s(a.type_name))])]),i("div",{staticClass:"cost"},[0==a.status?[i("p",{staticClass:"amounts"},[t._v("审核金额:"+t._s(a.amounts||0))]),i("p",{staticClass:"poundage"},[t._v("预计手续费:"+t._s(a.poundage||0))]),i("p",{staticClass:"poundage"},[t._v("预计劳务税:"+t._s(a.servicetax||0))]),i("p",{staticClass:"payment"},[t._v("预计应打款:"),i("span",{staticClass:"red-text"},[t._v(t._s((a.amounts-a.servicetax-a.poundage).toFixed(2)))])])]:[i("p",{staticClass:"amounts"},[t._v("申请金额:"+t._s(t.calcSum(a.actual_amounts,a.actual_poundage,a.servicetax)))]),i("p",{staticClass:"poundage"},[t._v("手续费:"+t._s(a.actual_poundage||0))]),i("p",{staticClass:"poundage"},[t._v("劳务税:"+t._s(a.servicetax||0))]),i("p",{staticClass:"payment"},[t._v("应打款:"),i("span",{staticClass:"red-text"},[t._v(t._s(a.actual_amounts||0))])])]],2)])])})),0)],1)},s=[],r=e("5530"),o=(e("ac1f"),e("99af"),e("b680"),e("13d5"),e("d3b7"),e("a9e3"),{data:function(){return{types:[{title:"全部记录",name:""},{title:"待审核",name:0},{title:"待打款",name:1},{title:"打款中",name:4},{title:"已打款",name:2},{title:"已驳回",name:3},{title:"无效提现",name:-1}],status:"",keyword:"",recordList:[],page:1,loading:!1,finished:!1}},activated:function(){this.getData()},methods:{getData:function(){var t=this;if(this.finished)return!1;var a={};a.page=this.page,a.search={member:this.keyword,status:this.status},$http.post("plugin.shop-assistant.frontend.withdraw.withdraw-list",Object(r["a"])({},a),"loading").then((function(a){if(t.loading=!1,1!==a.result)return t.$toast(a.msg);var e=a.data;t.recordList=e.current_page>1?t.recordList.concat(e.data):e.data,e.current_page>=e.last_page&&e.data.length<e.per_page&&(t.finished=!0),t.page++}))},changeTabs:function(){this.keyword="",this.recordList=[],this.page=1,this.finished=!1,this.loading=!1,this.getData()},loadMore:function(){this.getData()},searchRecord:function(){this.status="",this.recordList=[],this.page=1,this.finished=!1,this.getData()},toDetail:function(t){this.$router.push(this.fun.getUrl("withdrawalDetail",{id:t}))}},computed:{colorClass:function(t){return function(t){switch(parseInt(t)){case-1:return"grey";case 0:return"red";case 1:return"yellow";case 2:return"green";case 3:return"orange ";case 4:return"blue"}}},calcSum:function(){return function(){for(var t=arguments.length,a=new Array(t),e=0;e<t;e++)a[e]=arguments[e];var i=a.reduce((function(t,a){return Number(t)+Number(a)}),0).toFixed(2);return i}}},components:{}}),l=o,n=(e("6559e"),e("2877")),d=Object(n["a"])(l,i,s,!1,null,"06881875",null);a["default"]=d.exports},b17d:function(t,a,e){t.exports=e.p+"static/app/img/photo-mr.5cc2c462.jpg"},deab6:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".withdrawal-list[data-v-06881875]{position:relative}.withdrawal-list .list[data-v-06881875]{padding:0 .63rem}.withdrawal-list .list .item[data-v-06881875]{margin-top:.65rem;padding:.69rem .94rem;background-color:#fff;border-radius:.31rem}.withdrawal-list .list .item .top-order[data-v-06881875]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:left}.withdrawal-list .list .item .top-order .iconfont[data-v-06881875]{font-size:1.5rem}.withdrawal-list .list .item .top-order .icon-all_wechat[data-v-06881875]{color:#1cd66c}.withdrawal-list .list .item .top-order .icon-all_alipay[data-v-06881875]{color:#1576ff}.withdrawal-list .list .item .top-order .icon-pay_yue[data-v-06881875]{color:#ff7433}.withdrawal-list .list .item .top-order .icon-pay_card[data-v-06881875],.withdrawal-list .list .item .top-order .icon-pay_otherpay[data-v-06881875]{color:#ffba00}.withdrawal-list .list .item .top-order .icon-fontclass-deng[data-v-06881875]{color:#62d18e}.withdrawal-list .list .item .top-order .order[data-v-06881875]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.5rem}.withdrawal-list .list .item .top-order .order .order-number[data-v-06881875]{padding-right:1rem;white-space:pre-wrap;word-break:break-all;font-size:.85rem;line-height:1.5rem;color:#414141}.withdrawal-list .list .item .top-order .order .time[data-v-06881875]{font-size:.75rem;color:#9e9e9e}.withdrawal-list .list .item .top-order .status[data-v-06881875]{color:#fff;font-size:.7rem;padding:.2rem .5rem;border-radius:.13rem}.withdrawal-list .list .item .top-order .red[data-v-06881875]{background-color:#f15353}.withdrawal-list .list .item .top-order .yellow[data-v-06881875]{background-color:#f7c124}.withdrawal-list .list .item .top-order .blue[data-v-06881875]{background-color:#28b2fa}.withdrawal-list .list .item .top-order .green[data-v-06881875]{background-color:#74b23d}.withdrawal-list .list .item .top-order .orange[data-v-06881875]{background-color:#f2852e}.withdrawal-list .list .item .top-order .grey[data-v-06881875]{background-color:#a6a6a6}.withdrawal-list .list .item .bottom-member[data-v-06881875]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:1rem;text-align:left}.withdrawal-list .list .item .bottom-member .avatar[data-v-06881875]{width:2.19rem;height:2.19rem;border-radius:50%;overflow:hidden}.withdrawal-list .list .item .bottom-member .avatar img[data-v-06881875]{width:100%;height:100%}.withdrawal-list .list .item .bottom-member .name-box[data-v-06881875]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:0;margin-left:.47rem}.withdrawal-list .list .item .bottom-member .name-box .nickname[data-v-06881875]{font-size:.94rem;color:#242424}.withdrawal-list .list .item .bottom-member .name-box .describe[data-v-06881875]{margin-top:.8rem;font-size:.75rem;color:#666}.withdrawal-list .list .item .bottom-member .cost[data-v-06881875]{font-size:.69rem;color:#9e9e9e}.withdrawal-list .list .item .bottom-member .cost p[data-v-06881875]{margin-top:.5rem}.withdrawal-list .list .red-text[data-v-06881875]{color:#f15353}",""]),t.exports=a}}]); |