bztang-admin/addons/yun_shop/static/app/js/chunk-0625294b.7a41d908.js

1 line
5.9 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-0625294b","chunk-2d0d83d6"],{"79db":function(t,e,a){t.exports=a.p+"static/app/img/empty-image-search.ef236a93.png"},"7b2f":function(t,e,a){"use strict";a("8fe4")},"8fe4":function(t,e,a){var i=a("a6fd9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("40e23384",i,!0,{sourceMap:!1,shadowMode:!1})},a6fd9:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".gratitude-ward[data-v-4a6e0e71]{text-align:left}.gratitude-ward[data-v-4a6e0e71] .van-tabs{padding:0 1rem}.gratitude-ward[data-v-4a6e0e71] .van-tabs__nav{border-radius:.4rem .4rem 0 0}.gratitude-ward .full[data-v-4a6e0e71]{width:100%;height:100%}.gratitude-ward .money[data-v-4a6e0e71]{color:#f15656}.gratitude-ward .member[data-v-4a6e0e71]{width:100%;height:7rem;background:#f15656;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;padding:0 1rem;position:relative;margin-bottom:2rem}.gratitude-ward .member .avatar[data-v-4a6e0e71]{width:3rem;height:3rem;border-radius:50%;overflow:hidden;margin:0 1rem}.gratitude-ward .member .info[data-v-4a6e0e71]{color:#fff;line-height:1.5rem}.gratitude-ward .member .info .level[data-v-4a6e0e71]{padding:.1rem .4rem;background:#edab83;border-radius:.4rem}.gratitude-ward .member .total-box[data-v-4a6e0e71]{width:calc(100% - 2rem);position:absolute;bottom:-1.5rem;height:3rem;background:#fff;border-radius:.5rem;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;padding:0 1rem}.gratitude-ward .member .total-box .text[data-v-4a6e0e71]{color:#101010;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.gratitude-ward .list[data-v-4a6e0e71]{width:calc(100% - 2rem);margin:0 auto;background:#fff}.gratitude-ward .list .list-item[data-v-4a6e0e71]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 1rem;line-height:1.8rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid #f9f9f9}.gratitude-ward .list .list-item .details[data-v-4a6e0e71]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.875rem;color:#101010}.gratitude-ward .list .list-item .details .time[data-v-4a6e0e71]{color:#867e7e;font-size:.75rem}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=document.documentElement,s=document.body,r={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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},bbb6: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",{staticClass:"gratitude-ward"},[a("c-title",{attrs:{text:t.titleName}}),a("div",{staticClass:"member"},[a("div",{staticClass:"avatar"},[a("img",{staticClass:"full",attrs:{src:t.info.avatar}})]),a("div",{staticClass:"info"},[a("div",{staticClass:"nickname"},[t._v(t._s(t.info.nickname))]),t.info.level?a("span",{staticClass:"level"},[t._v(t._s(t.info.level))]):t._e()]),a("div",{staticClass:"total-box"},[a("div",{staticClass:"text"},[t._v("累计奖励金额:")]),a("div",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.all||"0.00"))])])]),a("van-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("van-tab",{attrs:{name:"first",title:"奖励记录"}})],1),a("div",{staticClass:"list"},t._l(t.dataList,(function(e,i){return a("div",{key:i,staticClass:"list-item"},[a("div",{staticClass:"details"},[a("div",{staticClass:"ID"},[t._v("ID"+t._s(e.id))]),a("div",{staticClass:"time"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.amounts))])])})),0),a("yz-blank",{attrs:{datas:t.dataList,text:"暂无奖励记录"}}),a("div",{staticStyle:{height:"40rpx"}})],1)},s=[],r=(a("99af"),a("eb17")),n=a("ac0d"),l={mixins:[n["a"]],components:{"yz-blank":r["default"]},data:function(){return{info:{},activeName:"first",dataList:[],isLoadMore:!0,page:1,titleName:"感恩奖"}},created:function(){this.getdata()},methods:{initData:function(){this.isLoadMore=!1,this.page=1,this.dataList=[],this.info={},this.activeName="first",this.titleName="感恩奖"},setTsLoadMore:function(t){this.isLoadMore=!t},getdata:function(){var t=this;this.initData(),$http.post("plugin.distribution-appreciation.frontend.controllers.center.index",{page:1},"正在加载中...").then((function(e){var a=e.result,i=e.msg,s=e.data;a?(t.info=s.info,t.dataList=s.list.data,t.titleName=s.info.plugin_name||"感恩奖",t.fun.setWXTitle(t.titleName),t.setTsLoadMore(t.page==s.list.last_page)):t.$toast(i)}))},getMoreData:function(){var t=this;if(this.isLoadMore){var e=this.page+1;this.isLoadMore=!1,$http.post("plugin.distribution-appreciation.frontend.controllers.center.index",{page:e},"正在加载中...").then((function(a){var i=a.result,s=a.msg,r=a.data;i?(t.page=e,t.dataList=t.dataList.concat(r.list.data),t.setTsLoadMore(t.page==r.list.last_page)):t.$toast(s)}))}else this.$toast("没有更多数据了")}}},o=l,d=(a("7b2f"),a("2877")),c=Object(d["a"])(o,i,s,!1,null,"4a6e0e71",null);e["default"]=c.exports}}]);