cms-chenhj-ui 2.0.26 → 2.0.27

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.
@@ -21174,8 +21174,8 @@ var map = {
21174
21174
  "./cms-column-card/index": 3583,
21175
21175
  "./cms-column-card/index.js": 3583,
21176
21176
  "./cms-column/": 3154,
21177
- "./cms-column/View": 2171,
21178
- "./cms-column/View.vue": 2171,
21177
+ "./cms-column/View": 6821,
21178
+ "./cms-column/View.vue": 6821,
21179
21179
  "./cms-column/index": 3154,
21180
21180
  "./cms-column/index.js": 3154,
21181
21181
  "./cms-description": 98,
@@ -21293,8 +21293,8 @@ var map = {
21293
21293
  "./cms-termsAndConditions/index.js": 8806,
21294
21294
  "./cms-text": 4759,
21295
21295
  "./cms-text/": 4759,
21296
- "./cms-text/View": 7326,
21297
- "./cms-text/View.vue": 7326,
21296
+ "./cms-text/View": 7428,
21297
+ "./cms-text/View.vue": 7428,
21298
21298
  "./cms-text/index": 4759,
21299
21299
  "./cms-text/index.js": 4759,
21300
21300
  "./cms-threeScroll": 1661,
@@ -21317,8 +21317,8 @@ var map = {
21317
21317
  "./cms-titleLeft/index.js": 3003,
21318
21318
  "./cms-via-storedValueCard": 9711,
21319
21319
  "./cms-via-storedValueCard/": 9711,
21320
- "./cms-via-storedValueCard/View": 4160,
21321
- "./cms-via-storedValueCard/View.vue": 4160,
21320
+ "./cms-via-storedValueCard/View": 8924,
21321
+ "./cms-via-storedValueCard/View.vue": 8924,
21322
21322
  "./cms-via-storedValueCard/index": 9711,
21323
21323
  "./cms-via-storedValueCard/index copy": 8862,
21324
21324
  "./cms-via-storedValueCard/index copy.js": 8862,
@@ -22795,270 +22795,6 @@ test[TO_STRING_TAG] = 'z';
22795
22795
  module.exports = String(test) === '[object z]';
22796
22796
 
22797
22797
 
22798
- /***/ }),
22799
-
22800
- /***/ 2171:
22801
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
22802
-
22803
- "use strict";
22804
- // ESM COMPAT FLAG
22805
- __webpack_require__.r(__webpack_exports__);
22806
-
22807
- // EXPORTS
22808
- __webpack_require__.d(__webpack_exports__, {
22809
- "default": function() { return /* binding */ View; }
22810
- });
22811
-
22812
- ;// ./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-column/View.vue?vue&type=template&id=f2ba72e8&scoped=true
22813
- var render = function render() {
22814
- var _vm = this,
22815
- _c = _vm._self._c;
22816
- return _c('BaseComp', _vm._b({
22817
- attrs: {
22818
- "data": _vm.data,
22819
- "nowCompId": _vm.nowCompId,
22820
- "isOpcacity": _vm.isOpcacity,
22821
- "isMask": false,
22822
- "lang": _vm.lang
22823
- },
22824
- on: {
22825
- "getConfigData": _vm.getConfigData
22826
- },
22827
- scopedSlots: _vm._u([{
22828
- key: "default",
22829
- fn: function (slotProps) {
22830
- return [_c('section', {
22831
- class: (_vm.configData.widthType === 'full' ? 'width-full' : 'cmhk-home_main', {
22832
- hoverBorderClass: _vm.isConfigPage
22833
- }),
22834
- style: _vm.containerStyle
22835
- }, [_c('div', {
22836
- staticClass: "column-setting",
22837
- class: [`layout-${_vm.configData.layoutType || 'default'}`, `${slotProps.isMobile && _vm.configData.mobileLayout === 'vertical' ? 'mobile-vertical' : 'mobile-horizontal'}`],
22838
- style: _vm.columnStyle
22839
- }, _vm._l(_vm.data.childList, function (item, index) {
22840
- return _c('cms-column-card', _vm._b({
22841
- key: item.componentId,
22842
- class: _vm.getColumnItemClass(index),
22843
- style: _vm.getColumnItemStyle(index),
22844
- attrs: {
22845
- "data": item,
22846
- "nowCompId": _vm.nowCompId,
22847
- "isOpcacity": _vm.isOpcacity,
22848
- "isMask": false,
22849
- "lang": _vm.lang,
22850
- "isMobile": slotProps.isMobile,
22851
- "mobileLayout": _vm.configData.mobileLayout
22852
- }
22853
- }, 'cms-column-card', _vm.$attrs, false));
22854
- }), 1)])];
22855
- }
22856
- }])
22857
- }, 'BaseComp', _vm.$attrs, false));
22858
- };
22859
- var staticRenderFns = [];
22860
-
22861
- // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
22862
- var baseComp = __webpack_require__(9659);
22863
- ;// ./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-column/View.vue?vue&type=script&lang=js
22864
-
22865
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
22866
- name: "cms-column",
22867
- components: {
22868
- BaseComp: baseComp["default"]
22869
- },
22870
- props: {
22871
- data: {
22872
- type: Object,
22873
- default: () => {
22874
- return {};
22875
- }
22876
- },
22877
- nowCompId: {
22878
- type: [String, Number],
22879
- default: ""
22880
- },
22881
- isOpcacity: {
22882
- type: Boolean,
22883
- default: true
22884
- },
22885
- lang: {
22886
- type: String,
22887
- default: "zh-HK"
22888
- }
22889
- },
22890
- data() {
22891
- return {
22892
- configData: {},
22893
- messFold: true,
22894
- // 默认配置数据
22895
- defaultConfig: {
22896
- layoutType: "100",
22897
- heightType: "auto",
22898
- widthType: "auto",
22899
- mobileLayout: "vertical",
22900
- fixedHeight: 300,
22901
- borderWidth: 0,
22902
- borderStyle: "solid",
22903
- borderColor: "",
22904
- backgroundColor: "#FFF",
22905
- backgroundImage: "",
22906
- boxShadow: "",
22907
- borderRadius: 0,
22908
- columnGap: 0,
22909
- rowGap: 0,
22910
- title: "",
22911
- description: "",
22912
- input1: "",
22913
- showTitle: true,
22914
- showDescription: true,
22915
- animationDuration: 300,
22916
- responsiveBreakpoint: 768
22917
- }
22918
- };
22919
- },
22920
- mounted() {},
22921
- watch: {
22922
- configData: {
22923
- handler() {
22924
- this.updateStyles();
22925
- },
22926
- immediate: true,
22927
- deep: true
22928
- }
22929
- },
22930
- computed: {
22931
- isConfigPage() {
22932
- return this.$EventBus && this.isOpcacity;
22933
- },
22934
- // 容器样式
22935
- containerStyle() {
22936
- return {
22937
- backgroundColor: this.configData.backgroundColor || this.defaultConfig.backgroundColor,
22938
- backgroundImage: this.configData.backgroundImage ? `url(${this.configData.backgroundImage})` : "",
22939
- backgroundSize: "cover",
22940
- backgroundRepeat: "no-repeat",
22941
- backgroundPosition: "center center",
22942
- boxShadow: this.configData.boxShadow || this.defaultConfig.boxShadow,
22943
- borderRadius: `${this.configData.borderRadius || this.defaultConfig.borderRadius}px`,
22944
- minHeight: this.configData.heightType === "fixed" ? `${this.configData.fixedHeight}px` : "auto"
22945
- };
22946
- },
22947
- // 分栏容器样式
22948
- columnStyle() {
22949
- // const gap = this.configData.rowGap || this.defaultConfig.rowGap;
22950
- return {
22951
- // gap: `${gap}px`,
22952
- border: this.configData.borderWidth ? `${this.configData.borderWidth}px ${this.configData.borderStyle} ${this.configData.borderColor}` : "none"
22953
- };
22954
- }
22955
- },
22956
- methods: {
22957
- // 获取配置数据
22958
- getConfigData(configData) {
22959
- this.configData = configData;
22960
- this.updateStyles();
22961
- },
22962
- // 更新样式
22963
- updateStyles() {
22964
- this.$nextTick(() => {
22965
- // 触发样式更新
22966
- this.$forceUpdate();
22967
- });
22968
- },
22969
- // 获取分栏项的类名
22970
- getColumnItemClass(index) {
22971
- const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
22972
- return ["column-item", `column-item-${index}`, `layout-${layoutType}`, {
22973
- "min-h": this.$EventBus && this.isOpcacity,
22974
- "first-item": index === 0,
22975
- "last-item": index === this.data.childList.length - 1
22976
- }];
22977
- },
22978
- // 获取分栏项的样式
22979
- getColumnItemStyle(index) {
22980
- const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
22981
- const gap = this.configData.rowGap || this.defaultConfig.rowGap;
22982
- let flexBasis = "100%";
22983
- let marginRight = "0";
22984
-
22985
- // 根据布局类型设置宽度
22986
- switch (layoutType) {
22987
- case "50-50":
22988
- flexBasis = `calc(50% - ${gap / 2}px)`;
22989
- marginRight = index % 2 === 0 ? `${gap}px` : "0";
22990
- break;
22991
- case "33-66":
22992
- flexBasis = index === 0 ? `calc(33.33% - ${gap / 2}px)` : `calc(66.67% - ${gap / 2}px)`;
22993
- marginRight = index === 0 ? `${gap}px` : "0";
22994
- break;
22995
- case "66-33":
22996
- flexBasis = index === 0 ? `calc(66.67% - ${gap / 2}px)` : `calc(33.33% - ${gap / 2}px)`;
22997
- marginRight = index === 0 ? `${gap}px` : "0";
22998
- break;
22999
- case "33-33-33":
23000
- flexBasis = `calc(33.33% - ${gap * 2 / 3}px)`;
23001
- marginRight = index < 2 ? `${gap}px` : "0";
23002
- break;
23003
- case "25-50-25":
23004
- if (index === 0 || index === 2) {
23005
- flexBasis = `calc(25% - ${gap * 2 / 3}px)`;
23006
- } else {
23007
- flexBasis = `calc(50% - ${gap * 2 / 3}px)`;
23008
- }
23009
- marginRight = index < 2 ? `${gap}px` : "0";
23010
- break;
23011
- default:
23012
- flexBasis = "100%";
23013
- }
23014
- return {
23015
- flexBasis,
23016
- marginRight,
23017
- marginBottom: `${this.configData.columnGap || this.defaultConfig.columnGap}px`
23018
- };
23019
- },
23020
- // 折叠/展开文本
23021
- foldMessText() {
23022
- this.messFold = !this.messFold;
23023
- },
23024
- // 处理跳转链接
23025
- decodeJumpUrl(url) {
23026
- if (!url) return;
23027
- top.location.href = url;
23028
- }
23029
- }
23030
- });
23031
- ;// ./package/cms-column/View.vue?vue&type=script&lang=js
23032
- /* harmony default export */ var cms_column_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
23033
- ;// ./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-column/View.vue?vue&type=style&index=0&id=f2ba72e8&prod&lang=scss&scoped=true
23034
- // extracted by mini-css-extract-plugin
23035
-
23036
- ;// ./package/cms-column/View.vue?vue&type=style&index=0&id=f2ba72e8&prod&lang=scss&scoped=true
23037
-
23038
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
23039
- var componentNormalizer = __webpack_require__(1656);
23040
- ;// ./package/cms-column/View.vue
23041
-
23042
-
23043
-
23044
- ;
23045
-
23046
-
23047
- /* normalize component */
23048
-
23049
- var component = (0,componentNormalizer/* default */.A)(
23050
- cms_column_Viewvue_type_script_lang_js,
23051
- render,
23052
- staticRenderFns,
23053
- false,
23054
- null,
23055
- "f2ba72e8",
23056
- null
23057
-
23058
- )
23059
-
23060
- /* harmony default export */ var View = (component.exports);
23061
-
23062
22798
  /***/ }),
23063
22799
 
23064
22800
  /***/ 2179:
@@ -25444,7 +25180,7 @@ module.exports = Math.min;
25444
25180
  __webpack_require__.r(__webpack_exports__);
25445
25181
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2128);
25446
25182
 
25447
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 2171));
25183
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 6821));
25448
25184
  const langData = {
25449
25185
  // 布局配置
25450
25186
  layoutType: "100",
@@ -35659,384 +35395,6 @@ module.exports = function (it) {
35659
35395
  };
35660
35396
 
35661
35397
 
35662
- /***/ }),
35663
-
35664
- /***/ 4160:
35665
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
35666
-
35667
- "use strict";
35668
- // ESM COMPAT FLAG
35669
- __webpack_require__.r(__webpack_exports__);
35670
-
35671
- // EXPORTS
35672
- __webpack_require__.d(__webpack_exports__, {
35673
- "default": function() { return /* binding */ View; }
35674
- });
35675
-
35676
- ;// ./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-via-storedValueCard/View.vue?vue&type=template&id=25771ea8&scoped=true
35677
- var render = function render() {
35678
- var _vm = this,
35679
- _c = _vm._self._c;
35680
- return _c('BaseComp', _vm._b({
35681
- attrs: {
35682
- "data": _vm.data,
35683
- "nowCompId": _vm.nowCompId,
35684
- "isOpcacity": _vm.isOpcacity,
35685
- "lang": _vm.lang
35686
- },
35687
- on: {
35688
- "getConfigData": _vm.getConfigData
35689
- }
35690
- }, 'BaseComp', _vm.$attrs, false), [_c('section', {
35691
- staticClass: "cmhk-home_main"
35692
- }, [_c('div', {
35693
- staticClass: "wrap"
35694
- }, [_c('div', {
35695
- ref: "cardList",
35696
- staticClass: "cardList"
35697
- }, [_vm.viewList.length === 0 ? [_c('div', {
35698
- staticClass: "card-box"
35699
- }, [_c('div', {
35700
- staticClass: "card"
35701
- }, [_c('div', {
35702
- staticClass: "img-box"
35703
- }, [_c('div', {
35704
- staticClass: "card-img",
35705
- class: {
35706
- 'is-cms': _vm.$EventBus
35707
- }
35708
- }, [_c('img', {
35709
- staticStyle: {
35710
- "height": "200px"
35711
- },
35712
- attrs: {
35713
- "src": _vm.placeholderImg,
35714
- "alt": ""
35715
- }
35716
- })])]), _c('div', {
35717
- staticClass: "content-box"
35718
- }, [_c('div', {
35719
- staticClass: "card-name"
35720
- }, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
35721
- staticClass: "text-box"
35722
- }, [_c('div', {
35723
- staticClass: "card-refPrice"
35724
- }, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
35725
- staticClass: "card-pice-text"
35726
- }, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
35727
- staticClass: "card-pice"
35728
- }, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
35729
- staticClass: "card-btn"
35730
- }, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
35731
- return _c('div', {
35732
- key: `${index}-${item.commodityId || index}`,
35733
- staticClass: "card-box"
35734
- }, [_c('div', {
35735
- staticClass: "card"
35736
- }, [_c('div', {
35737
- staticClass: "tag-box-left"
35738
- }, [_vm._l(item.malltCommodityLeft, function (ele, i) {
35739
- return [_c('img', {
35740
- key: i,
35741
- attrs: {
35742
- "src": _vm.compBaseUrl + ele.pictureUrl,
35743
- "alt": ""
35744
- }
35745
- })];
35746
- })], 2), _c('div', {
35747
- staticClass: "tag-box-right"
35748
- }, [_vm._l(item.malltCommodityRight, function (ele, i) {
35749
- return [_c('img', {
35750
- key: i,
35751
- attrs: {
35752
- "src": _vm.compBaseUrl + ele.pictureUrl,
35753
- "alt": ""
35754
- }
35755
- })];
35756
- })], 2), _c('div', {
35757
- staticClass: "img-box"
35758
- }, [_vm.isNotActive(item) ? _c('div', {
35759
- staticClass: "mask"
35760
- }, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
35761
- staticClass: "card-img",
35762
- class: {
35763
- 'is-cms': _vm.$EventBus
35764
- }
35765
- }, [_c('img', {
35766
- attrs: {
35767
- "src": _vm.compBaseUrl + item.maxPicId,
35768
- "alt": ""
35769
- }
35770
- })])]), _c('div', {
35771
- staticClass: "content-box"
35772
- }, [_vm.isNotActive(item) ? _c('div', {
35773
- staticClass: "content-mask"
35774
- }) : _vm._e(), _c('div', {
35775
- staticClass: "card-name"
35776
- }, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
35777
- staticClass: "text-box"
35778
- }, [item.price !== item.refPrice ? _c('div', {
35779
- staticClass: "card-refPrice"
35780
- }, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
35781
- staticClass: "card-refPrice"
35782
- }), _c('div', {
35783
- staticClass: "card-pice-text"
35784
- }, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
35785
- staticClass: "card-pice spc-font"
35786
- }, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
35787
- staticClass: "card-btn",
35788
- on: {
35789
- "click": function ($event) {
35790
- return _vm.goDetail(item);
35791
- }
35792
- }
35793
- }, [_vm._v(" " + _vm._s(_vm.langText.buyNow)), _c('img', {
35794
- attrs: {
35795
- "src": _vm.arrowRightImg
35796
- }
35797
- })]) : _c('div', {
35798
- staticClass: "card-btn"
35799
- }, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? (_vm.langText.launch || "").replace("NNN", item.upTime) : _vm.langText.Offer) + " ")])])])]);
35800
- })], 2), !_vm.seeMore && _vm.configList.length > 9 ? _c('div', {
35801
- ref: "seeMoreRef",
35802
- staticClass: "seeMore",
35803
- on: {
35804
- "click": function ($event) {
35805
- _vm.seeMore = true;
35806
- }
35807
- }
35808
- }, [_vm._v(" " + _vm._s(_vm.langText.more) + " "), _c('img', {
35809
- staticClass: "btm",
35810
- attrs: {
35811
- "src": _vm.arrowDownImg
35812
- }
35813
- })]) : _vm._e()])])]);
35814
- };
35815
- var staticRenderFns = [];
35816
-
35817
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
35818
- var es_iterator_constructor = __webpack_require__(8111);
35819
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
35820
- var es_iterator_filter = __webpack_require__(2489);
35821
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
35822
- var es_iterator_for_each = __webpack_require__(7588);
35823
- // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
35824
- var baseComp = __webpack_require__(9659);
35825
- // EXTERNAL MODULE: ./src/api/index.js
35826
- var api = __webpack_require__(2842);
35827
- // EXTERNAL MODULE: ./package/patch.js
35828
- var patch = __webpack_require__(4229);
35829
- // EXTERNAL MODULE: ./node_modules/qs/lib/index.js
35830
- var lib = __webpack_require__(7087);
35831
- var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
35832
- ;// ./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-via-storedValueCard/View.vue?vue&type=script&lang=js
35833
-
35834
-
35835
-
35836
-
35837
-
35838
-
35839
-
35840
-
35841
-
35842
-
35843
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
35844
- name: "cms-via-storedValueCard",
35845
- components: {
35846
- BaseComp: baseComp["default"]
35847
- },
35848
- props: {
35849
- data: {
35850
- type: Object,
35851
- default: () => {
35852
- return {};
35853
- }
35854
- },
35855
- nowCompId: {
35856
- type: [String, Number],
35857
- default: ""
35858
- },
35859
- isOpcacity: {
35860
- type: Boolean,
35861
- default: true
35862
- },
35863
- lang: {
35864
- type: String,
35865
- default: "zh-HK"
35866
- }
35867
- },
35868
- data() {
35869
- return {
35870
- langConfig: {
35871
- "zh-HK": {
35872
- productName: "產品名稱",
35873
- Price: "建議零售價",
35874
- onlinePrice: "網上優惠價",
35875
- buyNow: "立即選購",
35876
- comingSoon: "即將推出",
35877
- expired: "優惠已過期",
35878
- more: "查看更多",
35879
- launch: "NNN 上線",
35880
- Offer: "優惠即將推出"
35881
- },
35882
- "zh-CN": {
35883
- productName: "产品名称",
35884
- Price: "建议零售价",
35885
- onlinePrice: "网上优惠价",
35886
- buyNow: "立即选购",
35887
- comingSoon: "即将推出",
35888
- expired: "优惠已过期",
35889
- more: "查看更多",
35890
- launch: "NNN 上线",
35891
- Offer: "优惠即将推出"
35892
- },
35893
- "en-US": {
35894
- productName: "Product Name",
35895
- Price: "SRP",
35896
- onlinePrice: "Online Price",
35897
- buyNow: "Buy Now",
35898
- comingSoon: "Coming Soon",
35899
- expired: "Expired",
35900
- more: "See more",
35901
- launch: "Launch at NNN",
35902
- Offer: "Offer Coming"
35903
- }
35904
- },
35905
- configList: [],
35906
- seeMore: false,
35907
- nowTs: Date.now(),
35908
- compBaseUrl: "https://omniapi.hk.chinamobile.com",
35909
- // images
35910
- placeholderImg: __webpack_require__(5335),
35911
- arrowRightImg: __webpack_require__(4860),
35912
- arrowDownImg: __webpack_require__(1861),
35913
- arrowHoverImg: __webpack_require__(4116),
35914
- arrowActiveImg: __webpack_require__(9670),
35915
- shopList: []
35916
- };
35917
- },
35918
- computed: {
35919
- langText() {
35920
- return this.langConfig[this.lang] ? this.langConfig[this.lang] : this.langConfig["zh-HK"];
35921
- },
35922
- viewList() {
35923
- if (this.seeMore) return this.shopList;
35924
- return this.shopList.slice(0, 9);
35925
- }
35926
- },
35927
- mounted() {
35928
- if (!this.$EventBus) {
35929
- this.compBaseUrl = (0,patch.getCompBaseUrl)();
35930
- }
35931
- },
35932
- beforeDestroy() {},
35933
- methods: {
35934
- getConfigData(configData) {
35935
- this.configList = configData.configList;
35936
- console.log("getConfigData", this.configList);
35937
- this.getValue();
35938
- },
35939
- async getValue() {
35940
- await this.getCommodityDetails();
35941
- },
35942
- // 拉取已选商品详情
35943
- async getCommodityDetails() {
35944
- // try {
35945
- let req = {
35946
- busInfo: JSON.stringify({
35947
- commodityIds: [...this.configList],
35948
- commodityTypes: ["604", "605"]
35949
- })
35950
- };
35951
- req = lib_default().stringify(req);
35952
- const json = await (0,api/* getCommodityDetails */.yX)(req, this.lang);
35953
- let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
35954
- if (Array.isArray(dataResult)) {
35955
- dataResult.forEach(item => {
35956
- if (Array.isArray(item.malltCommodityTags)) {
35957
- const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
35958
- const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
35959
- item.malltCommodityLeft = left.slice(0, 2);
35960
- item.malltCommodityRight = right.slice(0, 4);
35961
- } else {
35962
- item.malltCommodityLeft = [];
35963
- item.malltCommodityRight = [];
35964
- }
35965
- });
35966
- // 按选择顺序排序
35967
- this.shopList = dataResult.sort((a, b) => {
35968
- return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
35969
- });
35970
- } else {
35971
- this.shopList = [];
35972
- }
35973
- // } catch (e) {
35974
- // this.shopList = [];
35975
- // }
35976
- },
35977
- isActive(item) {
35978
- const now = Date.now();
35979
- return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
35980
- },
35981
- isNotActive(item) {
35982
- const now = Date.now();
35983
- return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
35984
- },
35985
- convertCentsToYuan(cents) {
35986
- const yuan = (Number(cents || 0) / 100).toFixed(2);
35987
- return parseFloat(yuan);
35988
- },
35989
- goDetail(item) {
35990
- const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
35991
- const langMap = {
35992
- "zh-CN": "sc",
35993
- "zh-HK": "tc",
35994
- "en-US": "en"
35995
- };
35996
- const routeLang = langMap[this.lang];
35997
- if (item.commodityType === "604") {
35998
- if ((item.commodityName || "").includes("MySIM")) {
35999
- window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
36000
- } else {
36001
- window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
36002
- }
36003
- } else if (item.commodityType === "605") {
36004
- window.parent.location.href = `${base}/${routeLang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
36005
- }
36006
- }
36007
- }
36008
- });
36009
- ;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
36010
- /* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
36011
- ;// ./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-via-storedValueCard/View.vue?vue&type=style&index=0&id=25771ea8&prod&lang=scss&scoped=true
36012
- // extracted by mini-css-extract-plugin
36013
-
36014
- ;// ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=25771ea8&prod&lang=scss&scoped=true
36015
-
36016
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
36017
- var componentNormalizer = __webpack_require__(1656);
36018
- ;// ./package/cms-via-storedValueCard/View.vue
36019
-
36020
-
36021
-
36022
- ;
36023
-
36024
-
36025
- /* normalize component */
36026
-
36027
- var component = (0,componentNormalizer/* default */.A)(
36028
- cms_via_storedValueCard_Viewvue_type_script_lang_js,
36029
- render,
36030
- staticRenderFns,
36031
- false,
36032
- null,
36033
- "25771ea8",
36034
- null
36035
-
36036
- )
36037
-
36038
- /* harmony default export */ var View = (component.exports);
36039
-
36040
35398
  /***/ }),
36041
35399
 
36042
35400
  /***/ 4188:
@@ -38082,7 +37440,7 @@ exportTypedArrayMethod('toSorted', function toSorted(compareFn) {
38082
37440
  __webpack_require__.r(__webpack_exports__);
38083
37441
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2128);
38084
37442
 
38085
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 7326));
37443
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 7428));
38086
37444
  const langData = {
38087
37445
  // 内容编辑
38088
37446
  textContent: "请输入文本内容",
@@ -38097,7 +37455,8 @@ const langData = {
38097
37455
  fontWeight: "normal",
38098
37456
  fontStyle: "normal",
38099
37457
  textDecoration: "none",
38100
- fontFamily: "Microsoft YaHei",
37458
+ // fontFamily: "Microsoft YaHei",
37459
+
38101
37460
  // 布局设置
38102
37461
  paddingTop: 0,
38103
37462
  paddingBottom: 0,
@@ -39333,7 +38692,7 @@ var map = {
39333
38692
  "./cms-button/View.vue": 1163,
39334
38693
  "./cms-cells/View.vue": 983,
39335
38694
  "./cms-column-card/View.vue": 688,
39336
- "./cms-column/View.vue": 2171,
38695
+ "./cms-column/View.vue": 6821,
39337
38696
  "./cms-description/View.vue": 6296,
39338
38697
  "./cms-dynamic-comp/View.vue": 471,
39339
38698
  "./cms-iconFour/View.vue": 2946,
@@ -39352,11 +38711,11 @@ var map = {
39352
38711
  "./cms-servePlan-tab/View.vue": 8296,
39353
38712
  "./cms-servePlan-text/View.vue": 4726,
39354
38713
  "./cms-termsAndConditions/View.vue": 7060,
39355
- "./cms-text/View.vue": 7326,
38714
+ "./cms-text/View.vue": 7428,
39356
38715
  "./cms-threeScroll/View.vue": 38,
39357
38716
  "./cms-titleCenter/View.vue": 788,
39358
38717
  "./cms-titleLeft/View.vue": 7284,
39359
- "./cms-via-storedValueCard/View.vue": 4160,
38718
+ "./cms-via-storedValueCard/View.vue": 8924,
39360
38719
  "./cms-video-group/View.vue": 103,
39361
38720
  "./cms-video/View.vue": 5846,
39362
38721
  "./cms-view/View.vue": 3774
@@ -46030,6 +45389,270 @@ exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties :
46030
45389
  };
46031
45390
 
46032
45391
 
45392
+ /***/ }),
45393
+
45394
+ /***/ 6821:
45395
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
45396
+
45397
+ "use strict";
45398
+ // ESM COMPAT FLAG
45399
+ __webpack_require__.r(__webpack_exports__);
45400
+
45401
+ // EXPORTS
45402
+ __webpack_require__.d(__webpack_exports__, {
45403
+ "default": function() { return /* binding */ View; }
45404
+ });
45405
+
45406
+ ;// ./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-column/View.vue?vue&type=template&id=1402d563&scoped=true
45407
+ var render = function render() {
45408
+ var _vm = this,
45409
+ _c = _vm._self._c;
45410
+ return _c('BaseComp', _vm._b({
45411
+ attrs: {
45412
+ "data": _vm.data,
45413
+ "nowCompId": _vm.nowCompId,
45414
+ "isOpcacity": _vm.isOpcacity,
45415
+ "isMask": false,
45416
+ "lang": _vm.lang
45417
+ },
45418
+ on: {
45419
+ "getConfigData": _vm.getConfigData
45420
+ },
45421
+ scopedSlots: _vm._u([{
45422
+ key: "default",
45423
+ fn: function (slotProps) {
45424
+ return [_c('section', {
45425
+ class: [_vm.configData.widthType === 'full' ? 'width-full' : 'cmhk-home_main', {
45426
+ hoverBorderClass: _vm.isConfigPage
45427
+ }],
45428
+ style: _vm.containerStyle
45429
+ }, [_c('div', {
45430
+ staticClass: "column-setting",
45431
+ class: [`layout-${_vm.configData.layoutType || 'default'}`, `${slotProps.isMobile && _vm.configData.mobileLayout === 'vertical' ? 'mobile-vertical' : 'mobile-horizontal'}`],
45432
+ style: _vm.columnStyle
45433
+ }, _vm._l(_vm.data.childList, function (item, index) {
45434
+ return _c('cms-column-card', _vm._b({
45435
+ key: item.componentId,
45436
+ class: _vm.getColumnItemClass(index),
45437
+ style: _vm.getColumnItemStyle(index),
45438
+ attrs: {
45439
+ "data": item,
45440
+ "nowCompId": _vm.nowCompId,
45441
+ "isOpcacity": _vm.isOpcacity,
45442
+ "isMask": false,
45443
+ "lang": _vm.lang,
45444
+ "isMobile": slotProps.isMobile,
45445
+ "mobileLayout": _vm.configData.mobileLayout
45446
+ }
45447
+ }, 'cms-column-card', _vm.$attrs, false));
45448
+ }), 1)])];
45449
+ }
45450
+ }])
45451
+ }, 'BaseComp', _vm.$attrs, false));
45452
+ };
45453
+ var staticRenderFns = [];
45454
+
45455
+ // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
45456
+ var baseComp = __webpack_require__(9659);
45457
+ ;// ./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-column/View.vue?vue&type=script&lang=js
45458
+
45459
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
45460
+ name: "cms-column",
45461
+ components: {
45462
+ BaseComp: baseComp["default"]
45463
+ },
45464
+ props: {
45465
+ data: {
45466
+ type: Object,
45467
+ default: () => {
45468
+ return {};
45469
+ }
45470
+ },
45471
+ nowCompId: {
45472
+ type: [String, Number],
45473
+ default: ""
45474
+ },
45475
+ isOpcacity: {
45476
+ type: Boolean,
45477
+ default: true
45478
+ },
45479
+ lang: {
45480
+ type: String,
45481
+ default: "zh-HK"
45482
+ }
45483
+ },
45484
+ data() {
45485
+ return {
45486
+ configData: {},
45487
+ messFold: true,
45488
+ // 默认配置数据
45489
+ defaultConfig: {
45490
+ layoutType: "100",
45491
+ heightType: "auto",
45492
+ widthType: "auto",
45493
+ mobileLayout: "vertical",
45494
+ fixedHeight: 300,
45495
+ borderWidth: 0,
45496
+ borderStyle: "solid",
45497
+ borderColor: "",
45498
+ backgroundColor: "#FFF",
45499
+ backgroundImage: "",
45500
+ boxShadow: "",
45501
+ borderRadius: 0,
45502
+ columnGap: 0,
45503
+ rowGap: 0,
45504
+ title: "",
45505
+ description: "",
45506
+ input1: "",
45507
+ showTitle: true,
45508
+ showDescription: true,
45509
+ animationDuration: 300,
45510
+ responsiveBreakpoint: 768
45511
+ }
45512
+ };
45513
+ },
45514
+ mounted() {},
45515
+ watch: {
45516
+ configData: {
45517
+ handler() {
45518
+ this.updateStyles();
45519
+ },
45520
+ immediate: true,
45521
+ deep: true
45522
+ }
45523
+ },
45524
+ computed: {
45525
+ isConfigPage() {
45526
+ return this.$EventBus && this.isOpcacity;
45527
+ },
45528
+ // 容器样式
45529
+ containerStyle() {
45530
+ return {
45531
+ backgroundColor: this.configData.backgroundColor || this.defaultConfig.backgroundColor,
45532
+ backgroundImage: this.configData.backgroundImage ? `url(${this.configData.backgroundImage})` : "",
45533
+ backgroundSize: "cover",
45534
+ backgroundRepeat: "no-repeat",
45535
+ backgroundPosition: "center center",
45536
+ boxShadow: this.configData.boxShadow || this.defaultConfig.boxShadow,
45537
+ borderRadius: `${this.configData.borderRadius || this.defaultConfig.borderRadius}px`,
45538
+ minHeight: this.configData.heightType === "fixed" ? `${this.configData.fixedHeight}px` : "auto"
45539
+ };
45540
+ },
45541
+ // 分栏容器样式
45542
+ columnStyle() {
45543
+ // const gap = this.configData.rowGap || this.defaultConfig.rowGap;
45544
+ return {
45545
+ // gap: `${gap}px`,
45546
+ border: this.configData.borderWidth ? `${this.configData.borderWidth}px ${this.configData.borderStyle} ${this.configData.borderColor}` : "none"
45547
+ };
45548
+ }
45549
+ },
45550
+ methods: {
45551
+ // 获取配置数据
45552
+ getConfigData(configData) {
45553
+ this.configData = configData;
45554
+ this.updateStyles();
45555
+ },
45556
+ // 更新样式
45557
+ updateStyles() {
45558
+ this.$nextTick(() => {
45559
+ // 触发样式更新
45560
+ this.$forceUpdate();
45561
+ });
45562
+ },
45563
+ // 获取分栏项的类名
45564
+ getColumnItemClass(index) {
45565
+ const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
45566
+ return ["column-item", `column-item-${index}`, `layout-${layoutType}`, {
45567
+ "min-h": this.$EventBus && this.isOpcacity,
45568
+ "first-item": index === 0,
45569
+ "last-item": index === this.data.childList.length - 1
45570
+ }];
45571
+ },
45572
+ // 获取分栏项的样式
45573
+ getColumnItemStyle(index) {
45574
+ const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
45575
+ const gap = this.configData.rowGap || this.defaultConfig.rowGap;
45576
+ let flexBasis = "100%";
45577
+ let marginRight = "0";
45578
+
45579
+ // 根据布局类型设置宽度
45580
+ switch (layoutType) {
45581
+ case "50-50":
45582
+ flexBasis = `calc(50% - ${gap / 2}px)`;
45583
+ marginRight = index % 2 === 0 ? `${gap}px` : "0";
45584
+ break;
45585
+ case "33-66":
45586
+ flexBasis = index === 0 ? `calc(33.33% - ${gap / 2}px)` : `calc(66.67% - ${gap / 2}px)`;
45587
+ marginRight = index === 0 ? `${gap}px` : "0";
45588
+ break;
45589
+ case "66-33":
45590
+ flexBasis = index === 0 ? `calc(66.67% - ${gap / 2}px)` : `calc(33.33% - ${gap / 2}px)`;
45591
+ marginRight = index === 0 ? `${gap}px` : "0";
45592
+ break;
45593
+ case "33-33-33":
45594
+ flexBasis = `calc(33.33% - ${gap * 2 / 3}px)`;
45595
+ marginRight = index < 2 ? `${gap}px` : "0";
45596
+ break;
45597
+ case "25-50-25":
45598
+ if (index === 0 || index === 2) {
45599
+ flexBasis = `calc(25% - ${gap * 2 / 3}px)`;
45600
+ } else {
45601
+ flexBasis = `calc(50% - ${gap * 2 / 3}px)`;
45602
+ }
45603
+ marginRight = index < 2 ? `${gap}px` : "0";
45604
+ break;
45605
+ default:
45606
+ flexBasis = "100%";
45607
+ }
45608
+ return {
45609
+ flexBasis,
45610
+ marginRight,
45611
+ marginBottom: `${this.configData.columnGap || this.defaultConfig.columnGap}px`
45612
+ };
45613
+ },
45614
+ // 折叠/展开文本
45615
+ foldMessText() {
45616
+ this.messFold = !this.messFold;
45617
+ },
45618
+ // 处理跳转链接
45619
+ decodeJumpUrl(url) {
45620
+ if (!url) return;
45621
+ top.location.href = url;
45622
+ }
45623
+ }
45624
+ });
45625
+ ;// ./package/cms-column/View.vue?vue&type=script&lang=js
45626
+ /* harmony default export */ var cms_column_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
45627
+ ;// ./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-column/View.vue?vue&type=style&index=0&id=1402d563&prod&lang=scss&scoped=true
45628
+ // extracted by mini-css-extract-plugin
45629
+
45630
+ ;// ./package/cms-column/View.vue?vue&type=style&index=0&id=1402d563&prod&lang=scss&scoped=true
45631
+
45632
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
45633
+ var componentNormalizer = __webpack_require__(1656);
45634
+ ;// ./package/cms-column/View.vue
45635
+
45636
+
45637
+
45638
+ ;
45639
+
45640
+
45641
+ /* normalize component */
45642
+
45643
+ var component = (0,componentNormalizer/* default */.A)(
45644
+ cms_column_Viewvue_type_script_lang_js,
45645
+ render,
45646
+ staticRenderFns,
45647
+ false,
45648
+ null,
45649
+ "1402d563",
45650
+ null
45651
+
45652
+ )
45653
+
45654
+ /* harmony default export */ var View = (component.exports);
45655
+
46033
45656
  /***/ }),
46034
45657
 
46035
45658
  /***/ 6823:
@@ -47609,7 +47232,61 @@ var component = (0,componentNormalizer/* default */.A)(
47609
47232
 
47610
47233
  /***/ }),
47611
47234
 
47612
- /***/ 7326:
47235
+ /***/ 7347:
47236
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
47237
+
47238
+ "use strict";
47239
+
47240
+ var DESCRIPTORS = __webpack_require__(3724);
47241
+ var call = __webpack_require__(9565);
47242
+ var propertyIsEnumerableModule = __webpack_require__(8773);
47243
+ var createPropertyDescriptor = __webpack_require__(6980);
47244
+ var toIndexedObject = __webpack_require__(5397);
47245
+ var toPropertyKey = __webpack_require__(6969);
47246
+ var hasOwn = __webpack_require__(9297);
47247
+ var IE8_DOM_DEFINE = __webpack_require__(5917);
47248
+
47249
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
47250
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
47251
+
47252
+ // `Object.getOwnPropertyDescriptor` method
47253
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
47254
+ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
47255
+ O = toIndexedObject(O);
47256
+ P = toPropertyKey(P);
47257
+ if (IE8_DOM_DEFINE) try {
47258
+ return $getOwnPropertyDescriptor(O, P);
47259
+ } catch (error) { /* empty */ }
47260
+ if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
47261
+ };
47262
+
47263
+
47264
+ /***/ }),
47265
+
47266
+ /***/ 7394:
47267
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
47268
+
47269
+ "use strict";
47270
+
47271
+ var globalThis = __webpack_require__(4576);
47272
+ var uncurryThisAccessor = __webpack_require__(6706);
47273
+ var classof = __webpack_require__(2195);
47274
+
47275
+ var ArrayBuffer = globalThis.ArrayBuffer;
47276
+ var TypeError = globalThis.TypeError;
47277
+
47278
+ // Includes
47279
+ // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
47280
+ // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
47281
+ module.exports = ArrayBuffer && uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
47282
+ if (classof(O) !== 'ArrayBuffer') throw new TypeError('ArrayBuffer expected');
47283
+ return O.byteLength;
47284
+ };
47285
+
47286
+
47287
+ /***/ }),
47288
+
47289
+ /***/ 7428:
47613
47290
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
47614
47291
 
47615
47292
  "use strict";
@@ -47621,7 +47298,7 @@ __webpack_require__.d(__webpack_exports__, {
47621
47298
  "default": function() { return /* binding */ View; }
47622
47299
  });
47623
47300
 
47624
- ;// ./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-text/View.vue?vue&type=template&id=7fe7dfef&scoped=true
47301
+ ;// ./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-text/View.vue?vue&type=template&id=1854eb12&scoped=true
47625
47302
  var render = function render() {
47626
47303
  var _vm = this,
47627
47304
  _c = _vm._self._c;
@@ -47727,7 +47404,8 @@ var baseComp = __webpack_require__(9659);
47727
47404
  fontWeight: "normal",
47728
47405
  fontStyle: "normal",
47729
47406
  textDecoration: "none",
47730
- fontFamily: "inherit",
47407
+ // fontFamily: "inherit",
47408
+
47731
47409
  // 布局设置
47732
47410
  paddingTop: 0,
47733
47411
  paddingBottom: 0,
@@ -47821,7 +47499,7 @@ var baseComp = __webpack_require__(9659);
47821
47499
  fontWeight: config.fontWeight,
47822
47500
  fontStyle: config.fontStyle,
47823
47501
  textDecoration: config.textDecoration,
47824
- fontFamily: config.fontFamily,
47502
+ // fontFamily: config.fontFamily,
47825
47503
  lineHeight: config.lineHeight,
47826
47504
  letterSpacing: `${config.letterSpacing}px`,
47827
47505
  textAlign: config.textAlign,
@@ -47992,10 +47670,10 @@ var baseComp = __webpack_require__(9659);
47992
47670
  });
47993
47671
  ;// ./package/cms-text/View.vue?vue&type=script&lang=js
47994
47672
  /* harmony default export */ var cms_text_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
47995
- ;// ./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-text/View.vue?vue&type=style&index=0&id=7fe7dfef&prod&lang=scss&scoped=true
47673
+ ;// ./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-text/View.vue?vue&type=style&index=0&id=1854eb12&prod&lang=scss&scoped=true
47996
47674
  // extracted by mini-css-extract-plugin
47997
47675
 
47998
- ;// ./package/cms-text/View.vue?vue&type=style&index=0&id=7fe7dfef&prod&lang=scss&scoped=true
47676
+ ;// ./package/cms-text/View.vue?vue&type=style&index=0&id=1854eb12&prod&lang=scss&scoped=true
47999
47677
 
48000
47678
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
48001
47679
  var componentNormalizer = __webpack_require__(1656);
@@ -48014,67 +47692,13 @@ var component = (0,componentNormalizer/* default */.A)(
48014
47692
  staticRenderFns,
48015
47693
  false,
48016
47694
  null,
48017
- "7fe7dfef",
47695
+ "1854eb12",
48018
47696
  null
48019
47697
 
48020
47698
  )
48021
47699
 
48022
47700
  /* harmony default export */ var View = (component.exports);
48023
47701
 
48024
- /***/ }),
48025
-
48026
- /***/ 7347:
48027
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
48028
-
48029
- "use strict";
48030
-
48031
- var DESCRIPTORS = __webpack_require__(3724);
48032
- var call = __webpack_require__(9565);
48033
- var propertyIsEnumerableModule = __webpack_require__(8773);
48034
- var createPropertyDescriptor = __webpack_require__(6980);
48035
- var toIndexedObject = __webpack_require__(5397);
48036
- var toPropertyKey = __webpack_require__(6969);
48037
- var hasOwn = __webpack_require__(9297);
48038
- var IE8_DOM_DEFINE = __webpack_require__(5917);
48039
-
48040
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
48041
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
48042
-
48043
- // `Object.getOwnPropertyDescriptor` method
48044
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
48045
- exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
48046
- O = toIndexedObject(O);
48047
- P = toPropertyKey(P);
48048
- if (IE8_DOM_DEFINE) try {
48049
- return $getOwnPropertyDescriptor(O, P);
48050
- } catch (error) { /* empty */ }
48051
- if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
48052
- };
48053
-
48054
-
48055
- /***/ }),
48056
-
48057
- /***/ 7394:
48058
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
48059
-
48060
- "use strict";
48061
-
48062
- var globalThis = __webpack_require__(4576);
48063
- var uncurryThisAccessor = __webpack_require__(6706);
48064
- var classof = __webpack_require__(2195);
48065
-
48066
- var ArrayBuffer = globalThis.ArrayBuffer;
48067
- var TypeError = globalThis.TypeError;
48068
-
48069
- // Includes
48070
- // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
48071
- // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
48072
- module.exports = ArrayBuffer && uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
48073
- if (classof(O) !== 'ArrayBuffer') throw new TypeError('ArrayBuffer expected');
48074
- return O.byteLength;
48075
- };
48076
-
48077
-
48078
47702
  /***/ }),
48079
47703
 
48080
47704
  /***/ 7467:
@@ -52754,7 +52378,7 @@ module.exports = URIError;
52754
52378
  __webpack_require__.r(__webpack_exports__);
52755
52379
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2128);
52756
52380
 
52757
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 4160));
52381
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 8924));
52758
52382
  const langData = {};
52759
52383
  const configDataType = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getLangDataType)(langData, {});
52760
52384
  const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSchema)(langData);
@@ -52840,6 +52464,384 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAQAAABs
52840
52464
 
52841
52465
  /***/ }),
52842
52466
 
52467
+ /***/ 8924:
52468
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
52469
+
52470
+ "use strict";
52471
+ // ESM COMPAT FLAG
52472
+ __webpack_require__.r(__webpack_exports__);
52473
+
52474
+ // EXPORTS
52475
+ __webpack_require__.d(__webpack_exports__, {
52476
+ "default": function() { return /* binding */ View; }
52477
+ });
52478
+
52479
+ ;// ./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-via-storedValueCard/View.vue?vue&type=template&id=ff44e87c&scoped=true
52480
+ var render = function render() {
52481
+ var _vm = this,
52482
+ _c = _vm._self._c;
52483
+ return _c('BaseComp', _vm._b({
52484
+ attrs: {
52485
+ "data": _vm.data,
52486
+ "nowCompId": _vm.nowCompId,
52487
+ "isOpcacity": _vm.isOpcacity,
52488
+ "lang": _vm.lang
52489
+ },
52490
+ on: {
52491
+ "getConfigData": _vm.getConfigData
52492
+ }
52493
+ }, 'BaseComp', _vm.$attrs, false), [_c('section', {
52494
+ staticClass: "cmhk-home_main"
52495
+ }, [_c('div', {
52496
+ staticClass: "wrap"
52497
+ }, [_c('div', {
52498
+ ref: "cardList",
52499
+ staticClass: "cardList"
52500
+ }, [_vm.viewList.length === 0 ? [_c('div', {
52501
+ staticClass: "card-box"
52502
+ }, [_c('div', {
52503
+ staticClass: "card"
52504
+ }, [_c('div', {
52505
+ staticClass: "img-box"
52506
+ }, [_c('div', {
52507
+ staticClass: "card-img",
52508
+ class: {
52509
+ 'is-cms': _vm.$EventBus
52510
+ }
52511
+ }, [_c('img', {
52512
+ staticStyle: {
52513
+ "height": "200px"
52514
+ },
52515
+ attrs: {
52516
+ "src": _vm.placeholderImg,
52517
+ "alt": ""
52518
+ }
52519
+ })])]), _c('div', {
52520
+ staticClass: "content-box"
52521
+ }, [_c('div', {
52522
+ staticClass: "card-name"
52523
+ }, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
52524
+ staticClass: "text-box"
52525
+ }, [_c('div', {
52526
+ staticClass: "card-refPrice"
52527
+ }, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
52528
+ staticClass: "card-pice-text"
52529
+ }, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
52530
+ staticClass: "card-pice"
52531
+ }, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
52532
+ staticClass: "card-btn"
52533
+ }, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
52534
+ return _c('div', {
52535
+ key: `${index}-${item.commodityId || index}`,
52536
+ staticClass: "card-box"
52537
+ }, [_c('div', {
52538
+ staticClass: "card"
52539
+ }, [_c('div', {
52540
+ staticClass: "tag-box-left"
52541
+ }, [_vm._l(item.malltCommodityLeft, function (ele, i) {
52542
+ return [_c('img', {
52543
+ key: i,
52544
+ attrs: {
52545
+ "src": _vm.compBaseUrl + ele.pictureUrl,
52546
+ "alt": ""
52547
+ }
52548
+ })];
52549
+ })], 2), _c('div', {
52550
+ staticClass: "tag-box-right"
52551
+ }, [_vm._l(item.malltCommodityRight, function (ele, i) {
52552
+ return [_c('img', {
52553
+ key: i,
52554
+ attrs: {
52555
+ "src": _vm.compBaseUrl + ele.pictureUrl,
52556
+ "alt": ""
52557
+ }
52558
+ })];
52559
+ })], 2), _c('div', {
52560
+ staticClass: "img-box"
52561
+ }, [_vm.isNotActive(item) ? _c('div', {
52562
+ staticClass: "mask"
52563
+ }, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
52564
+ staticClass: "card-img",
52565
+ class: {
52566
+ 'is-cms': _vm.$EventBus
52567
+ }
52568
+ }, [_c('img', {
52569
+ attrs: {
52570
+ "src": _vm.compBaseUrl + item.maxPicId,
52571
+ "alt": ""
52572
+ }
52573
+ })])]), _c('div', {
52574
+ staticClass: "content-box"
52575
+ }, [_vm.isNotActive(item) ? _c('div', {
52576
+ staticClass: "content-mask"
52577
+ }) : _vm._e(), _c('div', {
52578
+ staticClass: "card-name"
52579
+ }, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
52580
+ staticClass: "text-box"
52581
+ }, [item.price !== item.refPrice ? _c('div', {
52582
+ staticClass: "card-refPrice"
52583
+ }, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
52584
+ staticClass: "card-refPrice"
52585
+ }), _c('div', {
52586
+ staticClass: "card-pice-text"
52587
+ }, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
52588
+ staticClass: "card-pice spc-font"
52589
+ }, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
52590
+ staticClass: "card-btn",
52591
+ on: {
52592
+ "click": function ($event) {
52593
+ return _vm.goDetail(item);
52594
+ }
52595
+ }
52596
+ }, [_vm._v(" " + _vm._s(_vm.langText.buyNow)), _c('img', {
52597
+ attrs: {
52598
+ "src": _vm.arrowRightImg
52599
+ }
52600
+ })]) : _c('div', {
52601
+ staticClass: "card-btn"
52602
+ }, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? (_vm.langText.launch || "").replace("NNN", item.upTime) : _vm.langText.Offer) + " ")])])])]);
52603
+ })], 2), !_vm.seeMore && _vm.configList.length > 9 ? _c('div', {
52604
+ ref: "seeMoreRef",
52605
+ staticClass: "seeMore",
52606
+ on: {
52607
+ "click": function ($event) {
52608
+ _vm.seeMore = true;
52609
+ }
52610
+ }
52611
+ }, [_vm._v(" " + _vm._s(_vm.langText.more) + " "), _c('img', {
52612
+ staticClass: "btm",
52613
+ attrs: {
52614
+ "src": _vm.arrowDownImg
52615
+ }
52616
+ })]) : _vm._e()])])]);
52617
+ };
52618
+ var staticRenderFns = [];
52619
+
52620
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
52621
+ var es_iterator_constructor = __webpack_require__(8111);
52622
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
52623
+ var es_iterator_filter = __webpack_require__(2489);
52624
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
52625
+ var es_iterator_for_each = __webpack_require__(7588);
52626
+ // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
52627
+ var baseComp = __webpack_require__(9659);
52628
+ // EXTERNAL MODULE: ./src/api/index.js
52629
+ var api = __webpack_require__(2842);
52630
+ // EXTERNAL MODULE: ./package/patch.js
52631
+ var patch = __webpack_require__(4229);
52632
+ // EXTERNAL MODULE: ./node_modules/qs/lib/index.js
52633
+ var lib = __webpack_require__(7087);
52634
+ var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
52635
+ ;// ./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-via-storedValueCard/View.vue?vue&type=script&lang=js
52636
+
52637
+
52638
+
52639
+
52640
+
52641
+
52642
+
52643
+
52644
+
52645
+
52646
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
52647
+ name: "cms-via-storedValueCard",
52648
+ components: {
52649
+ BaseComp: baseComp["default"]
52650
+ },
52651
+ props: {
52652
+ data: {
52653
+ type: Object,
52654
+ default: () => {
52655
+ return {};
52656
+ }
52657
+ },
52658
+ nowCompId: {
52659
+ type: [String, Number],
52660
+ default: ""
52661
+ },
52662
+ isOpcacity: {
52663
+ type: Boolean,
52664
+ default: true
52665
+ },
52666
+ lang: {
52667
+ type: String,
52668
+ default: "zh-HK"
52669
+ }
52670
+ },
52671
+ data() {
52672
+ return {
52673
+ langConfig: {
52674
+ "zh-HK": {
52675
+ productName: "產品名稱",
52676
+ Price: "建議零售價",
52677
+ onlinePrice: "網上優惠價",
52678
+ buyNow: "立即購買",
52679
+ comingSoon: "即將推出",
52680
+ expired: "優惠已過期",
52681
+ more: "查看更多",
52682
+ launch: "NNN 上線",
52683
+ Offer: "優惠即將推出"
52684
+ },
52685
+ "zh-CN": {
52686
+ productName: "产品名称",
52687
+ Price: "建议零售价",
52688
+ onlinePrice: "网上优惠价",
52689
+ buyNow: "立即购买",
52690
+ comingSoon: "即将推出",
52691
+ expired: "优惠已过期",
52692
+ more: "查看更多",
52693
+ launch: "NNN 上线",
52694
+ Offer: "优惠即将推出"
52695
+ },
52696
+ "en-US": {
52697
+ productName: "Product Name",
52698
+ Price: "SRP",
52699
+ onlinePrice: "Online Price",
52700
+ buyNow: "Buy Now",
52701
+ comingSoon: "Coming Soon",
52702
+ expired: "Expired",
52703
+ more: "See more",
52704
+ launch: "Launch at NNN",
52705
+ Offer: "Offer Coming"
52706
+ }
52707
+ },
52708
+ configList: [],
52709
+ seeMore: false,
52710
+ nowTs: Date.now(),
52711
+ compBaseUrl: "https://omniapi.hk.chinamobile.com",
52712
+ // images
52713
+ placeholderImg: __webpack_require__(5335),
52714
+ arrowRightImg: __webpack_require__(4860),
52715
+ arrowDownImg: __webpack_require__(1861),
52716
+ arrowHoverImg: __webpack_require__(4116),
52717
+ arrowActiveImg: __webpack_require__(9670),
52718
+ shopList: []
52719
+ };
52720
+ },
52721
+ computed: {
52722
+ langText() {
52723
+ return this.langConfig[this.lang] ? this.langConfig[this.lang] : this.langConfig["zh-HK"];
52724
+ },
52725
+ viewList() {
52726
+ if (this.seeMore) return this.shopList;
52727
+ return this.shopList.slice(0, 9);
52728
+ }
52729
+ },
52730
+ mounted() {
52731
+ if (!this.$EventBus) {
52732
+ this.compBaseUrl = (0,patch.getCompBaseUrl)();
52733
+ }
52734
+ },
52735
+ beforeDestroy() {},
52736
+ methods: {
52737
+ getConfigData(configData) {
52738
+ this.configList = configData.configList;
52739
+ console.log("getConfigData", this.configList);
52740
+ this.getValue();
52741
+ },
52742
+ async getValue() {
52743
+ await this.getCommodityDetails();
52744
+ },
52745
+ // 拉取已选商品详情
52746
+ async getCommodityDetails() {
52747
+ // try {
52748
+ let req = {
52749
+ busInfo: JSON.stringify({
52750
+ commodityIds: [...this.configList],
52751
+ commodityTypes: ["604", "605"]
52752
+ })
52753
+ };
52754
+ req = lib_default().stringify(req);
52755
+ const json = await (0,api/* getCommodityDetails */.yX)(req, this.lang);
52756
+ let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
52757
+ if (Array.isArray(dataResult)) {
52758
+ dataResult.forEach(item => {
52759
+ if (Array.isArray(item.malltCommodityTags)) {
52760
+ const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
52761
+ const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
52762
+ item.malltCommodityLeft = left.slice(0, 2);
52763
+ item.malltCommodityRight = right.slice(0, 4);
52764
+ } else {
52765
+ item.malltCommodityLeft = [];
52766
+ item.malltCommodityRight = [];
52767
+ }
52768
+ });
52769
+ // 按选择顺序排序
52770
+ this.shopList = dataResult.sort((a, b) => {
52771
+ return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
52772
+ });
52773
+ } else {
52774
+ this.shopList = [];
52775
+ }
52776
+ // } catch (e) {
52777
+ // this.shopList = [];
52778
+ // }
52779
+ },
52780
+ isActive(item) {
52781
+ const now = Date.now();
52782
+ return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
52783
+ },
52784
+ isNotActive(item) {
52785
+ const now = Date.now();
52786
+ return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
52787
+ },
52788
+ convertCentsToYuan(cents) {
52789
+ const yuan = (Number(cents || 0) / 100).toFixed(2);
52790
+ return parseFloat(yuan);
52791
+ },
52792
+ goDetail(item) {
52793
+ const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
52794
+ const langMap = {
52795
+ "zh-CN": "sc",
52796
+ "zh-HK": "tc",
52797
+ "en-US": "en"
52798
+ };
52799
+ const routeLang = langMap[this.lang];
52800
+ if (item.commodityType === "604") {
52801
+ if ((item.commodityName || "").includes("MySIM")) {
52802
+ window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
52803
+ } else {
52804
+ window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
52805
+ }
52806
+ } else if (item.commodityType === "605") {
52807
+ window.parent.location.href = `${base}/${routeLang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
52808
+ }
52809
+ }
52810
+ }
52811
+ });
52812
+ ;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
52813
+ /* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
52814
+ ;// ./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-via-storedValueCard/View.vue?vue&type=style&index=0&id=ff44e87c&prod&lang=scss&scoped=true
52815
+ // extracted by mini-css-extract-plugin
52816
+
52817
+ ;// ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=ff44e87c&prod&lang=scss&scoped=true
52818
+
52819
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
52820
+ var componentNormalizer = __webpack_require__(1656);
52821
+ ;// ./package/cms-via-storedValueCard/View.vue
52822
+
52823
+
52824
+
52825
+ ;
52826
+
52827
+
52828
+ /* normalize component */
52829
+
52830
+ var component = (0,componentNormalizer/* default */.A)(
52831
+ cms_via_storedValueCard_Viewvue_type_script_lang_js,
52832
+ render,
52833
+ staticRenderFns,
52834
+ false,
52835
+ null,
52836
+ "ff44e87c",
52837
+ null
52838
+
52839
+ )
52840
+
52841
+ /* harmony default export */ var View = (component.exports);
52842
+
52843
+ /***/ }),
52844
+
52843
52845
  /***/ 8945:
52844
52846
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
52845
52847
 
@@ -59901,7 +59903,7 @@ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSc
59901
59903
  __webpack_require__.r(__webpack_exports__);
59902
59904
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2128);
59903
59905
 
59904
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 4160));
59906
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 8924));
59905
59907
  const langData = {
59906
59908
  configList: [
59907
59909
  // {