You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
23 KiB
1 line
23 KiB
3 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1ca208b5"],{2996:function(t,i,e){"use strict";e.r(i);var n=e("f478"),o=e("b76a"),a=e.n(o),s=e("877c"),r=e("6980"),c=e("4358"),m=e("2f62"),l=e("c0e9"),d=e.n(l),f=e("873b"),g=e("d708"),h=e("d044"),u=e.n(h);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function C(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?v(Object(e),!0).forEach((function(i){b(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function b(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==p(i)?i:i+""}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}var y={inject:["reload"],name:"index.vue",components:C(C({footPage:c.a,html2canvas:d.a,draggable:a.a},s.a),r.a),filters:{filterTxt:function(t){if(t)return t.substr(0,t.length-1)}},computed:C({},Object(m.e)({titleTxt:function(t){return t.admin.mobildConfig.pageTitle||"首页"},nameTxt:function(t){return t.admin.mobildConfig.pageName},showTxt:function(t){return t.admin.mobildConfig.pageShow},colorTxt:function(t){return t.admin.mobildConfig.pageColor},picTxt:function(t){return t.admin.mobildConfig.pagePic},colorPickerTxt:function(t){return t.admin.mobildConfig.pageColorPicker},tabValTxt:function(t){return t.admin.mobildConfig.pageTabVal},picUrlTxt:function(t){return t.admin.mobildConfig.pagePicUrl},pageFooterType:function(t){return t.admin.mobildConfig.pageFooter.navConfig.tabVal},pageFooterBottom:function(t){return t.admin.mobildConfig.pageFooter.mbConfig.val},defaultArrays:function(t){return t.admin.mobildConfig.defaultArray}})),mixins:[f.a],data:function(){return{BaseURL:g.a.apiBaseURL.replace(/adminapi/,""),qrcodeImg:"",modal:!1,clientHeight:"",rollHeight:"",leftMenu:[],lConfig:[],mConfig:[],rConfig:[],activeConfigName:"",propsObj:{},activeIndex:-100,number:0,pageId:"",pageName:"",pageType:"",category:[],tabList:[{title:"组件库",key:0},{title:"页面链接",key:1}],tabCur:0,urlList:[],footActive:!1,loading:!1,relLoading:!1,isSearch:!1,isTab:!1,isFllow:!1,isComb:!1,isService:!1,visible:!0,diyStatus:0}},created:function(){this.categoryList(),this.getUrlList(),this.pageId=this.$route.query.id,this.pageName=this.$route.query.name,this.pageType=this.$route.query.type,this.lConfig=this.objToArr(s.a)},mounted:function(){var t=this,i={imgList:[e("905e"),e("e03b")],name:"购物车",link:"/pages/order_addcart/order_addcart"};this.$nextTick((function(){t.$store.commit("admin/mobildConfig/FOOTER",{title:"是否自定义",name:i}),t.arraySort(),0!=t.pageId?t.getDefaultConfig():t.showTitle(),t.clientHeight="".concat(document.documentElement.clientHeight)-65.81;var e="".concat(document.documentElement.clientHeight)-180;t.rollHeight=e>650?650:e;var n=t;window.onresize=function(){n.clientHeight="".concat(document.documentElement.clientHeight)-65.81;var t="".concat(document.documentElement.clientHeight)-180;n.rollHeight=t>650?650:t}}))},methods:{preview:function(){this.modal=!0,this.creatQrCode(this.pageId,this.diyStatus),this.routineCode(this.pageId)},routineCode:function(t){var i=this;Object(n.n)(t).then((function(t){i.qrcodeImg=t.data.image})).catch((function(t){i.$Message.error(t)}))},creatQrCode:function(t,i){this.$refs.qrCodeUrl.innerHTML="";var e="";e=i?"
|