wotokol-edm 1.1.97 → 1.1.98

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.
@@ -91402,7 +91402,7 @@ if (typeof window !== 'undefined') {
91402
91402
  // Indicate to webpack that this file can be concatenated
91403
91403
  /* harmony default export */ var setPublicPath = (null);
91404
91404
 
91405
- ;// ./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/edm-button/index.vue?vue&type=template&id=1764211c&scoped=true
91405
+ ;// ./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/edm-button/index.vue?vue&type=template&id=4c4ee968&scoped=true
91406
91406
  var render = function render() {
91407
91407
  var _vm = this,
91408
91408
  _c = _vm._self._c;
@@ -103374,6 +103374,20 @@ function testD(str) {
103374
103374
  }
103375
103375
  return false;
103376
103376
  }
103377
+
103378
+ // 创建a标签并跳转
103379
+ function createAndTriggerLink(url, isDownload = false) {
103380
+ const link = document.createElement("a");
103381
+ link.href = url;
103382
+ link.target = "_blank";
103383
+ link.rel = "noopener noreferrer";
103384
+ if (isDownload) {
103385
+ link.download = "file"; // 指定下载文件名(可选)
103386
+ }
103387
+ document.body.appendChild(link);
103388
+ link.click();
103389
+ document.body.removeChild(link); // 清理 DOM
103390
+ }
103377
103391
  ;// ./src/utils/request.js
103378
103392
 
103379
103393
 
@@ -103894,10 +103908,10 @@ async function test_test(params) {
103894
103908
  // 模拟 hub 登陆 测试账号
103895
103909
  // mobileOrEmail: "13262005357",
103896
103910
  // password: "123123123"
103897
- mobileOrEmail: "18846078060",
103898
- password: "asd123456"
103899
- // mobileOrEmail: "18270829507",
103900
- // password: "123123"
103911
+ // mobileOrEmail: "18846078060",
103912
+ // password: "asd123456"
103913
+ mobileOrEmail: "18270829507",
103914
+ password: "123123"
103901
103915
  // mobileOrEmail: "15658187195",
103902
103916
  // password: "wotu987412365"
103903
103917
  // mobileOrEmail: "17336189682",
@@ -104053,7 +104067,7 @@ var component = normalizeComponent(
104053
104067
  staticRenderFns,
104054
104068
  false,
104055
104069
  null,
104056
- "1764211c",
104070
+ "4c4ee968",
104057
104071
  null
104058
104072
 
104059
104073
  )
@@ -111722,7 +111736,7 @@ const zh_message = {
111722
111736
  Current_settings: "当前设置",
111723
111737
  mailbox_system: "系统邮箱",
111724
111738
  unbind: "解绑",
111725
- tip1: "您确定要解除邮箱{currentUnbindEmail}与WotoHub的绑定关系么?解除绑定后,您将无法再使用{currentUnbindEmail}邮箱代收发的相关功能,并且需要重新进行授权才能使用。取消授权需要在Gmail邮箱中进行设置。",
111739
+ tip1: "您确定要解除Gmail邮箱与WotoHub的绑定关系么?解除绑定后,您将无法再使用Gmail邮箱代收发的相关功能,并且需要重新进行授权才能使用。取消授权需要在Gmail邮箱中进行设置。",
111726
111740
  guide: "点击查看操作指引",
111727
111741
  cancle: "取消",
111728
111742
  confirm_unbinding: "确定解绑",
@@ -115847,8 +115861,8 @@ var detail_component = normalizeComponent(
115847
115861
  )
115848
115862
 
115849
115863
  /* harmony default export */ var detail = (detail_component.exports);
115850
- ;// ./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=04465d4a&scoped=true
115851
- var write_emailvue_type_template_id_04465d4a_scoped_true_render = function render() {
115864
+ ;// ./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=10ba2766&scoped=true
115865
+ var write_emailvue_type_template_id_10ba2766_scoped_true_render = function render() {
115852
115866
  var _vm = this,
115853
115867
  _c = _vm._self._c;
115854
115868
  return _c('div', {
@@ -116187,11 +116201,13 @@ var write_emailvue_type_template_id_04465d4a_scoped_true_render = function rende
116187
116201
  "slot": "content"
116188
116202
  },
116189
116203
  slot: "content"
116190
- }, [_vm.sendType === 'WOTOMAIL' ? _c('span', [_vm._v(" " + _vm._s(_vm.$i18n.t("setMail.mailbox_system")) + " ")]) : _c('span', [_vm._v(_vm._s(_vm.email))])]), _vm.sendType === 'WOTOMAIL' ? _c('span', {
116204
+ }, [_vm.currentSetEmail === 'WOTOMAIL' ? _c('span', [_vm._v(" " + _vm._s(_vm.$i18n.t("setMail.mailbox_system")) + " ")]) : _vm.currentSetEmail === 'GMAIL' ? _c('span', [_vm._v(" " + _vm._s(_vm.gmailValue) + " ")]) : _c('span', [_vm._v(_vm._s(_vm.currentSetEmail))])]), _vm.currentSetEmail === 'WOTOMAIL' ? _c('span', {
116191
116205
  staticClass: "current-email"
116192
- }, [_vm._v(" " + _vm._s(_vm.$i18n.t("setMail.mailbox_system")) + " ")]) : _c('span', {
116206
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("setMail.mailbox_system")) + " ")]) : _vm.currentSetEmail === 'GMAIL' ? _c('span', {
116193
116207
  staticClass: "current-email"
116194
- }, [_vm._v(_vm._s(_vm.email))])])], 1)]) : _vm._e(), !_vm.isReply && !_vm.isMultiReply && _vm.pageFrom != 'AIinvitePlan' ? _c('div', {
116208
+ }, [_vm._v(" " + _vm._s(_vm.gmailValue) + " ")]) : _c('span', {
116209
+ staticClass: "current-email"
116210
+ }, [_vm._v(_vm._s(_vm.currentSetEmail))])])], 1)]) : _vm._e(), !_vm.isReply && !_vm.isMultiReply && _vm.pageFrom != 'AIinvitePlan' ? _c('div', {
116195
116211
  staticClass: "set-nickname"
116196
116212
  }, [_c('div', {
116197
116213
  staticClass: "set-btn",
@@ -116537,8 +116553,9 @@ var write_emailvue_type_template_id_04465d4a_scoped_true_render = function rende
116537
116553
  }) : _vm._e(), _vm.showChooseMail ? _c('chooseMailNew', {
116538
116554
  attrs: {
116539
116555
  "isShow": _vm.showChooseMail,
116540
- "currentRadio": _vm.currentRadio,
116556
+ "currentSetEmail": _vm.currentSetEmail,
116541
116557
  "currentEnv": _vm.currentEnv,
116558
+ "isGoogleGrayShow": _vm.isGoogleGrayShow,
116542
116559
  "isCheckType": _vm.isCheckType,
116543
116560
  "userId": _vm.userId,
116544
116561
  "addresseeArrLength": _vm.addresseeArr.length,
@@ -116631,7 +116648,7 @@ var write_emailvue_type_template_id_04465d4a_scoped_true_render = function rende
116631
116648
  }
116632
116649
  }) : _vm._e()], 1);
116633
116650
  };
116634
- var write_emailvue_type_template_id_04465d4a_scoped_true_staticRenderFns = [function () {
116651
+ var write_emailvue_type_template_id_10ba2766_scoped_true_staticRenderFns = [function () {
116635
116652
  var _vm = this,
116636
116653
  _c = _vm._self._c;
116637
116654
  return _c('div', {
@@ -116652,7 +116669,7 @@ var write_emailvue_type_template_id_04465d4a_scoped_true_staticRenderFns = [func
116652
116669
  }, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
116653
116670
  }];
116654
116671
 
116655
- ;// ./src/package/write-email/index.vue?vue&type=template&id=04465d4a&scoped=true
116672
+ ;// ./src/package/write-email/index.vue?vue&type=template&id=10ba2766&scoped=true
116656
116673
 
116657
116674
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.every.js
116658
116675
  var es_iterator_every = __webpack_require__(1148);
@@ -116804,7 +116821,12 @@ async function checkEmailVariablesV2(data) {
116804
116821
 
116805
116822
  // 查看用户是否已经进行谷歌授权
116806
116823
  async function isAuthorize(params) {
116807
- let res = await get("/edm/conf/isAuthorize", params);
116824
+ let res = await request_get("/edm/conf/isAuthorize", params);
116825
+ return res;
116826
+ }
116827
+ // 获取用户的发件方式和邮箱,WOTOMAIL:卧兔邮箱,GMAIL:谷歌邮箱
116828
+ async function getSendType(params) {
116829
+ let res = await get("/edm/conf/sendType/get", params);
116808
116830
  return res;
116809
116831
  }
116810
116832
  // 用户绑定谷歌邮箱
@@ -116817,6 +116839,11 @@ async function getBindGmail(params) {
116817
116839
  let res = await request_get("/edm/conf/getGmail", params);
116818
116840
  return res;
116819
116841
  }
116842
+ // 用户绑定发件方式
116843
+ async function bindSendType(data) {
116844
+ let res = await post("/edm/conf/sendType/bind", data);
116845
+ return res;
116846
+ }
116820
116847
  // gmail授权/取消授权
116821
116848
  async function authGmail(data) {
116822
116849
  let res = await request_post("/edm/gmail/auth", data);
@@ -116875,16 +116902,6 @@ function templatesDetail(id) {
116875
116902
  function getUnlockBloggerEmailNum(userId) {
116876
116903
  return request_get(`/user/equity/getUnlockBloggerEmailNum/${userId}`);
116877
116904
  }
116878
-
116879
- // 添加别名邮箱
116880
- function addAliasEmail(data) {
116881
- return request_post("/edm/gmail/alias_email/auth", data);
116882
- }
116883
-
116884
- // 删除别名邮箱
116885
- function deleteAliasEmail(data) {
116886
- return request_post(`/edm/gmail/alias_email/cancel_auth`, data);
116887
- }
116888
116905
  ;// ./src/api/send/outbox.js
116889
116906
 
116890
116907
  // 分页查看发件箱列表
@@ -118993,8 +119010,8 @@ var checkMail_component = normalizeComponent(
118993
119010
  )
118994
119011
 
118995
119012
  /* harmony default export */ var checkMail = (checkMail_component.exports);
118996
- ;// ./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/components/chooseMailNew.vue?vue&type=template&id=98cbe662
118997
- var chooseMailNewvue_type_template_id_98cbe662_render = function render() {
119013
+ ;// ./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/components/chooseMailNew.vue?vue&type=template&id=2b7fab8e
119014
+ var chooseMailNewvue_type_template_id_2b7fab8e_render = function render() {
118998
119015
  var _vm = this,
118999
119016
  _c = _vm._self._c;
119000
119017
  return _c('div', {
@@ -119003,7 +119020,7 @@ var chooseMailNewvue_type_template_id_98cbe662_render = function render() {
119003
119020
  attrs: {
119004
119021
  "visible": _vm.isShow,
119005
119022
  "title": _vm.isCheckType ? '' : _vm.$i18n.t('setMail.Sending_settings'),
119006
- "width": !_vm.isCheckType ? '560px' : '620px',
119023
+ "width": !_vm.isCheckType ? '480px' : '620px',
119007
119024
  "before-close": _vm.closeChooseMail,
119008
119025
  "custom-class": `choosemail-dialog2 ${_vm.isCheckType ? 'choosemail-isCheck' : ''}`,
119009
119026
  "close-on-click-modal": false
@@ -119073,191 +119090,56 @@ var chooseMailNewvue_type_template_id_98cbe662_render = function render() {
119073
119090
  return _vm.setDefaultBindEmail('WOTOMAIL');
119074
119091
  }
119075
119092
  }
119076
- }, [_vm._v(_vm._s(_vm.defaultEmail === "WOTOMAIL" ? _vm.$t("edm5.v193") : _vm.$t("edm5.v194")))])], 1), _vm._l(_vm.gmailList, function (gmail, gmailIdx) {
119077
- return _c('div', {
119078
- key: gmail.id,
119079
- class: {
119080
- 'woto-mail': true,
119081
- 'gmail-woto-mail': true,
119082
- 'mail-active': _vm.extractEmails(gmail, _vm.radio)
119083
- }
119084
- }, [_c('div', {
119085
- staticClass: "gmail-woto-mail-main"
119086
- }, [_c('el-radio', {
119087
- attrs: {
119088
- "value": _vm.radio,
119089
- "label": gmail.email
119090
- },
119091
- nativeOn: {
119092
- "click": function ($event) {
119093
- return _vm.changeEmail(gmail.email, gmail.id);
119094
- }
119095
- }
119096
- }, [_c('el-tooltip', {
119097
- attrs: {
119098
- "placement": "top",
119099
- "popper-class": "wt-tooltip"
119100
- }
119101
- }, [_c('div', {
119102
- staticClass: "content",
119103
- staticStyle: {
119104
- "color": "#333"
119105
- },
119106
- attrs: {
119107
- "slot": "content"
119108
- },
119109
- slot: "content"
119110
- }, [_vm._v(" " + _vm._s(gmail.email) + " ")]), _c('span', {
119111
- staticClass: "email-address"
119112
- }, [_vm._v(" " + _vm._s(gmail.email))])])], 1), _c('span', {
119113
- staticClass: "alias-tips"
119114
- }, [_c('span', {
119115
- directives: [{
119116
- name: "toggle-gmail-alias",
119117
- rawName: "v-toggle-gmail-alias"
119118
- }]
119119
- }, [_vm._v("别名邮箱")]), gmail.childEmails && gmail.childEmails.length > 0 ? _c('span', [_vm._v("(" + _vm._s(gmail.childEmails ? gmail.childEmails.length : "") + ")")]) : _vm._e(), _c('el-tooltip', {
119120
- attrs: {
119121
- "placement": "top",
119122
- "popper-class": "wt-tooltip"
119123
- }
119124
- }, [_c('div', {
119125
- staticClass: "content",
119126
- staticStyle: {
119127
- "color": "#333",
119128
- "max-width": "300px"
119129
- },
119130
- attrs: {
119131
- "slot": "content"
119132
- },
119133
- slot: "content"
119134
- }, [_vm._v(" 别名邮箱是附加到你主邮箱的额外地址。例如,你可以添加 you+work@gmail.com,所有发送到该地址的邮件都会合并至主邮箱。 "), _c('a', {
119135
- staticStyle: {
119136
- "color": "#ff5277"
119137
- },
119138
- attrs: {
119139
- "target": "_blank",
119140
- "href": "https://support.google.com/a/answer/33327?hl=zh-Hans"
119141
- }
119142
- }, [_vm._v("【Gmail别名邮箱说明】")])]), _c('i', {
119143
- staticClass: "dss-iconfont icon-bangzhushuomingbeifen",
119144
- staticStyle: {
119145
- "font-size": "14px",
119146
- "color": "#a9a9a9",
119147
- "cursor": "pointer",
119148
- "margin-left": "2px"
119149
- }
119150
- })])], 1), _c('span', {
119151
- staticClass: "set-default",
119152
- staticStyle: {
119153
- "margin-left": "16px"
119154
- },
119155
- on: {
119156
- "click": function ($event) {
119157
- $event.stopPropagation();
119158
- $event.preventDefault();
119159
- return _vm.setDefaultBindEmail('GMAIL', gmail.id);
119160
- }
119093
+ }, [_vm._v(_vm._s(_vm.defaultEmail === "WOTOMAIL" ? _vm.$t("edm5.v193") : _vm.$t("edm5.v194")))])], 1), !!_vm.gmailVal ? _c('div', {
119094
+ class: {
119095
+ 'woto-mail': true,
119096
+ 'mail-active': _vm.radio === 'GMAIL'
119097
+ },
119098
+ on: {
119099
+ "click": function ($event) {
119100
+ return _vm.changeEmail('GMAIL');
119161
119101
  }
119162
- }, [_vm._v(_vm._s(_vm.defaultEmail === gmail.id ? _vm.$t("edm5.v193") : _vm.$t("edm5.v194")))]), _c('span', {
119163
- staticClass: "unBind",
119164
- on: {
119165
- "click": function ($event) {
119166
- $event.stopPropagation();
119167
- $event.preventDefault();
119168
- return _vm.unbindEmail(gmail.email);
119169
- }
119102
+ }
119103
+ }, [_c('el-radio', {
119104
+ attrs: {
119105
+ "value": _vm.radio,
119106
+ "label": "GMAIL"
119107
+ }
119108
+ }, [_c('el-tooltip', {
119109
+ attrs: {
119110
+ "placement": "top",
119111
+ "popper-class": "wt-tooltip"
119112
+ }
119113
+ }, [_c('div', {
119114
+ staticClass: "content",
119115
+ staticStyle: {
119116
+ "color": "#333"
119117
+ },
119118
+ attrs: {
119119
+ "slot": "content"
119120
+ },
119121
+ slot: "content"
119122
+ }, [_vm._v(" " + _vm._s(_vm.gmailVal) + " ")]), _c('span', {
119123
+ staticClass: "email-address"
119124
+ }, [_vm._v(" " + _vm._s(_vm.gmailVal))])])], 1), _c('span', {
119125
+ staticClass: "set-default",
119126
+ on: {
119127
+ "click": function ($event) {
119128
+ $event.stopPropagation();
119129
+ $event.preventDefault();
119130
+ return _vm.setDefaultBindEmail('GMAIL');
119170
119131
  }
119171
- }, [_vm._v(_vm._s(_vm.$t("edm5.v195")))])], 1), _c('div', {
119172
- staticClass: "gmail-woto-mail-alias"
119173
- }, [_c('div', {
119174
- staticClass: "alias-list"
119175
- }, _vm._l(gmail.childEmails, function (child) {
119176
- return _c('div', {
119177
- key: child.id,
119178
- staticClass: "alias-item"
119179
- }, [_c('el-radio', {
119180
- attrs: {
119181
- "disabled": child.id && (child.id + '').indexOf('new') > -1,
119182
- "value": _vm.radio,
119183
- "label": child.email
119184
- },
119185
- nativeOn: {
119186
- "click": function ($event) {
119187
- return _vm.changeEmail(child.email, child.id);
119188
- }
119189
- }
119190
- }, [child.id && (child.id + '').indexOf('new') === -1 ? _c('el-tooltip', {
119191
- attrs: {
119192
- "placement": "top",
119193
- "popper-class": "wt-tooltip"
119194
- }
119195
- }, [_c('div', {
119196
- staticClass: "content",
119197
- staticStyle: {
119198
- "color": "#333"
119199
- },
119200
- attrs: {
119201
- "slot": "content"
119202
- },
119203
- slot: "content"
119204
- }, [_vm._v(" " + _vm._s(child.email) + " ")]), _c('span', {
119205
- staticClass: "email-address"
119206
- }, [_vm._v(_vm._s(child.email))])]) : _c('el-input', {
119207
- staticClass: "gmail-input",
119208
- attrs: {
119209
- "placeholder": "请输入邮箱"
119210
- },
119211
- model: {
119212
- value: child.email,
119213
- callback: function ($$v) {
119214
- _vm.$set(child, "email", $$v);
119215
- },
119216
- expression: "child.email"
119217
- }
119218
- })], 1), child.id && (child.id + '').indexOf('new') > -1 ? _c('span', {
119219
- staticClass: "alias-delete",
119220
- staticStyle: {
119221
- "margin-left": "auto",
119222
- "margin-right": "12px"
119223
- },
119224
- on: {
119225
- "click": function ($event) {
119226
- return _vm.confirmAddAliasGmail(gmail.id, child.email);
119227
- }
119228
- }
119229
- }, [_vm._v("授权")]) : _vm._e(), child.id && (child.id + '').indexOf('new') === -1 ? _c('span', {
119230
- staticClass: "alias-delete",
119231
- staticStyle: {
119232
- "margin-left": "auto",
119233
- "margin-right": "12px"
119234
- },
119235
- on: {
119236
- "click": function ($event) {
119237
- return _vm.setDefaultBindEmail('GMAIL', child.id);
119238
- }
119239
- }
119240
- }, [_vm._v(_vm._s(_vm.defaultEmail === child.id ? _vm.$t("edm5.v193") : _vm.$t("edm5.v194")))]) : _vm._e(), _c('span', {
119241
- staticClass: "alias-delete",
119242
- on: {
119243
- "click": function ($event) {
119244
- return _vm.deleteAliasGmail(child.id, child.email, gmailIdx);
119245
- }
119246
- }
119247
- }, [_vm._v("删除")])], 1);
119248
- }), 0), _c('div', {
119249
- staticClass: "alias-add",
119250
- on: {
119251
- "click": function ($event) {
119252
- return _vm.addAliasGmail(gmail, gmailIdx);
119253
- }
119132
+ }
119133
+ }, [_vm._v(_vm._s(_vm.defaultEmail === "GMAIL" ? _vm.$t("edm5.v193") : _vm.$t("edm5.v194")))]), _c('span', {
119134
+ staticClass: "unBind",
119135
+ on: {
119136
+ "click": function ($event) {
119137
+ $event.stopPropagation();
119138
+ $event.preventDefault();
119139
+ return _vm.unbind('GMAIL');
119254
119140
  }
119255
- }, [_c('i', {
119256
- staticClass: "dss-iconfont icon-add_dss"
119257
- }), _c('span', {
119258
- staticClass: "add-text"
119259
- }, [_vm._v("连接Gmail中已设置的别名邮箱")])])])]);
119260
- }), _vm._l(_vm.businessEmailList, function (email) {
119141
+ }
119142
+ }, [_vm._v(_vm._s(_vm.$t("edm5.v195")))])], 1) : _vm._e(), _vm._l(_vm.businessEmailList, function (email) {
119261
119143
  return _c('div', {
119262
119144
  key: email.id,
119263
119145
  class: {
@@ -119266,7 +119148,7 @@ var chooseMailNewvue_type_template_id_98cbe662_render = function render() {
119266
119148
  },
119267
119149
  on: {
119268
119150
  "click": function ($event) {
119269
- return _vm.changeEmail(email.emailAddress, email.id);
119151
+ return _vm.changeEmail(email.emailAddress);
119270
119152
  }
119271
119153
  }
119272
119154
  }, [_c('el-radio', {
@@ -119296,16 +119178,16 @@ var chooseMailNewvue_type_template_id_98cbe662_render = function render() {
119296
119178
  "click": function ($event) {
119297
119179
  $event.stopPropagation();
119298
119180
  $event.preventDefault();
119299
- return _vm.setDefaultBindEmail('QIYE', email.id);
119181
+ return _vm.setDefaultBindEmail(email.emailAddress);
119300
119182
  }
119301
119183
  }
119302
- }, [_vm._v(_vm._s(_vm.defaultEmail === email.id ? _vm.$t("edm5.v193") : _vm.$t("edm5.v194")))]), _c('span', {
119184
+ }, [_vm._v(_vm._s(_vm.defaultEmail === email.emailAddress ? _vm.$t("edm5.v193") : _vm.$t("edm5.v194")))]), _c('span', {
119303
119185
  staticClass: "unBind",
119304
119186
  on: {
119305
119187
  "click": function ($event) {
119306
119188
  $event.stopPropagation();
119307
119189
  $event.preventDefault();
119308
- return _vm.unbindEmail(email.emailAddress);
119190
+ return _vm.unbind(email.emailAddress);
119309
119191
  }
119310
119192
  }
119311
119193
  }, [_vm._v(_vm._s(_vm.$t("edm5.v195")))])], 1);
@@ -119675,11 +119557,9 @@ var chooseMailNewvue_type_template_id_98cbe662_render = function render() {
119675
119557
  staticClass: "inner-has-tips"
119676
119558
  }, [_vm._v(" " + _vm._s(_vm.$t("edm5.v211")) + " ")]) : _c('div', {
119677
119559
  staticClass: "inner-tip-text"
119678
- }, [_vm.currentUnbindEmail.indexOf('@gmail.com') > -1 ? _c('span', [_vm._v(_vm._s(_vm.$i18n.t("setMail.tip1", {
119560
+ }, [_vm.currentUnbindEmail === 'GMAIL' ? _c('span', [_vm._v(_vm._s(_vm.$i18n.t("setMail.tip1")))]) : _c('span', [_vm._v(" " + _vm._s(_vm.$t("edm5.v212", {
119679
119561
  currentUnbindEmail: _vm.currentUnbindEmail
119680
- })))]) : _c('span', [_vm._v(" " + _vm._s(_vm.$t("edm5.v212", {
119681
- currentUnbindEmail: _vm.currentUnbindEmail
119682
- })) + " ")]), _vm.currentUnbindEmail.indexOf('@gmail.com') > -1 ? _c('span', {
119562
+ })) + " ")]), _vm.currentUnbindEmail === 'GMAIL' ? _c('span', {
119683
119563
  staticClass: "guide",
119684
119564
  on: {
119685
119565
  "click": _vm.toGuide
@@ -119710,46 +119590,8 @@ var chooseMailNewvue_type_template_id_98cbe662_render = function render() {
119710
119590
  }
119711
119591
  }, [_vm._v(_vm._s(_vm.$i18n.t("setMail.confirm_unbinding")))])], 1)])], 1);
119712
119592
  };
119713
- var chooseMailNewvue_type_template_id_98cbe662_staticRenderFns = [];
119593
+ var chooseMailNewvue_type_template_id_2b7fab8e_staticRenderFns = [];
119714
119594
 
119715
- ;// ./src/package/write-email/components/const.js
119716
- // 获取Gmail授权对应的回调地址
119717
- const gmailAuthUrlMaps = {
119718
- 2: {
119719
- pre: "https://k8s-mail.wotokol.com",
119720
- prod: "https://mail.wotokol.com"
119721
- },
119722
- 3: {
119723
- pre: "https://gmailpre.wotovideo.com",
119724
- prod: "https://gmail.wotovideo.com"
119725
- }
119726
- };
119727
-
119728
- // 获取授权地址
119729
- function getGmailAuthUrl(type, currentEnv) {
119730
- const env = currentEnv == "https://pre.wotohub.com" ? "pre" : "prod";
119731
- return gmailAuthUrlMaps[type][env] || "";
119732
- }
119733
-
119734
- // 根据Gmailid 获取邮箱地址
119735
- function findGmailById(data, targetId) {
119736
- for (const item of data) {
119737
- // 检查外层对象
119738
- if (item.id === targetId) {
119739
- return item.email;
119740
- }
119741
-
119742
- // 检查子层 childEmails
119743
- if (item.childEmails && Array.isArray(item.childEmails)) {
119744
- for (const child of item.childEmails) {
119745
- if (child.id === targetId) {
119746
- return child.email;
119747
- }
119748
- }
119749
- }
119750
- }
119751
- return null;
119752
- }
119753
119595
  ;// ./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/components/chooseMailNew.vue?vue&type=script&lang=js
119754
119596
 
119755
119597
 
@@ -119758,22 +119600,14 @@ function findGmailById(data, targetId) {
119758
119600
 
119759
119601
 
119760
119602
 
119761
-
119762
-
119763
-
119764
-
119765
119603
  /* harmony default export */ var chooseMailNewvue_type_script_lang_js = ({
119766
- name: "chooseMailNew",
119767
- components: {
119768
- Tooltip: Tooltip
119769
- },
119770
119604
  props: {
119771
119605
  isShow: {
119772
119606
  default: false,
119773
119607
  type: Boolean
119774
119608
  },
119775
- // 当前选中发件方式
119776
- currentRadio: {
119609
+ // 当前选中发件方式的 email 具体值
119610
+ currentSetEmail: {
119777
119611
  type: String,
119778
119612
  default: "WOTOMAIL"
119779
119613
  },
@@ -119781,6 +119615,10 @@ function findGmailById(data, targetId) {
119781
119615
  type: String,
119782
119616
  default: "https://www.wotohub.com"
119783
119617
  },
119618
+ isGoogleGrayShow: {
119619
+ type: Boolean,
119620
+ default: true
119621
+ },
119784
119622
  // 是否是邮件检测模式
119785
119623
  isCheckType: {
119786
119624
  type: Boolean,
@@ -119805,23 +119643,20 @@ function findGmailById(data, targetId) {
119805
119643
  data() {
119806
119644
  return {
119807
119645
  radio: "",
119808
- // 当前选中且设置的发件方式,如果是系统邮箱则值为WOTOMAIL,否则值为具体邮箱地址
119809
- radioId: "",
119810
- // 当前选中且设置的发件方式id,如果是系统邮箱则值为WOTOMAIL,否则值为具体邮箱地址id
119646
+ // 当前选中且设置的发件方式
119811
119647
  gmailValInput: "",
119812
119648
  // gmail邮箱-input输入绑定值
119813
- gmailList: [],
119814
- // 绑定的gmail列表
119649
+ gmailVal: "",
119650
+ // 授权绑定的 gmail
119815
119651
  outlookValInput: "",
119816
119652
  // outlook邮箱-input输入绑定值
119653
+ isShowInput: false,
119817
119654
  scopeVal: "https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.send%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly%20",
119818
119655
  redirectUri: encodeURIComponent(this.currentEnv) + "%2Fwrite",
119819
119656
  code: "",
119820
119657
  innerVisible: false,
119821
- // 解绑邮箱弹窗
119822
- language: api.get("language") || this.$i18n.locale,
119658
+ language: api.get("language"),
119823
119659
  bindEmailVisible: false,
119824
- // 绑定邮箱弹窗
119825
119660
  businessEmailList: [],
119826
119661
  // 已经绑定的系统邮箱
119827
119662
  businessTemplateList: [],
@@ -119897,7 +119732,6 @@ function findGmailById(data, targetId) {
119897
119732
  },
119898
119733
  bingLoading: false,
119899
119734
  currentUnbindEmail: "",
119900
- // 当前正在解绑的邮箱
119901
119735
  unbindLoading: false,
119902
119736
  // 解绑确定按钮loading
119903
119737
  confirmBindLoading: false,
@@ -119905,15 +119739,21 @@ function findGmailById(data, targetId) {
119905
119739
  stepsArr: [this.$t("edm5.v219"), this.$i18n.t("checkMail.filter_contacted_influencers"), this.$i18n.t("checkMail.email_quality_inspection"), this.$i18n.t("checkMail.create_email")],
119906
119740
  active: 0,
119907
119741
  defaultEmail: "",
119908
- // 默认邮箱,如果是系统邮箱值为WOTOMAIL, 企业邮箱(包含Gmail)值为邮箱对应的id
119742
+ // 默认邮箱
119909
119743
  hasToSendEmail: false,
119910
119744
  // 解绑的邮箱是否存在待发送的邮件
119911
119745
  authLoading: false,
119912
119746
  reloadTimer: null
119913
119747
  };
119914
119748
  },
119749
+ computed: {
119750
+ // gmail 授权回调地址-new
119751
+ redirectUriGmail() {
119752
+ return encodeURIComponent(this.currentEnv == "https://pre.wotohub.com" ? "https://k8s-mail.wotokol.com" : "https://mail.wotokol.com") + "%2FgmailBind";
119753
+ }
119754
+ },
119915
119755
  created() {
119916
- this.radio = this.currentRadio;
119756
+ this.radio = this.currentSetEmail;
119917
119757
  // 如果是企业邮箱授权跳转过来的
119918
119758
  if (this.$route.query.code) {
119919
119759
  this.code = this.$route.query.code;
@@ -119928,7 +119768,7 @@ function findGmailById(data, targetId) {
119928
119768
  // 如果是从绑定gmail中间页过来,则需要清除缓存
119929
119769
  this.clearEmailStorage();
119930
119770
  }
119931
- this.getBindGmails(); // 查询的 gmail 邮箱
119771
+ this.queryIsBindGmail(); // 查询是否绑定了 gmail 邮箱
119932
119772
  this.getBusinessEMails(); // 获取已经绑定的企业邮箱列表
119933
119773
  this.getBusinessTemplates(); // 获取企业邮箱模版列表
119934
119774
  this.getDefaultBindEmail(); // 获取默认绑定的邮箱
@@ -119936,45 +119776,31 @@ function findGmailById(data, targetId) {
119936
119776
  beforeDestroy() {
119937
119777
  if (this.reloadTimer) clearTimeout(this.reloadTimer);
119938
119778
  },
119939
- // 在组件的 directives 选项中定义
119940
- directives: {
119941
- toggleGmailAlias: {
119942
- bind(el) {
119943
- // 监听 click 事件
119944
- el.addEventListener("click", () => {
119945
- // 获取父父节点
119946
- const parentParent = el.parentNode?.parentNode?.parentNode;
119947
- if (parentParent) {
119948
- // 切换 gmail-alias 类
119949
- parentParent.classList.toggle("gmail-alias");
119950
- }
119951
- });
119952
- },
119953
- unbind(el) {
119954
- // 解绑事件,防止内存泄漏
119955
- el.removeEventListener("click", () => {});
119956
- }
119957
- }
119958
- },
119959
119779
  methods: {
119960
- // 切换当前发件选择的邮箱
119961
- changeEmail(val, id) {
119962
- if (!val) return false;
119963
- this.radio = val;
119964
- this.radioId = id;
119965
- },
119966
- // 查询绑定的gmail邮箱
119967
- async getBindGmails() {
119968
- try {
119969
- const res = await getBindGmail({});
119780
+ // 查询是否绑定了 gmail 邮箱
119781
+ queryIsBindGmail() {
119782
+ isAuthorize().then(res => {
119970
119783
  if (res.code === "0") {
119971
- this.gmailList = res.data || [];
119784
+ // 如果绑定了,就获取绑定的Gmail值
119785
+ if (res.data) {
119786
+ getBindGmail().then(res2 => {
119787
+ if (res2.code === "0") {
119788
+ this.gmailVal = res2.data.email;
119789
+ } else {
119790
+ this.$message.error(res2.message);
119791
+ }
119792
+ });
119793
+ } else {
119794
+ this.gmailVal = "";
119795
+ }
119972
119796
  } else {
119973
119797
  this.$message.error(res.message);
119974
119798
  }
119975
- } catch (error) {
119976
- console.log(error);
119977
- }
119799
+ });
119800
+ },
119801
+ // 切换已经绑定的邮箱
119802
+ changeEmail(val) {
119803
+ this.radio = val;
119978
119804
  },
119979
119805
  // 获取已经绑定的企业邮箱列表
119980
119806
  async getBusinessEMails() {
@@ -120015,32 +119841,25 @@ function findGmailById(data, targetId) {
120015
119841
  try {
120016
119842
  const res = await getDefaultEmail({});
120017
119843
  if (res.code === "0") {
120018
- if (res.data.sendType === "WOTOMAIL") {
120019
- this.defaultEmail = "WOTOMAIL";
120020
- } else {
120021
- this.defaultEmail = res.data.bizId;
120022
- }
120023
- return res.data;
119844
+ this.defaultEmail = ["WOTOMAIL", "GMAIL"].includes(res.data.sendType) ? res.data.sendType : res.data.email;
120024
119845
  } else {
120025
119846
  this.$message.error(res.message);
120026
- return {};
120027
119847
  }
120028
119848
  } catch (error) {
120029
119849
  console.log(error);
120030
- return {};
120031
119850
  }
120032
119851
  },
120033
119852
  // 设置默认绑定的邮箱
120034
- async setDefaultBindEmail(type, id) {
119853
+ async setDefaultBindEmail(email) {
120035
119854
  try {
120036
- if (id === this.defaultEmail) return false;
119855
+ if (email === this.defaultEmail) return false;
120037
119856
  const params = {};
120038
- // 如果是Gmail/企业邮箱,需要传bizId参数
120039
- if (type === "WOTOMAIL") {
120040
- params["sendType"] = "WOTOMAIL";
119857
+ // 如果是企业邮箱,需要传qiyeId参数
119858
+ if (email !== "WOTOMAIL" && email !== "GMAIL") {
119859
+ params["qiyeId"] = this.businessEmailList.find(item => item.emailAddress === email)?.id;
119860
+ params["sendType"] = "QIYE";
120041
119861
  } else {
120042
- params["bizId"] = id;
120043
- params["sendType"] = type;
119862
+ params["sendType"] = email;
120044
119863
  }
120045
119864
  const res = await bindDefaultEmail(params);
120046
119865
  if (res.code === "0") {
@@ -120121,20 +119940,16 @@ function findGmailById(data, targetId) {
120121
119940
  // 选择本次发件邮箱-end
120122
119941
  async handlerCurrentBind() {
120123
119942
  const params = {
120124
- sendType: "",
120125
- bizId: undefined,
120126
- email: undefined
119943
+ sendType: this.radio,
119944
+ qiyeId: undefined,
119945
+ gmailValue: undefined
120127
119946
  };
120128
- if (this.radio === "WOTOMAIL") {
120129
- params["sendType"] = "WOTOMAIL";
120130
- } else if (this.radio.indexOf("@gmail.com") > -1) {
120131
- params["sendType"] = "GMAIL";
120132
- params["bizId"] = this.radioId;
120133
- params["email"] = this.radio;
120134
- } else {
120135
- params["sendType"] = "QIYE";
120136
- params["bizId"] = this.radioId;
120137
- params["email"] = this.radio;
119947
+ // 如果是企业邮箱,需要传qiyeId参数
119948
+ if (this.radio !== "WOTOMAIL" && this.radio !== "GMAIL") {
119949
+ params["qiyeId"] = this.businessEmailList.find(item => item.emailAddress === this.radio)?.id;
119950
+ }
119951
+ if (this.radio === "GMAIL") {
119952
+ params.gmailValue = this.gmailVal;
120138
119953
  }
120139
119954
  this.$emit("updateCurrentEmail", params);
120140
119955
  if (this.radio !== "WOTOMAIL" && this.isCheckType) {
@@ -120157,6 +119972,7 @@ function findGmailById(data, targetId) {
120157
119972
  },
120158
119973
  // Gmail授权
120159
119974
  authorizeGmail() {
119975
+ if (!!this.gmailVal) return this.$message.error(this.$t("edm5.v228"));
120160
119976
  // 授权成功--解绑--授权 这个时候beforeSkipPath会带有code的--done
120161
119977
  // 授权成功又切换成系统邮箱 那么第二次就不用再授权了--done
120162
119978
  // 授权成功又解绑点确定或者关闭的时候处理--done
@@ -120176,13 +119992,13 @@ function findGmailById(data, targetId) {
120176
119992
  }).then(res => {
120177
119993
  if (res.code === "0") {
120178
119994
  let url = "";
120179
- if (res.data == 1) {
120180
- // 走老的授权通道(本站授权通道)
119995
+ if (res.data) {
119996
+ // 已经绑定过Gmail,走老的授权通道
120181
119997
  url = `https://accounts.google.com/o/oauth2/auth?response_type=code&access_type=offline&client_id=478743684976-2e3nlm97t528lb0gn44notvkdacnjii9.apps.googleusercontent.com&redirect_uri=${this.redirectUri}&state=null&scope=${this.scopeVal}&approval_prompt=force&include_granted_scopes=true`;
120182
119998
  } else {
120183
- // 走新的授权通道(中间页授权通道)
119999
+ // 新Gmail授权通道
120184
120000
  const user_info = JSON.parse(localStorage.getItem("user_info") || "{}");
120185
- url = `${getGmailAuthUrl(this.currentEnv, res.data)}/login?` + `middleToken=${localStorage.getItem("token")}&user_id=${user_info.user_id}&nick_name=${user_info.nick_name}&company=${user_info.company}&phone=${user_info.phone}&vip=${user_info.vip}&auth_type=${res.data}`;
120001
+ url = `${this.currentEnv == "https://pre.wotohub.com" ? "https://k8s-mail.wotokol.com" : "https://mail.wotokol.com"}/login?` + `middleToken=${localStorage.getItem("token")}&user_id=${user_info.user_id}&nick_name=${user_info.nick_name}&company=${user_info.company}&phone=${user_info.phone}&vip=${user_info.vip}`;
120186
120002
  }
120187
120003
  window.location.href = url;
120188
120004
  } else {
@@ -120203,10 +120019,16 @@ function findGmailById(data, targetId) {
120203
120019
  }).then(res => {
120204
120020
  if (res.code === "0") {
120205
120021
  // gmail授权成功
120206
- this.getBindGmails();
120207
120022
  this.$message.success(`${this.$i18n.t("setMail.auth_success")}`);
120023
+ getBindGmail().then(res => {
120024
+ if (res.code === "0") {
120025
+ this.gmailVal = res.data.email;
120026
+ } else {
120027
+ this.$message.error(res.message);
120028
+ }
120029
+ });
120208
120030
  } else {
120209
- this.gmailList = [];
120031
+ this.gmailVal = "";
120210
120032
  this.$message.error(res.message);
120211
120033
  }
120212
120034
  this.clearEmailStorage();
@@ -120218,68 +120040,6 @@ function findGmailById(data, targetId) {
120218
120040
  this.authLoading = false;
120219
120041
  });
120220
120042
  },
120221
- // 添加Gmail别名邮箱-start
120222
- addAliasGmail(gamil, idx) {
120223
- this.$set(this.gmailList, idx, {
120224
- ...this.gmailList[idx],
120225
- childEmails: [...this.gmailList[idx].childEmails, {
120226
- id: "new" + Date.now(),
120227
- email: ""
120228
- }]
120229
- });
120230
- },
120231
- // 添加Gmail别名邮箱-end
120232
- async confirmAddAliasGmail(confId, email) {
120233
- try {
120234
- if (!confId || !email) return this.$message.error("请输入邮箱!");
120235
- if (!/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(email)) {
120236
- return this.$message.error(`${this.$i18n.t("setMail.tip10")}`);
120237
- }
120238
- const res = await addAliasEmail({
120239
- confId,
120240
- email
120241
- });
120242
- if (res.code === "0" && res.data) {
120243
- this.getBindGmails();
120244
- this.$message.success(`别名邮箱【${email}】已成功添加!`);
120245
- } else {
120246
- this.$message.error(res.message);
120247
- }
120248
- } catch (error) {
120249
- this.$message.error(error.message);
120250
- console.log(error);
120251
- }
120252
- },
120253
- // 删除Gmail别名邮箱
120254
- deleteAliasGmail(confId, email, idx) {
120255
- if (!confId) return false;
120256
- if ((confId + "").indexOf("new") > -1) {
120257
- this.$set(this.gmailList, idx, {
120258
- ...this.gmailList[idx],
120259
- childEmails: this.gmailList[idx].childEmails.filter(val => val.id !== confId)
120260
- });
120261
- } else {
120262
- this.$confirm("删除后,发送到此别名邮箱的邮件将不再被接收。你确定要继续吗?", `确定删除该别名邮箱吗?`, {
120263
- confirmButtonText: "确定",
120264
- cancelButtonText: "取消",
120265
- type: "warning"
120266
- }).then(async () => {
120267
- try {
120268
- const res = await deleteAliasEmail({
120269
- confId
120270
- });
120271
- if (res.code === "0") {
120272
- this.getBindGmails();
120273
- this.$message.success(`别名邮箱【${email}】已成功删除!`);
120274
- } else {
120275
- this.$message.error(res.message);
120276
- }
120277
- } catch (error) {
120278
- console.log(error);
120279
- }
120280
- }).catch(() => {});
120281
- }
120282
- },
120283
120043
  // Outlook(个人)授权
120284
120044
  async authorizeOutlook() {
120285
120045
  if (!this.outlookValInput) {
@@ -120358,11 +120118,11 @@ function findGmailById(data, targetId) {
120358
120118
  }, 1000);
120359
120119
  }
120360
120120
  },
120361
- // 解绑邮箱-start
120362
- async unbindEmail(email) {
120121
+ // 解绑
120122
+ async unbind(email) {
120363
120123
  try {
120364
120124
  const res = await isHasToSendEmail({
120365
- email
120125
+ email: email === "GMAIL" ? this.gmailVal : email
120366
120126
  });
120367
120127
  if (res.code === "0") {
120368
120128
  this.hasToSendEmail = !res.data;
@@ -120375,21 +120135,21 @@ function findGmailById(data, targetId) {
120375
120135
  console.log(error);
120376
120136
  }
120377
120137
  },
120378
- // 解绑邮箱-end
120138
+ // 确定解绑
120379
120139
  confirmUnbind() {
120380
120140
  this.unbindLoading = true;
120381
- if (this.currentUnbindEmail.indexOf("@gmail.com") > -1) {
120141
+ if (this.currentUnbindEmail === "GMAIL") {
120382
120142
  // gmail邮箱解绑
120383
120143
  authGmail({
120384
- authStatus: 0,
120385
- email: this.currentUnbindEmail
120144
+ authStatus: 0
120386
120145
  }).then(res => {
120387
120146
  if (res.code === "0") {
120388
120147
  this.innerVisible = false;
120389
120148
  // 确定解绑之后关闭解绑弹窗--绑定状态为fasle 邮箱值也是空 --- done
120390
120149
  this.gmailValInput = "";
120150
+ this.gmailVal = "";
120391
120151
  this.$message.success(res.message);
120392
- if (this.currentUnbindEmail === this.radio || this.gmailList.find(v => v.email === this.currentUnbindEmail)?.childEmails?.find(m => m.email === this.currentUnbindEmail)) {
120152
+ if (this.currentUnbindEmail === this.radio) {
120393
120153
  this.handleUnbindDefault();
120394
120154
  } else {
120395
120155
  this.$emit("closeChooseMail");
@@ -120421,21 +120181,21 @@ function findGmailById(data, targetId) {
120421
120181
  });
120422
120182
  }
120423
120183
  },
120424
- // 处理邮箱解绑后,重新获取默认值
120184
+ // 处理草稿箱解绑
120425
120185
  async handleUnbindDefault() {
120426
- const {
120427
- sendType,
120428
- bizId,
120429
- email
120430
- } = await this.getDefaultBindEmail();
120186
+ await this.getDefaultBindEmail();
120431
120187
  const params = {
120432
- sendType: "",
120433
- bizId: undefined,
120434
- email: undefined
120188
+ sendType: this.defaultEmail,
120189
+ qiyeId: undefined,
120190
+ gmailValue: undefined
120435
120191
  };
120436
- params.sendType = sendType;
120437
- params.bizId = bizId;
120438
- params.email = email;
120192
+ // 如果是企业邮箱,需要传qiyeId参数
120193
+ if (this.defaultEmail !== "WOTOMAIL" && this.defaultEmail !== "GMAIL") {
120194
+ params["qiyeId"] = this.businessEmailList.find(item => item.emailAddress === this.defaultEmail)?.id;
120195
+ }
120196
+ if (this.radio === "GMAIL") {
120197
+ params.gmailValue = this.gmailVal;
120198
+ }
120439
120199
  this.$emit("updateCurrentEmail", params);
120440
120200
  this.$emit("closeChooseMail");
120441
120201
  },
@@ -120513,23 +120273,15 @@ function findGmailById(data, targetId) {
120513
120273
  } else {
120514
120274
  callback(new Error(this.$t("edm5.v234")));
120515
120275
  }
120516
- },
120517
- // 提取所有邮箱
120518
- extractEmails(data, radio) {
120519
- const result = [data.email];
120520
- if (data?.childEmails?.length) {
120521
- result.push(...data.childEmails.map(child => child.email));
120522
- }
120523
- return result.includes(radio);
120524
120276
  }
120525
120277
  }
120526
120278
  });
120527
120279
  ;// ./src/package/write-email/components/chooseMailNew.vue?vue&type=script&lang=js
120528
120280
  /* harmony default export */ var components_chooseMailNewvue_type_script_lang_js = (chooseMailNewvue_type_script_lang_js);
120529
- ;// ./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/components/chooseMailNew.vue?vue&type=style&index=0&id=98cbe662&prod&lang=scss
120281
+ ;// ./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/components/chooseMailNew.vue?vue&type=style&index=0&id=2b7fab8e&prod&lang=scss
120530
120282
  // extracted by mini-css-extract-plugin
120531
120283
 
120532
- ;// ./src/package/write-email/components/chooseMailNew.vue?vue&type=style&index=0&id=98cbe662&prod&lang=scss
120284
+ ;// ./src/package/write-email/components/chooseMailNew.vue?vue&type=style&index=0&id=2b7fab8e&prod&lang=scss
120533
120285
 
120534
120286
  ;// ./src/package/write-email/components/chooseMailNew.vue
120535
120287
 
@@ -120542,8 +120294,8 @@ function findGmailById(data, targetId) {
120542
120294
 
120543
120295
  var chooseMailNew_component = normalizeComponent(
120544
120296
  components_chooseMailNewvue_type_script_lang_js,
120545
- chooseMailNewvue_type_template_id_98cbe662_render,
120546
- chooseMailNewvue_type_template_id_98cbe662_staticRenderFns,
120297
+ chooseMailNewvue_type_template_id_2b7fab8e_render,
120298
+ chooseMailNewvue_type_template_id_2b7fab8e_staticRenderFns,
120547
120299
  false,
120548
120300
  null,
120549
120301
  null,
@@ -120731,8 +120483,8 @@ var productNewComvue_type_template_id_430214a1_scoped_true_render = function ren
120731
120483
  };
120732
120484
  var productNewComvue_type_template_id_430214a1_scoped_true_staticRenderFns = [];
120733
120485
 
120734
- ;// ./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/components/EdmElement/productNewCom/detail.vue?vue&type=template&id=4e6ddbfc&scoped=true
120735
- var detailvue_type_template_id_4e6ddbfc_scoped_true_render = function render() {
120486
+ ;// ./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/components/EdmElement/productNewCom/detail.vue?vue&type=template&id=7353139d&scoped=true
120487
+ var detailvue_type_template_id_7353139d_scoped_true_render = function render() {
120736
120488
  var _vm = this,
120737
120489
  _c = _vm._self._c;
120738
120490
  return _c('el-drawer', {
@@ -121257,7 +121009,7 @@ var detailvue_type_template_id_4e6ddbfc_scoped_true_render = function render() {
121257
121009
  }
121258
121010
  }) : _vm._e()], 1)])])]);
121259
121011
  };
121260
- var detailvue_type_template_id_4e6ddbfc_scoped_true_staticRenderFns = [];
121012
+ var detailvue_type_template_id_7353139d_scoped_true_staticRenderFns = [];
121261
121013
 
121262
121014
  ;// ./src/components/EdmElement/productNewCom/const.js
121263
121015
  // 产品渠道
@@ -121565,6 +121317,7 @@ const const_language = [{
121565
121317
 
121566
121318
 
121567
121319
 
121320
+
121568
121321
  /* harmony default export */ var productNewCom_detailvue_type_script_lang_js = ({
121569
121322
  props: {
121570
121323
  // 侧抽显示
@@ -121685,7 +121438,7 @@ const const_language = [{
121685
121438
  productId: Number(this.rowId)
121686
121439
  }).then(res => {
121687
121440
  if (res.code === "0") {
121688
- window.open(res.data, "_blank");
121441
+ createAndTriggerLink(res.data);
121689
121442
  } else {
121690
121443
  this.$message({
121691
121444
  type: "error",
@@ -121849,15 +121602,15 @@ const const_language = [{
121849
121602
  });
121850
121603
  ;// ./src/components/EdmElement/productNewCom/detail.vue?vue&type=script&lang=js
121851
121604
  /* harmony default export */ var EdmElement_productNewCom_detailvue_type_script_lang_js = (productNewCom_detailvue_type_script_lang_js);
121852
- ;// ./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/components/EdmElement/productNewCom/detail.vue?vue&type=style&index=0&id=4e6ddbfc&prod&lang=scss&scoped=true
121605
+ ;// ./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/components/EdmElement/productNewCom/detail.vue?vue&type=style&index=0&id=7353139d&prod&lang=scss&scoped=true
121853
121606
  // extracted by mini-css-extract-plugin
121854
121607
 
121855
- ;// ./src/components/EdmElement/productNewCom/detail.vue?vue&type=style&index=0&id=4e6ddbfc&prod&lang=scss&scoped=true
121608
+ ;// ./src/components/EdmElement/productNewCom/detail.vue?vue&type=style&index=0&id=7353139d&prod&lang=scss&scoped=true
121856
121609
 
121857
- ;// ./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/components/EdmElement/productNewCom/detail.vue?vue&type=style&index=1&id=4e6ddbfc&prod&lang=scss
121610
+ ;// ./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/components/EdmElement/productNewCom/detail.vue?vue&type=style&index=1&id=7353139d&prod&lang=scss
121858
121611
  // extracted by mini-css-extract-plugin
121859
121612
 
121860
- ;// ./src/components/EdmElement/productNewCom/detail.vue?vue&type=style&index=1&id=4e6ddbfc&prod&lang=scss
121613
+ ;// ./src/components/EdmElement/productNewCom/detail.vue?vue&type=style&index=1&id=7353139d&prod&lang=scss
121861
121614
 
121862
121615
  ;// ./src/components/EdmElement/productNewCom/detail.vue
121863
121616
 
@@ -121871,11 +121624,11 @@ const const_language = [{
121871
121624
 
121872
121625
  var productNewCom_detail_component = normalizeComponent(
121873
121626
  EdmElement_productNewCom_detailvue_type_script_lang_js,
121874
- detailvue_type_template_id_4e6ddbfc_scoped_true_render,
121875
- detailvue_type_template_id_4e6ddbfc_scoped_true_staticRenderFns,
121627
+ detailvue_type_template_id_7353139d_scoped_true_render,
121628
+ detailvue_type_template_id_7353139d_scoped_true_staticRenderFns,
121876
121629
  false,
121877
121630
  null,
121878
- "4e6ddbfc",
121631
+ "7353139d",
121879
121632
  null
121880
121633
 
121881
121634
  )
@@ -123454,8 +123207,8 @@ var productFormCom_component = normalizeComponent(
123454
123207
  )
123455
123208
 
123456
123209
  /* harmony default export */ var productFormCom = (productFormCom_component.exports);
123457
- ;// ./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/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=template&id=4b69beea&scoped=true
123458
- var productCardsDrawervue_type_template_id_4b69beea_scoped_true_render = function render() {
123210
+ ;// ./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/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=template&id=54b56ff8&scoped=true
123211
+ var productCardsDrawervue_type_template_id_54b56ff8_scoped_true_render = function render() {
123459
123212
  var _vm = this,
123460
123213
  _c = _vm._self._c;
123461
123214
  return _c('el-drawer', {
@@ -123660,9 +123413,9 @@ var productCardsDrawervue_type_template_id_4b69beea_scoped_true_render = functio
123660
123413
  }
123661
123414
  }, [_vm._v(_vm._s(_vm.$i18n.t("newProduct.preservation")))])], 1)], 1);
123662
123415
  };
123663
- var productCardsDrawervue_type_template_id_4b69beea_scoped_true_staticRenderFns = [];
123416
+ var productCardsDrawervue_type_template_id_54b56ff8_scoped_true_staticRenderFns = [];
123664
123417
 
123665
- ;// ./src/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=template&id=4b69beea&scoped=true
123418
+ ;// ./src/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=template&id=54b56ff8&scoped=true
123666
123419
 
123667
123420
  ;// ./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/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=script&lang=js
123668
123421
 
@@ -123673,6 +123426,7 @@ var productCardsDrawervue_type_template_id_4b69beea_scoped_true_staticRenderFns
123673
123426
 
123674
123427
 
123675
123428
 
123429
+
123676
123430
  /* harmony default export */ var productCardsDrawervue_type_script_lang_js = ({
123677
123431
  props: {
123678
123432
  isShowProductCardDrawer: {
@@ -123812,7 +123566,7 @@ var productCardsDrawervue_type_template_id_4b69beea_scoped_true_staticRenderFns
123812
123566
  productId: id
123813
123567
  }).then(res => {
123814
123568
  if (res.code === "0") {
123815
- window.open(res.data, "_blank");
123569
+ createAndTriggerLink(res.data);
123816
123570
  } else {
123817
123571
  this.$message({
123818
123572
  type: "error",
@@ -123843,15 +123597,15 @@ var productCardsDrawervue_type_template_id_4b69beea_scoped_true_staticRenderFns
123843
123597
  });
123844
123598
  ;// ./src/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=script&lang=js
123845
123599
  /* harmony default export */ var productNewCom_productCardsDrawervue_type_script_lang_js = (productCardsDrawervue_type_script_lang_js);
123846
- ;// ./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/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=style&index=0&id=4b69beea&prod&lang=scss&scoped=true
123600
+ ;// ./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/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=style&index=0&id=54b56ff8&prod&lang=scss&scoped=true
123847
123601
  // extracted by mini-css-extract-plugin
123848
123602
 
123849
- ;// ./src/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=style&index=0&id=4b69beea&prod&lang=scss&scoped=true
123603
+ ;// ./src/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=style&index=0&id=54b56ff8&prod&lang=scss&scoped=true
123850
123604
 
123851
- ;// ./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/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=style&index=1&id=4b69beea&prod&lang=scss
123605
+ ;// ./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/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=style&index=1&id=54b56ff8&prod&lang=scss
123852
123606
  // extracted by mini-css-extract-plugin
123853
123607
 
123854
- ;// ./src/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=style&index=1&id=4b69beea&prod&lang=scss
123608
+ ;// ./src/components/EdmElement/productNewCom/productCardsDrawer.vue?vue&type=style&index=1&id=54b56ff8&prod&lang=scss
123855
123609
 
123856
123610
  ;// ./src/components/EdmElement/productNewCom/productCardsDrawer.vue
123857
123611
 
@@ -123865,11 +123619,11 @@ var productCardsDrawervue_type_template_id_4b69beea_scoped_true_staticRenderFns
123865
123619
 
123866
123620
  var productCardsDrawer_component = normalizeComponent(
123867
123621
  productNewCom_productCardsDrawervue_type_script_lang_js,
123868
- productCardsDrawervue_type_template_id_4b69beea_scoped_true_render,
123869
- productCardsDrawervue_type_template_id_4b69beea_scoped_true_staticRenderFns,
123622
+ productCardsDrawervue_type_template_id_54b56ff8_scoped_true_render,
123623
+ productCardsDrawervue_type_template_id_54b56ff8_scoped_true_staticRenderFns,
123870
123624
  false,
123871
123625
  null,
123872
- "4b69beea",
123626
+ "54b56ff8",
123873
123627
  null
123874
123628
 
123875
123629
  )
@@ -129242,6 +128996,10 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
129242
128996
  type: String,
129243
128997
  default: ""
129244
128998
  },
128999
+ isGoogleGrayShow: {
129000
+ type: Boolean,
129001
+ default: true
129002
+ },
129245
129003
  currentEnv: {
129246
129004
  type: String,
129247
129005
  default: "https://www.wotohub.com"
@@ -129251,10 +129009,6 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
129251
129009
  // 所有邮件的主题
129252
129010
  allSubjectList() {
129253
129011
  return this.mailList.map(item => item.subject);
129254
- },
129255
- // 当前发件方式组合
129256
- currentRadio() {
129257
- return this.sendType === "WOTOMAIL" ? "WOTOMAIL" : this.email;
129258
129012
  }
129259
129013
  },
129260
129014
  data() {
@@ -129340,12 +129094,12 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
129340
129094
  //最终发信成功
129341
129095
  showChooseMail: false,
129342
129096
  // 发件设置
129343
- sendType: "",
129344
- // 当前选中的邮箱发件类型:WOTOMAIL:系统邮箱、GMAIL:gamil邮箱、QIYE:企业邮箱
129345
- email: "",
129346
- // 当前选中的邮箱具体值(非系统邮箱有值)
129347
- bizId: "",
129348
- // 当前选中的邮箱对应id值(非系统邮箱有值)
129097
+ currentSetEmail: "",
129098
+ // 当前选中的发件邮箱(企业邮箱具体值保存在这个字段)
129099
+ qiyeId: "",
129100
+ // 企业邮箱 id(如果选择了企业邮箱为发件邮箱,这时有值)
129101
+ gmailValue: "",
129102
+ // gmail 邮箱具体值
129349
129103
  isMultiReply: this.$route.query.isMultiReply == "true" || this.$route.query.isMultiReply == true ? true : false,
129350
129104
  //批量回复
129351
129105
  isShowProductFormDrawer: false,
@@ -129682,7 +129436,7 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
129682
129436
  productId: id
129683
129437
  }).then(res => {
129684
129438
  if (res.code === "0") {
129685
- window.open(res.data, "_blank");
129439
+ createAndTriggerLink(res.data);
129686
129440
  } else {
129687
129441
  this.$message({
129688
129442
  type: "error",
@@ -129791,9 +129545,7 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
129791
129545
  try {
129792
129546
  const res = await getDefaultEmail({});
129793
129547
  if (res.code === "0") {
129794
- this.sendType = res.data.sendType;
129795
- this.bizId = res.data.bizId || "";
129796
- this.email = res.data.email || "";
129548
+ this.currentSetEmail = ["WOTOMAIL", "GMAIL"].includes(res.data.sendType) ? res.data.sendType : res.data.email;
129797
129549
  } else {
129798
129550
  this.$message.error(res.message);
129799
129551
  }
@@ -129809,35 +129561,25 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
129809
129561
  // 更新本次选中的发信邮箱
129810
129562
  updateCurrentEmail({
129811
129563
  sendType = undefined,
129812
- bizId = undefined,
129813
- email = undefined
129564
+ qiyeId = undefined,
129565
+ gmailValue = undefined
129814
129566
  }) {
129815
- this.sendType = sendType;
129816
- this.bizId = bizId;
129817
- this.email = email;
129567
+ this.currentSetEmail = sendType;
129568
+ this.qiyeId = qiyeId;
129569
+ this.gmailValue = gmailValue;
129818
129570
  if (this.draftId) {
129819
129571
  this.saveDraft(false);
129820
129572
  }
129821
129573
  },
129822
- // 获取已经绑定的Gmail邮箱列表
129823
- async getBindGmails(bizId) {
129824
- try {
129825
- const res = await getBindGmail({});
129826
- if (res.code === "0") {
129827
- this.email = findGmailById(res.data || [], bizId);
129828
- } else {
129829
- this.$message.error(res.message);
129830
- }
129831
- } catch (error) {
129832
- console.log(error);
129833
- }
129834
- },
129835
129574
  // 获取已经绑定的企业邮箱列表
129836
- async getBusinessEMails(bizId) {
129575
+ async getBusinessEMails(qiyeId) {
129837
129576
  try {
129838
129577
  const res = await getBusinessEMailList({});
129839
129578
  if (res.code === "0") {
129840
- this.email = res.data.find(item => item.id === bizId)?.emailAddress || "";
129579
+ this.businessEmailList = res.data || [];
129580
+ if (qiyeId) {
129581
+ this.currentSetEmail = res.data.find(item => item.id === qiyeId)?.emailAddress || "";
129582
+ }
129841
129583
  } else {
129842
129584
  this.$message.error(res.message);
129843
129585
  }
@@ -129950,22 +129692,23 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
129950
129692
  bloggerName: item.bloggerName
129951
129693
  });
129952
129694
  });
129695
+ console.log(this.addresseeArr);
129953
129696
  }
129954
129697
 
129955
129698
  // 回显本次选择的发件邮箱
129956
129699
  if (res.data[0] && res.data[0].sendType) {
129957
- if (res.data[0].sendType === "WOTOMAIL") {
129958
- this.sendType = "WOTOMAIL";
129959
- this.bizId = "";
129960
- this.email = "";
129961
- } else if (res.data[0].sendType === "GMAIL") {
129962
- this.sendType = "GMAIL";
129963
- this.bizId = res.data[0].qiyeId;
129964
- this.getBindGmails(this.bizId);
129700
+ if (["WOTOMAIL", "GMAIL"].includes(res.data[0].sendType)) {
129701
+ this.currentSetEmail = res.data[0].sendType;
129702
+ this.qiyeId = "";
129703
+ if (this.currentSetEmail === "GMAIL") {
129704
+ const res2 = await getBindGmail();
129705
+ if (res2.code === "0") {
129706
+ this.gmailValue = res2.data.email;
129707
+ }
129708
+ }
129965
129709
  } else {
129966
- this.bizId = res.data[0].qiyeId;
129967
- this.sendType = "QIYE";
129968
- this.getBusinessEMails(this.bizId);
129710
+ this.qiyeId = res.data[0].qiyeId;
129711
+ this.getBusinessEMails(res.data[0].qiyeId);
129969
129712
  }
129970
129713
  }
129971
129714
  } else {
@@ -130194,8 +129937,8 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
130194
129937
  replyId: this.isReply ? this.replyInfo.id : undefined,
130195
129938
  sendEntryKey: this.sendEntryKey || undefined,
130196
129939
  writeIds: this.deleteIdList.length > 0 ? this.deleteIdList : undefined,
130197
- sendType: this.sendType,
130198
- bizId: this.bizId || undefined
129940
+ sendType: ["WOTOMAIL", "GMAIL"].includes(this.currentSetEmail) ? this.currentSetEmail : "QIYE",
129941
+ qiyeId: this.qiyeId || undefined
130199
129942
  };
130200
129943
  if (this.draftId || this.timerId) {
130201
129944
  hubDataParams.id = this.draftId || this.timerId;
@@ -130386,8 +130129,8 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
130386
130129
  replyId: this.isReply ? this.replyInfo.id : undefined,
130387
130130
  sendEntryKey: this.sendEntryKey,
130388
130131
  writeIds: this.deleteIdList.length > 0 ? this.deleteIdList : undefined,
130389
- sendType: this.sendType,
130390
- bizId: this.bizId || undefined
130132
+ sendType: ["WOTOMAIL", "GMAIL"].includes(this.currentSetEmail) ? this.currentSetEmail : "QIYE",
130133
+ qiyeId: this.qiyeId || undefined
130391
130134
  };
130392
130135
  this.isAutoSave = flag ? false : true;
130393
130136
  this.isAutoSaving = this.isAutoSave;
@@ -130905,15 +130648,15 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
130905
130648
  });
130906
130649
  ;// ./src/package/write-email/index.vue?vue&type=script&lang=js
130907
130650
  /* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
130908
- ;// ./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=04465d4a&prod&lang=scss&scoped=true
130651
+ ;// ./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=10ba2766&prod&lang=scss&scoped=true
130909
130652
  // extracted by mini-css-extract-plugin
130910
130653
 
130911
- ;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=04465d4a&prod&lang=scss&scoped=true
130654
+ ;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=10ba2766&prod&lang=scss&scoped=true
130912
130655
 
130913
- ;// ./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=04465d4a&prod&lang=scss
130656
+ ;// ./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=10ba2766&prod&lang=scss
130914
130657
  // extracted by mini-css-extract-plugin
130915
130658
 
130916
- ;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=04465d4a&prod&lang=scss
130659
+ ;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=10ba2766&prod&lang=scss
130917
130660
 
130918
130661
  ;// ./src/package/write-email/index.vue
130919
130662
 
@@ -130927,11 +130670,11 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
130927
130670
 
130928
130671
  var write_email_component = normalizeComponent(
130929
130672
  package_write_emailvue_type_script_lang_js,
130930
- write_emailvue_type_template_id_04465d4a_scoped_true_render,
130931
- write_emailvue_type_template_id_04465d4a_scoped_true_staticRenderFns,
130673
+ write_emailvue_type_template_id_10ba2766_scoped_true_render,
130674
+ write_emailvue_type_template_id_10ba2766_scoped_true_staticRenderFns,
130932
130675
  false,
130933
130676
  null,
130934
- "04465d4a",
130677
+ "10ba2766",
130935
130678
  null
130936
130679
 
130937
130680
  )
@@ -139156,11 +138899,12 @@ const request_dss_put = (url, data) => {
139156
138899
 
139157
138900
 
139158
138901
  // 绑定邮箱帮助文档
138902
+ // import '../styles/index.scss'
138903
+ // import '../styles/iconfont.css'
139159
138904
 
139160
138905
 
139161
138906
 
139162
-
139163
- const coms = [edm_button, outbox_email, write_email, draft_email, edm_inbox, detail, outbox_email_detail, blog_email, edm_notice, edm_mailData, edm_mailData_sendDetail, receiveDetail, recipientList, bindEmailHelp, chooseMailNew]; // 将来如果有其它组件,都可以写到这个数组里
138907
+ const coms = [edm_button, outbox_email, write_email, draft_email, edm_inbox, detail, outbox_email_detail, blog_email, edm_notice, edm_mailData, edm_mailData_sendDetail, receiveDetail, recipientList, bindEmailHelp]; // 将来如果有其它组件,都可以写到这个数组里
139164
138908
 
139165
138909
  // 批量组件注册
139166
138910
  const package_install = function (Vue) {