cms-chenhj-ui 2.0.5 → 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.
- package/cms-chenhj-ui.common.js +372 -218
- package/cms-chenhj-ui.common.js.map +1 -1
- package/cms-chenhj-ui.css +1 -1
- package/cms-chenhj-ui.umd.js +372 -218
- package/cms-chenhj-ui.umd.js.map +1 -1
- package/cms-chenhj-ui.umd.min.js +2 -2
- package/cms-chenhj-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/cms-chenhj-ui.umd.js
CHANGED
|
@@ -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:
|
|
@@ -19379,6 +19582,166 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
19379
19582
|
|
|
19380
19583
|
/***/ }),
|
|
19381
19584
|
|
|
19585
|
+
/***/ 1736:
|
|
19586
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19587
|
+
|
|
19588
|
+
"use strict";
|
|
19589
|
+
// ESM COMPAT FLAG
|
|
19590
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19591
|
+
|
|
19592
|
+
// EXPORTS
|
|
19593
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
19594
|
+
"default": function() { return /* binding */ View; }
|
|
19595
|
+
});
|
|
19596
|
+
|
|
19597
|
+
;// ./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-dynamic-comp/View.vue?vue&type=template&id=f2f8be46&scoped=true
|
|
19598
|
+
var render = function render() {
|
|
19599
|
+
var _vm = this,
|
|
19600
|
+
_c = _vm._self._c;
|
|
19601
|
+
return _c('BaseComp', _vm._b({
|
|
19602
|
+
attrs: {
|
|
19603
|
+
"data": _vm.data,
|
|
19604
|
+
"nowCompId": _vm.nowCompId,
|
|
19605
|
+
"isOpcacity": _vm.isOpcacity,
|
|
19606
|
+
"lang": _vm.lang
|
|
19607
|
+
},
|
|
19608
|
+
on: {
|
|
19609
|
+
"getConfigData": _vm.getConfigData
|
|
19610
|
+
}
|
|
19611
|
+
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
|
|
19612
|
+
key: _vm.data.componentId,
|
|
19613
|
+
attrs: {
|
|
19614
|
+
"name": `cmsacive${_vm.data.componentId}`,
|
|
19615
|
+
"url": _vm.wujieCompUrl,
|
|
19616
|
+
"props": {
|
|
19617
|
+
data: _vm.propsdata5
|
|
19618
|
+
}
|
|
19619
|
+
}
|
|
19620
|
+
}) : _vm._e()], 1);
|
|
19621
|
+
};
|
|
19622
|
+
var staticRenderFns = [];
|
|
19623
|
+
|
|
19624
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
19625
|
+
var baseComp = __webpack_require__(2950);
|
|
19626
|
+
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
19627
|
+
var patch = __webpack_require__(7890);
|
|
19628
|
+
;// ./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-dynamic-comp/View.vue?vue&type=script&lang=js
|
|
19629
|
+
|
|
19630
|
+
|
|
19631
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
19632
|
+
name: "cms-via-storedValueCard",
|
|
19633
|
+
components: {
|
|
19634
|
+
BaseComp: baseComp/* default */.A
|
|
19635
|
+
},
|
|
19636
|
+
props: {
|
|
19637
|
+
data: {
|
|
19638
|
+
type: Object,
|
|
19639
|
+
default: () => {
|
|
19640
|
+
return {};
|
|
19641
|
+
}
|
|
19642
|
+
},
|
|
19643
|
+
nowCompId: {
|
|
19644
|
+
type: [String, Number],
|
|
19645
|
+
default: ""
|
|
19646
|
+
},
|
|
19647
|
+
isOpcacity: {
|
|
19648
|
+
type: Boolean,
|
|
19649
|
+
default: true
|
|
19650
|
+
},
|
|
19651
|
+
lang: {
|
|
19652
|
+
type: String,
|
|
19653
|
+
default: ""
|
|
19654
|
+
}
|
|
19655
|
+
},
|
|
19656
|
+
data() {
|
|
19657
|
+
return {
|
|
19658
|
+
wujieCompUrl: "",
|
|
19659
|
+
propsdata5: {},
|
|
19660
|
+
showWujie: false,
|
|
19661
|
+
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
19662
|
+
componentUrl: "",
|
|
19663
|
+
componentId: "",
|
|
19664
|
+
viaCompInstId: ""
|
|
19665
|
+
};
|
|
19666
|
+
},
|
|
19667
|
+
async mounted() {
|
|
19668
|
+
if (!this.$EventBus) {
|
|
19669
|
+
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
19670
|
+
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
19671
|
+
} else {
|
|
19672
|
+
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
19673
|
+
}
|
|
19674
|
+
}
|
|
19675
|
+
this.getUrl(this.lang);
|
|
19676
|
+
},
|
|
19677
|
+
created() {},
|
|
19678
|
+
methods: {
|
|
19679
|
+
getConfigData() {
|
|
19680
|
+
const wujieConfig = this.data.wujieConfig;
|
|
19681
|
+
this.componentUrl = wujieConfig.componentUrl;
|
|
19682
|
+
this.componentId = wujieConfig.componentId;
|
|
19683
|
+
this.viaCompInstId = wujieConfig.viaCompInstId;
|
|
19684
|
+
this.getUrl(this.lang);
|
|
19685
|
+
if (this.componentId) {
|
|
19686
|
+
setTimeout(() => {
|
|
19687
|
+
this.showWujie = true;
|
|
19688
|
+
});
|
|
19689
|
+
}
|
|
19690
|
+
},
|
|
19691
|
+
wujieFetchMx(url, options) {
|
|
19692
|
+
return window.fetch(url, {
|
|
19693
|
+
...options,
|
|
19694
|
+
credentials: "include"
|
|
19695
|
+
});
|
|
19696
|
+
},
|
|
19697
|
+
getUrl(lang) {
|
|
19698
|
+
const langMap = {
|
|
19699
|
+
"zh-CN": "sc",
|
|
19700
|
+
"zh-HK": "tc",
|
|
19701
|
+
"en-US": "en"
|
|
19702
|
+
};
|
|
19703
|
+
const langTag = this.$EventBus ? "tc" : langMap[lang];
|
|
19704
|
+
const curCompUrl = this.componentUrl.replace("langTag", langTag);
|
|
19705
|
+
this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
|
|
19706
|
+
console.log("wujieCompUrl", this.wujieCompUrl);
|
|
19707
|
+
this.propsdata5 = {
|
|
19708
|
+
orgId: sessionStorage.getItem("orgId") || "",
|
|
19709
|
+
staffId: sessionStorage.getItem("staffId") || "",
|
|
19710
|
+
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
19711
|
+
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
19712
|
+
componentId: this.componentId,
|
|
19713
|
+
viaCompInstId: this.viaCompInstId
|
|
19714
|
+
};
|
|
19715
|
+
}
|
|
19716
|
+
}
|
|
19717
|
+
});
|
|
19718
|
+
;// ./package/cms-dynamic-comp/View.vue?vue&type=script&lang=js
|
|
19719
|
+
/* harmony default export */ var cms_dynamic_comp_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
19720
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
19721
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
19722
|
+
;// ./package/cms-dynamic-comp/View.vue
|
|
19723
|
+
|
|
19724
|
+
|
|
19725
|
+
|
|
19726
|
+
|
|
19727
|
+
|
|
19728
|
+
/* normalize component */
|
|
19729
|
+
;
|
|
19730
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
19731
|
+
cms_dynamic_comp_Viewvue_type_script_lang_js,
|
|
19732
|
+
render,
|
|
19733
|
+
staticRenderFns,
|
|
19734
|
+
false,
|
|
19735
|
+
null,
|
|
19736
|
+
"f2f8be46",
|
|
19737
|
+
null
|
|
19738
|
+
|
|
19739
|
+
)
|
|
19740
|
+
|
|
19741
|
+
/* harmony default export */ var View = (component.exports);
|
|
19742
|
+
|
|
19743
|
+
/***/ }),
|
|
19744
|
+
|
|
19382
19745
|
/***/ 1754:
|
|
19383
19746
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19384
19747
|
|
|
@@ -33095,6 +33458,7 @@ var map = {
|
|
|
33095
33458
|
"./cms-banner/View.vue": 8370,
|
|
33096
33459
|
"./cms-cells/View.vue": 983,
|
|
33097
33460
|
"./cms-description/View.vue": 6296,
|
|
33461
|
+
"./cms-dynamic-comp/View.vue": 1736,
|
|
33098
33462
|
"./cms-iconFour/View.vue": 2946,
|
|
33099
33463
|
"./cms-imgFour/View.vue": 1282,
|
|
33100
33464
|
"./cms-lineFive/View.vue": 1716,
|
|
@@ -33106,7 +33470,7 @@ var map = {
|
|
|
33106
33470
|
"./cms-productDetails/View.vue": 7793,
|
|
33107
33471
|
"./cms-question/View.vue": 6287,
|
|
33108
33472
|
"./cms-richText/View.vue": 5713,
|
|
33109
|
-
"./cms-servePlan-tab/View.vue":
|
|
33473
|
+
"./cms-servePlan-tab/View.vue": 330,
|
|
33110
33474
|
"./cms-servePlan-text/View.vue": 4726,
|
|
33111
33475
|
"./cms-termsAndConditions/View.vue": 7060,
|
|
33112
33476
|
"./cms-threeScroll/View.vue": 8687,
|
|
@@ -37142,209 +37506,6 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
37142
37506
|
|
|
37143
37507
|
/***/ }),
|
|
37144
37508
|
|
|
37145
|
-
/***/ 7639:
|
|
37146
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
37147
|
-
|
|
37148
|
-
"use strict";
|
|
37149
|
-
// ESM COMPAT FLAG
|
|
37150
|
-
__webpack_require__.r(__webpack_exports__);
|
|
37151
|
-
|
|
37152
|
-
// EXPORTS
|
|
37153
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
37154
|
-
"default": function() { return /* binding */ View; }
|
|
37155
|
-
});
|
|
37156
|
-
|
|
37157
|
-
;// ./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
|
|
37158
|
-
var render = function render() {
|
|
37159
|
-
var _vm = this,
|
|
37160
|
-
_c = _vm._self._c;
|
|
37161
|
-
return _c('BaseComp', _vm._b({
|
|
37162
|
-
attrs: {
|
|
37163
|
-
"data": _vm.data,
|
|
37164
|
-
"nowCompId": _vm.nowCompId,
|
|
37165
|
-
"isOpcacity": _vm.isOpcacity,
|
|
37166
|
-
"lang": _vm.lang
|
|
37167
|
-
},
|
|
37168
|
-
on: {
|
|
37169
|
-
"getConfigData": _vm.getConfigData
|
|
37170
|
-
}
|
|
37171
|
-
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
|
|
37172
|
-
ref: "iframeRef",
|
|
37173
|
-
staticClass: "iframBox",
|
|
37174
|
-
attrs: {
|
|
37175
|
-
"src": _vm.servePlanSrcIframe,
|
|
37176
|
-
"scrolling": "no",
|
|
37177
|
-
"frameborder": "0"
|
|
37178
|
-
}
|
|
37179
|
-
}) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
|
|
37180
|
-
key: _vm.servePlanSrc,
|
|
37181
|
-
attrs: {
|
|
37182
|
-
"fetch": _vm.wujieFetchMx,
|
|
37183
|
-
"name": `cmsacive${_vm.data.componentId}`,
|
|
37184
|
-
"url": _vm.servePlanSrc,
|
|
37185
|
-
"props": {
|
|
37186
|
-
data: _vm.propsdata5
|
|
37187
|
-
}
|
|
37188
|
-
}
|
|
37189
|
-
}) : _vm._e()], 1);
|
|
37190
|
-
};
|
|
37191
|
-
var staticRenderFns = [];
|
|
37192
|
-
|
|
37193
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
37194
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
37195
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
37196
|
-
var es_iterator_reduce = __webpack_require__(8237);
|
|
37197
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
37198
|
-
var baseComp = __webpack_require__(2950);
|
|
37199
|
-
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
37200
|
-
var patch = __webpack_require__(7890);
|
|
37201
|
-
;// ./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
|
|
37202
|
-
|
|
37203
|
-
|
|
37204
|
-
|
|
37205
|
-
|
|
37206
|
-
|
|
37207
|
-
|
|
37208
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
37209
|
-
name: "cms-servePlan-tab",
|
|
37210
|
-
components: {
|
|
37211
|
-
BaseComp: baseComp/* default */.A
|
|
37212
|
-
},
|
|
37213
|
-
props: {
|
|
37214
|
-
data: {
|
|
37215
|
-
type: Object,
|
|
37216
|
-
default: () => {
|
|
37217
|
-
return {};
|
|
37218
|
-
}
|
|
37219
|
-
},
|
|
37220
|
-
nowCompId: {
|
|
37221
|
-
type: [String, Number],
|
|
37222
|
-
default: ""
|
|
37223
|
-
},
|
|
37224
|
-
isOpcacity: {
|
|
37225
|
-
type: Boolean,
|
|
37226
|
-
default: true
|
|
37227
|
-
},
|
|
37228
|
-
lang: {
|
|
37229
|
-
type: String,
|
|
37230
|
-
default: ""
|
|
37231
|
-
}
|
|
37232
|
-
},
|
|
37233
|
-
data() {
|
|
37234
|
-
return {
|
|
37235
|
-
servePlanSrc: "",
|
|
37236
|
-
routeLang: "tc",
|
|
37237
|
-
configData: {},
|
|
37238
|
-
parentShopCategoryId: "",
|
|
37239
|
-
propsdata5: {},
|
|
37240
|
-
showWujie: false,
|
|
37241
|
-
servePlanSrcIframe: "",
|
|
37242
|
-
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
|
|
37243
|
-
};
|
|
37244
|
-
},
|
|
37245
|
-
mounted() {
|
|
37246
|
-
if (this.$EventBus && this.isOpcacity) {
|
|
37247
|
-
window.addEventListener("message", this.handleMessage, false);
|
|
37248
|
-
} else {
|
|
37249
|
-
if (!this.$EventBus) {
|
|
37250
|
-
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
37251
|
-
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
37252
|
-
} else {
|
|
37253
|
-
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
37254
|
-
}
|
|
37255
|
-
}
|
|
37256
|
-
this.showWujie = true;
|
|
37257
|
-
const vm = this;
|
|
37258
|
-
const _window = window;
|
|
37259
|
-
const jumpOriginUrl = this.$EventBus ? this.compBaseUrl : window.location.origin;
|
|
37260
|
-
this.$wujieBus.$on("jumpToServicePlanDetail", val => {
|
|
37261
|
-
let url = `${jumpOriginUrl}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
|
|
37262
|
-
_window.location.href = url;
|
|
37263
|
-
});
|
|
37264
|
-
}
|
|
37265
|
-
this.getUrl(this.lang);
|
|
37266
|
-
},
|
|
37267
|
-
watch: {},
|
|
37268
|
-
methods: {
|
|
37269
|
-
getConfigData(configData) {
|
|
37270
|
-
this.configData = configData;
|
|
37271
|
-
this.parentShopCategoryId = configData.argument1;
|
|
37272
|
-
this.getUrl(this.lang);
|
|
37273
|
-
},
|
|
37274
|
-
wujieFetchMx(url, options) {
|
|
37275
|
-
return window.fetch(url, {
|
|
37276
|
-
...options,
|
|
37277
|
-
credentials: "include"
|
|
37278
|
-
});
|
|
37279
|
-
},
|
|
37280
|
-
getUrl(lang) {
|
|
37281
|
-
const langMap = {
|
|
37282
|
-
"zh-CN": "sc",
|
|
37283
|
-
"zh-HK": "tc",
|
|
37284
|
-
"en-US": "en"
|
|
37285
|
-
};
|
|
37286
|
-
this.routeLang = langMap[lang];
|
|
37287
|
-
this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
|
|
37288
|
-
const busiData = {
|
|
37289
|
-
parentShopCategoryId: this.parentShopCategoryId,
|
|
37290
|
-
onlyShowList: true
|
|
37291
|
-
};
|
|
37292
|
-
if (this.$EventBus) {
|
|
37293
|
-
const queryStr = Object.keys(busiData).reduce((pre, cur) => {
|
|
37294
|
-
if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
|
|
37295
|
-
return pre;
|
|
37296
|
-
}, "");
|
|
37297
|
-
this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
|
|
37298
|
-
}
|
|
37299
|
-
this.propsdata5 = {
|
|
37300
|
-
orgId: sessionStorage.getItem("orgId") || "",
|
|
37301
|
-
staffId: sessionStorage.getItem("staffId") || "",
|
|
37302
|
-
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
37303
|
-
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
37304
|
-
busiData: busiData
|
|
37305
|
-
};
|
|
37306
|
-
},
|
|
37307
|
-
handleMessage(e) {
|
|
37308
|
-
console.log(e.data, "789");
|
|
37309
|
-
const iframe = this.$refs.iframeRef;
|
|
37310
|
-
if (!iframe) return;
|
|
37311
|
-
iframe.style && (iframe.style.height = e.data + "px");
|
|
37312
|
-
}
|
|
37313
|
-
}
|
|
37314
|
-
});
|
|
37315
|
-
;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
|
|
37316
|
-
/* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
37317
|
-
;// ./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
|
|
37318
|
-
// extracted by mini-css-extract-plugin
|
|
37319
|
-
|
|
37320
|
-
;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=43da1b27&prod&lang=scss&scoped=true
|
|
37321
|
-
|
|
37322
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
37323
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
37324
|
-
;// ./package/cms-servePlan-tab/View.vue
|
|
37325
|
-
|
|
37326
|
-
|
|
37327
|
-
|
|
37328
|
-
;
|
|
37329
|
-
|
|
37330
|
-
|
|
37331
|
-
/* normalize component */
|
|
37332
|
-
|
|
37333
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
37334
|
-
cms_servePlan_tab_Viewvue_type_script_lang_js,
|
|
37335
|
-
render,
|
|
37336
|
-
staticRenderFns,
|
|
37337
|
-
false,
|
|
37338
|
-
null,
|
|
37339
|
-
"43da1b27",
|
|
37340
|
-
null
|
|
37341
|
-
|
|
37342
|
-
)
|
|
37343
|
-
|
|
37344
|
-
/* harmony default export */ var View = (component.exports);
|
|
37345
|
-
|
|
37346
|
-
/***/ }),
|
|
37347
|
-
|
|
37348
37509
|
/***/ 7642:
|
|
37349
37510
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
37350
37511
|
|
|
@@ -38006,17 +38167,16 @@ function getInitCompData({
|
|
|
38006
38167
|
return {
|
|
38007
38168
|
componentId: (0,utils/* getUuidCode */.J0)(32),
|
|
38008
38169
|
//组件id
|
|
38009
|
-
versionId: "",
|
|
38010
|
-
//版本id 接口获取
|
|
38011
38170
|
childList: [],
|
|
38012
38171
|
//只有行列容器组件才会有子组件嵌入
|
|
38013
38172
|
...(isWujie ? {
|
|
38014
38173
|
wujieConfig: {
|
|
38015
38174
|
//wujie
|
|
38175
|
+
versionId: (0,utils/* getUuidCode */.J0)(32),
|
|
38176
|
+
//只有第三方厂商才会有单独的版本Id
|
|
38016
38177
|
isVia: true,
|
|
38017
38178
|
//区分旧的via组件 与 新增第三方厂商组件配置
|
|
38018
38179
|
componentUrl: "/viaActivity/external/langTag/savingsCardList/front/",
|
|
38019
|
-
workbenchUrl: "viaActivity/cmsComponent/tc/savingsCardList/workbench/",
|
|
38020
38180
|
...wujieConfig
|
|
38021
38181
|
}
|
|
38022
38182
|
} : {}),
|
|
@@ -38160,8 +38320,6 @@ function transfor(config) {
|
|
|
38160
38320
|
const wujieComponentId = ((_settings$value = settings.value) === null || _settings$value === void 0 ? void 0 : _settings$value.componentId) || "";
|
|
38161
38321
|
const viaCompInstId = ((_settings$value2 = settings.value) === null || _settings$value2 === void 0 ? void 0 : _settings$value2.viaCompInstId) || "";
|
|
38162
38322
|
const compConfig = {
|
|
38163
|
-
versionId: "",
|
|
38164
|
-
//版本id 接口获取
|
|
38165
38323
|
childList: childList,
|
|
38166
38324
|
...(isWujie ? {
|
|
38167
38325
|
wujieConfig: {
|
|
@@ -38170,7 +38328,8 @@ function transfor(config) {
|
|
|
38170
38328
|
componentUrl,
|
|
38171
38329
|
workbenchUrl,
|
|
38172
38330
|
componentId: wujieComponentId,
|
|
38173
|
-
viaCompInstId
|
|
38331
|
+
viaCompInstId,
|
|
38332
|
+
versionId: "" //版本id 接口获取
|
|
38174
38333
|
}
|
|
38175
38334
|
} : {})
|
|
38176
38335
|
};
|
|
@@ -38192,7 +38351,7 @@ function transfor(config) {
|
|
|
38192
38351
|
value: settings.value
|
|
38193
38352
|
};
|
|
38194
38353
|
}
|
|
38195
|
-
const isLangAll = !((_baseInfo = baseInfo) !== null && _baseInfo !== void 0 && _baseInfo.CN);
|
|
38354
|
+
const isLangAll = !isVia && !((_baseInfo = baseInfo) !== null && _baseInfo !== void 0 && _baseInfo.CN);
|
|
38196
38355
|
let lang_tc = {};
|
|
38197
38356
|
let lang_sc = {};
|
|
38198
38357
|
let lang_en = {};
|
|
@@ -43976,17 +44135,12 @@ const i18n = new vue_i18n_esm({
|
|
|
43976
44135
|
|
|
43977
44136
|
|
|
43978
44137
|
|
|
43979
|
-
|
|
43980
44138
|
const service = axios_default().create({
|
|
43981
44139
|
baseURL: "",
|
|
43982
44140
|
// /apitest
|
|
43983
|
-
timeout:
|
|
44141
|
+
timeout: 1000,
|
|
43984
44142
|
// 请求超时時間
|
|
43985
44143
|
withCredentials: true
|
|
43986
|
-
// async: false,
|
|
43987
|
-
// headers: {
|
|
43988
|
-
// "Content-Type": "application/json;charset:utf-8"
|
|
43989
|
-
// }
|
|
43990
44144
|
});
|
|
43991
44145
|
service.defaults.headers.post["Content-Type"] = "application/json;charset:utf-8";
|
|
43992
44146
|
|
|
@@ -43999,7 +44153,7 @@ service.interceptors.request.use(config => {
|
|
|
43999
44153
|
if (config.url.includes("/ecosp-console")) {
|
|
44000
44154
|
document.cookie = "JSESSIONID=node017nm2falxdfe8c1parzfv9ilr29.node0";
|
|
44001
44155
|
} else if (config.url.includes("omni-channel-service-console")) {
|
|
44002
|
-
document.cookie = "JSESSIONID=
|
|
44156
|
+
document.cookie = "JSESSIONID=CC486EC56D518B06821D4861676499DC";
|
|
44003
44157
|
}
|
|
44004
44158
|
} else {
|
|
44005
44159
|
if (config.url.includes("/api/") && is_cmsComp) {
|