|
@@ -330,7 +330,7 @@ export default {
|
330
|
330
|
this.$refs.conTwo.getFinallyAttach(type)
|
331
|
331
|
})
|
332
|
332
|
},
|
333
|
|
- createFriendsCircleSend (attachments) {//通知成员发送
|
|
333
|
+ async createFriendsCircleSend (attachments) {//通知成员发送
|
334
|
334
|
if (this.fc_type == '') {
|
335
|
335
|
this.$message({
|
336
|
336
|
message: '请选择朋友圈类型!',
|
|
@@ -396,11 +396,14 @@ export default {
|
396
|
396
|
} else if (msgName == 'link') {
|
397
|
397
|
if (attachments[0].link.media_id == '' || attachments[0].link.url == '') {
|
398
|
398
|
this.$message({
|
399
|
|
- message: '视频为必传内容!',
|
|
399
|
+ message: '链接为必传内容!',
|
400
|
400
|
type: "warning"
|
401
|
401
|
})
|
402
|
402
|
return
|
403
|
403
|
}
|
|
404
|
+
|
|
405
|
+ const isTrue = await this.handleConfirmLink(attachments[0].link.url)
|
|
406
|
+ if (!isTrue) return
|
404
|
407
|
} else if (msgName == 'radar') {
|
405
|
408
|
if (attachments[0].radar.radar_id == '') {
|
406
|
409
|
this.$message({
|
|
@@ -445,7 +448,6 @@ export default {
|
445
|
448
|
}
|
446
|
449
|
send_time = this.send_time.date + ' ' + this.send_time.time
|
447
|
450
|
}
|
448
|
|
-
|
449
|
451
|
this.$loading(this.$loadingConfig)
|
450
|
452
|
this.$axios.post(this.URL.BASEURL + this.URL.createFriendsCircleSend, {
|
451
|
453
|
rule_id: this.is_copy ? '' : this.rule_id ? this.rule_id : '',
|
|
@@ -521,6 +523,28 @@ export default {
|
521
|
523
|
this.customerMatchCountLoading = false
|
522
|
524
|
});
|
523
|
525
|
},
|
|
526
|
+
|
|
527
|
+ handleConfirmLink(link) {
|
|
528
|
+ return new Promise(async (resolve, reject) => {
|
|
529
|
+ let num = link.split('?').length;
|
|
530
|
+ if ( num>2 ) {// 有两个问号
|
|
531
|
+ try {
|
|
532
|
+ await this.$confirm(`请确认链接地址:${link}`, '提示', {
|
|
533
|
+ closeOnClickModal:false,
|
|
534
|
+ type: 'warning',
|
|
535
|
+ showCancelButton: true,
|
|
536
|
+ confirmButtonText: '确认无误',
|
|
537
|
+ cancelButtonText: '去修改',
|
|
538
|
+ })
|
|
539
|
+ resolve(true)
|
|
540
|
+ } catch (error) {
|
|
541
|
+ resolve(false)
|
|
542
|
+ }
|
|
543
|
+ } else {
|
|
544
|
+ resolve(true)
|
|
545
|
+ }
|
|
546
|
+ })
|
|
547
|
+ }
|
524
|
548
|
}
|
525
|
549
|
}
|
526
|
550
|
</script>
|