bztang-admin/addons/yun_shop/static/app/js/chunk-ff7998fc.3c04adec.js

1 line
7.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ff7998fc"],{"8ef9":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:"extend_helper_record"}},[a("c-title",{attrs:{hide:!1,text:"推广记录"}}),a("div",{staticClass:"content"},t._l(t.datas,(function(e,i){return a("div",{key:i,staticClass:"item"},[a("div",{staticClass:"top",on:{click:function(a){return t.toPage(e)}}},[a("div",{staticClass:"test"},[a("span",[t._v("推广ID:"+t._s(e.id))]),a("span",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"connect"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.share_img,alt:""}})]),a("div",{staticClass:"text-box"},[a("p",{staticClass:"title"},[t._v(t._s(e.share_title))]),a("p",{staticClass:"discrete"},[t._v(t._s(e.share_desc))])])])]),a("div",{staticClass:"bottom"},[a("div",{staticClass:"times"},[t._v("点击次数 "+t._s(e.browse_amount))]),a("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.fun.getSiteRoot()+"/addons/yun_shop/?menu#/popular_assistant/"+e.id+"?i="+t.fun.getKeyByI()+"&mid="+e.member_id,expression:"fun.getSiteRoot()+'/addons/yun_shop/?menu#/popular_assistant/'+item.id+'?i='+fun.getKeyByI()+'&mid='+item.member_id",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}],staticClass:"copy-btn"},[t._v("复制链接 ")])])])})),0),a("div",{staticClass:"create-btn",class:[3==t.fun.getPhoneEnv()?"pcStyle":""]},[a("div",{staticClass:"btn",on:{click:t.toCreate}},[t._v(" 创建连接 ")])])],1)},o=[],n=(a("e7e5"),a("d399")),r=(a("14d9"),a("99af"),a("6968")),s=a("ac0d"),c={mixins:[s["a"]],data:function(){return{datas:[],loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0}},activated:function(){this.initData(),this.getData()},methods:{initData:function(){this.datas=[],this.loading=!1,this.allLoaded=!1,this.goload=!0,this.isLoadMore=!0,this.page=1,this.total_page=0},onCopy:function(t){Object(n["a"])({message:"复制成功",duration:1e3})},onError:function(t){Object(n["a"])({message:"复制失败",duration:1e3})},toCreate:function(){this.$router.push(this.fun.getUrl("extendHelper"))},toPage:function(t){this.$router.push(this.fun.getUrl("popularAssistant",{id:t.id},{mid:t.member_id}))},getData:function(){var t=this,e={page:1};$http.post("plugin.promotion-assistant.api.assistant.get-list",e," ").then((function(e){1===e.result?(t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.datas=e.data.data):Object(n["a"])(e.msg)}),(function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var e={page:this.page};$http.get("plugin.promotion-assistant.api.assistant.get-list",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.datas=t.datas.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}}},components:{cTitle:r["a"]}},d=c,l=d,p=(a("9c513"),a("2877")),b=Object(p["a"])(l,i,o,!1,null,"7ad6075a",null);e["default"]=b.exports},"9c513":function(t,e,a){"use strict";a("c8ff")},a53c:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#extend_helper_record .content[data-v-7ad6075a]{padding-bottom:4rem}#extend_helper_record .content .item[data-v-7ad6075a]{background-color:#fff;margin-top:.75rem}#extend_helper_record .content .item .top[data-v-7ad6075a]{padding:1rem;border-bottom:1px solid #f3f3f3}#extend_helper_record .content .item .top .test[data-v-7ad6075a]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#666;margin-bottom:1.1875rem}#extend_helper_record .content .item .top .connect[data-v-7ad6075a],#extend_helper_record .content .item .top .test[data-v-7ad6075a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:left}#extend_helper_record .content .item .top .img[data-v-7ad6075a]{-webkit-box-flex:0;-webkit-flex:0 0 5rem;-ms-flex:0 0 5rem;flex:0 0 5rem;height:5rem;margin-right:1rem}#extend_helper_record .content .item .top .img img[data-v-7ad6075a]{width:100%;height:100%;border-radius:8px}#extend_helper_record .content .item .top .text-box[data-v-7ad6075a]{padding:.2rem 0;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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#extend_helper_record .content .item .top .text-box .title[data-v-7ad6075a]{font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#extend_helper_record .content .item .top .text-box .discrete[data-v-7ad6075a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#999}#extend_helper_record .content .item .bottom[data-v-7ad6075a]{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:1rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#extend_helper_record .content .item .bottom .times[data-v-7ad6075a]{color:#ff2c29;font-size:15px;font-weight:700}#extend_helper_record .content .item .bottom .copy-btn[data-v-7ad6075a]{width:4.9375rem;height:1.625rem;background-color:rgba(255,44,41,.1);border-radius:.8125rem;color:#ff2c29}#extend_helper_record .content .item .bottom .copy-btn[data-v-7ad6075a],#extend_helper_record .create-btn[data-v-7ad6075a]{-webkit-box-sizing:border-box;box-sizing:border-box;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-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#extend_helper_record .create-btn[data-v-7ad6075a]{background-color:#fff;height:3.0625rem;position:fixed;bottom:0;left:0;width:100%}#extend_helper_record .create-btn .btn[data-v-7ad6075a]{width:17.5rem;height:2.5rem;background-color:#ff2c29;border-radius:1.25rem;color:#fff;font-size:18px;margin:0 auto;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-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box}#extend_helper_record .create-btn.pcStyle[data-v-7ad6075a]{width:375px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,o=document.body,n={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}},c8ff:function(t,e,a){var i=a("a53c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("6d89df53",i,!0,{sourceMap:!1,shadowMode:!1})}}]);