new Vue({ el: '#app', data:{ guidanceData:"" }, methods:{ }, mounted: function(){ var vm = this var Request = GetRequest(); var id = Request["id"]; recordAPI.guidanceDetail({id:id}).then(function(res){ if(res.status == 200){ var data = res.data; var regN = /\n/g; var regRN = /\r\n/g; var content = data.content.replace(/ /g, " "); content = content.replace(regN,"
"); var p = "

"+content+"

", images = "", imagesList = []; if(data.images && data.images.length > 0){ imagesList = data.images.split(","); } for(i=0; i"; } vm.guidanceData = p+images }else{ top.toastr.error(res.msg) } }) var divH = $(".layui-layer-content",parent.document).height(); $(".pc-container").slimScroll({ height: divH,color: '#666'}); $(".mobile-text").slimScroll({ height: '421px',color: '#666'}); }, })