bztang-admin/addons/yun_shop/static/app/js/chunk-3c38bb59.092066ae.js

1 line
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c38bb59"],{"056a":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"supportCenterIndex"},[i("c-title",{attrs:{hide:!1,text:e.info.plugin_name}}),i("div",{staticClass:"bg_Top"},[e.info.member?i("div",{staticClass:"memberBox"},[i("div",{staticClass:"image"},[i("img",{attrs:{src:e.info.member.avatar_image,alt:""}})]),i("div",{staticClass:"user"},[i("div",{staticClass:"name"},[e._v(e._s(e.info.member.nickname))]),i("div",{staticClass:"Id"},[e._m(0),i("div",{staticClass:"txt"},[e._v(e._s(e.info.member.uid))])])])]):e._e()]),i("div",{staticClass:"remainingUndrawn"},[i("div",{staticClass:"remainingUndrawn_box"},[i("div",{staticClass:"left"},[e._v("剩余核销额度")]),i("div",{staticClass:"right"},[e._v(" "+e._s(e.info.quota)+" ")])]),i("div",{staticClass:"nav"},[i("div",{staticClass:"left",class:[0==e.active?"isact":""],on:{click:function(t){return e.navChange(0)}}},[e._v(" 核销记录 "),i("span",{class:[0==e.active?"act":""]})]),i("div",{staticClass:"right",class:[1==e.active?"isact":""],on:{click:function(t){return e.navChange(1)}}},[e._v(" 额度记录 "),i("span",{class:[1==e.active?"act":""]})])])]),i("div",{staticClass:"list"},[0==e.active?e._l(e.list,(function(t,a){return i("div",{key:a,staticClass:"lis",staticStyle:{"padding-top":"0.66rem","padding-bottom":"0.63rem"},on:{click:function(i){return e.checkTap(t,a)}}},[i("div",{staticClass:"dateIs"},[i("div",{staticClass:"left"},[e._v(e._s(t.days_str))]),i("div",{staticClass:"right"},[t.checked?i("van-icon",{attrs:{name:"arrow-down"}}):e._e(),t.checked?e._e():i("van-icon",{attrs:{name:"arrow-up"}})],1)]),i("div",{staticClass:"verification"},[i("div",{staticClass:"row"},[e._v(" 核销总数 "),i("span",[e._v(e._s(t.sum_withdraw_quota))])]),i("div",{staticClass:"row"},[e._v(" 核销次数 "),i("span",[e._v(e._s(t.num))])])]),t.checked?e._l(t.log,(function(t,a){return i("div",{key:a,staticClass:"userInfo"},[i("div",{staticClass:"userLis"},[t.has_one_withdraw_member?i("div",{staticClass:"left"},[i("div",{staticClass:"image"},[i("img",{attrs:{src:t.has_one_withdraw_member.avatar_image,alt:""}})]),i("div",{staticClass:"userDate"},[i("div",{staticClass:"name"},[e._v(e._s(t.has_one_withdraw_member.nickname))]),i("div",{staticClass:"time"},[e._v(e._s(t.created_at))])])]):e._e(),i("div",{staticClass:"right"},[e._v(e._s(t.withdraw_quota))])])])})):e._e(),t.checked&&t.page<t.last_page?i("div",{staticClass:"moreTxt",on:{click:function(i){return i.stopPropagation(),e.moreLogTap(t,a)}}},[e._v("加载更多")]):e._e()],2)})):e._e(),1==e.active?i("div",{staticClass:"lis"},e._l(e.list,(function(t,a){return i("div",{key:a,staticClass:"record"},[i("div",{staticClass:"left"},[i("div",{staticClass:"recordTxt"},[e._v(e._s(t.type_name))]),i("div",{staticClass:"recordTitle"},[e._v("变动前"+e._s(t.before_quota)+",变动后"+e._s(t.after_quota))])]),i("div",{staticClass:"right"},[e._v(e._s(t.created_at))])])})),0):e._e()],2)],1)},s=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"iconImg"},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/supportCenter%2F%E7%BB%84%209%402x.png",alt:""}})])}],o=(i("a9e3"),i("99af"),i("ac0d")),n={mixins:[o["a"]],data:function(){return{active:0,info:[],list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getUser()},methods:{navChange:function(e){this.active=e,this.init(),this.getData()},init:function(){this.list=[],this.page=1,this.total_page=0},checkTap:function(e,t){e.checked?(this.list[t].checked=!1,this.$set(this.list,t,this.list[t])):this.getDaysLog(e.days,t)},getDaysLog:function(e,t){var i=this;$http.post("plugin.support-center.frontend.write-off-log.get-write-off-log",{days:e},"加载中").then((function(e){1===e.result&&(i.list[t].log=e.data.data,i.list[t].page=e.data.current_page,i.list[t].last_page=e.data.last_page,i.list[t].checked=!0,i.$set(i.list,t,i.list[t]))})).catch((function(e){}))},getData:function(){var e=this,t="",i={page:this.page};t=0==this.active?"plugin.support-center.frontend.write-off-log.get-write-off-log-to-days":"plugin.support-center.frontend.write-off-log.get-quota-log",$http.post(t,i).then((function(t){1===t.result&&(e.list=t.data.data,e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0))})).catch((function(e){}))},moreLogTap:function(e,t){var i=this;if(e.checked||!(e.page>=e.last_page)){var a=Number(e.page)+1;$http.post("plugin.support-center.frontend.write-off-log.get-write-off-log",{days:e.days,page:a},"加载中").then((function(e){1===e.result&&(i.list[t].log=i.list[t].log.concat(e.data.data),i.list[t].page=e.data.current_page,i.list[t].last_page=e.data.last_page,i.list[t].checked=!0,i.$set(i.list,t,i.list[t]))})).catch((function(e){}))}},getMoreData:function(){var e=this,t="";t=0==this.active?"plugin.support-center.frontend.write-off-log.get-write-off-log-to-days":"plugin.support-center.frontend.write-off-log.get-quota-log",this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get(t,{page:this.page},"加载中").then((function(t){if(e.isLoadMore=!0,1!==t.result)return e.page=e.page-1,void(e.isLoadMore=!1);var i=t.data.data;e.list=e.list.concat(i)}),(function(e){})))},getUser:function(){var e=this;$http.post("plugin.support-center.frontend.write-off-log.get-member-info",{}).then((function(t){1===t.result&&(e.info=t.data,e.fun.setWXTitle(t.data.plugin_name),e.getData())})).catch((function(e){}))}}},r=n,l=(i("cb53"),i("2877")),c=Object(l["a"])(r,a,s,!1,null,"5c9f7e98",null);t["default"]=c.exports},"5d64":function(e,t,i){var a=i("9860");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var s=i("499e").default;s("00d4bba9",a,!0,{sourceMap:!1,shadowMode:!1})},9860:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'.moreTxt[data-v-5c9f7e98]{color:#999;margin-bottom:1rem;text-align:center}.bg_Top[data-v-5c9f7e98]{height:7.34rem;padding:0 .87rem;-webkit-box-sizing:border-box;box-sizing:border-box;background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/supportCenter%2Fbg_help%402x.png);background-size:100% 100%;background-repeat:no-repeat;padding-top:1.25rem}.bg_Top .memberBox[data-v-5c9f7e98]{-ms-flex-align:center}.bg_Top .memberBox[data-v-5c9f7e98],.bg_Top .memberBox .user[data-v-5c9f7e98]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.bg_Top .memberBox .user[data-v-5c9f7e98]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.bg_Top .memberBox .user .name[data-v-5c9f7e98]{width:100%;font-size:1.13rem;font-weight:600;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg_Top .memberBox .user .Id[data-v-5c9f7e98]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.bg_Top .memberBox .user .Id .iconImg[data-v-5c9f7e98]{padding:0 .19rem;border-radius:.94rem;background:#f0c5b6;margin-right:.19rem}.bg_Top .memberBox .user .Id .iconImg img[data-v-5c9f7e98]{width:.88rem;height:.69rem}.bg_Top .memberBox .user .Id .txt[data-v-5c9f7e98]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg_Top .memberBox .image[data-v-5c9f7e98]{width:3.5rem;height:3.5rem;background:#b9b9b9;border-radius:100%;margin-right:.53rem}.bg_Top .memberBox .image img[data-v-5c9f7e98]{width:100%;height:100%;border-radius:100%}.record[data-v-5c9f7e98]{background:#fff;padding:.94rem 0 .63rem 0;margin:0 .63rem;height:4.03rem;border-bottom:1px solid #ececec;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}.record .left[data-v-5c9f7e98]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-align:left}.record .left .recordTxt[data-v-5c9f7e98]{font-size:.94rem;font-weight:600}.record .left .recordTitle[data-v-5c9f7e98],.record .left .recordTxt[data-v-5c9f7e98]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record .left .recordTitle[data-v-5c9f7e98],.record .right[data-v-5c9f7e98]{font-size:.75rem}.record .right[data-v-5c9f7e98]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;font-weight:400;color:#7e7e7e}.record[data-v-5c9f7e98]:last-child{border-bottom:none}.userInfo[data-v-5c9f7e98]{background:#fff;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.userInfo[data-v-5c9f7e98],.userInfo .userLis[data-v-5c9f7e98]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.userInfo .userLis[data-v-5c9f7e98]{margin:0 .63rem;height:4.13rem;border-bottom:1px solid #ececec;-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}.userInfo .userLis .left[data-v-5c9f7e98]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:55%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.userInfo .userLis .left .image[data-v-5c9f7e98]{width:2.25rem;height:2.25rem;background:#c8c8c8;border-radius:50%;margin-right:.31rem}.userInfo .userLis .left .image img[data-v-5c9f7e98]{width:100%;height:100%;border-radius:50%}.userInfo .userLis .left .userDate[data-v-5c9f7e98]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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;text-align:left;overflow:hidden;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.userInfo .userLis .left .userDate .name[data-v-5c9f7e98]{font-size:.81rem;color:#2c2c2c;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.userInfo .userLis .left .userDate .time[data-v-5c9f7e98]{font-size:.75rem;font-weight:400;color:#7e7e7e}.userInfo .userLis .right[data-v-5c9f7e98]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;max-width:45%;height:2.25rem;font-weight:600;font-size:.81rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.userInfo .userLis[data-v-5c9f7e98]:last-child{border-bottom:none}.list[data-v-5c9f7e98]{margin:0 .75rem;padding-bottom:3rem}.list .lis[data-v-5c9f7e98]{background:#fff;overflow:hidden}.list .lis[data-v-5c9f7e98],.list .lis .verification[data-v-5c9f7e98]{border-radius:.63rem;-webkit-box-sizing:border-box;box-sizing:border-box}.list .lis .verification[data-v-5c9f7e98]{margin:0 .63rem;background:#f7f7f7;height:2.25rem;padding-left:.63rem;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}.list .lis .verification .row[data-v-5c9f7e98]{font-size:.69rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;color:#7e7e7e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list .lis .verification .row span[data-v-5c9f7e98]{font-size:.94rem;color:#000}.list .lis .dateIs[data-v-5c9f7e98]{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;padding:0 .81rem;margin-bottom:.59rem}.list .lis .dateIs .left[data-v-5c9f7e98]{font-size:.88rem;font-weight:600}.list .lis .dateIs .right[data-v-5c9f7e98]{color:#7e7e7e}.remainingUndrawn[data-v-5c9f7e98]{padding:0 1rem 0 .5rem;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:-1.65rem}.remainingUndrawn .nav[data-v-5c9f7e98]{height:3.22rem;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-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;font-size:.94rem;color:#999}.remainingUndrawn .nav .left[data-v-5c9f7e98],.remainingUndrawn .nav .right[data-v-5c9f7e98]{position:relative;line-height:1.13rem;font-size:.94rem;cursor:pointer}.remainingUndrawn .nav .isact[data-v-5c9f7e98]{color:#fe5e56}.remainingUndrawn .nav .act[data-v-5c9f7e98]{position:absolute;content:"";width:.94rem;height:.19rem;left:1.41rem;bottom:-.3rem;background:#fe5e56;border-radius:.94rem}.remainingUndrawn .remainingUndrawn_box[data-v-5c9f7e98]{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:.87rem .94rem .87rem .81rem;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:.63rem;background:#fff}.remainingUndrawn .remainingUndrawn_box .left[data-v-5c9f7e98]{font-size:.75rem}.remainingUndrawn .remainingUndrawn_box .right[data-v-5c9f7e98]{font-size:1.13rem}.remainingUndrawn .remainingUndrawn_box .right span[data-v-5c9f7e98]{font-size:.75rem}',""]),e.exports=t},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var a=document.documentElement,s=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return a&&a.scrollTop?e=a.scrollTop:s&&(e=s.scrollTop),e},getClientHeight:function(){var e=0;return e=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),e},getScrollHeight:function(){return Math.max(s.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},cb53:function(e,t,i){"use strict";i("5d64")}}]);