1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-page-scoreAccumulate"],{"06d1":function(t,e,a){"use strict";a.r(e);var n=a("84bd"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"0cff":function(t,e,a){"use strict";a.r(e);var n=a("4c1e"),i=a("06d1");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("569c");var r,s=a("f0c5"),u=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"478a14a4",null,!1,n["a"],r);e["default"]=u.exports},"1de5":function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"2baa":function(t,e,a){var n=a("eaa9");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("4d54c8a6",n,!0,{sourceMap:!1,shadowMode:!1})},"4c1e":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uniLoadMore:a("488d").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"top-wrapper"},[t._v(t._s(t.userInfo.integral||0))]),a("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"nav-item",class:{current:t.tabCurrentIndex===n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(n)}}},[t._v(t._s(e.text))])})),1),a("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.maxheight+"px"},attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,n){return a("v-uni-swiper-item",{key:n,staticClass:"tab-content"},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.orderList.length?a("empty"):t._e(),t._l(e.orderList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"order-item flex"},[a("v-uni-view",{staticClass:"title-box"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",[t._v(t._s(e.mark))])],1),a("v-uni-view",{staticClass:"time"},[a("v-uni-text",[t._v(t._s(e.add_time))])],1)],1),a("v-uni-view",{staticClass:"money"},[a("v-uni-text",[t._v(t._s((0==e.pm?"-":"+")+e.number))])],1)],1)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},o=[]},5325:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCouponsList=o,e.setCoupons=r,e.couponsOrder=s,e.integrallist=u,e.signList=l,e.integral=c,e.signUser=d;var i=n(a("bc58"));function o(t,e){return(0,i.default)({url:"/api/coupons/user/"+e,method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/coupon/receive",method:"post",data:t})}function s(t,e){return(0,i.default)({url:"/api/coupons/order/"+e,method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/integral/list",method:"get",data:t})}function l(t){return(0,i.default)({url:"/api/sign/list",method:"get",data:t})}function c(t){return(0,i.default)({url:"/api/sign/integral",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/sign/user",method:"post",data:t})}},"569c":function(t,e,a){"use strict";var n=a("2baa"),i=a.n(n);i.a},"84bd":function(t,e,a){"use strict";var n=a("4ea4");a("99af"),a("4160"),a("ac1f"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var i=n(a("1da1")),o=n(a("5530")),r=a("2f62"),s=a("5325"),u=n(a("488d")),l=n(a("2cfa")),c={components:{empty:l.default,uniLoadMore:u.default},computed:(0,o.default)({},(0,r.mapState)("user",["userInfo","orderInfo","hasLogin"])),onReady:function(){var t=this;uni.createSelectorQuery().select(".content").fields({size:!0},(function(e){console.log(e),console.log(Math.floor(e.width/750*300)),t.maxheight=e.height-Math.floor(e.width/750*570),console.log(t.maxheight)})).exec()},data:function(){return{maxheight:0,tabCurrentIndex:0,navList:[{state:1,text:"收入",loadingType:"more",orderList:[],page:1,limit:10},{state:0,text:"支出",loadingType:"more",orderList:[],page:1,limit:10}],score:0}},onShow:function(){this.loadData()},methods:{navto:function(t){uni.navigateTo({url:t})},loadData:function(t){var e=this;return(0,i.default)(regeneratorRuntime.mark((function a(){var n,i,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e.tabCurrentIndex,i=e.navList[n],o=i.state,"tabChange"!==t||!0!==i.loaded){a.next=5;break}return a.abrupt("return");case 5:if("loading"!==i.loadingType){a.next=7;break}return a.abrupt("return");case 7:i.loadingType="loading",(0,s.integrallist)({page:i.page,limit:i.limit},o).then((function(t){var a=t.data;if(console.log(a),a.length>0){var n=[];a.forEach((function(t){t.pm===o&&n.push(t)})),i.orderList=i.orderList.concat(n),i.page++}i.limit!=a.length?(i.loadingType="noMore",uni.hideLoading(),e.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(t){console.log(t)}));case 9:case"end":return a.stop()}}),a)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=c},b19e:function(t,e,a){t.exports=a.p+"static/img/wallertbg.1315c711.png"},eaa9:function(t,e,a){var n=a("24fb"),i=a("1de5"),o=a("b19e");e=n(!1);var r=i(o);e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-478a14a4]{background:#fff;height:100%}.navbar[data-v-478a14a4]{display:-webkit-box;display:-webkit-flex;display:flex;height:40px;padding:0 5px;background:#fff;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.06);box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-478a14a4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-478a14a4]{color:#921a23}.navbar .nav-item.current[data-v-478a14a4]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #921a23}.swiper-box[data-v-478a14a4]{height:calc(100% - 44px);padding-top:%?10?%}.swiper-box .order-item[data-v-478a14a4]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box .title[data-v-478a14a4]{font-size:%?32?%;color:#606266}.swiper-box .order-item .title-box .time[data-v-478a14a4]{font-size:%?28?%;color:#909399}.swiper-box .order-item .money[data-v-478a14a4]{color:#fd5b23;font-size:%?32?%}.list-scroll-content[data-v-478a14a4]{height:100%}.content[data-v-478a14a4]{height:100%}.content .empty-content[data-v-478a14a4]{background-color:#fff}.top-wrapper[data-v-478a14a4]{width:%?750?%;height:%?265?%;background-image:url('+r+");background-size:100%;background-position:bottom;color:#fff;font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff;line-height:%?265?%;text-align:center}body.?%PAGE?%[data-v-478a14a4]{background:#fff}",""]),t.exports=e}}]);
|