var freePage = new Vue({ el: "#freePage", mixins: [cmSysVitaMixins], data: { pageId:0, bgClass:'', pageInfo:{} }, computed: { }, methods: { getFloorDatas: function () { var _self = this; if(_self.pageId ===0){return;} PagesApi.GetPageFree({id: _self.pageId}, function (response) { if (response.code === 0) { _self.pageInfo = response.data; _self.cmSysParams.pageLabel = _self.pageInfo.contentLabel; if( _self.pageInfo.backgroundImageWay == 1){ _self.bgClass = 'bg-repeat'; }else{ _self.bgClass = 'bg-cover'; } } else { CAIMEI.Alert(response.msg, '确定', false); } }); }, }, created: function () { this.cmSysParams.pageType = 13; }, mounted: function () { var _self = this; var paramsArr = window.location.pathname.split(".")[0].split("-"); this.pageId = paramsArr.length>=1 ? paramsArr[1] : ''; this.getFloorDatas(); if (!isPC) { var scale = $(window).width()/1184; var beforeHeight = $(".freePage").height(); $(".freePage").css({ "width": "1184px", "height": beforeHeight, "transform": "scale("+scale+")", "transform-origin": "0 0" }); } } });