pages-mine-insurance.9e47f9b4.js 12.5 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-insurance"],{"14ba":function(t,e,n){"use strict";n("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.request=e.baseURL=void 0;var a="http://yuanjie.n.broing.cn/api/";e.baseURL=a;var i=function(t){return new Promise((function(e,n){uni.request({url:a+t.url,method:t.method||"GET",data:t.data||{},header:{"Content-Type":"application/x-www-form-urlencoded",token:uni.getStorageSync("token")||""},success:function(t){console.log(t,uni.getStorageSync("token")),1==t.data.code?e(t.data.data):(401==t.data.code&&(uni.navigateTo({url:"/login/login"}),uni.clearStorageSync()),n(t.data.msg))},fail:function(t){console.log(t),n(t)}})}))};e.request=i},"6fba":function(t,e,n){var a=n("a391");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("36487096",a,!0,{sourceMap:!1,shadowMode:!1})},a391:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,"uni-page-body[data-v-837375ba]{background:#f6f6f6}.bg[data-v-837375ba]{overflow:hidden;position:absolute;left:0;top:0;width:100%;height:%?366?%}.top[data-v-837375ba]{position:absolute;left:%?32?%;top:%?64?%}.top uni-view[data-v-837375ba]:nth-child(1){color:rgba(0,0,0,.4);font-size:%?28?%}.top uni-view[data-v-837375ba]:nth-child(2){color:rgba(0,0,0,.9);font-size:%?64?%;font-weight:700}.center[data-v-837375ba]{position:absolute;width:%?686?%;left:50%;top:%?220?%;border-radius:%?24?%;padding:%?40?% %?30?%;-webkit-transform:translateX(-50%);transform:translateX(-50%);background:#fff;box-sizing:border-box}.center .line[data-v-837375ba]{margin:%?32?% 0;width:%?622?%;height:%?1?%;background:#f0f2f5}.center .payInput .list[data-v-837375ba]{display:flex;justify-content:space-between;font-size:%?28?%;margin:%?32?% 0}.center .payInput .list .input[data-v-837375ba]{flex:1;font-weight:700}.center .payInput .list uni-input[data-v-837375ba]{text-align:right;width:%?300?%}.center .title[data-v-837375ba]{margin-bottom:%?32?%;font-weight:700}.center .inputPrice[data-v-837375ba]{display:flex;justify-content:space-between;align-items:center}.center .inputPrice uni-view[data-v-837375ba]{font-weight:700;display:flex;align-items:center;font-size:%?52?%}.center .inputPrice uni-view uni-input[data-v-837375ba]{margin-left:%?20?%;font-weight:400}.center .inputPrice .right[data-v-837375ba]{color:#2153d4;font-size:%?28?%;font-weight:400}.payType .list[data-v-837375ba]{margin-bottom:%?32?%;display:flex;align-items:center;justify-content:space-between}.payType .left uni-image[data-v-837375ba]{margin-right:%?24?%;width:%?48?%;height:%?48?%}.payType .right uni-image[data-v-837375ba]{width:%?36?%;height:%?36?%}.Withdrawal[data-v-837375ba]{margin:%?100?% auto 0;width:%?622?%;height:%?88?%;color:rgba(0,0,0,.9);font-size:%?32?%;font-weight:700;border-radius:%?28?%;background:linear-gradient(90deg,#ffe659,#ffd800)}.tips[data-v-837375ba]{margin-top:%?16?%;color:rgba(0,0,0,.4);font-size:%?24?%}body.?%PAGE?%[data-v-837375ba]{background:#f6f6f6}",""]),t.exports=e},a8b1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moneyLog=e.takeMoney=e.doFeedback=e.problemDetail=e.problemList=e.problemSort=e.getContactQrcode=e.logotLogin=e.getUserInfo=void 0;var a=n("14ba"),i=function(){return(0,a.request)({url:"user/index",method:"post",data:{}})};e.getUserInfo=i;var o=function(){return(0,a.request)({url:"user/logout",method:"post",data:{}})};e.logotLogin=o;var r=function(t){return(0,a.request)({url:"common/contact",method:"post",data:{type:t}})};e.getContactQrcode=r;var s=function(){return(0,a.request)({url:"common/problem_sort",method:"post",data:{}})};e.problemSort=s;var u=function(t,e,n){return(0,a.request)({url:"common/problem_list",method:"post",data:{sort_id:t,page:e,pagenum:n}})};e.problemList=u;var c=function(t){return(0,a.request)({url:"common/problem_detail",method:"post",data:{problem_id:t}})};e.problemDetail=c;var l=function(t,e){return(0,a.request)({url:"user/feedback",method:"post",data:{content:t,image:e}})};e.doFeedback=l;var d=function(t){return(0,a.request)({url:"user/user_withdraw",method:"post",data:t})};e.takeMoney=d;var f=function(){return(0,a.request)({url:"user/user_money_log",method:"post"})};e.moneyLog=f},ad09:function(t,e,n){"use strict";n.r(e);var a=n("d1f1"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},bbe3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.router=e.toa=e.hideLoading=e.loading=e.success=e.toast=void 0;var a=function(t){return uni.showToast({title:t,icon:"none"})};e.toast=a;var i=function(t){return uni.showToast({title:t})};e.success=i;var o=function(t){return uni.showLoading({title:"加载中"})};e.loading=o;var r=function(){return uni.hideLoading()};e.hideLoading=r;var s={toast:function(t){return uni.showToast({title:t,icon:"none"})},success:function(t){return uni.showToast({title:t})},loading:function(t){return uni.showLoading({title:t||"加载中",mask:!0})},hideLoading:function(){return uni.hideLoading()}};e.toa=s;var u={back:function(t){return uni.navigateBack({delta:t||1})}};e.router=u},d02e:function(t,e,n){"use strict";var a=n("6fba"),i=n.n(a);i.a},d1f1:function(t,e,n){"use strict";var a=n("4ea4");n("ac1f"),n("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var i=a(n("1da1")),o=n("bbe3"),r=n("a8b1"),s={data:function(){return{payType:"1",money:0,price:"",form:{price:"",withdraw_type:1,withdraw_name:"",withdraw_mobile:"",bank_name:"",bank_num:"",name:""}}},onShow:function(){this.getUserInfo()},methods:{getUserInfo:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,r.getUserInfo)();case 3:n=e.sent,t.money=n.user.money,console.log("getUserInfo",n),e.next=12;break;case 8:e.prev=8,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"}),console.log("getUserInfo",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))()},toggleType:function(t){this.form.withdraw_type=t},takePrice:function(){if(this.money<=0)return o.toa.toast("账户余额不足");this.form.price=this.money},checkNumber:function(t){var e=this,n=t.target.value.replace(/(^\s*)|(\s*$)/g,""),a=/[^\d.]/g;n=n.replace(a,""),n=n.replace(/^\./g,""),n=n.replace(".","$#$").replace(/\./g,"").replace("$#$","."),n=n.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),this.$nextTick((function(){e.form.price=n}))},takeMoney:function(){return this.money<=0?o.toa.toast("账户余额不足"):this.money?1==this.form.withdraw_type&&this.form.price<1?o.toa.toast("微信提现最少提现1元"):2!=this.form.withdraw_type||this.form.withdraw_name?2!=this.form.withdraw_type||this.form.withdraw_mobile?3!=this.form.withdraw_type||this.form.bank_name?3!=this.form.withdraw_type||this.form.bank_num?3!=this.form.withdraw_type||this.form.name?(console.log(this.form),void(1==this.form.withdraw_type?o.toa.toast("去微信授权"):this.toTakeMoney())):o.toa.toast("请输入持卡人姓名"):o.toa.toast("请输入银行卡号"):o.toa.toast("请输入银行卡提现银行"):o.toa.toast("请输入支付宝收款手机号"):o.toa.toast("请输入支付宝收款姓名"):o.toa.toast("请输入提现金额")},toTakeMoney:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,r.takeMoney)(t.form);case 3:for(a in n=e.sent,setTimeout((function(){o.toa.success("提现提交成功,请等待审核")}),200),t.form)t.form[a]="";t.form.withdraw_type=1,t.getUserInfo(),console.log("takeMoney",n),e.next=15;break;case 11:e.prev=11,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"}),console.log("takeMoney",e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,11]])})))()}}};e.default=s},e66e:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{},[n("v-uni-image",{staticClass:"bg",attrs:{src:"/static/takeMoneyBg.png",mode:""}}),n("v-uni-view",{staticClass:"top"},[n("v-uni-view",[t._v("账户余额:")]),n("v-uni-view",[n("v-uni-text",{staticStyle:{}},[t._v("¥")]),t._v(t._s(t.money))],1)],1),n("v-uni-view",{staticClass:"center"},[n("v-uni-view",{staticClass:"title"},[t._v("提现金额")]),n("v-uni-view",{staticClass:"inputPrice"},[n("v-uni-view",{},[t._v("¥"),n("v-uni-input",{attrs:{type:"text"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.checkNumber.apply(void 0,arguments)}},model:{value:t.form.price,callback:function(e){t.$set(t.form,"price",e)},expression:"form.price"}})],1),n("v-uni-view",{staticClass:"right",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.takePrice.apply(void 0,arguments)}}},[t._v("全部提现")])],1),2==t.form.withdraw_type?n("v-uni-view",{staticClass:"payInput"},[n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"input"},[t._v("支付宝收款姓名:")]),n("v-uni-input",{attrs:{type:"text",placeholder:"请输入",value:""},model:{value:t.form.withdraw_name,callback:function(e){t.$set(t.form,"withdraw_name",e)},expression:"form.withdraw_name"}})],1),n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"input"},[t._v("支付宝绑定的手机号:")]),n("v-uni-input",{attrs:{type:"number",maxlength:"11",placeholder:"请输入",value:""},model:{value:t.form.withdraw_mobile,callback:function(e){t.$set(t.form,"withdraw_mobile",e)},expression:"form.withdraw_mobile"}})],1)],1):t._e(),3==t.form.withdraw_type?n("v-uni-view",{staticClass:"payInput"},[n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"input"},[t._v("提现银行:")]),n("v-uni-input",{attrs:{type:"text",placeholder:"请选择",value:""},model:{value:t.form.bank_name,callback:function(e){t.$set(t.form,"bank_name",e)},expression:"form.bank_name"}})],1),n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"input"},[t._v("银行卡号:")]),n("v-uni-input",{attrs:{type:"number",placeholder:"请输入",value:""},model:{value:t.form.bank_num,callback:function(e){t.$set(t.form,"bank_num",e)},expression:"form.bank_num"}})],1),n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"input"},[t._v("持卡人姓名:")]),n("v-uni-input",{attrs:{type:"number",maxlength:"11",placeholder:"请输入",value:""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1):t._e(),n("v-uni-view",{staticClass:"line"}),n("v-uni-view",{staticClass:"title",staticStyle:{"margin-top":"30rpx"}},[t._v("提现方式")]),n("v-uni-view",{staticClass:"payType"},[n("v-uni-view",{staticClass:"list",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleType(1)}}},[n("v-uni-view",{staticClass:"left flexA"},[n("v-uni-image",{attrs:{src:"/static/wechat.png",mode:""}}),t._v("微信")],1),n("v-uni-view",{staticClass:"right"},[1==t.form.withdraw_type?n("v-uni-image",{attrs:{src:"/static/checked.png",mode:""}}):n("v-uni-image",{attrs:{src:"/static/notCheck.png",mode:""}})],1)],1),n("v-uni-view",{staticClass:"list",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleType(2)}}},[n("v-uni-view",{staticClass:"left flexA"},[n("v-uni-image",{attrs:{src:"/static/zhifubao.png",mode:""}}),t._v("支付宝")],1),n("v-uni-view",{staticClass:"right"},[2==t.form.withdraw_type?n("v-uni-image",{attrs:{src:"/static/checked.png",mode:""}}):n("v-uni-image",{attrs:{src:"/static/notCheck.png",mode:""}})],1)],1),n("v-uni-view",{staticClass:"list",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleType(3)}}},[n("v-uni-view",{staticClass:"left flexA"},[n("v-uni-image",{attrs:{src:"/static/yinlian.png",mode:""}}),t._v("银行卡支付")],1),n("v-uni-view",{staticClass:"right"},[3==t.form.withdraw_type?n("v-uni-image",{attrs:{src:"/static/checked.png",mode:""}}):n("v-uni-image",{attrs:{src:"/static/notCheck.png",mode:""}})],1)],1)],1),n("v-uni-view",{staticClass:"Withdrawal flexC",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.takeMoney.apply(void 0,arguments)}}},[t._v("提现")]),n("v-uni-view",{staticClass:"tips"},[t._v("温馨提示:为了平台更好的服务于平台用户,提示时平台将会提取交易金额的10%手续费用于维持平台的运营工作")])],1)],1)},o=[]},ff02:function(t,e,n){"use strict";n.r(e);var a=n("e66e"),i=n("ad09");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("d02e");var r,s=n("f0c5"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"837375ba",null,!1,a["a"],r);e["default"]=u.exports}}]);