1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-scoreAccumulate"],{"000f":function(t,e,n){var i=n("9e89");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("afca6a0a",i,!0,{sourceMap:!1,shadowMode:!1})},"34fd":function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=i(n("1da1")),o=i(n("5530")),r=n("de0f"),c=n("3731"),s=i(n("24b5")),u=i(n("497c")),d=n("26cb"),l={filters:{getMoneyStyle:c.getMoneyStyle},components:{empty:u.default,uniLoadMore:s.default},computed:(0,o.default)({},(0,d.mapState)("user",["userInfo","orderInfo","hasLogin"])),onReady:function(t){var e=this;uni.getSystemInfo({success:function(t){var n=uni.createSelectorQuery();n.select(".swiper-box").boundingClientRect(),n.exec((function(n){e.height=t.windowHeight-n[0].top+"px",console.log("打印页面的剩余高度",e.height)}))},fail:function(t){}})},data:function(){return{height:"",maxheight:"",tabCurrentIndex:0,orderStatusSum:0,recharge:0,navList:[{state:0,text:"支出",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"收入",loadingType:"more",orderList:[],page:1,limit:10}]}},onLoad:function(t){},onShow:function(){this.loadData()},methods:{navto:function(t){uni.navigateTo({url:t})},loadData:function(t){var e=this;return(0,a.default)(regeneratorRuntime.mark((function n(){var i,a,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e,a=e.tabCurrentIndex,o=e.navList[a],c=o.state,"tabChange"!==t||!0!==o.loaded){n.next=6;break}return n.abrupt("return");case 6:if("loading"!==o.loadingType){n.next=8;break}return n.abrupt("return");case 8:o.loadingType="loading",(0,r.integrallist)({page:o.page,limit:o.limit,pm:c}).then((function(t){var n=t.data;i.recharge=n.income,i.orderStatusSum=n.expend,n.list.length>0&&(console.log(n),o.orderList=o.orderList.concat(n.list),console.log(o.orderList),o.page++),o.limit!=n.list.length?(o.loadingType="noMore",uni.hideLoading(),e.$set(o,"loaded",!0)):o.loadingType="more"})).catch((function(t){console.log(t)}));case 10:case"end":return n.stop()}}),n)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t},toBack:function(){uni.navigateBack({})}}};e.default=l},3731:function(t,e,n){"use strict";function i(t){var e=/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/;return!1!==e.test(t)||(console.log(t),!1)}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"string"==typeof t&&(t=(+t).toFixed(2)),"number"==typeof t&&(t=t.toFixed(2));var e=t.split(""),n=e.reverse().map((function(t,e,n){return e%3==0&&e/3>1&&e!=n.length?t+",":t}));return n=n.reverse().join(""),n}function o(t){var e=(new Date).getTime(),n=t-e;n<0&&(n*=-1);var i=Math.floor(n/1e3/60/60/24),a=Math.floor(n/1e3/60/60%24),o=Math.floor(n/1e3/60%60),r=Math.floor(n/1e3%60);return{hours:a,minutes:o,seconds:r,day:i}}function r(t){return new Promise((function(t,e){wx.getSetting({success:function(n){n.authSetting["scope.userLocation"]?t():wx.showModal({title:"提示",content:"请求获取位置权限",success:function(n){if(0==n.confirm)return e(),!1;wx.openSetting({success:function(e){e.authSetting["scope.userLocation"]?t():wx.showToast({title:"此功能需获取位置信息,请重新设置",duration:3e3,icon:"none"})}})}})}})}))}function c(t){for(var e=13-(t+"").length,n=1,i=0;i<e;i++)n+="0";n=parseInt(n);var a=new Date(parseInt(t)*n),o=a.getFullYear(),r=a.getMonth()+1,c=a.getDate(),s=a.getHours(),u=a.getMinutes(),d=a.getSeconds();return o+"-"+r+"-"+c+" "+s+":"+u+":"+d}n("d81d"),n("26e9"),n("d3b7"),n("e25e"),n("ac1f"),n("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.isCardNo=i,e.getMoneyStyle=a,e.timeComputed=o,e.openMap=r,e.getTime=c},"46e8":function(t,e,n){t.exports=n.p+"static/img/myjf.6b34f1a7.png"},"6a4c":function(t,e,n){"use strict";n.r(e);var i=n("34fd"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"6e37":function(t,e,n){"use strict";var i=n("000f"),a=n.n(i);a.a},7228:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAEgklEQVR4XuWbS6xeUxiG3ze0hqgyLSVpIkJUgpQyaIu6JBK30mqiQqsTvc9oa6gtZm0FQS8TA5epkhi5xAxjTExcEiYYvfIm30l2/qzV9F/7ts72Tc7g/Puc73n+tdZel28RizQkPQbg7kj/C5IflKCw5KGxn5H0KoD9M3lcSvKveXNbdAIknQCwPQF6mOShyQqQdDGA9wA8lYD8BcD1JP+cpABJywL+wQTg35ZC8qN54f356ruApKsD/q4E4K8Bf64EvnoBkm4E8C6AmxOAPwX8l6XwVQuQdEd889cmAL8P+O/awFcrQNLGgL8yAfhVwP/YFr5KAZKeCPhLEoDu6x7w3Pc7iaoGQUnPAXgzQ/YxgE0k/+mEPP5INQIk7QFwLAN3huSWLsEX/lYVAiR5BncwA3iS5I4+4KsYAyS9BmB3BvAYyX19wY8uQNJbAJ7NABbN7eeVNUoXkLQEwGkAj2cSPkDyyLwwJZ8fXICkKwL+vkzCO0keL4EpeWZQAZKuCfg1mWS3kjxVAlL6zGACJN0U8Dckkv033vFFK7pS+MEGQUlrAfibXZFI9veAL17RVS1A0gMBf3ki0Z8D3vP7UaLXLiDpyYC/KEH3Q8B7ZTda9CZA0vMATmbIvvErkKRbwKjRiwBJnr3l3uOfB7z7/ujRuQBJrwB4KUP2ScB71K8iOhUg6Q0AL2bIzpLcXAV1I4nOBEh6B8AzGcBeV3RtpLYWIMk7N2cAPJJJpPcV3WgCJC0HcBbAhkwSg6zoRhEgaWXA35ZJYD/Jo22SG+LZ4i4g6VsAt2SS3EEyNwcYguuC/0eRAEkPA/gw81+2kPSYsCiiVMA6ALnFy/QF+KuV9DWAW/+XXSAEeBB0U789I2Efydw2dzXdo6gLLGQfr0FLuCdDdIjk4WpoE4m0EhAtYWm0hEczoEdJzpazVOOktYBGa3gbwLYM2QmSL1RD3UikMwHRGl4HsCsDeprk07VJ6FRASHCffzkD6k1PH3BOcznc6A57AeSmwZ4/WMI0N0QaEs531O1NUEuY5pZYQ4KPvrxaTG2KejPUErw5Olp0PgbMkkS5i+cKqW1xFzpZgmeVo0TvAmJgdMGTD0Nd8jYbv4WEz8YwMIiAkOCSN58O+edsuOzFLcFlMIPGYAJCgluAJdyZodxM0mPGYDGogJDg4/H3AdyfodxOMlco1bmYwQWEBBdIWMKmDNFeki6d6T1GEbBAJcnbZj5CS8VBkj5k6TVGFRCtwUdouUKoIyQP9GlgdAEhwUdpuW/7OMmdfUmoQkBI8CrSq8lUnCK5tQ8J1QgICd5P8L5CKrwL7TrhaZbKNgZG3wbzXCFVLP1pSPDssZOoqgU0JNwbr8mrEpS+IOGW4HVE66hSQHQHl9L5ktR1CUpflLCE1uU11QoICS6ps4TVCQm+MGEJrQqsqhYQElxaZwkLt0SbLqZ9aaoxJngvwRIeSrSEaV+ba0g438VJvxVWkfxj3lGx+i4wCyTJhdSpCxRFxRiLTkCMC6nL05dN9upsqllLcsXZ+vjdudKahP8AipZeUEUx+60AAAAASUVORK5CYII="},"9e89":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-3c0989c6]{background:#f1f1f1;height:100%}.status_bar[data-v-3c0989c6]{height:0;width:100%}.content-money[data-v-3c0989c6]{position:relative;height:%?480?%}.content-money .content-bg[data-v-3c0989c6]{position:absolute;top:0;left:0;right:0;width:%?750?%;height:%?480?%}.content-money .content-bg uni-image[data-v-3c0989c6]{width:100%;height:100%}.content-money .body-title[data-v-3c0989c6]{height:%?80?%;text-align:center;font-size:%?35?%;position:relative}.content-money .body-title .header[data-v-3c0989c6]{position:absolute;left:0;top:0;width:100%;font-size:%?36?%;font-family:PingFang SC;font-weight:700;color:#fffeff;height:%?80?%;font-size:%?36?%;font-weight:700;z-index:9;display:flex;justify-content:center;align-items:center}.content-money .body-title .goback-box[data-v-3c0989c6]{position:absolute;left:%?18?%;top:0;height:%?80?%;display:flex;align-items:center}.content-money .body-title .goback[data-v-3c0989c6]{z-index:100;width:%?34?%;height:%?34?%}.info-box[data-v-3c0989c6]{width:%?670?%;height:%?186?%;background:#fff;box-shadow:0 0 %?20?% 0 rgba(50,50,52,.06);border-radius:%?20?%;margin:%?-100?% auto 0;position:relative;z-index:2}.info-box .info-item[data-v-3c0989c6]{width:50%;display:flex;flex-direction:column;align-items:center;line-height:1}.info-box .info-item .info-font[data-v-3c0989c6]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#999}.info-box .info-item .info-num[data-v-3c0989c6]{margin-top:%?30?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#181818}.info-box .shu[data-v-3c0989c6]{width:%?2?%;height:%?74?%;background:#dcdfe6}.money-box[data-v-3c0989c6]{position:relative;z-index:2;padding-top:%?90?%;color:#fff;text-align:center}.money-box .money[data-v-3c0989c6]{font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .text[data-v-3c0989c6]{font-size:%?30?%}.money-btn[data-v-3c0989c6]{position:relative;z-index:2;color:#fff;padding-right:%?50?%;text-align:right;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-btn uni-text[data-v-3c0989c6]{display:inline-block;padding-left:%?10?%}.navbar[data-v-3c0989c6]{margin-top:%?20?%;display:flex;height:%?88?%;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-3c0989c6]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#999;position:relative}.navbar .nav-item.current[data-v-3c0989c6]{color:#000}.navbar .nav-item.current[data-v-3c0989c6]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #fe5b38}.swiper-box .order-item[data-v-3c0989c6]:last-child{margin-bottom:%?60?%}.swiper-box .order-item[data-v-3c0989c6]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box .title[data-v-3c0989c6]{font-size:%?32?%;color:#606266}.swiper-box .order-item .title-box .time[data-v-3c0989c6]{font-size:%?28?%;color:#909399}.swiper-box .order-item .money[data-v-3c0989c6]{color:#fd5b23;font-size:%?32?%;text-align:right}.swiper-box .order-item .money .status[data-v-3c0989c6]{color:#909399}.list-scroll-content[data-v-3c0989c6]{background:#fff;height:100%}.content[data-v-3c0989c6]{height:100%}.content .empty-content[data-v-3c0989c6]{background-color:#fff}.btn-box[data-v-3c0989c6]{width:%?674?%;height:%?88?%;background:linear-gradient(0deg,#2e58ff,#32c6ff);border-radius:%?44?%;font-size:%?36?%;font-family:PingFang SC;font-weight:500;color:#fff;text-align:center;line-height:%?88?%;position:fixed;bottom:%?48?%;left:0;right:0;margin:0 auto}body.?%PAGE?%[data-v-3c0989c6]{background:#f1f1f1}',""]),t.exports=e},de0f:function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCouponsList=o,e.setCoupons=r,e.couponsOrder=c,e.integrallist=s,e.signList=u,e.integral=d,e.signUser=l,e.my_award=f,e.get_award=g;var a=i(n("c9b6"));function o(t,e){return(0,a.default)({url:"/api/coupons/user/"+e,method:"get",data:t})}function r(t){return(0,a.default)({url:"/api/coupon/receive",method:"post",data:t})}function c(t,e){return(0,a.default)({url:"/api/coupons/order/"+e,method:"get",data:t})}function s(t){return(0,a.default)({url:"/api/integral/list",method:"get",data:t})}function u(t){return(0,a.default)({url:"/api/sign/list",method:"get",data:t})}function d(t){return(0,a.default)({url:"/api/sign/integral",method:"post",data:t})}function l(t){return(0,a.default)({url:"/api/sign/user",method:"post",data:t})}function f(t){return(0,a.default)({url:"/api/game/my_award",method:"get",data:t})}function g(t,e){return(0,a.default)({url:"/api/game/get_award/"+e,method:"post",data:t})}},e636:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uniLoadMore:n("24b5").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"content-money"},[i("v-uni-view",{staticClass:"status_bar"}),i("v-uni-view",{staticClass:"body-title"},[i("v-uni-view",{staticClass:"goback-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toBack.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"goback",attrs:{src:n("7228"),mode:""}})],1),i("v-uni-view",{staticClass:"header"},[t._v("响亮积分")])],1),i("v-uni-view",{staticClass:"content-bg"},[i("v-uni-image",{attrs:{src:n("46e8"),mode:""}})],1),i("v-uni-view",{staticClass:"money-box"},[i("v-uni-view",{staticClass:"money"},[t._v(t._s(t._f("getMoneyStyle")(t.userInfo.integral)))]),i("v-uni-view",[t._v("我的响亮积分")])],1),i("v-uni-view",{staticClass:"money-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/money/withdmoenys")}}},[t._v("积分转账"),i("v-uni-text",[t._v(">")])],1)],1),i("v-uni-view",{staticClass:"info-box flex"},[i("v-uni-view",{staticClass:"info-item"},[i("v-uni-view",{staticClass:"info-font"},[t._v("累计收入")]),i("v-uni-view",{staticClass:"info-num"},[t._v(t._s(t.recharge))])],1),i("v-uni-view",{staticClass:"shu"}),i("v-uni-view",{staticClass:"info-item"},[i("v-uni-view",{staticClass:"info-font"},[t._v("累计支出")]),i("v-uni-view",{staticClass:"info-num"},[t._v(t._s(t.orderStatusSum))])],1)],1),i("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,n){return i("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),i("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.height},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 i("v-uni-swiper-item",{key:n,staticClass:"tab-content"},[i("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":"true"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.orderList.length?i("empty"):t._e(),i("v-uni-view",t._l(e.orderList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"order-item flex"},[i("v-uni-view",{staticClass:"title-box"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v(t._s(e.mark))])],1),i("v-uni-view",{staticClass:"time"},[i("v-uni-text",[t._v(t._s(e.add_time))])],1)],1),i("v-uni-view",{staticClass:"money"},[i("v-uni-view",[t._v(t._s((0==e.pm?"-":"+")+e.number))]),0==e.status?i("v-uni-view",{staticClass:"status"},[t._v("待发放")]):t._e()],1)],1)})),1),0==e.orderList.length&&e.loaded?t._e():i("uni-load-more",{attrs:{status:e.loadingType}})],1)],1)})),1)],1)},o=[]},feff:function(t,e,n){"use strict";n.r(e);var i=n("e636"),a=n("6a4c");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("6e37");var r,c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"3c0989c6",null,!1,i["a"],r);e["default"]=s.exports}}]);
|