cms-chenhj-ui 2.0.4 → 2.0.6

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.
@@ -817,6 +817,166 @@ module.exports = function map(mapper) {
817
817
  };
818
818
 
819
819
 
820
+ /***/ }),
821
+
822
+ /***/ 740:
823
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
824
+
825
+ "use strict";
826
+ // ESM COMPAT FLAG
827
+ __webpack_require__.r(__webpack_exports__);
828
+
829
+ // EXPORTS
830
+ __webpack_require__.d(__webpack_exports__, {
831
+ "default": function() { return /* binding */ View; }
832
+ });
833
+
834
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-dynamic-comp/View.vue?vue&type=template&id=f2f8be46&scoped=true
835
+ var render = function render() {
836
+ var _vm = this,
837
+ _c = _vm._self._c;
838
+ return _c('BaseComp', _vm._b({
839
+ attrs: {
840
+ "data": _vm.data,
841
+ "nowCompId": _vm.nowCompId,
842
+ "isOpcacity": _vm.isOpcacity,
843
+ "lang": _vm.lang
844
+ },
845
+ on: {
846
+ "getConfigData": _vm.getConfigData
847
+ }
848
+ }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
849
+ key: _vm.data.componentId,
850
+ attrs: {
851
+ "name": `cmsacive${_vm.data.componentId}`,
852
+ "url": _vm.wujieCompUrl,
853
+ "props": {
854
+ data: _vm.propsdata5
855
+ }
856
+ }
857
+ }) : _vm._e()], 1);
858
+ };
859
+ var staticRenderFns = [];
860
+
861
+ // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
862
+ var baseComp = __webpack_require__(7291);
863
+ // EXTERNAL MODULE: ./package/patch.js + 1 modules
864
+ var patch = __webpack_require__(5512);
865
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-dynamic-comp/View.vue?vue&type=script&lang=js
866
+
867
+
868
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
869
+ name: "cms-via-storedValueCard",
870
+ components: {
871
+ BaseComp: baseComp/* default */.A
872
+ },
873
+ props: {
874
+ data: {
875
+ type: Object,
876
+ default: () => {
877
+ return {};
878
+ }
879
+ },
880
+ nowCompId: {
881
+ type: [String, Number],
882
+ default: ""
883
+ },
884
+ isOpcacity: {
885
+ type: Boolean,
886
+ default: true
887
+ },
888
+ lang: {
889
+ type: String,
890
+ default: ""
891
+ }
892
+ },
893
+ data() {
894
+ return {
895
+ wujieCompUrl: "",
896
+ propsdata5: {},
897
+ showWujie: false,
898
+ compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
899
+ componentUrl: "",
900
+ componentId: "",
901
+ viaCompInstId: ""
902
+ };
903
+ },
904
+ async mounted() {
905
+ if (!this.$EventBus) {
906
+ if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
907
+ this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
908
+ } else {
909
+ this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
910
+ }
911
+ }
912
+ this.getUrl(this.lang);
913
+ },
914
+ created() {},
915
+ methods: {
916
+ getConfigData() {
917
+ const wujieConfig = this.data.wujieConfig;
918
+ this.componentUrl = wujieConfig.componentUrl;
919
+ this.componentId = wujieConfig.componentId;
920
+ this.viaCompInstId = wujieConfig.viaCompInstId;
921
+ this.getUrl(this.lang);
922
+ if (this.componentId) {
923
+ setTimeout(() => {
924
+ this.showWujie = true;
925
+ });
926
+ }
927
+ },
928
+ wujieFetchMx(url, options) {
929
+ return window.fetch(url, {
930
+ ...options,
931
+ credentials: "include"
932
+ });
933
+ },
934
+ getUrl(lang) {
935
+ const langMap = {
936
+ "zh-CN": "sc",
937
+ "zh-HK": "tc",
938
+ "en-US": "en"
939
+ };
940
+ const langTag = this.$EventBus ? "tc" : langMap[lang];
941
+ const curCompUrl = this.componentUrl.replace("langTag", langTag);
942
+ this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
943
+ console.log("wujieCompUrl", this.wujieCompUrl);
944
+ this.propsdata5 = {
945
+ orgId: sessionStorage.getItem("orgId") || "",
946
+ staffId: sessionStorage.getItem("staffId") || "",
947
+ cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
948
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
949
+ componentId: this.componentId,
950
+ viaCompInstId: this.viaCompInstId
951
+ };
952
+ }
953
+ }
954
+ });
955
+ ;// ./package/cms-dynamic-comp/View.vue?vue&type=script&lang=js
956
+ /* harmony default export */ var cms_dynamic_comp_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
957
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
958
+ var componentNormalizer = __webpack_require__(1656);
959
+ ;// ./package/cms-dynamic-comp/View.vue
960
+
961
+
962
+
963
+
964
+
965
+ /* normalize component */
966
+ ;
967
+ var component = (0,componentNormalizer/* default */.A)(
968
+ cms_dynamic_comp_Viewvue_type_script_lang_js,
969
+ render,
970
+ staticRenderFns,
971
+ false,
972
+ null,
973
+ "f2f8be46",
974
+ null
975
+
976
+ )
977
+
978
+ /* harmony default export */ var View = (component.exports);
979
+
820
980
  /***/ }),
821
981
 
822
982
  /***/ 741:
@@ -5183,17 +5343,12 @@ const i18n = new vue_i18n_esm({
5183
5343
 
5184
5344
 
5185
5345
 
5186
-
5187
5346
  const service = axios_default().create({
5188
5347
  baseURL: "",
5189
5348
  // /apitest
5190
- timeout: 60000,
5349
+ timeout: 1000,
5191
5350
  // 请求超时時間
5192
5351
  withCredentials: true
5193
- // async: false,
5194
- // headers: {
5195
- // "Content-Type": "application/json;charset:utf-8"
5196
- // }
5197
5352
  });
5198
5353
  service.defaults.headers.post["Content-Type"] = "application/json;charset:utf-8";
5199
5354
 
@@ -5206,7 +5361,7 @@ service.interceptors.request.use(config => {
5206
5361
  if (config.url.includes("/ecosp-console")) {
5207
5362
  document.cookie = "JSESSIONID=node017nm2falxdfe8c1parzfv9ilr29.node0";
5208
5363
  } else if (config.url.includes("omni-channel-service-console")) {
5209
- document.cookie = "JSESSIONID=2321CEDF0A84F4D1C0FAD93D32D057BE";
5364
+ document.cookie = "JSESSIONID=CC486EC56D518B06821D4861676499DC";
5210
5365
  }
5211
5366
  } else {
5212
5367
  if (config.url.includes("/api/") && is_cmsComp) {
@@ -28059,6 +28214,7 @@ var map = {
28059
28214
  "./cms-banner/View.vue": 2350,
28060
28215
  "./cms-cells/View.vue": 5700,
28061
28216
  "./cms-description/View.vue": 3203,
28217
+ "./cms-dynamic-comp/View.vue": 740,
28062
28218
  "./cms-iconFour/View.vue": 8235,
28063
28219
  "./cms-imgFour/View.vue": 8238,
28064
28220
  "./cms-lineFive/View.vue": 4432,
@@ -28070,13 +28226,13 @@ var map = {
28070
28226
  "./cms-productDetails/View.vue": 7984,
28071
28227
  "./cms-question/View.vue": 9764,
28072
28228
  "./cms-richText/View.vue": 3411,
28073
- "./cms-servePlan-tab/View.vue": 6332,
28229
+ "./cms-servePlan-tab/View.vue": 6942,
28074
28230
  "./cms-servePlan-text/View.vue": 9487,
28075
28231
  "./cms-termsAndConditions/View.vue": 8073,
28076
28232
  "./cms-threeScroll/View.vue": 8045,
28077
28233
  "./cms-titleCenter/View.vue": 8106,
28078
28234
  "./cms-titleLeft/View.vue": 9004,
28079
- "./cms-via-storedValueCard/View.vue": 5953,
28235
+ "./cms-via-storedValueCard/View.vue": 7243,
28080
28236
  "./cms-view/View.vue": 1380
28081
28237
  };
28082
28238
 
@@ -28489,7 +28645,7 @@ var utils = __webpack_require__(1996);
28489
28645
 
28490
28646
 
28491
28647
  const baseConfig = {
28492
- cmhkChannelConfList: ["WWW", "mylink", "eshop"],
28648
+ cmhkChannelConfList: ["ALL"],
28493
28649
  //从接口获取全部的渠道,避免硬编码需要手动新增渠道
28494
28650
  startTime: "",
28495
28651
  endTime: ""
@@ -28543,17 +28699,16 @@ function getInitCompData({
28543
28699
  return {
28544
28700
  componentId: (0,utils/* getUuidCode */.J0)(32),
28545
28701
  //组件id
28546
- versionId: "",
28547
- //版本id 接口获取
28548
28702
  childList: [],
28549
28703
  //只有行列容器组件才会有子组件嵌入
28550
28704
  ...(isWujie ? {
28551
28705
  wujieConfig: {
28552
28706
  //wujie
28707
+ versionId: (0,utils/* getUuidCode */.J0)(32),
28708
+ //只有第三方厂商才会有单独的版本Id
28553
28709
  isVia: true,
28554
28710
  //区分旧的via组件 与 新增第三方厂商组件配置
28555
28711
  componentUrl: "/viaActivity/external/langTag/savingsCardList/front/",
28556
- workbenchUrl: "viaActivity/cmsComponent/tc/savingsCardList/workbench/",
28557
28712
  ...wujieConfig
28558
28713
  }
28559
28714
  } : {}),
@@ -28697,8 +28852,6 @@ function transfor(config) {
28697
28852
  const wujieComponentId = ((_settings$value = settings.value) === null || _settings$value === void 0 ? void 0 : _settings$value.componentId) || "";
28698
28853
  const viaCompInstId = ((_settings$value2 = settings.value) === null || _settings$value2 === void 0 ? void 0 : _settings$value2.viaCompInstId) || "";
28699
28854
  const compConfig = {
28700
- versionId: "",
28701
- //版本id 接口获取
28702
28855
  childList: childList,
28703
28856
  ...(isWujie ? {
28704
28857
  wujieConfig: {
@@ -28707,7 +28860,8 @@ function transfor(config) {
28707
28860
  componentUrl,
28708
28861
  workbenchUrl,
28709
28862
  componentId: wujieComponentId,
28710
- viaCompInstId
28863
+ viaCompInstId,
28864
+ versionId: "" //版本id 接口获取
28711
28865
  }
28712
28866
  } : {})
28713
28867
  };
@@ -29127,166 +29281,6 @@ module.exports = !DESCRIPTORS && !fails(function () {
29127
29281
  });
29128
29282
 
29129
29283
 
29130
- /***/ }),
29131
-
29132
- /***/ 5953:
29133
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
29134
-
29135
- "use strict";
29136
- // ESM COMPAT FLAG
29137
- __webpack_require__.r(__webpack_exports__);
29138
-
29139
- // EXPORTS
29140
- __webpack_require__.d(__webpack_exports__, {
29141
- "default": function() { return /* binding */ View; }
29142
- });
29143
-
29144
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=template&id=183f20d8&scoped=true
29145
- var render = function render() {
29146
- var _vm = this,
29147
- _c = _vm._self._c;
29148
- return _c('BaseComp', _vm._b({
29149
- attrs: {
29150
- "data": _vm.data,
29151
- "nowCompId": _vm.nowCompId,
29152
- "isOpcacity": _vm.isOpcacity,
29153
- "lang": _vm.lang
29154
- },
29155
- on: {
29156
- "getConfigData": _vm.getConfigData
29157
- }
29158
- }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
29159
- key: _vm.data.componentId,
29160
- attrs: {
29161
- "name": `cmsacive${_vm.data.componentId}`,
29162
- "url": _vm.wujieCompUrl,
29163
- "props": {
29164
- data: _vm.propsdata5
29165
- }
29166
- }
29167
- }) : _vm._e()], 1);
29168
- };
29169
- var staticRenderFns = [];
29170
-
29171
- // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
29172
- var baseComp = __webpack_require__(7291);
29173
- // EXTERNAL MODULE: ./package/patch.js + 1 modules
29174
- var patch = __webpack_require__(5512);
29175
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
29176
-
29177
-
29178
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
29179
- name: "cms-via-storedValueCard",
29180
- components: {
29181
- BaseComp: baseComp/* default */.A
29182
- },
29183
- props: {
29184
- data: {
29185
- type: Object,
29186
- default: () => {
29187
- return {};
29188
- }
29189
- },
29190
- nowCompId: {
29191
- type: [String, Number],
29192
- default: ""
29193
- },
29194
- isOpcacity: {
29195
- type: Boolean,
29196
- default: true
29197
- },
29198
- lang: {
29199
- type: String,
29200
- default: ""
29201
- }
29202
- },
29203
- data() {
29204
- return {
29205
- wujieCompUrl: "",
29206
- propsdata5: {},
29207
- showWujie: false,
29208
- compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
29209
- componentUrl: "",
29210
- componentId: "",
29211
- viaCompInstId: ""
29212
- };
29213
- },
29214
- async mounted() {
29215
- if (!this.$EventBus) {
29216
- if (window.location.origin.includes("-uat")) {
29217
- this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
29218
- } else {
29219
- this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
29220
- }
29221
- }
29222
- this.getUrl(this.lang);
29223
- },
29224
- created() {},
29225
- methods: {
29226
- getConfigData() {
29227
- const wujieConfig = this.data.wujieConfig;
29228
- this.componentUrl = wujieConfig.componentUrl;
29229
- this.componentId = wujieConfig.componentId;
29230
- this.viaCompInstId = wujieConfig.viaCompInstId;
29231
- this.getUrl(this.lang);
29232
- if (this.componentId) {
29233
- setTimeout(() => {
29234
- this.showWujie = true;
29235
- });
29236
- }
29237
- },
29238
- wujieFetchMx(url, options) {
29239
- return window.fetch(url, {
29240
- ...options,
29241
- credentials: "include"
29242
- });
29243
- },
29244
- getUrl(lang) {
29245
- const langMap = {
29246
- "zh-CN": "sc",
29247
- "zh-HK": "tc",
29248
- "en-US": "en"
29249
- };
29250
- const langTag = this.$EventBus ? "tc" : langMap[lang];
29251
- const curCompUrl = this.componentUrl.replace("langTag", langTag);
29252
- this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
29253
- console.log("wujieCompUrl", this.wujieCompUrl);
29254
- this.propsdata5 = {
29255
- orgId: sessionStorage.getItem("orgId") || "",
29256
- staffId: sessionStorage.getItem("staffId") || "",
29257
- cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
29258
- cmhkToken: sessionStorage.getItem("cmhkToken") || "",
29259
- componentId: this.componentId,
29260
- viaCompInstId: this.viaCompInstId
29261
- };
29262
- }
29263
- }
29264
- });
29265
- ;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
29266
- /* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
29267
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
29268
- var componentNormalizer = __webpack_require__(1656);
29269
- ;// ./package/cms-via-storedValueCard/View.vue
29270
-
29271
-
29272
-
29273
-
29274
-
29275
- /* normalize component */
29276
- ;
29277
- var component = (0,componentNormalizer/* default */.A)(
29278
- cms_via_storedValueCard_Viewvue_type_script_lang_js,
29279
- render,
29280
- staticRenderFns,
29281
- false,
29282
- null,
29283
- "183f20d8",
29284
- null
29285
-
29286
- )
29287
-
29288
- /* harmony default export */ var View = (component.exports);
29289
-
29290
29284
  /***/ }),
29291
29285
 
29292
29286
  /***/ 5966:
@@ -29461,206 +29455,6 @@ module.exports = function (iterator, fn, value, ENTRIES) {
29461
29455
  };
29462
29456
 
29463
29457
 
29464
- /***/ }),
29465
-
29466
- /***/ 6332:
29467
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
29468
-
29469
- "use strict";
29470
- // ESM COMPAT FLAG
29471
- __webpack_require__.r(__webpack_exports__);
29472
-
29473
- // EXPORTS
29474
- __webpack_require__.d(__webpack_exports__, {
29475
- "default": function() { return /* binding */ View; }
29476
- });
29477
-
29478
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=template&id=6f279e8a&scoped=true
29479
- var render = function render() {
29480
- var _vm = this,
29481
- _c = _vm._self._c;
29482
- return _c('BaseComp', _vm._b({
29483
- attrs: {
29484
- "data": _vm.data,
29485
- "nowCompId": _vm.nowCompId,
29486
- "isOpcacity": _vm.isOpcacity,
29487
- "lang": _vm.lang
29488
- },
29489
- on: {
29490
- "getConfigData": _vm.getConfigData
29491
- }
29492
- }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
29493
- ref: "iframeRef",
29494
- staticClass: "iframBox",
29495
- attrs: {
29496
- "src": _vm.servePlanSrcIframe,
29497
- "scrolling": "no",
29498
- "frameborder": "0"
29499
- }
29500
- }) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
29501
- key: _vm.servePlanSrc,
29502
- attrs: {
29503
- "fetch": _vm.wujieFetchMx,
29504
- "name": `cmsacive${_vm.data.componentId}`,
29505
- "url": _vm.servePlanSrc,
29506
- "props": {
29507
- data: _vm.propsdata5
29508
- }
29509
- }
29510
- }) : _vm._e()], 1);
29511
- };
29512
- var staticRenderFns = [];
29513
-
29514
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
29515
- var es_iterator_constructor = __webpack_require__(8111);
29516
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
29517
- var es_iterator_reduce = __webpack_require__(8237);
29518
- // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
29519
- var baseComp = __webpack_require__(7291);
29520
- // EXTERNAL MODULE: ./package/patch.js + 1 modules
29521
- var patch = __webpack_require__(5512);
29522
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
29523
-
29524
-
29525
-
29526
-
29527
-
29528
-
29529
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
29530
- name: "cms-servePlan-tab",
29531
- components: {
29532
- BaseComp: baseComp/* default */.A
29533
- },
29534
- props: {
29535
- data: {
29536
- type: Object,
29537
- default: () => {
29538
- return {};
29539
- }
29540
- },
29541
- nowCompId: {
29542
- type: [String, Number],
29543
- default: ""
29544
- },
29545
- isOpcacity: {
29546
- type: Boolean,
29547
- default: true
29548
- },
29549
- lang: {
29550
- type: String,
29551
- default: ""
29552
- }
29553
- },
29554
- data() {
29555
- return {
29556
- servePlanSrc: "",
29557
- routeLang: "tc",
29558
- configData: {},
29559
- parentShopCategoryId: "",
29560
- propsdata5: {},
29561
- showWujie: false,
29562
- servePlanSrcIframe: "",
29563
- compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
29564
- };
29565
- },
29566
- mounted() {
29567
- if (this.$EventBus && this.isOpcacity) {
29568
- window.addEventListener("message", this.handleMessage, false);
29569
- } else {
29570
- if (window.location.origin.includes("-uat")) {
29571
- this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
29572
- } else {
29573
- this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
29574
- }
29575
- this.showWujie = true;
29576
- const vm = this;
29577
- const _window = window;
29578
- this.$wujieBus.$on("jumpToServicePlanDetail", val => {
29579
- let url = `${_window.location.origin}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
29580
- _window.location.href = url;
29581
- });
29582
- }
29583
- this.getUrl(this.lang);
29584
- },
29585
- watch: {},
29586
- methods: {
29587
- getConfigData(configData) {
29588
- this.configData = configData;
29589
- this.parentShopCategoryId = configData.argument1;
29590
- this.getUrl(this.lang);
29591
- },
29592
- wujieFetchMx(url, options) {
29593
- return window.fetch(url, {
29594
- ...options,
29595
- credentials: "include"
29596
- });
29597
- },
29598
- getUrl(lang) {
29599
- const langMap = {
29600
- "zh-CN": "sc",
29601
- "zh-HK": "tc",
29602
- "en-US": "en"
29603
- };
29604
- this.routeLang = langMap[lang];
29605
- this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
29606
- const busiData = {
29607
- parentShopCategoryId: this.parentShopCategoryId,
29608
- onlyShowList: true
29609
- };
29610
- if (this.$EventBus) {
29611
- const queryStr = Object.keys(busiData).reduce((pre, cur) => {
29612
- if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
29613
- return pre;
29614
- }, "");
29615
- this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
29616
- }
29617
- this.propsdata5 = {
29618
- orgId: sessionStorage.getItem("orgId") || "",
29619
- staffId: sessionStorage.getItem("staffId") || "",
29620
- cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
29621
- cmhkToken: sessionStorage.getItem("cmhkToken") || "",
29622
- busiData: busiData
29623
- };
29624
- },
29625
- handleMessage(e) {
29626
- console.log(e.data, "789");
29627
- const iframe = this.$refs.iframeRef;
29628
- if (!iframe) return;
29629
- iframe.style && (iframe.style.height = e.data + "px");
29630
- }
29631
- }
29632
- });
29633
- ;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
29634
- /* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
29635
- ;// ./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/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=6f279e8a&prod&lang=scss&scoped=true
29636
- // extracted by mini-css-extract-plugin
29637
-
29638
- ;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=6f279e8a&prod&lang=scss&scoped=true
29639
-
29640
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
29641
- var componentNormalizer = __webpack_require__(1656);
29642
- ;// ./package/cms-servePlan-tab/View.vue
29643
-
29644
-
29645
-
29646
- ;
29647
-
29648
-
29649
- /* normalize component */
29650
-
29651
- var component = (0,componentNormalizer/* default */.A)(
29652
- cms_servePlan_tab_Viewvue_type_script_lang_js,
29653
- render,
29654
- staticRenderFns,
29655
- false,
29656
- null,
29657
- "6f279e8a",
29658
- null
29659
-
29660
- )
29661
-
29662
- /* harmony default export */ var View = (component.exports);
29663
-
29664
29458
  /***/ }),
29665
29459
 
29666
29460
  /***/ 6368:
@@ -38195,6 +37989,209 @@ module.exports = Math.min;
38195
37989
 
38196
37990
  /***/ }),
38197
37991
 
37992
+ /***/ 6942:
37993
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
37994
+
37995
+ "use strict";
37996
+ // ESM COMPAT FLAG
37997
+ __webpack_require__.r(__webpack_exports__);
37998
+
37999
+ // EXPORTS
38000
+ __webpack_require__.d(__webpack_exports__, {
38001
+ "default": function() { return /* binding */ View; }
38002
+ });
38003
+
38004
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=template&id=43da1b27&scoped=true
38005
+ var render = function render() {
38006
+ var _vm = this,
38007
+ _c = _vm._self._c;
38008
+ return _c('BaseComp', _vm._b({
38009
+ attrs: {
38010
+ "data": _vm.data,
38011
+ "nowCompId": _vm.nowCompId,
38012
+ "isOpcacity": _vm.isOpcacity,
38013
+ "lang": _vm.lang
38014
+ },
38015
+ on: {
38016
+ "getConfigData": _vm.getConfigData
38017
+ }
38018
+ }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
38019
+ ref: "iframeRef",
38020
+ staticClass: "iframBox",
38021
+ attrs: {
38022
+ "src": _vm.servePlanSrcIframe,
38023
+ "scrolling": "no",
38024
+ "frameborder": "0"
38025
+ }
38026
+ }) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
38027
+ key: _vm.servePlanSrc,
38028
+ attrs: {
38029
+ "fetch": _vm.wujieFetchMx,
38030
+ "name": `cmsacive${_vm.data.componentId}`,
38031
+ "url": _vm.servePlanSrc,
38032
+ "props": {
38033
+ data: _vm.propsdata5
38034
+ }
38035
+ }
38036
+ }) : _vm._e()], 1);
38037
+ };
38038
+ var staticRenderFns = [];
38039
+
38040
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
38041
+ var es_iterator_constructor = __webpack_require__(8111);
38042
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
38043
+ var es_iterator_reduce = __webpack_require__(8237);
38044
+ // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
38045
+ var baseComp = __webpack_require__(7291);
38046
+ // EXTERNAL MODULE: ./package/patch.js + 1 modules
38047
+ var patch = __webpack_require__(5512);
38048
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
38049
+
38050
+
38051
+
38052
+
38053
+
38054
+
38055
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
38056
+ name: "cms-servePlan-tab",
38057
+ components: {
38058
+ BaseComp: baseComp/* default */.A
38059
+ },
38060
+ props: {
38061
+ data: {
38062
+ type: Object,
38063
+ default: () => {
38064
+ return {};
38065
+ }
38066
+ },
38067
+ nowCompId: {
38068
+ type: [String, Number],
38069
+ default: ""
38070
+ },
38071
+ isOpcacity: {
38072
+ type: Boolean,
38073
+ default: true
38074
+ },
38075
+ lang: {
38076
+ type: String,
38077
+ default: ""
38078
+ }
38079
+ },
38080
+ data() {
38081
+ return {
38082
+ servePlanSrc: "",
38083
+ routeLang: "tc",
38084
+ configData: {},
38085
+ parentShopCategoryId: "",
38086
+ propsdata5: {},
38087
+ showWujie: false,
38088
+ servePlanSrcIframe: "",
38089
+ compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
38090
+ };
38091
+ },
38092
+ mounted() {
38093
+ if (this.$EventBus && this.isOpcacity) {
38094
+ window.addEventListener("message", this.handleMessage, false);
38095
+ } else {
38096
+ if (!this.$EventBus) {
38097
+ if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
38098
+ this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
38099
+ } else {
38100
+ this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
38101
+ }
38102
+ }
38103
+ this.showWujie = true;
38104
+ const vm = this;
38105
+ const _window = window;
38106
+ const jumpOriginUrl = this.$EventBus ? this.compBaseUrl : window.location.origin;
38107
+ this.$wujieBus.$on("jumpToServicePlanDetail", val => {
38108
+ let url = `${jumpOriginUrl}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
38109
+ _window.location.href = url;
38110
+ });
38111
+ }
38112
+ this.getUrl(this.lang);
38113
+ },
38114
+ watch: {},
38115
+ methods: {
38116
+ getConfigData(configData) {
38117
+ this.configData = configData;
38118
+ this.parentShopCategoryId = configData.argument1;
38119
+ this.getUrl(this.lang);
38120
+ },
38121
+ wujieFetchMx(url, options) {
38122
+ return window.fetch(url, {
38123
+ ...options,
38124
+ credentials: "include"
38125
+ });
38126
+ },
38127
+ getUrl(lang) {
38128
+ const langMap = {
38129
+ "zh-CN": "sc",
38130
+ "zh-HK": "tc",
38131
+ "en-US": "en"
38132
+ };
38133
+ this.routeLang = langMap[lang];
38134
+ this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
38135
+ const busiData = {
38136
+ parentShopCategoryId: this.parentShopCategoryId,
38137
+ onlyShowList: true
38138
+ };
38139
+ if (this.$EventBus) {
38140
+ const queryStr = Object.keys(busiData).reduce((pre, cur) => {
38141
+ if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
38142
+ return pre;
38143
+ }, "");
38144
+ this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
38145
+ }
38146
+ this.propsdata5 = {
38147
+ orgId: sessionStorage.getItem("orgId") || "",
38148
+ staffId: sessionStorage.getItem("staffId") || "",
38149
+ cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
38150
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
38151
+ busiData: busiData
38152
+ };
38153
+ },
38154
+ handleMessage(e) {
38155
+ console.log(e.data, "789");
38156
+ const iframe = this.$refs.iframeRef;
38157
+ if (!iframe) return;
38158
+ iframe.style && (iframe.style.height = e.data + "px");
38159
+ }
38160
+ }
38161
+ });
38162
+ ;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
38163
+ /* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
38164
+ ;// ./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/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=43da1b27&prod&lang=scss&scoped=true
38165
+ // extracted by mini-css-extract-plugin
38166
+
38167
+ ;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=43da1b27&prod&lang=scss&scoped=true
38168
+
38169
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
38170
+ var componentNormalizer = __webpack_require__(1656);
38171
+ ;// ./package/cms-servePlan-tab/View.vue
38172
+
38173
+
38174
+
38175
+ ;
38176
+
38177
+
38178
+ /* normalize component */
38179
+
38180
+ var component = (0,componentNormalizer/* default */.A)(
38181
+ cms_servePlan_tab_Viewvue_type_script_lang_js,
38182
+ render,
38183
+ staticRenderFns,
38184
+ false,
38185
+ null,
38186
+ "43da1b27",
38187
+ null
38188
+
38189
+ )
38190
+
38191
+ /* harmony default export */ var View = (component.exports);
38192
+
38193
+ /***/ }),
38194
+
38198
38195
  /***/ 6955:
38199
38196
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
38200
38197
 
@@ -38430,6 +38427,166 @@ __webpack_require__.r(__webpack_exports__);
38430
38427
 
38431
38428
  /***/ }),
38432
38429
 
38430
+ /***/ 7243:
38431
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
38432
+
38433
+ "use strict";
38434
+ // ESM COMPAT FLAG
38435
+ __webpack_require__.r(__webpack_exports__);
38436
+
38437
+ // EXPORTS
38438
+ __webpack_require__.d(__webpack_exports__, {
38439
+ "default": function() { return /* binding */ View; }
38440
+ });
38441
+
38442
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=template&id=6f691fe1&scoped=true
38443
+ var render = function render() {
38444
+ var _vm = this,
38445
+ _c = _vm._self._c;
38446
+ return _c('BaseComp', _vm._b({
38447
+ attrs: {
38448
+ "data": _vm.data,
38449
+ "nowCompId": _vm.nowCompId,
38450
+ "isOpcacity": _vm.isOpcacity,
38451
+ "lang": _vm.lang
38452
+ },
38453
+ on: {
38454
+ "getConfigData": _vm.getConfigData
38455
+ }
38456
+ }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
38457
+ key: _vm.data.componentId,
38458
+ attrs: {
38459
+ "name": `cmsacive${_vm.data.componentId}`,
38460
+ "url": _vm.wujieCompUrl,
38461
+ "props": {
38462
+ data: _vm.propsdata5
38463
+ }
38464
+ }
38465
+ }) : _vm._e()], 1);
38466
+ };
38467
+ var staticRenderFns = [];
38468
+
38469
+ // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
38470
+ var baseComp = __webpack_require__(7291);
38471
+ // EXTERNAL MODULE: ./package/patch.js + 1 modules
38472
+ var patch = __webpack_require__(5512);
38473
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
38474
+
38475
+
38476
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
38477
+ name: "cms-via-storedValueCard",
38478
+ components: {
38479
+ BaseComp: baseComp/* default */.A
38480
+ },
38481
+ props: {
38482
+ data: {
38483
+ type: Object,
38484
+ default: () => {
38485
+ return {};
38486
+ }
38487
+ },
38488
+ nowCompId: {
38489
+ type: [String, Number],
38490
+ default: ""
38491
+ },
38492
+ isOpcacity: {
38493
+ type: Boolean,
38494
+ default: true
38495
+ },
38496
+ lang: {
38497
+ type: String,
38498
+ default: ""
38499
+ }
38500
+ },
38501
+ data() {
38502
+ return {
38503
+ wujieCompUrl: "",
38504
+ propsdata5: {},
38505
+ showWujie: false,
38506
+ compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
38507
+ componentUrl: "",
38508
+ componentId: "",
38509
+ viaCompInstId: ""
38510
+ };
38511
+ },
38512
+ async mounted() {
38513
+ if (!this.$EventBus) {
38514
+ if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
38515
+ this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
38516
+ } else {
38517
+ this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
38518
+ }
38519
+ }
38520
+ this.getUrl(this.lang);
38521
+ },
38522
+ created() {},
38523
+ methods: {
38524
+ getConfigData() {
38525
+ const wujieConfig = this.data.wujieConfig;
38526
+ this.componentUrl = wujieConfig.componentUrl;
38527
+ this.componentId = wujieConfig.componentId;
38528
+ this.viaCompInstId = wujieConfig.viaCompInstId;
38529
+ this.getUrl(this.lang);
38530
+ if (this.componentId) {
38531
+ setTimeout(() => {
38532
+ this.showWujie = true;
38533
+ });
38534
+ }
38535
+ },
38536
+ wujieFetchMx(url, options) {
38537
+ return window.fetch(url, {
38538
+ ...options,
38539
+ credentials: "include"
38540
+ });
38541
+ },
38542
+ getUrl(lang) {
38543
+ const langMap = {
38544
+ "zh-CN": "sc",
38545
+ "zh-HK": "tc",
38546
+ "en-US": "en"
38547
+ };
38548
+ const langTag = this.$EventBus ? "tc" : langMap[lang];
38549
+ const curCompUrl = this.componentUrl.replace("langTag", langTag);
38550
+ this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
38551
+ console.log("wujieCompUrl", this.wujieCompUrl);
38552
+ this.propsdata5 = {
38553
+ orgId: sessionStorage.getItem("orgId") || "",
38554
+ staffId: sessionStorage.getItem("staffId") || "",
38555
+ cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
38556
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
38557
+ componentId: this.componentId,
38558
+ viaCompInstId: this.viaCompInstId
38559
+ };
38560
+ }
38561
+ }
38562
+ });
38563
+ ;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
38564
+ /* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
38565
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
38566
+ var componentNormalizer = __webpack_require__(1656);
38567
+ ;// ./package/cms-via-storedValueCard/View.vue
38568
+
38569
+
38570
+
38571
+
38572
+
38573
+ /* normalize component */
38574
+ ;
38575
+ var component = (0,componentNormalizer/* default */.A)(
38576
+ cms_via_storedValueCard_Viewvue_type_script_lang_js,
38577
+ render,
38578
+ staticRenderFns,
38579
+ false,
38580
+ null,
38581
+ "6f691fe1",
38582
+ null
38583
+
38584
+ )
38585
+
38586
+ /* harmony default export */ var View = (component.exports);
38587
+
38588
+ /***/ }),
38589
+
38433
38590
  /***/ 7291:
38434
38591
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
38435
38592