Commit 84220c8b by zhangmeng

修改undefined

parent 81ab250f
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/marketing/static/css/app.ebe8f6f0c892db6163158a2766f2ee81.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/marketing/static/js/manifest.0a85049e489e85ac5f0a.js></script><script type=text/javascript src=/marketing/static/js/vendor.36a2ac04287db4a87222.js></script><script type=text/javascript src=/marketing/static/js/app.fa40a6d65a718cb487d9.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/marketing/static/css/app.47482f5f85e7136188e04495bc84a042.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/marketing/static/js/manifest.0a85049e489e85ac5f0a.js></script><script type=text/javascript src=/marketing/static/js/vendor.36a2ac04287db4a87222.js></script><script type=text/javascript src=/marketing/static/js/app.8363f4973edba5b7f859.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -248,11 +248,8 @@
},
getAllMytext(){ // 文本框输入失去焦点时获得输入框的内容
console.log(this.$refs.myTextarea.innerHTML);
this.textarea = this.$refs.myTextarea.innerHTML.replace(/<\/div>|&nbsp;/g,'').replace(/<div>/g,'<br>').split('<br>').filter(v => v).join('<br>');
this.textarea = this.$refs.myTextarea.innerHTML.replace(/<\/div>|&nbsp;/g,'').replace(/<div>/g,'<br>').split('<br>').filter(v => v).join('<br>').replace('undefined','');
console.log(this.textarea);
// this.textarea = this.$refs.myTextarea.innerHTML;
this.xcxUrlObj.textarea = this.textarea;
var reg = /<a\s+href=['"]([^"]*)['"].*?[^>]*>(.*?)<\/a>/g;
......
......@@ -172,6 +172,7 @@ export default {
// 微信文本
getWxText(data){
this.info.content = data.textarea;
console.log(data)
this.info.imageMediaId = data.imageMediaId;
},
async getWechatMarketingDetail() {
......@@ -279,11 +280,12 @@ export default {
this.$tips({type:'warning',message:'请选择图片'});
return;
}
// if (this.info.memberType) {
// if (!this.info.openIds) {
// this.$tips({type:'warning',message:'指定会员不能为空'});
// return;
// }
if (this.info.memberType) {
if (!this.info.openIds) {
this.$tips({type:'warning',message:'指定会员不能为空'});
return;
}
}
// } else {
// if (!this.info.memberSearchDTO) {
// this.$tips({type:'warning',message:'会员筛选不能为空'});
......
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