pages-mine-accountFlow.d6501e3a.js 6.0 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-accountFlow"],{"14ba":function(t,e,n){"use strict";n("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.request=e.baseURL=void 0;var o="http://yuanjie.n.broing.cn/api/";e.baseURL=o;var r=function(t){return new Promise((function(e,n){uni.request({url:o+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=r},"1bc5":function(t,e,n){var o=n("2746");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=n("4f06").default;r("3e7d5d70",o,!0,{sourceMap:!1,shadowMode:!1})},2746:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,"uni-page-body[data-v-75b6cd6f]{background:#f6f6f6}.bg[data-v-75b6cd6f]{overflow:hidden;position:absolute;left:0;top:0;width:100%;height:%?366?%}.top[data-v-75b6cd6f]{position:absolute;left:%?32?%;top:%?64?%}.top uni-view[data-v-75b6cd6f]:nth-child(1){color:rgba(0,0,0,.4);font-size:%?28?%}.top uni-view[data-v-75b6cd6f]:nth-child(2){color:rgba(0,0,0,.9);font-size:%?64?%;font-weight:700}.center[data-v-75b6cd6f]{position:absolute;width:100%;left:50%;top:%?220?%;height:calc(100vh - %?220?%);border-radius:%?24?%;padding:%?40?% %?30?%;-webkit-transform:translateX(-50%);transform:translateX(-50%);background:#fff;box-sizing:border-box}.center .item[data-v-75b6cd6f]{justify-content:space-between;height:%?144?%;border-bottom:1px solid #eeeff0}.center .item .left uni-view[data-v-75b6cd6f]:nth-child(1){color:#323233;font-size:%?28?%;margin-bottom:%?8?%}.center .item .left uni-view[data-v-75b6cd6f]:nth-child(2){color:#c8c9cc;font-size:%?24?%}.center .item .right[data-v-75b6cd6f]{color:#e63d27;font-size:%?28?%;font-weight:500}body.?%PAGE?%[data-v-75b6cd6f]{background:#f6f6f6}",""]),t.exports=e},"48e7":function(t,e,n){"use strict";n.r(e);var o=n("8b5d"),r=n("b812");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("d30e");var i,s=n("f0c5"),u=Object(s["a"])(r["default"],o["b"],o["c"],!1,null,"75b6cd6f",null,!1,o["a"],i);e["default"]=u.exports},"8b5d":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var r=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-scroll-view",{staticClass:"center",attrs:{"scroll-y":"true"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)}}},t._l(t.list,(function(e){return n("v-uni-view",{key:e.id,staticClass:"item flexA"},[n("v-uni-view",{staticClass:"left"},[n("v-uni-view",{},[t._v(t._s(e.memo))]),n("v-uni-view",{},[t._v(t._s(e.createtime_text))])],1),n("v-uni-view",{staticClass:"right"},[n("v-uni-view",{},[t._v(t._s(e.money))])],1)],1)})),1)],1)},a=[]},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 o=n("14ba"),r=function(){return(0,o.request)({url:"user/index",method:"post",data:{}})};e.getUserInfo=r;var a=function(){return(0,o.request)({url:"user/logout",method:"post",data:{}})};e.logotLogin=a;var i=function(t){return(0,o.request)({url:"common/contact",method:"post",data:{type:t}})};e.getContactQrcode=i;var s=function(){return(0,o.request)({url:"common/problem_sort",method:"post",data:{}})};e.problemSort=s;var u=function(t,e,n){return(0,o.request)({url:"common/problem_list",method:"post",data:{sort_id:t,page:e,pagenum:n}})};e.problemList=u;var c=function(t){return(0,o.request)({url:"common/problem_detail",method:"post",data:{problem_id:t}})};e.problemDetail=c;var l=function(t,e){return(0,o.request)({url:"user/feedback",method:"post",data:{content:t,image:e}})};e.doFeedback=l;var d=function(t){return(0,o.request)({url:"user/user_withdraw",method:"post",data:t})};e.takeMoney=d;var f=function(){return(0,o.request)({url:"user/user_money_log",method:"post"})};e.moneyLog=f},b812:function(t,e,n){"use strict";n.r(e);var o=n("d420"),r=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},d30e:function(t,e,n){"use strict";var o=n("1bc5"),r=n.n(o);r.a},d420:function(t,e,n){"use strict";var o=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var r=o(n("1da1")),a=n("a8b1"),i={data:function(){return{list:[],money:"",page:1,lastPage:1}},onShow:function(){this.getUserInfo(),this.moneyLog()},methods:{getUserInfo:function(){var t=this;return(0,r.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,a.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]])})))()},moneyLog:function(){var t=this;return(0,r.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,a.moneyLog)();case 3:n=e.sent,t.list=t.list.concat(n.list.data),t.lastPage=n.list.last_page,e.next=12;break;case 8:e.prev=8,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"}),console.log("moneyLog",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))()},scrolltolower:function(){this.page>=this.lastPage||(this.page=this.page+1,this.moneyLog())}}};e.default=i}}]);