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.
@@ -17686,6 +17686,209 @@ __webpack_require__.r(__webpack_exports__);
17686
17686
 
17687
17687
  /***/ }),
17688
17688
 
17689
+ /***/ 4193:
17690
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17691
+
17692
+ "use strict";
17693
+ // ESM COMPAT FLAG
17694
+ __webpack_require__.r(__webpack_exports__);
17695
+
17696
+ // EXPORTS
17697
+ __webpack_require__.d(__webpack_exports__, {
17698
+ "default": function() { return /* binding */ View; }
17699
+ });
17700
+
17701
+ ;// ./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=6131af42&scoped=true
17702
+ var render = function render() {
17703
+ var _vm = this,
17704
+ _c = _vm._self._c;
17705
+ return _c('BaseComp', _vm._b({
17706
+ attrs: {
17707
+ "data": _vm.data,
17708
+ "nowCompId": _vm.nowCompId,
17709
+ "isOpcacity": _vm.isOpcacity,
17710
+ "lang": _vm.lang
17711
+ },
17712
+ on: {
17713
+ "getConfigData": _vm.getConfigData
17714
+ }
17715
+ }, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
17716
+ ref: "iframeRef",
17717
+ staticClass: "iframBox",
17718
+ attrs: {
17719
+ "src": _vm.servePlanSrcIframe,
17720
+ "scrolling": "no",
17721
+ "frameborder": "0"
17722
+ }
17723
+ }) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
17724
+ key: _vm.data.componentId,
17725
+ attrs: {
17726
+ "fetch": _vm.wujieFetchMx,
17727
+ "name": `cmsacive${_vm.data.componentId}`,
17728
+ "url": _vm.servePlanSrc,
17729
+ "props": {
17730
+ data: _vm.propsdata5
17731
+ }
17732
+ }
17733
+ }) : _vm._e()], 1);
17734
+ };
17735
+ var staticRenderFns = [];
17736
+
17737
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
17738
+ var es_iterator_constructor = __webpack_require__(8111);
17739
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
17740
+ var es_iterator_reduce = __webpack_require__(8237);
17741
+ // EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
17742
+ var baseComp = __webpack_require__(7291);
17743
+ // EXTERNAL MODULE: ./package/patch.js + 1 modules
17744
+ var patch = __webpack_require__(5512);
17745
+ ;// ./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
17746
+
17747
+
17748
+
17749
+
17750
+
17751
+
17752
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
17753
+ name: "cms-servePlan-tab",
17754
+ components: {
17755
+ BaseComp: baseComp/* default */.A
17756
+ },
17757
+ props: {
17758
+ data: {
17759
+ type: Object,
17760
+ default: () => {
17761
+ return {};
17762
+ }
17763
+ },
17764
+ nowCompId: {
17765
+ type: [String, Number],
17766
+ default: ""
17767
+ },
17768
+ isOpcacity: {
17769
+ type: Boolean,
17770
+ default: true
17771
+ },
17772
+ lang: {
17773
+ type: String,
17774
+ default: ""
17775
+ }
17776
+ },
17777
+ data() {
17778
+ return {
17779
+ servePlanSrc: "",
17780
+ routeLang: "tc",
17781
+ configData: {},
17782
+ parentShopCategoryId: "",
17783
+ propsdata5: {},
17784
+ showWujie: false,
17785
+ servePlanSrcIframe: "",
17786
+ compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
17787
+ };
17788
+ },
17789
+ mounted() {
17790
+ if (this.$EventBus && this.isOpcacity) {
17791
+ window.addEventListener("message", this.handleMessage, false);
17792
+ } else {
17793
+ if (!this.$EventBus) {
17794
+ if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
17795
+ this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
17796
+ } else {
17797
+ this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
17798
+ }
17799
+ }
17800
+ this.showWujie = true;
17801
+ const vm = this;
17802
+ const _window = window;
17803
+ const jumpOriginUrl = this.$EventBus ? this.compBaseUrl : window.location.origin;
17804
+ this.$wujieBus.$on("jumpToServicePlanDetail", val => {
17805
+ let url = `${jumpOriginUrl}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
17806
+ _window.location.href = url;
17807
+ });
17808
+ }
17809
+ this.getUrl(this.lang);
17810
+ },
17811
+ watch: {},
17812
+ methods: {
17813
+ getConfigData(configData) {
17814
+ this.configData = configData;
17815
+ this.parentShopCategoryId = configData.argument1;
17816
+ this.getUrl(this.lang);
17817
+ },
17818
+ wujieFetchMx(url, options) {
17819
+ return window.fetch(url, {
17820
+ ...options,
17821
+ credentials: "include"
17822
+ });
17823
+ },
17824
+ getUrl(lang) {
17825
+ const langMap = {
17826
+ "zh-CN": "sc",
17827
+ "zh-HK": "tc",
17828
+ "en-US": "en"
17829
+ };
17830
+ this.routeLang = langMap[lang];
17831
+ this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
17832
+ const busiData = {
17833
+ parentShopCategoryId: this.parentShopCategoryId,
17834
+ onlyShowList: true
17835
+ };
17836
+ if (this.$EventBus) {
17837
+ const queryStr = Object.keys(busiData).reduce((pre, cur) => {
17838
+ if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
17839
+ return pre;
17840
+ }, "");
17841
+ this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
17842
+ }
17843
+ this.propsdata5 = {
17844
+ orgId: sessionStorage.getItem("orgId") || "",
17845
+ staffId: sessionStorage.getItem("staffId") || "",
17846
+ cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
17847
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
17848
+ busiData: busiData
17849
+ };
17850
+ },
17851
+ handleMessage(e) {
17852
+ console.log(e.data, "789");
17853
+ const iframe = this.$refs.iframeRef;
17854
+ if (!iframe) return;
17855
+ iframe.style && (iframe.style.height = e.data + "px");
17856
+ }
17857
+ }
17858
+ });
17859
+ ;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
17860
+ /* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
17861
+ ;// ./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=6131af42&prod&lang=scss&scoped=true
17862
+ // extracted by mini-css-extract-plugin
17863
+
17864
+ ;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=6131af42&prod&lang=scss&scoped=true
17865
+
17866
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
17867
+ var componentNormalizer = __webpack_require__(1656);
17868
+ ;// ./package/cms-servePlan-tab/View.vue
17869
+
17870
+
17871
+
17872
+ ;
17873
+
17874
+
17875
+ /* normalize component */
17876
+
17877
+ var component = (0,componentNormalizer/* default */.A)(
17878
+ cms_servePlan_tab_Viewvue_type_script_lang_js,
17879
+ render,
17880
+ staticRenderFns,
17881
+ false,
17882
+ null,
17883
+ "6131af42",
17884
+ null
17885
+
17886
+ )
17887
+
17888
+ /* harmony default export */ var View = (component.exports);
17889
+
17890
+ /***/ }),
17891
+
17689
17892
  /***/ 4195:
17690
17893
  /***/ (function(module) {
17691
17894
 
@@ -28226,7 +28429,7 @@ var map = {
28226
28429
  "./cms-productDetails/View.vue": 7984,
28227
28430
  "./cms-question/View.vue": 9764,
28228
28431
  "./cms-richText/View.vue": 3411,
28229
- "./cms-servePlan-tab/View.vue": 6942,
28432
+ "./cms-servePlan-tab/View.vue": 4193,
28230
28433
  "./cms-servePlan-text/View.vue": 9487,
28231
28434
  "./cms-termsAndConditions/View.vue": 8073,
28232
28435
  "./cms-threeScroll/View.vue": 8045,
@@ -28883,7 +29086,7 @@ function transfor(config) {
28883
29086
  value: settings.value
28884
29087
  };
28885
29088
  }
28886
- const isLangAll = !((_baseInfo = baseInfo) !== null && _baseInfo !== void 0 && _baseInfo.CN);
29089
+ const isLangAll = !isVia && !((_baseInfo = baseInfo) !== null && _baseInfo !== void 0 && _baseInfo.CN);
28887
29090
  let lang_tc = {};
28888
29091
  let lang_sc = {};
28889
29092
  let lang_en = {};
@@ -37989,209 +38192,6 @@ module.exports = Math.min;
37989
38192
 
37990
38193
  /***/ }),
37991
38194
 
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
-
38195
38195
  /***/ 6955:
38196
38196
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
38197
38197