1 line
8.2 KiB
JavaScript
1 line
8.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c92977e"],{"703f":function(t,e,i){"use strict";i("88ec")},"88ec":function(t,e,i){var a=i("a984");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("0aeceaac",a,!0,{sourceMap:!1,shadowMode:!1})},a984:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#pointAward[data-v-062074b8]{background:#f7f8fb;min-height:100vh}.list[data-v-062074b8]{margin-top:.88rem;padding-bottom:2rem}.list[data-v-062074b8],.list .lis[data-v-062074b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.list .lis[data-v-062074b8]{margin-bottom:.63rem;width:22.19rem;background-color:#fff;border-radius:.31rem;padding:1rem .84rem}.list .lis .lisTop[data-v-062074b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:.3rem}.list .lis .lisTop .sn[data-v-062074b8]{text-align:left;font-size:.81rem;color:#2b2b2b;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list .lis .lisTop .price[data-v-062074b8]{font-size:.81rem;color:#f14e4e}.list .lis .lisBottom[data-v-062074b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.list .lis .lisBottom .time[data-v-062074b8],.list .lis .lisBottom .txt[data-v-062074b8]{font-size:.69rem;font-weight:700;color:#696969}.list .lis .lisBottom .time[data-v-062074b8]{text-align:left;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contenbox[data-v-062074b8]{margin:.63rem;margin-top:-1.25rem}.contenbox .topconten[data-v-062074b8]{margin-bottom:1.13rem;width:100%;height:2.5rem;background-color:#fff;border-radius:.31rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .81rem;font-size:.81rem}.contenbox .topconten .topconten_left[data-v-062074b8]{color:#282828}.contenbox .topconten .topconten_right[data-v-062074b8]{color:#f14e4e}.headBox[data-v-062074b8]{background:#ff8924;width:100%;height:7.47rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-left:.97rem;-webkit-box-sizing:border-box;box-sizing:border-box}.headBox[data-v-062074b8],.headBox .user[data-v-062074b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.headBox .user[data-v-062074b8]{overflow:hidden;height:3.44rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.headBox .user .leave[data-v-062074b8]{color:#ba750c;font-size:.69rem;padding:.28rem .59rem;border-radius:.67rem;background:#fff}.headBox .user .name[data-v-062074b8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-size:1rem;color:#fff;font-weight:600;text-align:left}.headBox .img[data-v-062074b8]{width:3.44rem;height:3.44rem;border-radius:100%;margin-right:.44rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.headBox .img img[data-v-062074b8]{width:100%;height:100%;border-radius:100%}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,o=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},fc20:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"pointAward"}},[i("c-title",{attrs:{hide:!1,text:t.other?"见点奖励":t.info.name}}),t.info?i("div",{staticClass:"headBox"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.info.avatar,alt:""}})]),i("div",{staticClass:"user"},[i("div",{staticClass:"name"},[t._v(t._s(t.info.nickname))]),t.info.level?i("div",{staticClass:"leave"},[t._v(t._s(t.info.level))]):t._e()])]):t._e(),i("div",{staticClass:"contenbox"},[i("div",{staticClass:"topconten"},[i("div",{staticClass:"topconten_left"},[t._v(t._s(t.info.name?"累计"+t.info.name:"累计见点极差奖励"))]),t.info.sum?i("div",{staticClass:"topconten_right"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.sum))]):t._e()]),i("van-tabs",{attrs:{type:"card"},on:{change:t.tapchange},model:{value:t.record_status,callback:function(e){t.record_status=e},expression:"record_status"}},[i("van-tab",{attrs:{title:"全部"}}),i("van-tab",{attrs:{title:"已结算"}}),i("van-tab",{attrs:{title:"未结算"}})],1),i("div",{staticClass:"list"},t._l(t.list,(function(e){return i("div",{key:e.id,staticClass:"lis"},[i("div",{staticClass:"lisTop"},[t.other?t.other&&e.belongs_to_order?i("div",{staticClass:"sn"},[t._v(t._s(e.belongs_to_order.order_sn))]):t._e():i("div",{staticClass:"sn"},[t._v(t._s(e.order_sn))]),i("div",{staticClass:"price"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.amounts))])]),i("div",{staticClass:"lisBottom"},[i("div",{staticClass:"time"},[t._v("奖励时间:"+t._s(e.created_at))]),i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.record_status,expression:"record_status == 0"}],staticClass:"txt"},[t._v(t._s(e.status_name))])])])})),0)],1)],1)},o=[],s=(i("e7e5"),i("d399")),n=(i("b0c0"),i("99af"),i("ac0d")),l={mixins:[n["a"]],data:function(){return{list:[],info:[],record_status:0,other:!1,isLoadMore:!0,page:1,total_page:0}},activated:function(){window.scrollTo(0,0),"other"==this.$route.params.key&&(this.other=!0),this.getData()},methods:{tapchange:function(){this.init(),this.getData()},init:function(){this.isLoadMore=!0,this.page=1,this.total_page=1,this.list=[]},getData:function(){var t=this,e="plugin.jyk-find-point.frontend.controllers.rewards.index";this.other&&(e="plugin.jyk-find-point.frontend.controllers.others.index"),$http.get(e,{page:this.page,record_status:this.record_status},"生成中").then((function(e){1===e.result?(t.info=e.data.info,t.other||t.fun.setWXTitle(t.info.name),t.isLoadMore=!0,t.total_page=e.data.list.last_page,t.total_page||(t.total_page=0),t.other&&t.fun.setWXTitle(t.info.name),t.list=e.data.list.data):(t.posterShow=!1,t.$dialog.alert({message:e.msg}))})).catch((function(t){}))},getMoreData:function(){var t=this,e="plugin.jyk-find-point.frontend.controllers.rewards.index";this.other&&(e="plugin.jyk-find-point.frontend.controllers.others.index"),this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get(e,{page:this.page,record_status:this.record_status},"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.list.data;t.list=t.list.concat(i)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){Object(s["a"])(t.msg)})).catch((function(t){})))}}},r=l,c=(i("703f"),i("2877")),d=Object(c["a"])(r,a,o,!1,null,"062074b8",null);e["default"]=d.exports}}]); |