bztang-admin/addons/yun_shop/static/app/js/chunk-596b3d54.22e89f32.js

1 line
5.6 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-596b3d54"],{"57f9":function(t,e,i){"use strict";i("e224")},"71f1":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"storeManageDiyform"}},[i("c-title",{attrs:{hide:!1,text:"自定义表单"}}),i("div",{staticClass:"list"},t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"clis",staticStyle:{"margin-top":"0.75rem"}},[i("div",{staticClass:"top"},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images%2FstoreManagement%2Fdiyform3@2x.png",alt:""}}),i("div",{staticClass:"title"},[t._v(t._s(e.title))])]),i("div",{staticClass:"bottom"},[i("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyLink(e),expression:"copyLink(item)",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"btn"},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images%2FstoreManagement%2Fdiyform4@2x.png",alt:""}}),i("div",{staticClass:"name"},[t._v("复制链接")])]),i("div",{staticClass:"btn",on:{click:function(i){return t.toEditFrom(e)}}},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/storeManagement/diyform6@2x.png",alt:""}}),i("div",{staticClass:"name"},[t._v("填写表单")])]),i("div",{staticClass:"btn",on:{click:function(i){return t.toGoDetail(e.id)}}},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images%2FstoreManagement%2Fdiyform5@2x.png",alt:""}}),i("div",{staticClass:"name"},[t._v("查看数据")])])])])})),0)],1)},o=[],n=(i("e7e5"),i("d399")),s=(i("14d9"),i("99af"),i("ac0d")),r={mixins:[s["a"]],data:function(){return{list:[],goods_link:"wwww.com",isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getData()},computed:{copyLink:function(t){var e=this;return function(t){var i=e.fun.getKeyByMid();return e.fun.getSiteRoot()+"/addons/yun_shop/?menu#/diyform/"+t.id+"?i="+e.fun.getKeyByI()+"&mid="+i}}},methods:{toEditFrom:function(t){window.location.href=this.copyLink(t)},onCopy:function(){Object(n["a"])({message:"复制成功",position:"bottom",duration:5e3})},toGoDetail:function(t){this.$router.push(this.fun.getUrl("storeManageFormDetail",{form_id:t}))},getMoreData:function(){var t=this;this.isLoadMore=!1;var e={page:this.page};this.page>=this.total_page?this.isLoadMore=!1:(this.isLoading=!0,this.page=this.page+1,e.page=this.page,$http.get("plugin.diyform.api.diy-form.formList",e,"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);t.list=t.list.concat(e.data.data)})).catch((function(t){})))},getData:function(){var t=this;$http.post("plugin.diyform.api.diy-form.formList").then((function(e){1==e.result&&(t.list=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0))})).catch((function(t){}))}}},l=r,c=(i("57f9"),i("2877")),d=Object(c["a"])(l,a,o,!1,null,"ed3e46fa",null);e["default"]=d.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=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 a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}},c6bf:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".list[data-v-ed3e46fa]{margin:.75rem .75rem;padding-bottom:1rem}.list .clis[data-v-ed3e46fa]{margin-bottom:.75rem;padding:.75rem;background:#fff;border-radius:.5rem}.list .clis .top[data-v-ed3e46fa]{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}.list .clis .top img[data-v-ed3e46fa]{width:1.5rem;height:1.5rem;border-radius:50%;margin-right:.25rem}.list .clis .top .title[data-v-ed3e46fa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.list .clis .bottom[data-v-ed3e46fa]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;margin-top:.75rem}.list .clis .bottom[data-v-ed3e46fa],.list .clis .bottom .btn[data-v-ed3e46fa]{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}.list .clis .bottom .btn[data-v-ed3e46fa]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.list .clis .bottom .btn .name[data-v-ed3e46fa]{font-size:.75rem;color:#999;margin-top:.25rem}.list .clis .bottom .btn img[data-v-ed3e46fa]{width:1.5rem;height:1.5rem}",""]),t.exports=e},e224:function(t,e,i){var a=i("c6bf");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("314e5c7a",a,!0,{sourceMap:!1,shadowMode:!1})}}]);