bztang-admin/addons/yun_shop/static/app/js/chunk-93d3653a.7c7f0294.js

1 line
5.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-93d3653a","chunk-2d0d83d6"],{"710e":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,"#gdt_reward .member-box[data-v-cd0d1234]{padding:1.25rem;width:100%;background-color:#f15353;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#gdt_reward .member-box .avatar[data-v-cd0d1234]{width:3rem;height:3rem;border-radius:50%;margin-right:1rem}#gdt_reward .member-box .user[data-v-cd0d1234]{text-align:left;-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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#gdt_reward .block-box[data-v-cd0d1234],#gdt_reward .member-box .user[data-v-cd0d1234]{color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#gdt_reward .block-box[data-v-cd0d1234]{height:2.5rem;line-height:2.5rem;padding:0 .875rem;background-color:rgba(241,83,83,.7);-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#gdt_reward .content .li[data-v-cd0d1234]{padding:.75rem;margin:.75rem .625rem 0;background:#fff;font-size:12px;border-radius:.5rem}#gdt_reward .content .li .col[data-v-cd0d1234]{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}#gdt_reward .content .li .col .right[data-v-cd0d1234]{color:#000}#gdt_reward .content .li .col .red[data-v-cd0d1234]{color:#f15353;font-size:14px}#gdt_reward .content .li .col .time[data-v-cd0d1234]{color:#999}",""]),t.exports=a},"79db":function(t,a,e){t.exports=e.p+"static/app/img/empty-image-search.ef236a93.png"},8865:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{attrs:{id:"gdt_reward"}},[e("c-title",{attrs:{hide:!1,text:"广告返利"}}),e("div",{staticClass:"member-box"},[e("img",{staticClass:"avatar",attrs:{src:t.info.member&&t.info.member.avatar_image,alt:""}}),e("div",{staticClass:"user"},[e("div",{staticClass:"user-id"},[t._v("ID"+t._s(t.info.member&&t.info.member.uid))]),e("div",{staticClass:"user-id"},[t._v("昵称:"+t._s(t.info.member&&t.info.member.nickname))])])]),e("div",{staticClass:"block-box"},[e("div",[t._v("累计分红")]),e("div",[t._v(t._s(t.$i18n.t("money"))+" "+t._s(t.info.total_amount))])]),e("van-tabs",{attrs:{sticky:"",swipeable:""},on:{click:t.handleClick},model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},t._l(t.titleArr,(function(a,i){return e("van-tab",{key:i,attrs:{title:a}},[t.dataList[i]&&!t.fun.isTextEmpty(t.dataList[i].list)?e("div",{staticClass:"content"},t._l(t.dataList[i].list,(function(a,i){return e("div",{key:i,staticClass:"li"},[e("div",{staticClass:"col"},[e("div",{staticClass:"time"},[t._v(t._s(a.created_at||""))]),e("div",{staticClass:"red right"},[t._v(t._s(t.$i18n.t("money"))+t._s(a.dividend_amount||"--"))])]),e("div",{staticClass:"col",staticStyle:{"padding-top":"0.375rem"}},[e("div",{staticClass:"left"},[t._v("奖励结算"+t._s(a.point_name||"积分")+""+t._s(a.point||""))]),e("div",{staticClass:"right"},[t._v("奖励比例:"+t._s(a.rate||""))])])])})),0):t._e(),t.dataList[i]?e("yz-blank",{attrs:{datas:t.dataList[i].list,text:"暂无数据"}}):t._e()],1)})),1)],1)},s=[],d=(e("d3b7"),e("159b"),e("99af"),e("eb17")),o={data:function(){return{info:{member:{},total_amount:"--"},activeName:0,titleArr:["奖励记录"],dataList:[],plugin_name:"",isLoadMore:!0}},activated:function(){this.init()},components:{yzBlank:d["default"]},computed:{},mounted:function(){},methods:{init:function(){this.dataList=[],this.isLoadMore=!0,this.setNewArr()},setNewArr:function(){var t=this;this.titleArr.forEach((function(a,e){t.dataList.push({isLoadMore:!0,page:1,total_page:0,list:[]})})),this.handleClick()},handleClick:function(){var t=this;this.fun.isTextEmpty(this.dataList[this.activeName].list)?$http.post("plugin.qq-advertise.frontend.reward",{page:1},"").then((function(a){1===a.result?(t.isLoadMore=!0,t.info.member=a.data.member,t.info.total_amount=a.data.total_amount,t.$set(t.dataList[t.activeName],"isLoadMore",!0),t.$set(t.dataList[t.activeName],"total_page",a.data.last_page),t.dataList[t.activeName].total_page||(t.$set(t.dataList[t.activeName],"total_page",0),t.dataList[t.activeName].total_page=0),t.$set(t.dataList[t.activeName],"list",a.data.data)):t.$dialog.alert({message:a.msg})})).catch((function(t){})):this.isLoadMore=this.dataList[this.activeName].isLoadMore},getMoreData:function(){var t=this;if(this.dataList[this.activeName].isLoadMore=!1,this.isLoadMore=!1,!(this.dataList[this.activeName].page>=this.dataList[this.activeName].total_page)){var a={};this.dataList[this.activeName].page=this.dataList[this.activeName].page+1,a.page=this.dataList[this.activeName].page,$http.get("plugin.merchant-meeting.frontend.index.bonus-statistic",a,"加载中").then((function(a){if(t.isLoadMore=!0,t.dataList[t.activeName].isLoadMore=!0,1===a.result){var e=a.data.data;t.dataList[t.activeName].list=t.dataList[t.activeName].list.concat(e)}else t.dataList[t.activeName].page=t.dataList[t.activeName].page-1,t.dataList[t.activeName].isLoadMore=!1,t.isLoadMore=!1}),(function(t){}))}}}},n=o,r=(e("a6c7"),e("2877")),c=Object(r["a"])(n,i,s,!1,null,"cd0d1234",null);a["default"]=c.exports},a51c:function(t,a,e){var i=e("710e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("499e").default;s("664c00bd",i,!0,{sourceMap:!1,shadowMode:!1})},a6c7:function(t,a,e){"use strict";e("a51c")}}]);