chunk-2817409e.afbef9d0.js 9.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2817409e"],{"1ff7":function(e,t,n){},b84f:function(e,t,n){"use strict";var s=n("1ff7"),r=n.n(s);r.a},baf1:function(e,t,n){e.exports=function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,function(t){return e[t]}.bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=75)}({0:function(e,t,n){"use strict";function s(e,t,n,s,r,i,a,o){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),s&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return s}))},15:function(e,t){e.exports=n("d1a3")},23:function(e,t){e.exports=n("03d8")},7:function(e,t){e.exports=n("0261")},75:function(e,t,n){"use strict";n.r(t);var s=n(7),r=n.n(s),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},a=[];i._withStripped=!0;var o={success:"success",info:"info",warning:"warning",error:"error"},c={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+o[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},l=c,u=n(0),f=Object(u["a"])(l,i,a,!1,null,null,null);f.options.__file="packages/message/src/main.vue";var d=f.exports,p=n(15),h=n(23),v=r.a.extend(d),m=void 0,_=[],g=1,y=function e(t){if(!r.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,s="message_"+g++;t.onClose=function(){e.close(s,n)},m=new v({data:t}),m.id=s,Object(h["isVNode"])(m.message)&&(m.$slots.default=[m.message],m.message=null),m.$mount(),document.body.appendChild(m.$el);var i=t.offset||20;return _.forEach((function(e){i+=e.$el.offsetHeight+16})),m.verticalOffset=i,m.visible=!0,m.$el.style.zIndex=p["PopupManager"].nextZIndex(),_.push(m),m}};["success","warning","info","error"].forEach((function(e){y[e]=function(t){return"string"===typeof t&&(t={message:t}),t.type=e,y(t)}})),y.close=function(e,t){for(var n=_.length,s=-1,r=void 0,i=0;i<n;i++)if(e===_[i].id){r=_[i].$el.offsetHeight,s=i,"function"===typeof t&&t(_[i]),_.splice(i,1);break}if(!(n<=1||-1===s||s>_.length-1))for(var a=s;a<n-1;a++){var o=_[a].$el;o.style["top"]=parseInt(o.style["top"],10)-r-16+"px"}},y.closeAll=function(){for(var e=_.length-1;e>=0;e--)_[e].close()};var b=y;t["default"]=b}})},ccd9:function(e,t,n){},e652:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w_box"},[n("div",{staticClass:"withdraw"},[n("p",{staticClass:"withdraw_title"},[e._v("提现申请(仅支持余额全部提现)")]),n("p",{staticClass:"withdraw_price"},[n("span",{staticStyle:{color:"#999999","font-size":"18px","padding-right":"2rem"}},[e._v("余额")]),n("span",{staticStyle:{"font-size":"18px"}},[e._v("¥ ")]),e._v(" "+e._s(e.data.price))]),n("div",{staticClass:"withdraw_button"},[n("div",{staticClass:"lv_button",on:{click:e.tixian}},[e._v("全部提现")])])]),n("div",{staticClass:"jilu"},[n("p",{staticClass:"withdraw_titles"},[e._v("提现记录")]),n("div",{staticClass:"jilu_box",attrs:{id:"list1"}},e._l(e.data.jilu,(function(t){return n("div",{staticClass:"jilu_list"},[n("div",{staticClass:"left"},[n("p",{staticClass:"left_t"},[e._v(e._s(t.created_at))])]),n("div",{staticClass:"right",style:{color:t.color}},[e._v("\n "+e._s(t.status)+"\n ")]),n("div",{staticClass:"p_right"},[n("p",{staticClass:"left_p"},[e._v("¥"+e._s(t.money))])])])})),0)])])},r=[],i=(n("2b45"),n("fc58"),n("ccd9"),n("a0f8"),n("baf1")),a=n.n(i),o=(n("e4f7"),n("a529")),c=n.n(o),l=(n("b449"),n("5d83")),u=n("3231"),f=n("064d"),d=n("46d7"),p=n("04e2"),h=n("52ce"),v=n("4a81"),m=n("b2e6"),_=n("f3cf");function g(e){var t=y();return function(){var n,s=Object(h["a"])(e);if(t){var r=Object(h["a"])(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return Object(p["a"])(this,n)}}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var b=function(e){Object(d["a"])(n,e);var t=g(n);function n(){var e;return Object(u["a"])(this,n),e=t.apply(this,arguments),e.data={price:"",jilu:""},e.avatar=localStorage.getItem("avatar"),e}return Object(f["a"])(n,[{key:"created",value:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,_["a"].getInstance().getUserInfo();case 2:return t=e.sent,this.data.price=t.data.balance,e.next=6,_["a"].getInstance().userWithdrawal();case 6:n=e.sent,console.log(n),this.data.jilu=n.data;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"mounted",value:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"tixian",value:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.data.price<10)){e.next=4;break}c.a.alert("<p>提现最小额度为10元,需继续邀请好友\n获得更多奖励</p>","抱歉,您的余额不足!",{dangerouslyUseHTMLString:!0,confirmButtonText:"继续邀请好友",type:"warning"}).then((function(e){n.$router.push("/user/share")})),e.next=9;break;case 4:return e.next=6,_["a"].getInstance().withdrawal();case 6:t=e.sent,console.log(t),1==t.data.code?c.a.alert('<p>提现申请成功,请立即联系客服\n<a href="tel:'+_["a"].PHONE+'">'+_["a"].PHONE+"</a>(同微信)</p>","温馨提示",{dangerouslyUseHTMLString:!0,confirmButtonText:"立即拨打"}).then(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.location.href="tel://"+_["a"].PHONE,setTimeout((function(){location.reload()}),1500);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){setTimeout((function(){location.reload()}),1500)})):a()({message:"提现申请失败",duration:2e3,type:"error"});case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),n}(m["b"]);b=Object(v["a"])([Object(m["a"])({components:{}})],b);var w=b,C=w,x=(n("b84f"),n("4023")),O=Object(x["a"])(C,s,r,!1,null,"8209ea76",null);t["default"]=O.exports}}]);