Commit 669102f5 by 王志慧

commit

1 parent 9a5a959e
...@@ -183,11 +183,11 @@ export default { ...@@ -183,11 +183,11 @@ export default {
Toast('尚未添加好友,请尝试添加客户为好友') Toast('尚未添加好友,请尝试添加客户为好友')
} }
// 如果没有手机号,跳转到添加好友页面 // 如果没有手机号,跳转到添加好友页面
this.$nextTick(() => { setTimeout(() => {
window.$wx.navigateToAddCustomer().then(res => { window.$wx.navigateToAddCustomer().then(res => {
// console.log(res) // console.log(res)
}) })
}) }, 1000)
return return
} }
......
...@@ -140,9 +140,9 @@ export default { ...@@ -140,9 +140,9 @@ export default {
solicitApi.createdOcmarketing(params).then(res => { solicitApi.createdOcmarketing(params).then(res => {
if (res) { if (res) {
Toast('营销活动已创建,请及时在「企业微信-群发助手」中确认发送') Toast('营销活动已创建,请及时在「企业微信-群发助手」中确认发送')
this.$nextTick(() => { setTimeout(() => {
this.$router.go(-1) this.$router.go(-1)
}) }, 1000)
} else { } else {
Notify('营销活动创建失败') Notify('营销活动创建失败')
} }
...@@ -154,7 +154,6 @@ export default { ...@@ -154,7 +154,6 @@ export default {
}, },
// 表情包转化图片 // 表情包转化图片
getEmoImg() { getEmoImg() {
console.log('jinalile')
const attContent = this.marketingDetails.attachmentList[0].attContent const attContent = this.marketingDetails.attachmentList[0].attContent
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
...@@ -167,7 +166,6 @@ export default { ...@@ -167,7 +166,6 @@ export default {
} }
return `<img class="emo_img" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">` return `<img class="emo_img" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
}) })
console.log(htm)
this.marketingDetails.attachmentList[0].attContent = htm this.marketingDetails.attachmentList[0].attContent = htm
this.$set(this.marketingDetails.attachmentList, 0, { this.$set(this.marketingDetails.attachmentList, 0, {
attType: 1, attType: 1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!