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