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/wotokol-edm.css.gz
CHANGED
|
Binary file
|
package/wotokol-edm.umd.js
CHANGED
|
@@ -108129,8 +108129,8 @@ var detail_component = normalizeComponent(
|
|
|
108129
108129
|
)
|
|
108130
108130
|
|
|
108131
108131
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
108132
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
108133
|
-
var
|
|
108132
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
108133
|
+
var write_emailvue_type_template_id_094eee0c_scoped_true_render = function render() {
|
|
108134
108134
|
var _vm = this,
|
|
108135
108135
|
_c = _vm._self._c;
|
|
108136
108136
|
return _c('div', {
|
|
@@ -108416,7 +108416,7 @@ var write_emailvue_type_template_id_0ee74eba_scoped_true_render = function rende
|
|
|
108416
108416
|
staticClass: "operate-wrap"
|
|
108417
108417
|
}, [_c('div', {
|
|
108418
108418
|
staticClass: "operate-left"
|
|
108419
|
-
}, [!_vm.isReply && !_vm.isMultiReply ? _c('div', {
|
|
108419
|
+
}, [!_vm.isReply && !_vm.isMultiReply && _vm.pageFrom != 'AIinvitePlan' ? _c('div', {
|
|
108420
108420
|
staticClass: "set-mail"
|
|
108421
108421
|
}, [_c('div', {
|
|
108422
108422
|
staticClass: "operate-set",
|
|
@@ -108452,7 +108452,7 @@ var write_emailvue_type_template_id_0ee74eba_scoped_true_render = function rende
|
|
|
108452
108452
|
staticClass: "current-email"
|
|
108453
108453
|
}, [_vm._v(" " + _vm._s(_vm.gmailValue) + " ")]) : _c('span', {
|
|
108454
108454
|
staticClass: "current-email"
|
|
108455
|
-
}, [_vm._v(_vm._s(_vm.currentSetEmail))])])], 1)]) : _vm._e(), !_vm.isReply && !_vm.isMultiReply ? _c('div', {
|
|
108455
|
+
}, [_vm._v(_vm._s(_vm.currentSetEmail))])])], 1)]) : _vm._e(), !_vm.isReply && !_vm.isMultiReply && _vm.pageFrom != 'AIinvitePlan' ? _c('div', {
|
|
108456
108456
|
staticClass: "set-nickname"
|
|
108457
108457
|
}, [_c('div', {
|
|
108458
108458
|
staticClass: "set-btn",
|
|
@@ -108862,7 +108862,7 @@ var write_emailvue_type_template_id_0ee74eba_scoped_true_render = function rende
|
|
|
108862
108862
|
}
|
|
108863
108863
|
}) : _vm._e()], 1);
|
|
108864
108864
|
};
|
|
108865
|
-
var
|
|
108865
|
+
var write_emailvue_type_template_id_094eee0c_scoped_true_staticRenderFns = [function () {
|
|
108866
108866
|
var _vm = this,
|
|
108867
108867
|
_c = _vm._self._c;
|
|
108868
108868
|
return _c('div', {
|
|
@@ -108883,7 +108883,7 @@ var write_emailvue_type_template_id_0ee74eba_scoped_true_staticRenderFns = [func
|
|
|
108883
108883
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
108884
108884
|
}];
|
|
108885
108885
|
|
|
108886
|
-
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=template&id=
|
|
108886
|
+
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=template&id=094eee0c&scoped=true
|
|
108887
108887
|
|
|
108888
108888
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.set.difference.v2.js
|
|
108889
108889
|
var esnext_set_difference_v2 = __webpack_require__(3375);
|
|
@@ -120582,6 +120582,11 @@ var settingNickname_component = normalizeComponent(
|
|
|
120582
120582
|
function inviteEmailSave(data) {
|
|
120583
120583
|
return request_post(`/edm/ai/inviteEmail/save`, data);
|
|
120584
120584
|
}
|
|
120585
|
+
|
|
120586
|
+
// 获取邀请AI邮件
|
|
120587
|
+
function inviteEmailGet(taskId) {
|
|
120588
|
+
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
120589
|
+
}
|
|
120585
120590
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
120586
120591
|
|
|
120587
120592
|
|
|
@@ -120870,8 +120875,6 @@ function inviteEmailSave(data) {
|
|
|
120870
120875
|
};
|
|
120871
120876
|
},
|
|
120872
120877
|
created() {
|
|
120873
|
-
console.log(this.$route, 'this.$route');
|
|
120874
|
-
console.log(this.pageFrom, 'pageFrom');
|
|
120875
120878
|
window.onbeforeunload = function (e) {
|
|
120876
120879
|
e = e || window.event;
|
|
120877
120880
|
return this.$t("edm5.v76");
|
|
@@ -120896,6 +120899,9 @@ function inviteEmailSave(data) {
|
|
|
120896
120899
|
bloggerName: item.bloggerName
|
|
120897
120900
|
});
|
|
120898
120901
|
});
|
|
120902
|
+
} else if (this.$route.query.inviteAITaskId) {
|
|
120903
|
+
// 获取自动邀约邮件详情
|
|
120904
|
+
this.getInviteAITaskDetail();
|
|
120899
120905
|
} else {
|
|
120900
120906
|
// 获取发信红人-普通情况
|
|
120901
120907
|
this.getMailBlogger();
|
|
@@ -120915,11 +120921,7 @@ function inviteEmailSave(data) {
|
|
|
120915
120921
|
// 获取 ai 点数
|
|
120916
120922
|
this.getAiPoint();
|
|
120917
120923
|
// 获取发件人昵称
|
|
120918
|
-
|
|
120919
|
-
this.nickName = this.$route.query.sendNickname;
|
|
120920
|
-
} else {
|
|
120921
|
-
this.getNickname();
|
|
120922
|
-
}
|
|
120924
|
+
this.getNickname();
|
|
120923
120925
|
},
|
|
120924
120926
|
mounted() {
|
|
120925
120927
|
this.domTimer = setTimeout(() => {
|
|
@@ -120942,6 +120944,45 @@ function inviteEmailSave(data) {
|
|
|
120942
120944
|
window.onbeforeunload = null;
|
|
120943
120945
|
},
|
|
120944
120946
|
methods: {
|
|
120947
|
+
// 获取自动邀约邮件详情
|
|
120948
|
+
getInviteAITaskDetail() {
|
|
120949
|
+
inviteEmailGet(this.$route.query.inviteAITaskId).then(res => {
|
|
120950
|
+
if (res.code == "0") {
|
|
120951
|
+
this.mailList = res.data.emails.map((item, idx) => {
|
|
120952
|
+
return {
|
|
120953
|
+
...item,
|
|
120954
|
+
id: item.frontId || item.id,
|
|
120955
|
+
fileList: item.attachmentRes || [],
|
|
120956
|
+
// 附件
|
|
120957
|
+
active: idx === 0,
|
|
120958
|
+
// 是否当前选中
|
|
120959
|
+
isAiContent: false,
|
|
120960
|
+
getContent: () => {},
|
|
120961
|
+
getTextContent: () => {},
|
|
120962
|
+
setContent: () => {},
|
|
120963
|
+
insertEditContent: () => {},
|
|
120964
|
+
addEditContent: () => {},
|
|
120965
|
+
dangerouslyInsertHtml: () => {},
|
|
120966
|
+
isEmpty: () => {},
|
|
120967
|
+
getReplyHtml: () => {},
|
|
120968
|
+
setEditorBar: () => {}
|
|
120969
|
+
};
|
|
120970
|
+
});
|
|
120971
|
+
if (!res.data.emails || res.data.emails.length === 0) return false;
|
|
120972
|
+
// 商品卡相关逻辑
|
|
120973
|
+
if (res.data.emails[0] && res.data.emails[0].content) {
|
|
120974
|
+
let productCardStart = res.data.emails[0].content.indexOf("<product-card");
|
|
120975
|
+
let productCardEnd = res.data.emails[0].content.indexOf("</product-card>");
|
|
120976
|
+
let productCardHtml = res.data.emails[0].content.slice(productCardStart, productCardEnd + 15);
|
|
120977
|
+
const cardIdsMatch = productCardHtml.match(/cardids="([^"]+)"/);
|
|
120978
|
+
if (cardIdsMatch && cardIdsMatch[1]) {
|
|
120979
|
+
const cardIds = cardIdsMatch[1]; // 获取匹配到的cardids值
|
|
120980
|
+
this.addProductCard(cardIds.split(","));
|
|
120981
|
+
}
|
|
120982
|
+
}
|
|
120983
|
+
}
|
|
120984
|
+
});
|
|
120985
|
+
},
|
|
120945
120986
|
// 保存AI自动邀约邮件
|
|
120946
120987
|
saveInviteEmail() {
|
|
120947
120988
|
this.isShowSave = false;
|
|
@@ -120949,23 +120990,21 @@ function inviteEmailSave(data) {
|
|
|
120949
120990
|
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
120950
120991
|
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
120951
120992
|
let sendProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
120952
|
-
|
|
120993
|
+
console.log(sendProductCard, 'sendProductCard');
|
|
120994
|
+
|
|
120995
|
+
// 处理邮件
|
|
120953
120996
|
const emails = this.mailList.map(item => {
|
|
120954
|
-
|
|
120955
|
-
|
|
120956
|
-
content = item.getContent() + " " + item.getReplyHtml() + sendProductCard;
|
|
120957
|
-
} else {
|
|
120958
|
-
content = item.getContent() + item.getReplyHtml() + sendProductCard;
|
|
120959
|
-
}
|
|
120997
|
+
console.log(item.getContent(), 'item.getContent');
|
|
120998
|
+
console.log(item.getReplyHtml(), 'item.getReplyHtml');
|
|
120960
120999
|
return {
|
|
120961
121000
|
id: item.id,
|
|
120962
121001
|
subject: item.subject,
|
|
120963
|
-
content:
|
|
121002
|
+
content: item.getContent() + " " + sendProductCard,
|
|
120964
121003
|
attachments: item.fileList
|
|
120965
121004
|
};
|
|
120966
121005
|
});
|
|
120967
121006
|
const inviteParams = {
|
|
120968
|
-
taskId: this.$route.query.
|
|
121007
|
+
taskId: this.$route.query.inviteAITaskId || '',
|
|
120969
121008
|
emails: this.filterEmailId(emails)
|
|
120970
121009
|
};
|
|
120971
121010
|
const isAllSubjectEmpty = this.mailList.every(item => !item.subject);
|
|
@@ -120976,8 +121015,19 @@ function inviteEmailSave(data) {
|
|
|
120976
121015
|
inviteEmailSave(inviteParams).then(res => {
|
|
120977
121016
|
if (res.code == '0') {
|
|
120978
121017
|
const id = res.data;
|
|
120979
|
-
localStorage.setItem('
|
|
120980
|
-
this.$
|
|
121018
|
+
localStorage.setItem('inviteTaskId', id);
|
|
121019
|
+
this.$router.push({
|
|
121020
|
+
path: this.$route.path,
|
|
121021
|
+
query: {
|
|
121022
|
+
...this.$route.query,
|
|
121023
|
+
inviteAITaskId: id
|
|
121024
|
+
}
|
|
121025
|
+
}).catch(err => {
|
|
121026
|
+
if (err.name !== 'NavigationDuplicated') {
|
|
121027
|
+
throw err;
|
|
121028
|
+
}
|
|
121029
|
+
});
|
|
121030
|
+
this.$message.success('邮件添加成功,请回到原窗口继续创建任务!');
|
|
120981
121031
|
}
|
|
120982
121032
|
});
|
|
120983
121033
|
},
|
|
@@ -122154,15 +122204,15 @@ function inviteEmailSave(data) {
|
|
|
122154
122204
|
});
|
|
122155
122205
|
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
122156
122206
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
122157
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
122207
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
122158
122208
|
// extracted by mini-css-extract-plugin
|
|
122159
122209
|
|
|
122160
|
-
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
122210
|
+
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=style&index=0&id=094eee0c&prod&lang=scss&scoped=true
|
|
122161
122211
|
|
|
122162
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
122212
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
122163
122213
|
// extracted by mini-css-extract-plugin
|
|
122164
122214
|
|
|
122165
|
-
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
122215
|
+
;// CONCATENATED MODULE: ./src/package/write-email/index.vue?vue&type=style&index=1&id=094eee0c&prod&lang=scss
|
|
122166
122216
|
|
|
122167
122217
|
;// CONCATENATED MODULE: ./src/package/write-email/index.vue
|
|
122168
122218
|
|
|
@@ -122176,11 +122226,11 @@ function inviteEmailSave(data) {
|
|
|
122176
122226
|
|
|
122177
122227
|
var write_email_component = normalizeComponent(
|
|
122178
122228
|
package_write_emailvue_type_script_lang_js,
|
|
122179
|
-
|
|
122180
|
-
|
|
122229
|
+
write_emailvue_type_template_id_094eee0c_scoped_true_render,
|
|
122230
|
+
write_emailvue_type_template_id_094eee0c_scoped_true_staticRenderFns,
|
|
122181
122231
|
false,
|
|
122182
122232
|
null,
|
|
122183
|
-
"
|
|
122233
|
+
"094eee0c",
|
|
122184
122234
|
null
|
|
122185
122235
|
|
|
122186
122236
|
)
|
package/wotokol-edm.umd.js.gz
CHANGED
|
Binary file
|