bztang-admin/addons/yun_shop/static/app/js/chunk-7fc3caca.573e2a70.js

1 line
9.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7fc3caca"],{"15fd":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("a4d3"),a("b64b");function i(t,e){if(null==t)return{};var a,i,s={},r=Object.keys(t);for(i=0;i<r.length;i++)a=r[i],e.indexOf(a)>=0||(s[a]=t[a]);return s}function s(t,e){if(null==t)return{};var a,s,r=i(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}},2665: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",{attrs:{id:"base-reward-template"}},[a("c-title",{attrs:{hide:!1,text:t.diy_name}}),a("div",{staticClass:"headTop"},[a("div",{staticClass:"himg"},[a("img",{attrs:{src:t.info.member&&t.info.member.avatar,alt:""}})]),a("div",{staticClass:"userBox"},[a("div",{staticClass:"name"},[t._v(t._s(t.info.member&&t.info.member.nickname))]),a("div",[t.info.member&&t.info.member.level_name?a("div",{staticClass:"grade"},[t._v(t._s(t.info.member.level_name))]):t._e()])])]),a("div",{staticClass:"number_List"},t._l(t.info.statistic,(function(e,i){return a("div",{key:i,staticClass:"lis"},[a("div",{staticClass:"top"},[e.isPrice?[t._v("¥")]:t._e(),t._v(t._s(e.value))],2),a("div",{staticClass:"txt"},[t._v(t._s(e.name))])])})),0),a("div",{staticClass:"navList",class:{no_lr_margin:!t.info.member&&!t.info.statistic}},[a("van-tabs",{attrs:{"title-active-color":"#F15353",color:"#F15353",sticky:"",swipeable:"",ellipsis:!1},on:{change:t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.titleArr,(function(e,i){return a("van-tab",{key:i,attrs:{title:e.name}},[t.dataList[i]&&!t.fun.isTextEmpty(t.dataList[i].list)?a("div",t._l(t.dataList[i].list,(function(i,s){return a("div",{key:s,staticClass:"lis"},t._l(e.nodeKey,(function(e){return a("div",{key:e.key,staticClass:"rwo"},[e.class?[a("div",{staticClass:"number_List",staticStyle:{margin:"0",width:"100%"}},t._l(e.node,(function(e,s){return a("div",{key:s,staticClass:"lis",staticStyle:{margin:"0",border:"none"}},[a("div",{staticClass:"top",style:{color:e.color||"#999",fontSize:e.size||"12px"}},[e.leftText?[t._v(t._s(e.leftText))]:t._e(),e.isPrice?[t._v("¥")]:t._e(),t._v(t._s(t.fun.getDeepJsonValue(i,e.key))),e.rightText?[t._v(t._s(e.leftText))]:t._e()],2),e.key_2?a("div",{staticClass:"txt"},[t._v(t._s(t.fun.getDeepJsonValue(i,e.key_2)))]):t._e()])})),0)]:t._l(e.node,(function(e,s){return a("div",{key:e.key,staticClass:"col",class:[s%2===0?"t-l":"t-r",e.class],style:{color:e.color||"#999",fontSize:e.size||"12px"}},[e.leftText?[t._v(t._s(e.leftText))]:t._e(),e.isPrice?[t._v("¥")]:t._e(),t._v(t._s(t.fun.getDeepJsonValue(i,e.key))),e.rightText?[t._v(t._s(e.leftText))]:t._e()],2)}))],2)})),0)})),0):t._e()])})),1)],1),t.finished?a("div",{staticStyle:{color:"#999","padding-bottom":"1rem"}},[t._v("没有更多~")]):t._e()],1)},s=[],r=a("c7eb"),n=a("15fd"),o=a("1da1"),l=(a("d3b7"),a("159b"),a("14d9"),a("99af"),a("ac0d")),d=["tabArr","page_title"],c={mixins:[l["a"]],data:function(){return{activeName:0,info:[],diy_name:"--",finished:!1,isLoadMore:!0}},activated:function(){this.init(),this.getData()},methods:{init:function(){if(!this.$route.query.api)return this.$toast("缺少必要参数");this.dataList=[],this.titleArr=[],this.isLoadMore=!0},getData:function(){var t=this;return Object(o["a"])(Object(r["a"])().mark((function e(){var a,i,s,o,l,c,m;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.get(t.$route.query.api,{},".");case 2:if(a=e.sent,i=a.msg,s=a.result,o=a.data,0!=s){e.next=8;break}return e.abrupt("return",t.$toast(i));case 8:l=o.tabArr,c=o.page_title,m=Object(n["a"])(o,d),t.info=m,t.titleArr=l,t.diy_name=c,t.fun.setWXTitle(t.diy_name),t.setNewArr();case 14:case"end":return e.stop()}}),e)})))()},setNewArr:function(){var t=this;this.titleArr.forEach((function(e,a){t.dataList.push({isLoadMore:!0,page:1,total_page:0,list:[],url:e.url})})),this.handleClick()},handleClick:function(){var t=this;this.fun.isTextEmpty(this.dataList[this.activeName].list)?$http.post(this.dataList[this.activeName].url,{page:1},"").then((function(e){1===e.result?(t.isLoadMore=!0,t.dataList[t.activeName].isLoadMore=!0,t.dataList[t.activeName].total_page=e.data.last_page,t.dataList[t.activeName].total_page||(t.dataList[t.activeName].total_page=0),t.dataList[t.activeName].list=e.data.data,t.$forceUpdate(),0===e.data.data.length&&(t.finished=!0)):t.$dialog.alert({message:e.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)this.finished=!0;else{var e={};this.dataList[this.activeName].page=this.dataList[this.activeName].page+1,e.page=this.dataList[this.activeName].page,$http.get(this.dataList[this.activeName].url,e,"加载中").then((function(e){if(t.isLoadMore=!0,t.dataList[t.activeName].isLoadMore=!0,1===e.result){var a=e.data.data;t.dataList[t.activeName].list=t.dataList[t.activeName].list.concat(a),t.$forceUpdate()}else t.dataList[t.activeName].page=t.dataList[t.activeName].page-1,t.dataList[t.activeName].isLoadMore=!1,t.isLoadMore=!1}),(function(t){}))}}}},m=c,f=(a("f01a"),a("2877")),u=Object(f["a"])(m,i,s,!1,null,"40d5249a",null);e["default"]=u.exports},3739:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".headTop[data-v-40d5249a]{padding:1.5rem .75rem 2.875rem;margin-bottom:1rem;background-color:#ff8924;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.headTop[data-v-40d5249a],.headTop .userBox[data-v-40d5249a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.headTop .userBox[data-v-40d5249a]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:.41rem;text-align:left}.headTop .userBox .name[data-v-40d5249a]{font-size:1rem;color:#fff;font-weight:700}.headTop .userBox .grade[data-v-40d5249a]{display:inline-block;padding:.28rem .63rem;border-radius:.9rem;color:#ff8924;margin-top:.94rem;background-color:#fff}.headTop .himg[data-v-40d5249a]{width:3.44rem;height:3.44rem;border-radius:100%}.headTop .himg img[data-v-40d5249a]{width:100%;height:100%;border-radius:100%}.navList[data-v-40d5249a]{margin:0 .75rem 1rem;border-radius:.31rem;background:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.navList .lis[data-v-40d5249a]{padding:.5rem 0;margin:0 .75rem;border-bottom:1px solid #f2f2f2}.navList .lis .rwo[data-v-40d5249a]{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;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.navList .lis .rwo .col[data-v-40d5249a]{line-height:1.375rem;width:50%;font-size:.75rem;color:#999}.navList .lis .rwo[data-v-40d5249a]:last-child{margin-bottom:0}.t-l[data-v-40d5249a]{text-align:left}.t-r[data-v-40d5249a]{text-align:right}.bold[data-v-40d5249a]{font-weight:700!important}.number_List[data-v-40d5249a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:-2.75rem .75rem 1rem;background:#fff;border-radius:.31rem;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.number_List .lis[data-v-40d5249a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:1rem 0;min-width:33%}.number_List .lis .top[data-v-40d5249a]{font-size:.88rem;color:#3b3b4a;margin-bottom:.375rem;font-weight:700}.number_List .lis .txt[data-v-40d5249a]{color:#aaaab3;font-size:.75rem}.number_List .lis_right[data-v-40d5249a]{border-right:1px solid #e7e7e7}.number_List .lis[data-v-40d5249a]:last-child{border-right:0}.no_lr_margin[data-v-40d5249a]{margin:0 0 1rem}",""]),t.exports=e},8078:function(t,e,a){var i=a("3739");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("6d28930d",i,!0,{sourceMap:!1,shadowMode:!1})},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(){}}}},f01a:function(t,e,a){"use strict";a("8078")}}]);