wotokol-edm 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/wotokol-edm.common.js +81 -31
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.css +1 -1
- package/wotokol-edm.css.gz +0 -0
- package/wotokol-edm.umd.js +81 -31
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +3 -3
- package/wotokol-edm.umd.min.js.gz +0 -0
package/package.json
CHANGED
package/wotokol-edm.common.js
CHANGED
|
@@ -108119,8 +108119,8 @@ var detail_component = normalizeComponent(
|
|
|
108119
108119
|
)
|
|
108120
108120
|
|
|
108121
108121
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
108122
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=template&id=
|
|
108123
|
-
var
|
|
108122
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=template&id=094eee0c&scoped=true
|
|
108123
|
+
var write_emailvue_type_template_id_094eee0c_scoped_true_render = function render() {
|
|
108124
108124
|
var _vm = this,
|
|
108125
108125
|
_c = _vm._self._c;
|
|
108126
108126
|
return _c('div', {
|
|
@@ -108406,7 +108406,7 @@ var write_emailvue_type_template_id_0ee74eba_scoped_true_render = function rende
|
|
|
108406
108406
|
staticClass: "operate-wrap"
|
|
108407
108407
|
}, [_c('div', {
|
|
108408
108408
|
staticClass: "operate-left"
|
|
108409
|
-
}, [!_vm.isReply && !_vm.isMultiReply ? _c('div', {
|
|
108409
|
+
}, [!_vm.isReply && !_vm.isMultiReply && _vm.pageFrom != 'AIinvitePlan' ? _c('div', {
|
|
108410
108410
|
staticClass: "set-mail"
|
|
108411
108411
|
}, [_c('div', {
|
|
108412
108412
|
staticClass: "operate-set",
|
|
@@ -108442,7 +108442,7 @@ var write_emailvue_type_template_id_0ee74eba_scoped_true_render = function rende
|
|
|
108442
108442
|
staticClass: "current-email"
|
|
108443
108443
|
}, [_vm._v(" " + _vm._s(_vm.gmailValue) + " ")]) : _c('span', {
|
|
108444
108444
|
staticClass: "current-email"
|
|
108445
|
-
}, [_vm._v(_vm._s(_vm.currentSetEmail))])])], 1)]) : _vm._e(), !_vm.isReply && !_vm.isMultiReply ? _c('div', {
|
|
108445
|
+
}, [_vm._v(_vm._s(_vm.currentSetEmail))])])], 1)]) : _vm._e(), !_vm.isReply && !_vm.isMultiReply && _vm.pageFrom != 'AIinvitePlan' ? _c('div', {
|
|
108446
108446
|
staticClass: "set-nickname"
|
|
108447
108447
|
}, [_c('div', {
|
|
108448
108448
|
staticClass: "set-btn",
|
|
@@ -108852,7 +108852,7 @@ var write_emailvue_type_template_id_0ee74eba_scoped_true_render = function rende
|
|
|
108852
108852
|
}
|
|
108853
108853
|
}) : _vm._e()], 1);
|
|
108854
108854
|
};
|
|
108855
|
-
var
|
|
108855
|
+
var write_emailvue_type_template_id_094eee0c_scoped_true_staticRenderFns = [function () {
|
|
108856
108856
|
var _vm = this,
|
|
108857
108857
|
_c = _vm._self._c;
|
|
108858
108858
|
return _c('div', {
|
|
@@ -108873,7 +108873,7 @@ var write_emailvue_type_template_id_0ee74eba_scoped_true_staticRenderFns = [func
|
|
|
108873
108873
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
108874
108874
|
}];
|
|
108875
108875
|
|
|
108876
|
-
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=template&id=
|
|
108876
|
+
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=template&id=094eee0c&scoped=true
|
|
108877
108877
|
|
|
108878
108878
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.set.difference.v2.js
|
|
108879
108879
|
var esnext_set_difference_v2 = __webpack_require__(3375);
|
|
@@ -120572,6 +120572,11 @@ var settingNickname_component = normalizeComponent(
|
|
|
120572
120572
|
function inviteEmailSave(data) {
|
|
120573
120573
|
return request_post(`/edm/ai/inviteEmail/save`, data);
|
|
120574
120574
|
}
|
|
120575
|
+
|
|
120576
|
+
// 获取邀请AI邮件
|
|
120577
|
+
function inviteEmailGet(taskId) {
|
|
120578
|
+
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
120579
|
+
}
|
|
120575
120580
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
120576
120581
|
|
|
120577
120582
|
|
|
@@ -120860,8 +120865,6 @@ function inviteEmailSave(data) {
|
|
|
120860
120865
|
};
|
|
120861
120866
|
},
|
|
120862
120867
|
created() {
|
|
120863
|
-
console.log(this.$route, 'this.$route');
|
|
120864
|
-
console.log(this.pageFrom, 'pageFrom');
|
|
120865
120868
|
window.onbeforeunload = function (e) {
|
|
120866
120869
|
e = e || window.event;
|
|
120867
120870
|
return this.$t("edm5.v76");
|
|
@@ -120886,6 +120889,9 @@ function inviteEmailSave(data) {
|
|
|
120886
120889
|
bloggerName: item.bloggerName
|
|
120887
120890
|
});
|
|
120888
120891
|
});
|
|
120892
|
+
} else if (this.$route.query.inviteAITaskId) {
|
|
120893
|
+
// 获取自动邀约邮件详情
|
|
120894
|
+
this.getInviteAITaskDetail();
|
|
120889
120895
|
} else {
|
|
120890
120896
|
// 获取发信红人-普通情况
|
|
120891
120897
|
this.getMailBlogger();
|
|
@@ -120905,11 +120911,7 @@ function inviteEmailSave(data) {
|
|
|
120905
120911
|
// 获取 ai 点数
|
|
120906
120912
|
this.getAiPoint();
|
|
120907
120913
|
// 获取发件人昵称
|
|
120908
|
-
|
|
120909
|
-
this.nickName = this.$route.query.sendNickname;
|
|
120910
|
-
} else {
|
|
120911
|
-
this.getNickname();
|
|
120912
|
-
}
|
|
120914
|
+
this.getNickname();
|
|
120913
120915
|
},
|
|
120914
120916
|
mounted() {
|
|
120915
120917
|
this.domTimer = setTimeout(() => {
|
|
@@ -120932,6 +120934,45 @@ function inviteEmailSave(data) {
|
|
|
120932
120934
|
window.onbeforeunload = null;
|
|
120933
120935
|
},
|
|
120934
120936
|
methods: {
|
|
120937
|
+
// 获取自动邀约邮件详情
|
|
120938
|
+
getInviteAITaskDetail() {
|
|
120939
|
+
inviteEmailGet(this.$route.query.inviteAITaskId).then(res => {
|
|
120940
|
+
if (res.code == "0") {
|
|
120941
|
+
this.mailList = res.data.emails.map((item, idx) => {
|
|
120942
|
+
return {
|
|
120943
|
+
...item,
|
|
120944
|
+
id: item.frontId || item.id,
|
|
120945
|
+
fileList: item.attachmentRes || [],
|
|
120946
|
+
// 附件
|
|
120947
|
+
active: idx === 0,
|
|
120948
|
+
// 是否当前选中
|
|
120949
|
+
isAiContent: false,
|
|
120950
|
+
getContent: () => {},
|
|
120951
|
+
getTextContent: () => {},
|
|
120952
|
+
setContent: () => {},
|
|
120953
|
+
insertEditContent: () => {},
|
|
120954
|
+
addEditContent: () => {},
|
|
120955
|
+
dangerouslyInsertHtml: () => {},
|
|
120956
|
+
isEmpty: () => {},
|
|
120957
|
+
getReplyHtml: () => {},
|
|
120958
|
+
setEditorBar: () => {}
|
|
120959
|
+
};
|
|
120960
|
+
});
|
|
120961
|
+
if (!res.data.emails || res.data.emails.length === 0) return false;
|
|
120962
|
+
// 商品卡相关逻辑
|
|
120963
|
+
if (res.data.emails[0] && res.data.emails[0].content) {
|
|
120964
|
+
let productCardStart = res.data.emails[0].content.indexOf("<product-card");
|
|
120965
|
+
let productCardEnd = res.data.emails[0].content.indexOf("</product-card>");
|
|
120966
|
+
let productCardHtml = res.data.emails[0].content.slice(productCardStart, productCardEnd + 15);
|
|
120967
|
+
const cardIdsMatch = productCardHtml.match(/cardids="([^"]+)"/);
|
|
120968
|
+
if (cardIdsMatch && cardIdsMatch[1]) {
|
|
120969
|
+
const cardIds = cardIdsMatch[1]; // 获取匹配到的cardids值
|
|
120970
|
+
this.addProductCard(cardIds.split(","));
|
|
120971
|
+
}
|
|
120972
|
+
}
|
|
120973
|
+
}
|
|
120974
|
+
});
|
|
120975
|
+
},
|
|
120935
120976
|
// 保存AI自动邀约邮件
|
|
120936
120977
|
saveInviteEmail() {
|
|
120937
120978
|
this.isShowSave = false;
|
|
@@ -120939,23 +120980,21 @@ function inviteEmailSave(data) {
|
|
|
120939
120980
|
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
120940
120981
|
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
120941
120982
|
let sendProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
120942
|
-
|
|
120983
|
+
console.log(sendProductCard, 'sendProductCard');
|
|
120984
|
+
|
|
120985
|
+
// 处理邮件
|
|
120943
120986
|
const emails = this.mailList.map(item => {
|
|
120944
|
-
|
|
120945
|
-
|
|
120946
|
-
content = item.getContent() + " " + item.getReplyHtml() + sendProductCard;
|
|
120947
|
-
} else {
|
|
120948
|
-
content = item.getContent() + item.getReplyHtml() + sendProductCard;
|
|
120949
|
-
}
|
|
120987
|
+
console.log(item.getContent(), 'item.getContent');
|
|
120988
|
+
console.log(item.getReplyHtml(), 'item.getReplyHtml');
|
|
120950
120989
|
return {
|
|
120951
120990
|
id: item.id,
|
|
120952
120991
|
subject: item.subject,
|
|
120953
|
-
content:
|
|
120992
|
+
content: item.getContent() + " " + sendProductCard,
|
|
120954
120993
|
attachments: item.fileList
|
|
120955
120994
|
};
|
|
120956
120995
|
});
|
|
120957
120996
|
const inviteParams = {
|
|
120958
|
-
taskId: this.$route.query.
|
|
120997
|
+
taskId: this.$route.query.inviteAITaskId || '',
|
|
120959
120998
|
emails: this.filterEmailId(emails)
|
|
120960
120999
|
};
|
|
120961
121000
|
const isAllSubjectEmpty = this.mailList.every(item => !item.subject);
|
|
@@ -120966,8 +121005,19 @@ function inviteEmailSave(data) {
|
|
|
120966
121005
|
inviteEmailSave(inviteParams).then(res => {
|
|
120967
121006
|
if (res.code == '0') {
|
|
120968
121007
|
const id = res.data;
|
|
120969
|
-
localStorage.setItem('
|
|
120970
|
-
this.$
|
|
121008
|
+
localStorage.setItem('inviteTaskId', id);
|
|
121009
|
+
this.$router.push({
|
|
121010
|
+
path: this.$route.path,
|
|
121011
|
+
query: {
|
|
121012
|
+
...this.$route.query,
|
|
121013
|
+
inviteAITaskId: id
|
|
121014
|
+
}
|
|
121015
|
+
}).catch(err => {
|
|
121016
|
+
if (err.name !== 'NavigationDuplicated') {
|
|
121017
|
+
throw err;
|
|
121018
|
+
}
|
|
121019
|
+
});
|
|
121020
|
+
this.$message.success('邮件添加成功,请回到原窗口继续创建任务!');
|
|
120971
121021
|
}
|
|
120972
121022
|
});
|
|
120973
121023
|
},
|
|
@@ -122144,15 +122194,15 @@ function inviteEmailSave(data) {
|
|
|
122144
122194
|
});
|
|
122145
122195
|
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
122146
122196
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
122147
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
122197
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=094eee0c&prod&lang=scss&scoped=true
|
|
122148
122198
|
// extracted by mini-css-extract-plugin
|
|
122149
122199
|
|
|
122150
|
-
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
122200
|
+
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=style&index=0&id=094eee0c&prod&lang=scss&scoped=true
|
|
122151
122201
|
|
|
122152
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
122202
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=094eee0c&prod&lang=scss
|
|
122153
122203
|
// extracted by mini-css-extract-plugin
|
|
122154
122204
|
|
|
122155
|
-
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
122205
|
+
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=style&index=1&id=094eee0c&prod&lang=scss
|
|
122156
122206
|
|
|
122157
122207
|
;// CONCATENATED MODULE: ./src/package/write-email/index.vue
|
|
122158
122208
|
|
|
@@ -122166,11 +122216,11 @@ function inviteEmailSave(data) {
|
|
|
122166
122216
|
|
|
122167
122217
|
var write_email_component = normalizeComponent(
|
|
122168
122218
|
package_write_emailvue_type_script_lang_js,
|
|
122169
|
-
|
|
122170
|
-
|
|
122219
|
+
write_emailvue_type_template_id_094eee0c_scoped_true_render,
|
|
122220
|
+
write_emailvue_type_template_id_094eee0c_scoped_true_staticRenderFns,
|
|
122171
122221
|
false,
|
|
122172
122222
|
null,
|
|
122173
|
-
"
|
|
122223
|
+
"094eee0c",
|
|
122174
122224
|
null
|
|
122175
122225
|
|
|
122176
122226
|
)
|
package/wotokol-edm.common.js.gz
CHANGED
|
Binary file
|