bztang-admin/addons/yun_shop/static/app/js/chunk-1de982bb.09333db4.js

1 line
5.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1de982bb"],{"2fe3":function(t,e,a){"use strict";a("fb50")},"3e26":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".answer[data-v-581fc851]{margin:10px 12px 0 12px}.answer .answer-item[data-v-581fc851]{border-radius:10px 10px 10px 10px;background-color:#fff;padding:10px;margin:0 0 10px 0}.answer .answer-item .info[data-v-581fc851]{padding:0 6px 0 0}.answer .answer-item .info-wrap[data-v-581fc851]{-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}.answer .answer-item .info-wrap .info-name[data-v-581fc851]{text-align:left;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;padding-bottom:1px}.answer .answer-item .info-wrap .info-name h3[data-v-581fc851]{font-weight:700;color:#00001c;font-size:14px}.answer .answer-item .info-wrap .info-name p[data-v-581fc851]{font-weight:400;color:#6e6e79;font-size:12px}.answer .answer-item .info-wrap .info-name p span[data-v-581fc851]{color:#f15353}.answer .answer-item .info-wrap .info-time[data-v-581fc851]{color:#6e6e79;font-size:12px}",""]),t.exports=e},"48f2":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("c-title",{attrs:{hide:!1,text:"答题数据"}}),t.answerData.length>0?a("div",{staticClass:"answer"},t._l(t.answerData,(function(e,i){return a("block",{key:i},[a("div",{staticClass:"answer-item flex"},[a("div",{staticClass:"info flex"},[a("van-image",{attrs:{width:"40px",height:"40px",round:"",src:e.member&&e.member.avatar_image}})],1),a("div",{staticClass:"info-wrap flex"},[a("div",{staticClass:"info-name flex-j-sb "},[a("h3",[t._v(t._s(e.member&&e.member.nickname))]),a("p",[t._v("奖励金额:"),a("span",[t._v("¥"+t._s(e.price))])])]),a("div",{staticClass:"info-time flex-a-c flex-j-sb"},[a("p",[t._v(t._s(e.created_at))]),e.status?a("p",[t._v("发放成功")]):a("p",[t._v("发放失败")])])])])])})),1):a("van-empty",{attrs:{description:"暂无数据"}})],1)},n=[],o=a("2909"),r=a("5530"),s=(a("4056"),a("44bf")),c=(a("a9e3"),a("b0c0"),a("99af"),a("ac0d")),l={name:"",components:{VanImage:s["a"]},mixins:[c["a"]],data:function(){return{coursesId:"",chatStrId:"",answerData:[],isLoadMore:!0,total_page:0,page:1}},computed:{},watch:{},methods:{getRecordList:function(){var t=this,e={page:this.page,courses_id:Number(this.coursesId)};("work"===this.fun.getKey("client")||window.localStorage.getItem("client"))&&(e=Object(r["a"])(Object(r["a"])(Object(r["a"])({},this.getConfig),e),{},{chat_str_id:this.chatStrId})),$http.post("plugin.wechat-video-courses.frontend.controller.manage.record.reward",e,"加载中..").then((function(e){if(1==e.result){var a=e.data.reward_list,i=e.basic_info;t.isLoadMore=!0,t.total_page=a.last_page,t.total_page||(t.page=0),t.answerData=a.data,t.$nextTick((function(){var e,a;t.fun.wxShare("",{mid:t.fun.getKeyByMid()},{link:window.location.href,title:null===i||void 0===i||null===(e=i.home.mailInfo)||void 0===e?void 0:e.name,imgUrl:null===i||void 0===i||null===(a=i.home.mailInfo)||void 0===a?void 0:a.logo_url,description:""})}),50)}else t.page=t.page-1,t.isLoadMore=!1,t.$dialog.alert({message:e.msg})}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var e={page:this.page,courses_id:Number(this.coursesId)};("work"===this.fun.getKey("client")||window.localStorage.getItem("client"))&&(e=Object(r["a"])(Object(r["a"])(Object(r["a"])({},this.getConfig),e),{},{chat_str_id:this.chatStrId})),$http.post("plugin.wechat-video-courses.frontend.controller.manage.record.reward",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data,i=a.reward_list.data;t.answerData=[].concat(Object(o["a"])(t.answerData),Object(o["a"])(i))}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}}},created:function(){("work"===this.fun.getKey("client")||window.localStorage.getItem("client"))&&(this.chatStrId=window.localStorage.getItem("chat_id")||""),this.$route.params.id&&(this.coursesId=this.$route.params.id,this.getRecordList())},mounted:function(){},activated:function(){}},d=l,f=d,h=(a("2fe3"),a("2877")),u=Object(h["a"])(f,i,n,!1,null,"581fc851",null);e["default"]=u.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,n=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,i.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(){}}}},fb50:function(t,e,a){var i=a("3e26");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("2bb43521",i,!0,{sourceMap:!1,shadowMode:!1})}}]);