cms-chenhj-ui 2.0.6 → 2.0.7

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.
@@ -483,6 +483,209 @@ Function.prototype.toString = makeBuiltIn(function toString() {
483
483
  }, 'toString');
484
484
 
485
485
 
486
+ /***/ }),
487
+
488
+ /***/ 330:
489
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
490
+
491
+ "use strict";
492
+ // ESM COMPAT FLAG
493
+ __webpack_require__.r(__webpack_exports__);
494
+
495
+ // EXPORTS
496
+ __webpack_require__.d(__webpack_exports__, {
497
+ "default": function() { return /* binding */ View; }
498
+ });
499
+
500
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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=6131af42&scoped=true
501
+ var render = function render() {
502
+ var _vm = this,
503
+ _c = _vm._self._c;
504
+ return _c('BaseComp', _vm._b({
505
+ attrs: {
506
+ "data": _vm.data,
507
+ "nowCompId": _vm.nowCompId,
508
+ "isOpcacity": _vm.isOpcacity,
509
+ "lang": _vm.lang
510
+ },
511
+ on: {
512
+ "getConfigData": _vm.getConfigData
513
+ }
514
+ }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
515
+ ref: "iframeRef",
516
+ staticClass: "iframBox",
517
+ attrs: {
518
+ "src": _vm.servePlanSrcIframe,
519
+ "scrolling": "no",
520
+ "frameborder": "0"
521
+ }
522
+ }) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
523
+ key: _vm.data.componentId,
524
+ attrs: {
525
+ "fetch": _vm.wujieFetchMx,
526
+ "name": `cmsacive${_vm.data.componentId}`,
527
+ "url": _vm.servePlanSrc,
528
+ "props": {
529
+ data: _vm.propsdata5
530
+ }
531
+ }
532
+ }) : _vm._e()], 1);
533
+ };
534
+ var staticRenderFns = [];
535
+
536
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
537
+ var es_iterator_constructor = __webpack_require__(8111);
538
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
539
+ var es_iterator_reduce = __webpack_require__(8237);
540
+ // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
541
+ var baseComp = __webpack_require__(2950);
542
+ // EXTERNAL MODULE: ./package/patch.js + 1 modules
543
+ var patch = __webpack_require__(7890);
544
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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
545
+
546
+
547
+
548
+
549
+
550
+
551
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
552
+ name: "cms-servePlan-tab",
553
+ components: {
554
+ BaseComp: baseComp/* default */.A
555
+ },
556
+ props: {
557
+ data: {
558
+ type: Object,
559
+ default: () => {
560
+ return {};
561
+ }
562
+ },
563
+ nowCompId: {
564
+ type: [String, Number],
565
+ default: ""
566
+ },
567
+ isOpcacity: {
568
+ type: Boolean,
569
+ default: true
570
+ },
571
+ lang: {
572
+ type: String,
573
+ default: ""
574
+ }
575
+ },
576
+ data() {
577
+ return {
578
+ servePlanSrc: "",
579
+ routeLang: "tc",
580
+ configData: {},
581
+ parentShopCategoryId: "",
582
+ propsdata5: {},
583
+ showWujie: false,
584
+ servePlanSrcIframe: "",
585
+ compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
586
+ };
587
+ },
588
+ mounted() {
589
+ if (this.$EventBus && this.isOpcacity) {
590
+ window.addEventListener("message", this.handleMessage, false);
591
+ } else {
592
+ if (!this.$EventBus) {
593
+ if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
594
+ this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
595
+ } else {
596
+ this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
597
+ }
598
+ }
599
+ this.showWujie = true;
600
+ const vm = this;
601
+ const _window = window;
602
+ const jumpOriginUrl = this.$EventBus ? this.compBaseUrl : window.location.origin;
603
+ this.$wujieBus.$on("jumpToServicePlanDetail", val => {
604
+ let url = `${jumpOriginUrl}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
605
+ _window.location.href = url;
606
+ });
607
+ }
608
+ this.getUrl(this.lang);
609
+ },
610
+ watch: {},
611
+ methods: {
612
+ getConfigData(configData) {
613
+ this.configData = configData;
614
+ this.parentShopCategoryId = configData.argument1;
615
+ this.getUrl(this.lang);
616
+ },
617
+ wujieFetchMx(url, options) {
618
+ return window.fetch(url, {
619
+ ...options,
620
+ credentials: "include"
621
+ });
622
+ },
623
+ getUrl(lang) {
624
+ const langMap = {
625
+ "zh-CN": "sc",
626
+ "zh-HK": "tc",
627
+ "en-US": "en"
628
+ };
629
+ this.routeLang = langMap[lang];
630
+ this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
631
+ const busiData = {
632
+ parentShopCategoryId: this.parentShopCategoryId,
633
+ onlyShowList: true
634
+ };
635
+ if (this.$EventBus) {
636
+ const queryStr = Object.keys(busiData).reduce((pre, cur) => {
637
+ if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
638
+ return pre;
639
+ }, "");
640
+ this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
641
+ }
642
+ this.propsdata5 = {
643
+ orgId: sessionStorage.getItem("orgId") || "",
644
+ staffId: sessionStorage.getItem("staffId") || "",
645
+ cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
646
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
647
+ busiData: busiData
648
+ };
649
+ },
650
+ handleMessage(e) {
651
+ console.log(e.data, "789");
652
+ const iframe = this.$refs.iframeRef;
653
+ if (!iframe) return;
654
+ iframe.style && (iframe.style.height = e.data + "px");
655
+ }
656
+ }
657
+ });
658
+ ;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
659
+ /* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
660
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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=6131af42&prod&lang=scss&scoped=true
661
+ // extracted by mini-css-extract-plugin
662
+
663
+ ;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=6131af42&prod&lang=scss&scoped=true
664
+
665
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
666
+ var componentNormalizer = __webpack_require__(1656);
667
+ ;// ./package/cms-servePlan-tab/View.vue
668
+
669
+
670
+
671
+ ;
672
+
673
+
674
+ /* normalize component */
675
+
676
+ var component = (0,componentNormalizer/* default */.A)(
677
+ cms_servePlan_tab_Viewvue_type_script_lang_js,
678
+ render,
679
+ staticRenderFns,
680
+ false,
681
+ null,
682
+ "6131af42",
683
+ null
684
+
685
+ )
686
+
687
+ /* harmony default export */ var View = (component.exports);
688
+
486
689
  /***/ }),
487
690
 
488
691
  /***/ 350:
@@ -33267,7 +33470,7 @@ var map = {
33267
33470
  "./cms-productDetails/View.vue": 7793,
33268
33471
  "./cms-question/View.vue": 6287,
33269
33472
  "./cms-richText/View.vue": 5713,
33270
- "./cms-servePlan-tab/View.vue": 7639,
33473
+ "./cms-servePlan-tab/View.vue": 330,
33271
33474
  "./cms-servePlan-text/View.vue": 4726,
33272
33475
  "./cms-termsAndConditions/View.vue": 7060,
33273
33476
  "./cms-threeScroll/View.vue": 8687,
@@ -37303,209 +37506,6 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
37303
37506
 
37304
37507
  /***/ }),
37305
37508
 
37306
- /***/ 7639:
37307
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
37308
-
37309
- "use strict";
37310
- // ESM COMPAT FLAG
37311
- __webpack_require__.r(__webpack_exports__);
37312
-
37313
- // EXPORTS
37314
- __webpack_require__.d(__webpack_exports__, {
37315
- "default": function() { return /* binding */ View; }
37316
- });
37317
-
37318
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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
37319
- var render = function render() {
37320
- var _vm = this,
37321
- _c = _vm._self._c;
37322
- return _c('BaseComp', _vm._b({
37323
- attrs: {
37324
- "data": _vm.data,
37325
- "nowCompId": _vm.nowCompId,
37326
- "isOpcacity": _vm.isOpcacity,
37327
- "lang": _vm.lang
37328
- },
37329
- on: {
37330
- "getConfigData": _vm.getConfigData
37331
- }
37332
- }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
37333
- ref: "iframeRef",
37334
- staticClass: "iframBox",
37335
- attrs: {
37336
- "src": _vm.servePlanSrcIframe,
37337
- "scrolling": "no",
37338
- "frameborder": "0"
37339
- }
37340
- }) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
37341
- key: _vm.servePlanSrc,
37342
- attrs: {
37343
- "fetch": _vm.wujieFetchMx,
37344
- "name": `cmsacive${_vm.data.componentId}`,
37345
- "url": _vm.servePlanSrc,
37346
- "props": {
37347
- data: _vm.propsdata5
37348
- }
37349
- }
37350
- }) : _vm._e()], 1);
37351
- };
37352
- var staticRenderFns = [];
37353
-
37354
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
37355
- var es_iterator_constructor = __webpack_require__(8111);
37356
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
37357
- var es_iterator_reduce = __webpack_require__(8237);
37358
- // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
37359
- var baseComp = __webpack_require__(2950);
37360
- // EXTERNAL MODULE: ./package/patch.js + 1 modules
37361
- var patch = __webpack_require__(7890);
37362
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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
37363
-
37364
-
37365
-
37366
-
37367
-
37368
-
37369
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
37370
- name: "cms-servePlan-tab",
37371
- components: {
37372
- BaseComp: baseComp/* default */.A
37373
- },
37374
- props: {
37375
- data: {
37376
- type: Object,
37377
- default: () => {
37378
- return {};
37379
- }
37380
- },
37381
- nowCompId: {
37382
- type: [String, Number],
37383
- default: ""
37384
- },
37385
- isOpcacity: {
37386
- type: Boolean,
37387
- default: true
37388
- },
37389
- lang: {
37390
- type: String,
37391
- default: ""
37392
- }
37393
- },
37394
- data() {
37395
- return {
37396
- servePlanSrc: "",
37397
- routeLang: "tc",
37398
- configData: {},
37399
- parentShopCategoryId: "",
37400
- propsdata5: {},
37401
- showWujie: false,
37402
- servePlanSrcIframe: "",
37403
- compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
37404
- };
37405
- },
37406
- mounted() {
37407
- if (this.$EventBus && this.isOpcacity) {
37408
- window.addEventListener("message", this.handleMessage, false);
37409
- } else {
37410
- if (!this.$EventBus) {
37411
- if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
37412
- this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
37413
- } else {
37414
- this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
37415
- }
37416
- }
37417
- this.showWujie = true;
37418
- const vm = this;
37419
- const _window = window;
37420
- const jumpOriginUrl = this.$EventBus ? this.compBaseUrl : window.location.origin;
37421
- this.$wujieBus.$on("jumpToServicePlanDetail", val => {
37422
- let url = `${jumpOriginUrl}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
37423
- _window.location.href = url;
37424
- });
37425
- }
37426
- this.getUrl(this.lang);
37427
- },
37428
- watch: {},
37429
- methods: {
37430
- getConfigData(configData) {
37431
- this.configData = configData;
37432
- this.parentShopCategoryId = configData.argument1;
37433
- this.getUrl(this.lang);
37434
- },
37435
- wujieFetchMx(url, options) {
37436
- return window.fetch(url, {
37437
- ...options,
37438
- credentials: "include"
37439
- });
37440
- },
37441
- getUrl(lang) {
37442
- const langMap = {
37443
- "zh-CN": "sc",
37444
- "zh-HK": "tc",
37445
- "en-US": "en"
37446
- };
37447
- this.routeLang = langMap[lang];
37448
- this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
37449
- const busiData = {
37450
- parentShopCategoryId: this.parentShopCategoryId,
37451
- onlyShowList: true
37452
- };
37453
- if (this.$EventBus) {
37454
- const queryStr = Object.keys(busiData).reduce((pre, cur) => {
37455
- if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
37456
- return pre;
37457
- }, "");
37458
- this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
37459
- }
37460
- this.propsdata5 = {
37461
- orgId: sessionStorage.getItem("orgId") || "",
37462
- staffId: sessionStorage.getItem("staffId") || "",
37463
- cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
37464
- cmhkToken: sessionStorage.getItem("cmhkToken") || "",
37465
- busiData: busiData
37466
- };
37467
- },
37468
- handleMessage(e) {
37469
- console.log(e.data, "789");
37470
- const iframe = this.$refs.iframeRef;
37471
- if (!iframe) return;
37472
- iframe.style && (iframe.style.height = e.data + "px");
37473
- }
37474
- }
37475
- });
37476
- ;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
37477
- /* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
37478
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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
37479
- // extracted by mini-css-extract-plugin
37480
-
37481
- ;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=43da1b27&prod&lang=scss&scoped=true
37482
-
37483
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
37484
- var componentNormalizer = __webpack_require__(1656);
37485
- ;// ./package/cms-servePlan-tab/View.vue
37486
-
37487
-
37488
-
37489
- ;
37490
-
37491
-
37492
- /* normalize component */
37493
-
37494
- var component = (0,componentNormalizer/* default */.A)(
37495
- cms_servePlan_tab_Viewvue_type_script_lang_js,
37496
- render,
37497
- staticRenderFns,
37498
- false,
37499
- null,
37500
- "43da1b27",
37501
- null
37502
-
37503
- )
37504
-
37505
- /* harmony default export */ var View = (component.exports);
37506
-
37507
- /***/ }),
37508
-
37509
37509
  /***/ 7642:
37510
37510
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
37511
37511
 
@@ -38351,7 +38351,7 @@ function transfor(config) {
38351
38351
  value: settings.value
38352
38352
  };
38353
38353
  }
38354
- const isLangAll = !((_baseInfo = baseInfo) !== null && _baseInfo !== void 0 && _baseInfo.CN);
38354
+ const isLangAll = !isVia && !((_baseInfo = baseInfo) !== null && _baseInfo !== void 0 && _baseInfo.CN);
38355
38355
  let lang_tc = {};
38356
38356
  let lang_sc = {};
38357
38357
  let lang_en = {};