Commit 1ff75eec by 庄冰

uies

parent 2894fc09
......@@ -30,7 +30,7 @@ class Template extends APIBase {
async opActionProcess(pobj, action_type, req) {
var opResult = null;
var self = this;
pobj.clientIp = req.xRealIp;
pobj.clientIp = req.clientIp;
pobj.xctx = req.xctx;
switch (action_type) {
case "editTemplateContent"://修改模板内容
......
......@@ -12,7 +12,9 @@ class TemplatelinkService extends ServiceBase {
this.launchtypeDao = system.getObject("db.configmag.launchtypeDao");
this.marketingsubjectDao = system.getObject("db.configmag.marketingsubjectDao");
this.redisClient = system.getObject("util.redisClient");
this.execClient = system.getObject("util.execClient");
this.templateLinkInfoCache={};
this.browsingRecordsLogUrl = settings.browsingRecordsLogUrl();
}
/**
* 获取模板链接配置参数
......@@ -489,9 +491,34 @@ class TemplatelinkService extends ServiceBase {
marketing_subject_name:linkinfo.marketing_subject_name,
client_ip:pobj.clientIp
};
this.browsingrecordsDao.create(addObj);//添加链接浏览记录
this.writebrowsingrecords(addObj);
return system.getResultSuccess(rtnObj);
}
//添加链接浏览记录
async writebrowsingrecords(addObj){
try {
// var date = new Date();
// var localeDateString = date .toLocaleDateString();
// var haStr = await sha256(JSON.stringify(addObj));
// shaStr = "browsingrecords_"+localeDateString+"_"+shaStr;
// var rtn = await this.redisClient.get(shaStr);//从redis读取数据
// if(!rtn){
// await this.browsingrecordsDao.create(addObj);//添加链接浏览记录
// this.redisClient.set(shaStr,JSON.stringify(addObj));//从redis读取数据
// }
//await this.browsingrecordsDao.create(addObj);//添加链接浏览记录
//往Es中写入日志
var myDate = new Date();
addObj["created_at"] = myDate.getFullYear()+"-"+(myDate.getMonth()+1)+"-"+myDate.getDate();
addObj["created_year"] = myDate.getFullYear();
addObj["created_month"] =myDate.getMonth()+1;
addObj["created_day"] =myDate.getDate();
await this.execClient.execPostEs(addObj, this.browsingRecordsLogUrl);
} catch (e) {
console.log(e,"writebrowsingrecords++++++++++++++++++++")
}
}
//清除模板链接redis缓存数据
async delRedisInfoByLinkCode(code){
try {
......
......@@ -6,6 +6,8 @@ class ExecClient {
constructor() {
this.cmdPostPattern = "curl -k -H 'Content-type: application/json' -d '{data}' {url}";
this.cmdGetPattern = "curl -G -X GET '{url}'";
this.cmdPostPatternEs = "curl --user admines:adminGSBes. -k -H 'Content-type: application/json' -d '{data}' {url}";
}
async exec(cmd) {
......@@ -33,7 +35,11 @@ class ExecClient {
var result = await this.exec(cmd);
return result;
}
async execPostEs(subData, url) {
let cmd = this.FetchPostCmdEs(subData, url);
var result = await this.exec(cmd);
return result;
}
async execPost2(subData, url) {
let cmd = this.FetchPostCmd(subData, url);
var result = await this.exec2(cmd);
......@@ -69,6 +75,14 @@ class ExecClient {
const {stdout, stderr} = await exec(cmd, options);
return {stdout, stderr};
}
FetchPostCmdEs(subData, url) {
var data = JSON.stringify(subData);
var cmd = this.cmdPostPatternEs.replace(/\{data\}/g,
data).replace(/\{url\}/g, url);
console.log(cmd);
return cmd;
}
}
module.exports = ExecClient;
......
......@@ -31,6 +31,9 @@ var settings = {
return "http://logs-sytxpublic-msgq-service/api/queueAction/producer/springBoard";
}
},
browsingRecordsLogUrl: function () {
return "http://43.247.184.94:7200/marketplat_browsingrecords_log/_doc?pretty";
},
templateLinkUrl: function () {
if (this.env == "dev") {
return "http://192.168.200.208:8081/tfhref";
......
.tfhref[data-v-3fbf4483]{width:100%;height:100%;overflow:auto}.tfhref .tfhref_wrapper[data-v-3fbf4483]{display:-webkit-box;display:-ms-flexbox;display:flex}.tfhref .kefu[data-v-3fbf4483]{position:fixed;bottom:0;right:0;z-index:999;width:500px;height:514px;background:#fff;padding:30px 0 0 0;border-radius:10px}.tfhref .kefu .kefu_close[data-v-3fbf4483]{width:30px;height:30px;background:#fff;border-radius:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:20px;cursor:pointer;position:absolute;top:0;right:0}.tfhref .iframeIm[data-v-3fbf4483]{width:100%;height:100%}.test-1[data-v-3fbf4483]::-webkit-scrollbar{width:2px;height:1px}.test-1[data-v-3fbf4483]::-webkit-scrollbar-thumb{background:#535353}.test-1[data-v-3fbf4483]::-webkit-scrollbar-thumb,.test-1[data-v-3fbf4483]::-webkit-scrollbar-track{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.test-1[data-v-3fbf4483]::-webkit-scrollbar-track{background:#ededed}
\ No newline at end of file
.tfhref[data-v-4cccc5f2]{width:100%;height:100%;overflow:auto}.tfhref .tfhref_wrapper[data-v-4cccc5f2]{display:-webkit-box;display:-ms-flexbox;display:flex}.tfhref .kefu[data-v-4cccc5f2]{position:fixed;bottom:0;right:0;z-index:999;width:500px;height:514px;background:#fff;padding:30px 0 0 0;border-radius:10px}.tfhref .kefu .kefu_close[data-v-4cccc5f2]{width:30px;height:30px;background:#fff;border-radius:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:20px;cursor:pointer;position:absolute;top:0;right:0}.tfhref .iframeIm[data-v-4cccc5f2]{width:100%;height:100%}
\ No newline at end of file
.tfhref[data-v-20d1a79e]{width:100%;height:100%;overflow:auto}.tfhref .tfhref_wrapper[data-v-20d1a79e]{display:-webkit-box;display:-ms-flexbox;display:flex}.tfhref .kefu[data-v-20d1a79e]{position:fixed;bottom:0;right:0;z-index:999;width:500px;height:514px;background:#fff;padding:30px 0 0 0;border-radius:10px}.tfhref .kefu .kefu_close[data-v-20d1a79e]{width:30px;height:30px;background:#fff;border-radius:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:20px;cursor:pointer;position:absolute;top:0;right:0}.tfhref .iframeIm[data-v-20d1a79e]{width:100%;height:100%}.test-1[data-v-20d1a79e]::-webkit-scrollbar{width:2px;height:1px}.test-1[data-v-20d1a79e]::-webkit-scrollbar-thumb{background:#535353}.test-1[data-v-20d1a79e]::-webkit-scrollbar-thumb,.test-1[data-v-20d1a79e]::-webkit-scrollbar-track{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.test-1[data-v-20d1a79e]::-webkit-scrollbar-track{background:#ededed}
\ No newline at end of file
.tfhref[data-v-2ea3fe64]{width:100%;height:100%;overflow:auto}.tfhref .tfhref_wrapper[data-v-2ea3fe64]{display:-webkit-box;display:-ms-flexbox;display:flex}.tfhref .kefu[data-v-2ea3fe64]{position:fixed;bottom:0;right:0;z-index:999;width:500px;height:514px;background:#fff;padding:30px 0 0 0;border-radius:10px}.tfhref .kefu .kefu_close[data-v-2ea3fe64]{width:30px;height:30px;background:#fff;border-radius:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:20px;cursor:pointer;position:absolute;top:0;right:0}.tfhref .iframeIm[data-v-2ea3fe64]{width:100%;height:100%}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><link rel=stylesheet href=//at.alicdn.com/t/font_1996389_21r6b2e5cqci.css><title></title><link href=/css/chunk-0fb760a4.5c30cb40.css rel=prefetch><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-1e5d1068.310403c7.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-3cca9940.6014cc43.css rel=prefetch><link href=/css/chunk-57e8e985.07ba4220.css rel=prefetch><link href=/css/chunk-60962e1f.73690a1f.css rel=prefetch><link href=/css/chunk-6b77ef07.70decc8e.css rel=prefetch><link href=/css/chunk-6feb7ee6.c24e44b5.css rel=prefetch><link href=/css/chunk-cc77621c.8797b2b5.css rel=prefetch><link href=/js/chunk-0fb760a4.56bf0a09.js rel=prefetch><link href=/js/chunk-14b9857b.ae43b7c1.js rel=prefetch><link href=/js/chunk-1e5d1068.9a156259.js rel=prefetch><link href=/js/chunk-1f11ec07.766ad876.js rel=prefetch><link href=/js/chunk-2c359864.f1f45686.js rel=prefetch><link href=/js/chunk-2d210f61.9e612a95.js rel=prefetch><link href=/js/chunk-3385141a.16d7705b.js rel=prefetch><link href=/js/chunk-3cca9940.f6b28725.js rel=prefetch><link href=/js/chunk-57e8e985.143bdc03.js rel=prefetch><link href=/js/chunk-5a4e13d5.6ebd883c.js rel=prefetch><link href=/js/chunk-60962e1f.166552bd.js rel=prefetch><link href=/js/chunk-6b77ef07.83a59a2a.js rel=prefetch><link href=/js/chunk-6feb7ee6.9d37210b.js rel=prefetch><link href=/js/chunk-780401d4.2594e2ad.js rel=prefetch><link href=/js/chunk-cc77621c.209c3f4a.js rel=prefetch><link href=/js/chunk-d710b6d2.9eff4b27.js rel=prefetch><link href=/css/app.a0c5a847.css rel=preload as=style><link href=/css/chunk-vendors.a0428467.css rel=preload as=style><link href=/js/app.2632a644.js rel=preload as=script><link href=/js/chunk-vendors.ca1af405.js rel=preload as=script><link href=/css/chunk-vendors.a0428467.css rel=stylesheet><link href=/css/app.a0c5a847.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.ca1af405.js></script><script src=/js/app.2632a644.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><link rel=stylesheet href=//at.alicdn.com/t/font_1996389_21r6b2e5cqci.css><title></title><link href=/css/chunk-04497344.c9ab9860.css rel=prefetch><link href=/css/chunk-0fb760a4.5c30cb40.css rel=prefetch><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-3cca9940.6014cc43.css rel=prefetch><link href=/css/chunk-66a9b55d.94a401cd.css rel=prefetch><link href=/css/chunk-6b77ef07.70decc8e.css rel=prefetch><link href=/css/chunk-7505ce5d.94033c22.css rel=prefetch><link href=/css/chunk-cc77621c.8797b2b5.css rel=prefetch><link href=/css/chunk-dec773a2.a32ca30e.css rel=prefetch><link href=/js/chunk-04497344.0f038df0.js rel=prefetch><link href=/js/chunk-0fb760a4.56bf0a09.js rel=prefetch><link href=/js/chunk-14b9857b.ae43b7c1.js rel=prefetch><link href=/js/chunk-1f11ec07.766ad876.js rel=prefetch><link href=/js/chunk-2c359864.f1f45686.js rel=prefetch><link href=/js/chunk-2d210f61.9e612a95.js rel=prefetch><link href=/js/chunk-3385141a.16d7705b.js rel=prefetch><link href=/js/chunk-3cca9940.f6b28725.js rel=prefetch><link href=/js/chunk-5a4e13d5.6ebd883c.js rel=prefetch><link href=/js/chunk-66a9b55d.1884440c.js rel=prefetch><link href=/js/chunk-6b77ef07.83a59a2a.js rel=prefetch><link href=/js/chunk-7505ce5d.4ab44dbf.js rel=prefetch><link href=/js/chunk-780401d4.2594e2ad.js rel=prefetch><link href=/js/chunk-cc77621c.209c3f4a.js rel=prefetch><link href=/js/chunk-d710b6d2.9eff4b27.js rel=prefetch><link href=/js/chunk-dec773a2.732e119f.js rel=prefetch><link href=/css/app.a0c5a847.css rel=preload as=style><link href=/css/chunk-vendors.a0428467.css rel=preload as=style><link href=/js/app.b2b97b2a.js rel=preload as=script><link href=/js/chunk-vendors.ca1af405.js rel=preload as=script><link href=/css/chunk-vendors.a0428467.css rel=stylesheet><link href=/css/app.a0c5a847.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.ca1af405.js></script><script src=/js/app.b2b97b2a.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04497344"],{1732:function(t,e,r){},a3b6:function(t,e,r){"use strict";var n=r("1732"),o=r.n(n);o.a},e1fd:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"tfhref test-1"},[t._l(t.moduleList,(function(e){return r("div",{key:e.id,staticClass:"tfhref_wrapper"},t._l(e.acraoList,(function(t){return r("Acrao",{key:t.id,attrs:{config:t}})})),1)})),r("div",{directives:[{name:"show",rawName:"v-show",value:t.isIframeShow,expression:"isIframeShow"}],staticClass:"kefu"},[r("div",{staticClass:"kefu_close"},[r("Icon",{attrs:{type:"md-close"},on:{click:t.closeKefu}})],1),r("iframe",{staticClass:"iframeIm",attrs:{src:"https://swt.gongsibao.com/LR/Chatpre.aspx?id=MGF22027130&lng=cn",frameborder:"0"}})])],2)},o=[],s=(r("5ab2"),r("e10e"),r("6d57"),r("ce3c")),a=r("759e"),c=r.n(a),i=r("8586"),f=r("6205"),u=r("9f3a");function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){Object(s["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var p={components:{Acrao:i["a"]},data:function(){return{moduleList:[]}},computed:d({},Object(u["e"])({isIframeShow:function(t){return t.template.isIframeShow}})),mounted:function(){this.getTemplateConfig()},methods:d({getTemplateConfig:function(){var t=this,e=this.$route.query.template_code;Object(f["c"])(e).then((function(e){if(200==e.status&&0==e.data.status){var r=e.data.data;r&&r.template_content&&(t.moduleList=JSON.parse(c.a.inflate(r.template_content,{to:"string"})).list,t.moduleList.forEach((function(e){e.id>t.moduleIndex&&(t.moduleIndex=e.id+1)})))}}))},closeKefu:function(){this.setIsIframeShow(!1)}},Object(u["d"])({setIsIframeShow:"template/setIsIframeShow"})),destroyed:function(){this.setIsIframeShow(!1)}},m=p,h=(r("a3b6"),r("9ca4")),b=Object(h["a"])(m,n,o,!1,null,"3fbf4483",null);e["default"]=b.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60962e1f"],{bf42:function(e,t,r){},e1fd:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"tfhref"},[e._l(e.moduleList,(function(t){return r("div",{key:t.id,staticClass:"tfhref_wrapper"},e._l(t.acraoList,(function(e){return r("Acrao",{key:e.id,attrs:{config:e}})})),1)})),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isIframeShow,expression:"isIframeShow"}],staticClass:"kefu"},[r("div",{staticClass:"kefu_close"},[r("Icon",{attrs:{type:"md-close"},on:{click:e.closeKefu}})],1),r("iframe",{staticClass:"iframeIm",attrs:{src:"https://swt.gongsibao.com/LR/Chatpre.aspx?id=MGF22027130&lng=cn",frameborder:"0"}})])],2)},o=[],s=(r("5ab2"),r("e10e"),r("6d57"),r("ce3c")),a=r("759e"),c=r.n(a),i=r("8586"),f=r("6205"),u=r("9f3a");function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){Object(s["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p={components:{Acrao:i["a"]},data:function(){return{moduleList:[]}},computed:d({},Object(u["e"])({isIframeShow:function(e){return e.template.isIframeShow}})),mounted:function(){this.getTemplateConfig()},methods:d({getTemplateConfig:function(){var e=this,t=this.$route.query.template_code;Object(f["c"])(t).then((function(t){if(200==t.status&&0==t.data.status){var r=t.data.data;r&&r.template_content&&(e.moduleList=JSON.parse(c.a.inflate(r.template_content,{to:"string"})).list,e.moduleList.forEach((function(t){t.id>e.moduleIndex&&(e.moduleIndex=t.id+1)})))}}))},closeKefu:function(){this.setIsIframeShow(!1)}},Object(u["d"])({setIsIframeShow:"template/setIsIframeShow"})),destroyed:function(){this.setIsIframeShow(!1)}},m=p,h=(r("e8f5"),r("9ca4")),b=Object(h["a"])(m,n,o,!1,null,"4cccc5f2",null);t["default"]=b.exports},e8f5:function(e,t,r){"use strict";var n=r("bf42"),o=r.n(n);o.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66a9b55d"],{"0b52":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tfhref test-1"},[e._l(e.moduleList,(function(t){return n("div",{key:t.id,staticClass:"tfhref_wrapper"},e._l(t.acraoList,(function(e){return n("Acrao",{key:e.id,attrs:{config:e}})})),1)})),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isIframeShow,expression:"isIframeShow"}],staticClass:"kefu"},[n("div",{staticClass:"kefu_close"},[n("Icon",{attrs:{type:"md-close"},on:{click:e.closeKefu}})],1),n("iframe",{staticClass:"iframeIm",attrs:{src:"https://swt.gongsibao.com/LR/Chatpre.aspx?id=MGF22027130&lng=cn",frameborder:"0"}})])],2)},a=[],i=(n("5ab2"),n("e10e"),n("5748")),o=(n("6d57"),n("6a61"),n("cf7f")),s=n("ce3c"),c=n("759e"),u=n.n(c),f=n("8586"),l=n("9f3a"),d=n("6205");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){Object(s["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h={components:{Acrao:f["a"]},data:function(){return{moduleList:[]}},computed:p({},Object(l["e"])({isIframeShow:function(e){return e.template.isIframeShow}})),mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getModuleList();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:p(p({getModuleList:function(){var e=this,t=this.$route.query,n={channel_code:t.source,business_type_code:t.business,lauch_type_code:t.type,marketing_subject_code:t.for,else_channel_param:t.event,template_id:t.id,device:t.device};Object(d["g"])(n).then((function(t){if(200==t.status&&0==t.data.status){var n=t.data.data;e.setIcon(n.templateinfo),e.setWebKey(n.templateinfo),e.saveLinkinfo(n.linkinfo),n.templateinfo.template_content&&(e.moduleList=JSON.parse(u.a.inflate(n.templateinfo.template_content,{to:"string"})).list,e.moduleList.forEach((function(t){t.id>e.moduleIndex&&(e.moduleIndex=t.id+1)})))}}))},setWebKey:function(e){document.title=e.title;var t=document.getElementsByTagName("head")[0],n=document.createElement("meta"),r=document.createElement("meta"),a=n,i=r;a.setAttribute("name","keywords"),a.setAttribute("content",e.keyword),i.setAttribute("name","description"),i.setAttribute("content",e.describe),t.appendChild(a),t.appendChild(i)},setIcon:function(e){var t=Object(i["a"])(document.getElementsByTagName("link")),n=t.filter((function(e){return"icon"==e.rel}))[0];n.setAttribute("href",e.pic_url)},closeKefu:function(){this.setIsIframeShow(!1)}},Object(l["d"])({setIsIframeShow:"template/setIsIframeShow",saveLinkinfo:"template/saveLinkinfo"})),{},{destroyed:function(){this.setIsIframeShow(!1)}})},b=h,w=(n("8e4a"),n("9ca4")),v=Object(w["a"])(b,r,a,!1,null,"20d1a79e",null);t["default"]=v.exports},"8e4a":function(e,t,n){"use strict";var r=n("d03d"),a=n.n(r);a.a},d03d:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6feb7ee6"],{"0675":function(e,t,n){"use strict";var r=n("6fbb"),a=n.n(r);a.a},"0b52":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tfhref"},[e._l(e.moduleList,(function(t){return n("div",{key:t.id,staticClass:"tfhref_wrapper"},e._l(t.acraoList,(function(e){return n("Acrao",{key:e.id,attrs:{config:e}})})),1)})),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isIframeShow,expression:"isIframeShow"}],staticClass:"kefu"},[n("div",{staticClass:"kefu_close"},[n("Icon",{attrs:{type:"md-close"},on:{click:e.closeKefu}})],1),n("iframe",{staticClass:"iframeIm",attrs:{src:"https://swt.gongsibao.com/LR/Chatpre.aspx?id=MGF22027130&lng=cn",frameborder:"0"}})])],2)},a=[],i=(n("5ab2"),n("e10e"),n("5748")),o=(n("6d57"),n("6a61"),n("cf7f")),s=n("ce3c"),c=n("759e"),u=n.n(c),f=n("8586"),l=n("9f3a"),d=n("6205");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){Object(s["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b={components:{Acrao:f["a"]},data:function(){return{moduleList:[]}},computed:p({},Object(l["e"])({isIframeShow:function(e){return e.template.isIframeShow}})),mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getModuleList();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:p(p({getModuleList:function(){var e=this,t=this.$route.query,n={channel_code:t.source,business_type_code:t.business,lauch_type_code:t.type,marketing_subject_code:t.for,else_channel_param:t.event,template_id:t.id,device:t.device};Object(d["g"])(n).then((function(t){if(200==t.status&&0==t.data.status){var n=t.data.data;e.setIcon(n.templateinfo),e.setWebKey(n.templateinfo),e.saveLinkinfo(n.linkinfo),n.templateinfo.template_content&&(e.moduleList=JSON.parse(u.a.inflate(n.templateinfo.template_content,{to:"string"})).list,e.moduleList.forEach((function(t){t.id>e.moduleIndex&&(e.moduleIndex=t.id+1)})))}}))},setWebKey:function(e){document.title=e.title;var t=document.getElementsByTagName("head")[0],n=document.createElement("meta"),r=document.createElement("meta"),a=n,i=r;a.setAttribute("name","keywords"),a.setAttribute("content",e.keyword),i.setAttribute("name","description"),i.setAttribute("content",e.describe),t.appendChild(a),t.appendChild(i)},setIcon:function(e){var t=Object(i["a"])(document.getElementsByTagName("link")),n=t.filter((function(e){return"icon"==e.rel}))[0];n.setAttribute("href",e.pic_url)},closeKefu:function(){this.setIsIframeShow(!1)}},Object(l["d"])({setIsIframeShow:"template/setIsIframeShow",saveLinkinfo:"template/saveLinkinfo"})),{},{destroyed:function(){this.setIsIframeShow(!1)}})},h=b,w=(n("0675"),n("9ca4")),v=Object(w["a"])(h,r,a,!1,null,"2ea3fe64",null);t["default"]=v.exports},"6fbb":function(e,t,n){}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment