1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-award"],{"05e4":function(t,e,n){var i=n("9fd8");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("e415f5ae",i,!0,{sourceMap:!1,shadowMode:!1})},"16c1":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("ad33").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("99de"),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("fe35"),mode:""}})],1),i("v-uni-view",{staticClass:"money-box"},[i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.userInfo.brokerage_price))]),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/withdrawal")}}},[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.orderStatusSum))])],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.recharge))])],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.maxheight},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.title))])],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=[]},"31a2":function(t,e,n){"use strict";var i=n("05e4"),a=n.n(i);a.a},"71bc":function(t,e,n){"use strict";n.r(e);var i=n("746d"),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},"746d":function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("ac1f"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=i(n("1da1")),o=i(n("5530")),r=n("6b863"),s=n("aa33"),l=n("26cb"),c=i(n("2102")),d=i(n("fe34")),f={filters:{getMoneyStyle:s.getMoneyStyle},computed:(0,o.default)({},(0,l.mapState)("user",["userInfo","orderInfo","hasLogin"])),components:{empty:d.default,uniLoadMore:c.default},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.maxheight=t.windowHeight-n[0].top+"px",console.log("打印页面的剩余高度",e.height)}))},fail:function(t){}})},data:function(){return{maxheight:"",tabCurrentIndex:0,orderStatusSum:0,recharge:0,navList:[{state:0,text:"收入",loadingType:"more",orderList:[],page:1,limit:10,loaded:!1},{state:1,text:"支出",loadingType:"more",orderList:[],page:1,limit:10,loaded:!1}],money:""}},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,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e,a=e.tabCurrentIndex,o=e.navList[a],s=o.state+3,"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",console.log(s,"123456"),(0,r.spreadCommission)({page:o.page,limit:o.limit},s).then((function(t){var n=t.data;console.log(n,"2211111"),i.recharge=n.income,i.orderStatusSum=n.expend,n.list.length>0?(n.list[0].list.forEach((function(t){console.log(t,"123456"),"市场分红"==t.title&&(t.title="市场分红补贴"),"礼包推荐奖"==t.title&&(t.title="礼包推荐补贴")})),o.orderList=o.orderList.concat(n.list[0].list),console.log(o.orderList),o.page++):o.loadingType="noMore",o.limit!=n.length?(o.loadingType="noMore",uni.hideLoading(),e.$set(o,"loaded",!0)):o.loadingType="more"})).catch((function(t){console.log(t)}));case 11:case"end":return n.stop()}}),n)})))()},toBack:function(){uni.navigateBack({})},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=f},8582:function(t,e,n){"use strict";n.r(e);var i=n("16c1"),a=n("71bc");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("31a2");var r,s=n("f0c5"),l=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"604768eb",null,!1,i["a"],r);e["default"]=l.exports},"9fd8":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-604768eb]{background:#f1f1f1;height:100%}.status_bar[data-v-604768eb]{height:0;width:100%}.content-money[data-v-604768eb]{position:relative;height:%?480?%}.content-money .content-bg[data-v-604768eb]{position:absolute;top:0;left:0;right:0;width:%?750?%;height:%?480?%}.content-money .content-bg uni-image[data-v-604768eb]{width:100%;height:100%}.content-money .body-title[data-v-604768eb]{height:%?80?%;text-align:center;font-size:%?35?%;position:relative}.content-money .body-title .header[data-v-604768eb]{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-604768eb]{position:absolute;left:%?18?%;top:0;height:%?80?%;display:flex;align-items:center}.content-money .body-title .goback[data-v-604768eb]{z-index:100;width:%?34?%;height:%?34?%}.info-box[data-v-604768eb]{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-604768eb]{width:50%;display:flex;flex-direction:column;align-items:center;line-height:1}.info-box .info-item .info-font[data-v-604768eb]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#999}.info-box .info-item .info-num[data-v-604768eb]{margin-top:%?30?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#181818}.info-box .shu[data-v-604768eb]{width:%?2?%;height:%?74?%;background:#dcdfe6}.money-box[data-v-604768eb]{position:relative;z-index:2;padding-top:%?90?%;color:#fff;text-align:center}.money-box .money[data-v-604768eb]{font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .text[data-v-604768eb]{font-size:%?30?%}.money-btn[data-v-604768eb]{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-604768eb]{display:inline-block;padding-left:%?10?%}.navbar[data-v-604768eb]{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-604768eb]{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-604768eb]{color:#000}.navbar .nav-item.current[data-v-604768eb]: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-604768eb]:last-child{margin-bottom:%?60?%}.swiper-box .order-item[data-v-604768eb]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box .title[data-v-604768eb]{font-size:%?32?%;color:#606266}.swiper-box .order-item .title-box .time[data-v-604768eb]{font-size:%?28?%;color:#909399}.swiper-box .order-item .money[data-v-604768eb]{color:#fd5b23;font-size:%?32?%;text-align:right}.swiper-box .order-item .money .status[data-v-604768eb]{color:#909399}.list-scroll-content[data-v-604768eb]{background:#fff;height:100%}.content[data-v-604768eb]{height:100%}.content .empty-content[data-v-604768eb]{background-color:#fff}.btn-box[data-v-604768eb]{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-604768eb]{background:#f1f1f1}',""]),t.exports=e},fe35:function(t,e,n){t.exports=n.p+"static/img/yongjin-bg.7a027847.png"}}]);
|