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.common.js
CHANGED
|
@@ -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:
|
|
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=
|
|
5364
|
+
document.cookie = "JSESSIONID=CC486EC56D518B06821D4861676499DC";
|
|
5210
5365
|
}
|
|
5211
5366
|
} else {
|
|
5212
5367
|
if (config.url.includes("/api/") && is_cmsComp) {
|
|
@@ -17531,6 +17686,209 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17531
17686
|
|
|
17532
17687
|
/***/ }),
|
|
17533
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
|
+
|
|
17534
17892
|
/***/ 4195:
|
|
17535
17893
|
/***/ (function(module) {
|
|
17536
17894
|
|
|
@@ -28059,6 +28417,7 @@ var map = {
|
|
|
28059
28417
|
"./cms-banner/View.vue": 2350,
|
|
28060
28418
|
"./cms-cells/View.vue": 5700,
|
|
28061
28419
|
"./cms-description/View.vue": 3203,
|
|
28420
|
+
"./cms-dynamic-comp/View.vue": 740,
|
|
28062
28421
|
"./cms-iconFour/View.vue": 8235,
|
|
28063
28422
|
"./cms-imgFour/View.vue": 8238,
|
|
28064
28423
|
"./cms-lineFive/View.vue": 4432,
|
|
@@ -28070,7 +28429,7 @@ var map = {
|
|
|
28070
28429
|
"./cms-productDetails/View.vue": 7984,
|
|
28071
28430
|
"./cms-question/View.vue": 9764,
|
|
28072
28431
|
"./cms-richText/View.vue": 3411,
|
|
28073
|
-
"./cms-servePlan-tab/View.vue":
|
|
28432
|
+
"./cms-servePlan-tab/View.vue": 4193,
|
|
28074
28433
|
"./cms-servePlan-text/View.vue": 9487,
|
|
28075
28434
|
"./cms-termsAndConditions/View.vue": 8073,
|
|
28076
28435
|
"./cms-threeScroll/View.vue": 8045,
|
|
@@ -28543,17 +28902,16 @@ function getInitCompData({
|
|
|
28543
28902
|
return {
|
|
28544
28903
|
componentId: (0,utils/* getUuidCode */.J0)(32),
|
|
28545
28904
|
//组件id
|
|
28546
|
-
versionId: "",
|
|
28547
|
-
//版本id 接口获取
|
|
28548
28905
|
childList: [],
|
|
28549
28906
|
//只有行列容器组件才会有子组件嵌入
|
|
28550
28907
|
...(isWujie ? {
|
|
28551
28908
|
wujieConfig: {
|
|
28552
28909
|
//wujie
|
|
28910
|
+
versionId: (0,utils/* getUuidCode */.J0)(32),
|
|
28911
|
+
//只有第三方厂商才会有单独的版本Id
|
|
28553
28912
|
isVia: true,
|
|
28554
28913
|
//区分旧的via组件 与 新增第三方厂商组件配置
|
|
28555
28914
|
componentUrl: "/viaActivity/external/langTag/savingsCardList/front/",
|
|
28556
|
-
workbenchUrl: "viaActivity/cmsComponent/tc/savingsCardList/workbench/",
|
|
28557
28915
|
...wujieConfig
|
|
28558
28916
|
}
|
|
28559
28917
|
} : {}),
|
|
@@ -28697,8 +29055,6 @@ function transfor(config) {
|
|
|
28697
29055
|
const wujieComponentId = ((_settings$value = settings.value) === null || _settings$value === void 0 ? void 0 : _settings$value.componentId) || "";
|
|
28698
29056
|
const viaCompInstId = ((_settings$value2 = settings.value) === null || _settings$value2 === void 0 ? void 0 : _settings$value2.viaCompInstId) || "";
|
|
28699
29057
|
const compConfig = {
|
|
28700
|
-
versionId: "",
|
|
28701
|
-
//版本id 接口获取
|
|
28702
29058
|
childList: childList,
|
|
28703
29059
|
...(isWujie ? {
|
|
28704
29060
|
wujieConfig: {
|
|
@@ -28707,7 +29063,8 @@ function transfor(config) {
|
|
|
28707
29063
|
componentUrl,
|
|
28708
29064
|
workbenchUrl,
|
|
28709
29065
|
componentId: wujieComponentId,
|
|
28710
|
-
viaCompInstId
|
|
29066
|
+
viaCompInstId,
|
|
29067
|
+
versionId: "" //版本id 接口获取
|
|
28711
29068
|
}
|
|
28712
29069
|
} : {})
|
|
28713
29070
|
};
|
|
@@ -28729,7 +29086,7 @@ function transfor(config) {
|
|
|
28729
29086
|
value: settings.value
|
|
28730
29087
|
};
|
|
28731
29088
|
}
|
|
28732
|
-
const isLangAll = !((_baseInfo = baseInfo) !== null && _baseInfo !== void 0 && _baseInfo.CN);
|
|
29089
|
+
const isLangAll = !isVia && !((_baseInfo = baseInfo) !== null && _baseInfo !== void 0 && _baseInfo.CN);
|
|
28733
29090
|
let lang_tc = {};
|
|
28734
29091
|
let lang_sc = {};
|
|
28735
29092
|
let lang_en = {};
|
|
@@ -37835,209 +38192,6 @@ module.exports = Math.min;
|
|
|
37835
38192
|
|
|
37836
38193
|
/***/ }),
|
|
37837
38194
|
|
|
37838
|
-
/***/ 6942:
|
|
37839
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
37840
|
-
|
|
37841
|
-
"use strict";
|
|
37842
|
-
// ESM COMPAT FLAG
|
|
37843
|
-
__webpack_require__.r(__webpack_exports__);
|
|
37844
|
-
|
|
37845
|
-
// EXPORTS
|
|
37846
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
37847
|
-
"default": function() { return /* binding */ View; }
|
|
37848
|
-
});
|
|
37849
|
-
|
|
37850
|
-
;// ./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
|
|
37851
|
-
var render = function render() {
|
|
37852
|
-
var _vm = this,
|
|
37853
|
-
_c = _vm._self._c;
|
|
37854
|
-
return _c('BaseComp', _vm._b({
|
|
37855
|
-
attrs: {
|
|
37856
|
-
"data": _vm.data,
|
|
37857
|
-
"nowCompId": _vm.nowCompId,
|
|
37858
|
-
"isOpcacity": _vm.isOpcacity,
|
|
37859
|
-
"lang": _vm.lang
|
|
37860
|
-
},
|
|
37861
|
-
on: {
|
|
37862
|
-
"getConfigData": _vm.getConfigData
|
|
37863
|
-
}
|
|
37864
|
-
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
|
|
37865
|
-
ref: "iframeRef",
|
|
37866
|
-
staticClass: "iframBox",
|
|
37867
|
-
attrs: {
|
|
37868
|
-
"src": _vm.servePlanSrcIframe,
|
|
37869
|
-
"scrolling": "no",
|
|
37870
|
-
"frameborder": "0"
|
|
37871
|
-
}
|
|
37872
|
-
}) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
|
|
37873
|
-
key: _vm.servePlanSrc,
|
|
37874
|
-
attrs: {
|
|
37875
|
-
"fetch": _vm.wujieFetchMx,
|
|
37876
|
-
"name": `cmsacive${_vm.data.componentId}`,
|
|
37877
|
-
"url": _vm.servePlanSrc,
|
|
37878
|
-
"props": {
|
|
37879
|
-
data: _vm.propsdata5
|
|
37880
|
-
}
|
|
37881
|
-
}
|
|
37882
|
-
}) : _vm._e()], 1);
|
|
37883
|
-
};
|
|
37884
|
-
var staticRenderFns = [];
|
|
37885
|
-
|
|
37886
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
37887
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
37888
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
37889
|
-
var es_iterator_reduce = __webpack_require__(8237);
|
|
37890
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
37891
|
-
var baseComp = __webpack_require__(7291);
|
|
37892
|
-
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
37893
|
-
var patch = __webpack_require__(5512);
|
|
37894
|
-
;// ./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
|
|
37895
|
-
|
|
37896
|
-
|
|
37897
|
-
|
|
37898
|
-
|
|
37899
|
-
|
|
37900
|
-
|
|
37901
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
37902
|
-
name: "cms-servePlan-tab",
|
|
37903
|
-
components: {
|
|
37904
|
-
BaseComp: baseComp/* default */.A
|
|
37905
|
-
},
|
|
37906
|
-
props: {
|
|
37907
|
-
data: {
|
|
37908
|
-
type: Object,
|
|
37909
|
-
default: () => {
|
|
37910
|
-
return {};
|
|
37911
|
-
}
|
|
37912
|
-
},
|
|
37913
|
-
nowCompId: {
|
|
37914
|
-
type: [String, Number],
|
|
37915
|
-
default: ""
|
|
37916
|
-
},
|
|
37917
|
-
isOpcacity: {
|
|
37918
|
-
type: Boolean,
|
|
37919
|
-
default: true
|
|
37920
|
-
},
|
|
37921
|
-
lang: {
|
|
37922
|
-
type: String,
|
|
37923
|
-
default: ""
|
|
37924
|
-
}
|
|
37925
|
-
},
|
|
37926
|
-
data() {
|
|
37927
|
-
return {
|
|
37928
|
-
servePlanSrc: "",
|
|
37929
|
-
routeLang: "tc",
|
|
37930
|
-
configData: {},
|
|
37931
|
-
parentShopCategoryId: "",
|
|
37932
|
-
propsdata5: {},
|
|
37933
|
-
showWujie: false,
|
|
37934
|
-
servePlanSrcIframe: "",
|
|
37935
|
-
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
|
|
37936
|
-
};
|
|
37937
|
-
},
|
|
37938
|
-
mounted() {
|
|
37939
|
-
if (this.$EventBus && this.isOpcacity) {
|
|
37940
|
-
window.addEventListener("message", this.handleMessage, false);
|
|
37941
|
-
} else {
|
|
37942
|
-
if (!this.$EventBus) {
|
|
37943
|
-
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
37944
|
-
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
37945
|
-
} else {
|
|
37946
|
-
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
37947
|
-
}
|
|
37948
|
-
}
|
|
37949
|
-
this.showWujie = true;
|
|
37950
|
-
const vm = this;
|
|
37951
|
-
const _window = window;
|
|
37952
|
-
const jumpOriginUrl = this.$EventBus ? this.compBaseUrl : window.location.origin;
|
|
37953
|
-
this.$wujieBus.$on("jumpToServicePlanDetail", val => {
|
|
37954
|
-
let url = `${jumpOriginUrl}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
|
|
37955
|
-
_window.location.href = url;
|
|
37956
|
-
});
|
|
37957
|
-
}
|
|
37958
|
-
this.getUrl(this.lang);
|
|
37959
|
-
},
|
|
37960
|
-
watch: {},
|
|
37961
|
-
methods: {
|
|
37962
|
-
getConfigData(configData) {
|
|
37963
|
-
this.configData = configData;
|
|
37964
|
-
this.parentShopCategoryId = configData.argument1;
|
|
37965
|
-
this.getUrl(this.lang);
|
|
37966
|
-
},
|
|
37967
|
-
wujieFetchMx(url, options) {
|
|
37968
|
-
return window.fetch(url, {
|
|
37969
|
-
...options,
|
|
37970
|
-
credentials: "include"
|
|
37971
|
-
});
|
|
37972
|
-
},
|
|
37973
|
-
getUrl(lang) {
|
|
37974
|
-
const langMap = {
|
|
37975
|
-
"zh-CN": "sc",
|
|
37976
|
-
"zh-HK": "tc",
|
|
37977
|
-
"en-US": "en"
|
|
37978
|
-
};
|
|
37979
|
-
this.routeLang = langMap[lang];
|
|
37980
|
-
this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
|
|
37981
|
-
const busiData = {
|
|
37982
|
-
parentShopCategoryId: this.parentShopCategoryId,
|
|
37983
|
-
onlyShowList: true
|
|
37984
|
-
};
|
|
37985
|
-
if (this.$EventBus) {
|
|
37986
|
-
const queryStr = Object.keys(busiData).reduce((pre, cur) => {
|
|
37987
|
-
if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
|
|
37988
|
-
return pre;
|
|
37989
|
-
}, "");
|
|
37990
|
-
this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
|
|
37991
|
-
}
|
|
37992
|
-
this.propsdata5 = {
|
|
37993
|
-
orgId: sessionStorage.getItem("orgId") || "",
|
|
37994
|
-
staffId: sessionStorage.getItem("staffId") || "",
|
|
37995
|
-
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
37996
|
-
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
37997
|
-
busiData: busiData
|
|
37998
|
-
};
|
|
37999
|
-
},
|
|
38000
|
-
handleMessage(e) {
|
|
38001
|
-
console.log(e.data, "789");
|
|
38002
|
-
const iframe = this.$refs.iframeRef;
|
|
38003
|
-
if (!iframe) return;
|
|
38004
|
-
iframe.style && (iframe.style.height = e.data + "px");
|
|
38005
|
-
}
|
|
38006
|
-
}
|
|
38007
|
-
});
|
|
38008
|
-
;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
|
|
38009
|
-
/* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
38010
|
-
;// ./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
|
|
38011
|
-
// extracted by mini-css-extract-plugin
|
|
38012
|
-
|
|
38013
|
-
;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=43da1b27&prod&lang=scss&scoped=true
|
|
38014
|
-
|
|
38015
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
38016
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
38017
|
-
;// ./package/cms-servePlan-tab/View.vue
|
|
38018
|
-
|
|
38019
|
-
|
|
38020
|
-
|
|
38021
|
-
;
|
|
38022
|
-
|
|
38023
|
-
|
|
38024
|
-
/* normalize component */
|
|
38025
|
-
|
|
38026
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
38027
|
-
cms_servePlan_tab_Viewvue_type_script_lang_js,
|
|
38028
|
-
render,
|
|
38029
|
-
staticRenderFns,
|
|
38030
|
-
false,
|
|
38031
|
-
null,
|
|
38032
|
-
"43da1b27",
|
|
38033
|
-
null
|
|
38034
|
-
|
|
38035
|
-
)
|
|
38036
|
-
|
|
38037
|
-
/* harmony default export */ var View = (component.exports);
|
|
38038
|
-
|
|
38039
|
-
/***/ }),
|
|
38040
|
-
|
|
38041
38195
|
/***/ 6955:
|
|
38042
38196
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
38043
38197
|
|