cms-chenhj-ui 2.0.26 → 2.0.28

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": 7473,
21178
+ "./cms-column/View.vue": 7473,
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__, 7473));
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": 7473,
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
@@ -39746,7 +39105,7 @@ function getShopproGroup(data) {
39746
39105
  function columnQuery(params) {
39747
39106
  return request({
39748
39107
  method: "post",
39749
- url: "/ecosp-console/columnCategory/query",
39108
+ url: "/ecosp-console/columnCategory/queryByCommodityType",
39750
39109
  data: params
39751
39110
  });
39752
39111
  }
@@ -47609,7 +46968,61 @@ var component = (0,componentNormalizer/* default */.A)(
47609
46968
 
47610
46969
  /***/ }),
47611
46970
 
47612
- /***/ 7326:
46971
+ /***/ 7347:
46972
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
46973
+
46974
+ "use strict";
46975
+
46976
+ var DESCRIPTORS = __webpack_require__(3724);
46977
+ var call = __webpack_require__(9565);
46978
+ var propertyIsEnumerableModule = __webpack_require__(8773);
46979
+ var createPropertyDescriptor = __webpack_require__(6980);
46980
+ var toIndexedObject = __webpack_require__(5397);
46981
+ var toPropertyKey = __webpack_require__(6969);
46982
+ var hasOwn = __webpack_require__(9297);
46983
+ var IE8_DOM_DEFINE = __webpack_require__(5917);
46984
+
46985
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
46986
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
46987
+
46988
+ // `Object.getOwnPropertyDescriptor` method
46989
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
46990
+ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
46991
+ O = toIndexedObject(O);
46992
+ P = toPropertyKey(P);
46993
+ if (IE8_DOM_DEFINE) try {
46994
+ return $getOwnPropertyDescriptor(O, P);
46995
+ } catch (error) { /* empty */ }
46996
+ if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
46997
+ };
46998
+
46999
+
47000
+ /***/ }),
47001
+
47002
+ /***/ 7394:
47003
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
47004
+
47005
+ "use strict";
47006
+
47007
+ var globalThis = __webpack_require__(4576);
47008
+ var uncurryThisAccessor = __webpack_require__(6706);
47009
+ var classof = __webpack_require__(2195);
47010
+
47011
+ var ArrayBuffer = globalThis.ArrayBuffer;
47012
+ var TypeError = globalThis.TypeError;
47013
+
47014
+ // Includes
47015
+ // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
47016
+ // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
47017
+ module.exports = ArrayBuffer && uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
47018
+ if (classof(O) !== 'ArrayBuffer') throw new TypeError('ArrayBuffer expected');
47019
+ return O.byteLength;
47020
+ };
47021
+
47022
+
47023
+ /***/ }),
47024
+
47025
+ /***/ 7428:
47613
47026
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
47614
47027
 
47615
47028
  "use strict";
@@ -47621,7 +47034,7 @@ __webpack_require__.d(__webpack_exports__, {
47621
47034
  "default": function() { return /* binding */ View; }
47622
47035
  });
47623
47036
 
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
47037
+ ;// ./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
47038
  var render = function render() {
47626
47039
  var _vm = this,
47627
47040
  _c = _vm._self._c;
@@ -47727,7 +47140,8 @@ var baseComp = __webpack_require__(9659);
47727
47140
  fontWeight: "normal",
47728
47141
  fontStyle: "normal",
47729
47142
  textDecoration: "none",
47730
- fontFamily: "inherit",
47143
+ // fontFamily: "inherit",
47144
+
47731
47145
  // 布局设置
47732
47146
  paddingTop: 0,
47733
47147
  paddingBottom: 0,
@@ -47821,7 +47235,7 @@ var baseComp = __webpack_require__(9659);
47821
47235
  fontWeight: config.fontWeight,
47822
47236
  fontStyle: config.fontStyle,
47823
47237
  textDecoration: config.textDecoration,
47824
- fontFamily: config.fontFamily,
47238
+ // fontFamily: config.fontFamily,
47825
47239
  lineHeight: config.lineHeight,
47826
47240
  letterSpacing: `${config.letterSpacing}px`,
47827
47241
  textAlign: config.textAlign,
@@ -47992,10 +47406,10 @@ var baseComp = __webpack_require__(9659);
47992
47406
  });
47993
47407
  ;// ./package/cms-text/View.vue?vue&type=script&lang=js
47994
47408
  /* 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
47409
+ ;// ./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
47410
  // extracted by mini-css-extract-plugin
47997
47411
 
47998
- ;// ./package/cms-text/View.vue?vue&type=style&index=0&id=7fe7dfef&prod&lang=scss&scoped=true
47412
+ ;// ./package/cms-text/View.vue?vue&type=style&index=0&id=1854eb12&prod&lang=scss&scoped=true
47999
47413
 
48000
47414
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
48001
47415
  var componentNormalizer = __webpack_require__(1656);
@@ -48014,7 +47428,7 @@ var component = (0,componentNormalizer/* default */.A)(
48014
47428
  staticRenderFns,
48015
47429
  false,
48016
47430
  null,
48017
- "7fe7dfef",
47431
+ "1854eb12",
48018
47432
  null
48019
47433
 
48020
47434
  )
@@ -48023,78 +47437,286 @@ var component = (0,componentNormalizer/* default */.A)(
48023
47437
 
48024
47438
  /***/ }),
48025
47439
 
48026
- /***/ 7347:
48027
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
47440
+ /***/ 7467:
47441
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
48028
47442
 
48029
47443
  "use strict";
48030
47444
 
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);
47445
+ var arrayToReversed = __webpack_require__(7628);
47446
+ var ArrayBufferViewCore = __webpack_require__(4644);
48039
47447
 
48040
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
48041
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
47448
+ var aTypedArray = ArrayBufferViewCore.aTypedArray;
47449
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
47450
+ var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
48042
47451
 
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
- };
47452
+ // `%TypedArray%.prototype.toReversed` method
47453
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
47454
+ exportTypedArrayMethod('toReversed', function toReversed() {
47455
+ return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
47456
+ });
48053
47457
 
48054
47458
 
48055
47459
  /***/ }),
48056
47460
 
48057
- /***/ 7394:
48058
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
47461
+ /***/ 7473:
47462
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
48059
47463
 
48060
47464
  "use strict";
47465
+ // ESM COMPAT FLAG
47466
+ __webpack_require__.r(__webpack_exports__);
48061
47467
 
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;
47468
+ // EXPORTS
47469
+ __webpack_require__.d(__webpack_exports__, {
47470
+ "default": function() { return /* binding */ View; }
47471
+ });
48068
47472
 
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;
47473
+ ;// ./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=033e8b60&scoped=true
47474
+ var render = function render() {
47475
+ var _vm = this,
47476
+ _c = _vm._self._c;
47477
+ return _c('BaseComp', _vm._b({
47478
+ attrs: {
47479
+ "data": _vm.data,
47480
+ "nowCompId": _vm.nowCompId,
47481
+ "isOpcacity": _vm.isOpcacity,
47482
+ "isMask": false,
47483
+ "lang": _vm.lang
47484
+ },
47485
+ on: {
47486
+ "getConfigData": _vm.getConfigData
47487
+ },
47488
+ scopedSlots: _vm._u([{
47489
+ key: "default",
47490
+ fn: function (slotProps) {
47491
+ return [_c('section', {
47492
+ class: [_vm.configData.widthType === 'full' ? 'width-full' : 'cmhk-home_main', _vm.isConfigPage ? 'hoverBorderClass' : ''],
47493
+ style: _vm.containerStyle
47494
+ }, [_c('div', {
47495
+ staticClass: "column-setting",
47496
+ class: [`layout-${_vm.configData.layoutType || 'default'}`, `${slotProps.isMobile && _vm.configData.mobileLayout === 'vertical' ? 'mobile-vertical' : 'mobile-horizontal'}`],
47497
+ style: _vm.columnStyle
47498
+ }, _vm._l(_vm.data.childList, function (item, index) {
47499
+ return _c('cms-column-card', _vm._b({
47500
+ key: item.componentId,
47501
+ class: _vm.getColumnItemClass(index),
47502
+ style: _vm.getColumnItemStyle(index),
47503
+ attrs: {
47504
+ "data": item,
47505
+ "nowCompId": _vm.nowCompId,
47506
+ "isOpcacity": _vm.isOpcacity,
47507
+ "isMask": false,
47508
+ "lang": _vm.lang,
47509
+ "isMobile": slotProps.isMobile,
47510
+ "mobileLayout": _vm.configData.mobileLayout
47511
+ }
47512
+ }, 'cms-column-card', _vm.$attrs, false));
47513
+ }), 1)])];
47514
+ }
47515
+ }])
47516
+ }, 'BaseComp', _vm.$attrs, false));
48075
47517
  };
47518
+ var staticRenderFns = [];
48076
47519
 
47520
+ // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
47521
+ var baseComp = __webpack_require__(9659);
47522
+ ;// ./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
48077
47523
 
48078
- /***/ }),
47524
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
47525
+ name: "cms-column",
47526
+ components: {
47527
+ BaseComp: baseComp["default"]
47528
+ },
47529
+ props: {
47530
+ data: {
47531
+ type: Object,
47532
+ default: () => {
47533
+ return {};
47534
+ }
47535
+ },
47536
+ nowCompId: {
47537
+ type: [String, Number],
47538
+ default: ""
47539
+ },
47540
+ isOpcacity: {
47541
+ type: Boolean,
47542
+ default: true
47543
+ },
47544
+ lang: {
47545
+ type: String,
47546
+ default: "zh-HK"
47547
+ }
47548
+ },
47549
+ data() {
47550
+ return {
47551
+ configData: {},
47552
+ messFold: true,
47553
+ // 默认配置数据
47554
+ defaultConfig: {
47555
+ layoutType: "100",
47556
+ heightType: "auto",
47557
+ widthType: "auto",
47558
+ mobileLayout: "vertical",
47559
+ fixedHeight: 300,
47560
+ borderWidth: 0,
47561
+ borderStyle: "solid",
47562
+ borderColor: "",
47563
+ backgroundColor: "#FFF",
47564
+ backgroundImage: "",
47565
+ boxShadow: "",
47566
+ borderRadius: 0,
47567
+ columnGap: 0,
47568
+ rowGap: 0,
47569
+ title: "",
47570
+ description: "",
47571
+ input1: "",
47572
+ showTitle: true,
47573
+ showDescription: true,
47574
+ animationDuration: 300,
47575
+ responsiveBreakpoint: 768
47576
+ }
47577
+ };
47578
+ },
47579
+ mounted() {},
47580
+ watch: {
47581
+ configData: {
47582
+ handler() {
47583
+ this.updateStyles();
47584
+ },
47585
+ immediate: true,
47586
+ deep: true
47587
+ }
47588
+ },
47589
+ computed: {
47590
+ isConfigPage() {
47591
+ return this.$EventBus && this.isOpcacity;
47592
+ },
47593
+ // 容器样式
47594
+ containerStyle() {
47595
+ return {
47596
+ backgroundColor: this.configData.backgroundColor || this.defaultConfig.backgroundColor,
47597
+ backgroundImage: this.configData.backgroundImage ? `url(${this.configData.backgroundImage})` : "",
47598
+ backgroundSize: "cover",
47599
+ backgroundRepeat: "no-repeat",
47600
+ backgroundPosition: "center center",
47601
+ boxShadow: this.configData.boxShadow || this.defaultConfig.boxShadow,
47602
+ borderRadius: `${this.configData.borderRadius || this.defaultConfig.borderRadius}px`,
47603
+ minHeight: this.configData.heightType === "fixed" ? `${this.configData.fixedHeight}px` : "auto"
47604
+ };
47605
+ },
47606
+ // 分栏容器样式
47607
+ columnStyle() {
47608
+ // const gap = this.configData.rowGap || this.defaultConfig.rowGap;
47609
+ return {
47610
+ // gap: `${gap}px`,
47611
+ border: this.configData.borderWidth ? `${this.configData.borderWidth}px ${this.configData.borderStyle} ${this.configData.borderColor}` : "none"
47612
+ };
47613
+ }
47614
+ },
47615
+ methods: {
47616
+ // 获取配置数据
47617
+ getConfigData(configData) {
47618
+ this.configData = configData;
47619
+ this.updateStyles();
47620
+ },
47621
+ // 更新样式
47622
+ updateStyles() {
47623
+ this.$nextTick(() => {
47624
+ // 触发样式更新
47625
+ this.$forceUpdate();
47626
+ });
47627
+ },
47628
+ // 获取分栏项的类名
47629
+ getColumnItemClass(index) {
47630
+ const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
47631
+ return ["column-item", `column-item-${index}`, `layout-${layoutType}`, {
47632
+ "min-h": this.$EventBus && this.isOpcacity,
47633
+ "first-item": index === 0,
47634
+ "last-item": index === this.data.childList.length - 1
47635
+ }];
47636
+ },
47637
+ // 获取分栏项的样式
47638
+ getColumnItemStyle(index) {
47639
+ const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
47640
+ const gap = this.configData.rowGap || this.defaultConfig.rowGap;
47641
+ let flexBasis = "100%";
47642
+ let marginRight = "0";
48079
47643
 
48080
- /***/ 7467:
48081
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
47644
+ // 根据布局类型设置宽度
47645
+ switch (layoutType) {
47646
+ case "50-50":
47647
+ flexBasis = `calc(50% - ${gap / 2}px)`;
47648
+ marginRight = index % 2 === 0 ? `${gap}px` : "0";
47649
+ break;
47650
+ case "33-66":
47651
+ flexBasis = index === 0 ? `calc(33.33% - ${gap / 2}px)` : `calc(66.67% - ${gap / 2}px)`;
47652
+ marginRight = index === 0 ? `${gap}px` : "0";
47653
+ break;
47654
+ case "66-33":
47655
+ flexBasis = index === 0 ? `calc(66.67% - ${gap / 2}px)` : `calc(33.33% - ${gap / 2}px)`;
47656
+ marginRight = index === 0 ? `${gap}px` : "0";
47657
+ break;
47658
+ case "33-33-33":
47659
+ flexBasis = `calc(33.33% - ${gap * 2 / 3}px)`;
47660
+ marginRight = index < 2 ? `${gap}px` : "0";
47661
+ break;
47662
+ case "25-50-25":
47663
+ if (index === 0 || index === 2) {
47664
+ flexBasis = `calc(25% - ${gap * 2 / 3}px)`;
47665
+ } else {
47666
+ flexBasis = `calc(50% - ${gap * 2 / 3}px)`;
47667
+ }
47668
+ marginRight = index < 2 ? `${gap}px` : "0";
47669
+ break;
47670
+ default:
47671
+ flexBasis = "100%";
47672
+ }
47673
+ return {
47674
+ flexBasis,
47675
+ marginRight,
47676
+ marginBottom: `${this.configData.columnGap || this.defaultConfig.columnGap}px`
47677
+ };
47678
+ },
47679
+ // 折叠/展开文本
47680
+ foldMessText() {
47681
+ this.messFold = !this.messFold;
47682
+ },
47683
+ // 处理跳转链接
47684
+ decodeJumpUrl(url) {
47685
+ if (!url) return;
47686
+ top.location.href = url;
47687
+ }
47688
+ }
47689
+ });
47690
+ ;// ./package/cms-column/View.vue?vue&type=script&lang=js
47691
+ /* harmony default export */ var cms_column_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
47692
+ ;// ./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=033e8b60&prod&lang=scss&scoped=true
47693
+ // extracted by mini-css-extract-plugin
48082
47694
 
48083
- "use strict";
47695
+ ;// ./package/cms-column/View.vue?vue&type=style&index=0&id=033e8b60&prod&lang=scss&scoped=true
48084
47696
 
48085
- var arrayToReversed = __webpack_require__(7628);
48086
- var ArrayBufferViewCore = __webpack_require__(4644);
47697
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
47698
+ var componentNormalizer = __webpack_require__(1656);
47699
+ ;// ./package/cms-column/View.vue
48087
47700
 
48088
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
48089
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
48090
- var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
48091
47701
 
48092
- // `%TypedArray%.prototype.toReversed` method
48093
- // https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
48094
- exportTypedArrayMethod('toReversed', function toReversed() {
48095
- return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
48096
- });
48097
47702
 
47703
+ ;
47704
+
47705
+
47706
+ /* normalize component */
47707
+
47708
+ var component = (0,componentNormalizer/* default */.A)(
47709
+ cms_column_Viewvue_type_script_lang_js,
47710
+ render,
47711
+ staticRenderFns,
47712
+ false,
47713
+ null,
47714
+ "033e8b60",
47715
+ null
47716
+
47717
+ )
47718
+
47719
+ /* harmony default export */ var View = (component.exports);
48098
47720
 
48099
47721
  /***/ }),
48100
47722
 
@@ -52754,7 +52376,7 @@ module.exports = URIError;
52754
52376
  __webpack_require__.r(__webpack_exports__);
52755
52377
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2128);
52756
52378
 
52757
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 4160));
52379
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 8924));
52758
52380
  const langData = {};
52759
52381
  const configDataType = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getLangDataType)(langData, {});
52760
52382
  const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSchema)(langData);
@@ -52840,6 +52462,384 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAQAAABs
52840
52462
 
52841
52463
  /***/ }),
52842
52464
 
52465
+ /***/ 8924:
52466
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
52467
+
52468
+ "use strict";
52469
+ // ESM COMPAT FLAG
52470
+ __webpack_require__.r(__webpack_exports__);
52471
+
52472
+ // EXPORTS
52473
+ __webpack_require__.d(__webpack_exports__, {
52474
+ "default": function() { return /* binding */ View; }
52475
+ });
52476
+
52477
+ ;// ./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
52478
+ var render = function render() {
52479
+ var _vm = this,
52480
+ _c = _vm._self._c;
52481
+ return _c('BaseComp', _vm._b({
52482
+ attrs: {
52483
+ "data": _vm.data,
52484
+ "nowCompId": _vm.nowCompId,
52485
+ "isOpcacity": _vm.isOpcacity,
52486
+ "lang": _vm.lang
52487
+ },
52488
+ on: {
52489
+ "getConfigData": _vm.getConfigData
52490
+ }
52491
+ }, 'BaseComp', _vm.$attrs, false), [_c('section', {
52492
+ staticClass: "cmhk-home_main"
52493
+ }, [_c('div', {
52494
+ staticClass: "wrap"
52495
+ }, [_c('div', {
52496
+ ref: "cardList",
52497
+ staticClass: "cardList"
52498
+ }, [_vm.viewList.length === 0 ? [_c('div', {
52499
+ staticClass: "card-box"
52500
+ }, [_c('div', {
52501
+ staticClass: "card"
52502
+ }, [_c('div', {
52503
+ staticClass: "img-box"
52504
+ }, [_c('div', {
52505
+ staticClass: "card-img",
52506
+ class: {
52507
+ 'is-cms': _vm.$EventBus
52508
+ }
52509
+ }, [_c('img', {
52510
+ staticStyle: {
52511
+ "height": "200px"
52512
+ },
52513
+ attrs: {
52514
+ "src": _vm.placeholderImg,
52515
+ "alt": ""
52516
+ }
52517
+ })])]), _c('div', {
52518
+ staticClass: "content-box"
52519
+ }, [_c('div', {
52520
+ staticClass: "card-name"
52521
+ }, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
52522
+ staticClass: "text-box"
52523
+ }, [_c('div', {
52524
+ staticClass: "card-refPrice"
52525
+ }, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
52526
+ staticClass: "card-pice-text"
52527
+ }, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
52528
+ staticClass: "card-pice"
52529
+ }, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
52530
+ staticClass: "card-btn"
52531
+ }, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
52532
+ return _c('div', {
52533
+ key: `${index}-${item.commodityId || index}`,
52534
+ staticClass: "card-box"
52535
+ }, [_c('div', {
52536
+ staticClass: "card"
52537
+ }, [_c('div', {
52538
+ staticClass: "tag-box-left"
52539
+ }, [_vm._l(item.malltCommodityLeft, function (ele, i) {
52540
+ return [_c('img', {
52541
+ key: i,
52542
+ attrs: {
52543
+ "src": _vm.compBaseUrl + ele.pictureUrl,
52544
+ "alt": ""
52545
+ }
52546
+ })];
52547
+ })], 2), _c('div', {
52548
+ staticClass: "tag-box-right"
52549
+ }, [_vm._l(item.malltCommodityRight, function (ele, i) {
52550
+ return [_c('img', {
52551
+ key: i,
52552
+ attrs: {
52553
+ "src": _vm.compBaseUrl + ele.pictureUrl,
52554
+ "alt": ""
52555
+ }
52556
+ })];
52557
+ })], 2), _c('div', {
52558
+ staticClass: "img-box"
52559
+ }, [_vm.isNotActive(item) ? _c('div', {
52560
+ staticClass: "mask"
52561
+ }, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
52562
+ staticClass: "card-img",
52563
+ class: {
52564
+ 'is-cms': _vm.$EventBus
52565
+ }
52566
+ }, [_c('img', {
52567
+ attrs: {
52568
+ "src": _vm.compBaseUrl + item.maxPicId,
52569
+ "alt": ""
52570
+ }
52571
+ })])]), _c('div', {
52572
+ staticClass: "content-box"
52573
+ }, [_vm.isNotActive(item) ? _c('div', {
52574
+ staticClass: "content-mask"
52575
+ }) : _vm._e(), _c('div', {
52576
+ staticClass: "card-name"
52577
+ }, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
52578
+ staticClass: "text-box"
52579
+ }, [item.price !== item.refPrice ? _c('div', {
52580
+ staticClass: "card-refPrice"
52581
+ }, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
52582
+ staticClass: "card-refPrice"
52583
+ }), _c('div', {
52584
+ staticClass: "card-pice-text"
52585
+ }, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
52586
+ staticClass: "card-pice spc-font"
52587
+ }, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
52588
+ staticClass: "card-btn",
52589
+ on: {
52590
+ "click": function ($event) {
52591
+ return _vm.goDetail(item);
52592
+ }
52593
+ }
52594
+ }, [_vm._v(" " + _vm._s(_vm.langText.buyNow)), _c('img', {
52595
+ attrs: {
52596
+ "src": _vm.arrowRightImg
52597
+ }
52598
+ })]) : _c('div', {
52599
+ staticClass: "card-btn"
52600
+ }, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? (_vm.langText.launch || "").replace("NNN", item.upTime) : _vm.langText.Offer) + " ")])])])]);
52601
+ })], 2), !_vm.seeMore && _vm.configList.length > 9 ? _c('div', {
52602
+ ref: "seeMoreRef",
52603
+ staticClass: "seeMore",
52604
+ on: {
52605
+ "click": function ($event) {
52606
+ _vm.seeMore = true;
52607
+ }
52608
+ }
52609
+ }, [_vm._v(" " + _vm._s(_vm.langText.more) + " "), _c('img', {
52610
+ staticClass: "btm",
52611
+ attrs: {
52612
+ "src": _vm.arrowDownImg
52613
+ }
52614
+ })]) : _vm._e()])])]);
52615
+ };
52616
+ var staticRenderFns = [];
52617
+
52618
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
52619
+ var es_iterator_constructor = __webpack_require__(8111);
52620
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
52621
+ var es_iterator_filter = __webpack_require__(2489);
52622
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
52623
+ var es_iterator_for_each = __webpack_require__(7588);
52624
+ // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
52625
+ var baseComp = __webpack_require__(9659);
52626
+ // EXTERNAL MODULE: ./src/api/index.js
52627
+ var api = __webpack_require__(2842);
52628
+ // EXTERNAL MODULE: ./package/patch.js
52629
+ var patch = __webpack_require__(4229);
52630
+ // EXTERNAL MODULE: ./node_modules/qs/lib/index.js
52631
+ var lib = __webpack_require__(7087);
52632
+ var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
52633
+ ;// ./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
52634
+
52635
+
52636
+
52637
+
52638
+
52639
+
52640
+
52641
+
52642
+
52643
+
52644
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
52645
+ name: "cms-via-storedValueCard",
52646
+ components: {
52647
+ BaseComp: baseComp["default"]
52648
+ },
52649
+ props: {
52650
+ data: {
52651
+ type: Object,
52652
+ default: () => {
52653
+ return {};
52654
+ }
52655
+ },
52656
+ nowCompId: {
52657
+ type: [String, Number],
52658
+ default: ""
52659
+ },
52660
+ isOpcacity: {
52661
+ type: Boolean,
52662
+ default: true
52663
+ },
52664
+ lang: {
52665
+ type: String,
52666
+ default: "zh-HK"
52667
+ }
52668
+ },
52669
+ data() {
52670
+ return {
52671
+ langConfig: {
52672
+ "zh-HK": {
52673
+ productName: "產品名稱",
52674
+ Price: "建議零售價",
52675
+ onlinePrice: "網上優惠價",
52676
+ buyNow: "立即購買",
52677
+ comingSoon: "即將推出",
52678
+ expired: "優惠已過期",
52679
+ more: "查看更多",
52680
+ launch: "NNN 上線",
52681
+ Offer: "優惠即將推出"
52682
+ },
52683
+ "zh-CN": {
52684
+ productName: "产品名称",
52685
+ Price: "建议零售价",
52686
+ onlinePrice: "网上优惠价",
52687
+ buyNow: "立即购买",
52688
+ comingSoon: "即将推出",
52689
+ expired: "优惠已过期",
52690
+ more: "查看更多",
52691
+ launch: "NNN 上线",
52692
+ Offer: "优惠即将推出"
52693
+ },
52694
+ "en-US": {
52695
+ productName: "Product Name",
52696
+ Price: "SRP",
52697
+ onlinePrice: "Online Price",
52698
+ buyNow: "Buy Now",
52699
+ comingSoon: "Coming Soon",
52700
+ expired: "Expired",
52701
+ more: "See more",
52702
+ launch: "Launch at NNN",
52703
+ Offer: "Offer Coming"
52704
+ }
52705
+ },
52706
+ configList: [],
52707
+ seeMore: false,
52708
+ nowTs: Date.now(),
52709
+ compBaseUrl: "https://omniapi.hk.chinamobile.com",
52710
+ // images
52711
+ placeholderImg: __webpack_require__(5335),
52712
+ arrowRightImg: __webpack_require__(4860),
52713
+ arrowDownImg: __webpack_require__(1861),
52714
+ arrowHoverImg: __webpack_require__(4116),
52715
+ arrowActiveImg: __webpack_require__(9670),
52716
+ shopList: []
52717
+ };
52718
+ },
52719
+ computed: {
52720
+ langText() {
52721
+ return this.langConfig[this.lang] ? this.langConfig[this.lang] : this.langConfig["zh-HK"];
52722
+ },
52723
+ viewList() {
52724
+ if (this.seeMore) return this.shopList;
52725
+ return this.shopList.slice(0, 9);
52726
+ }
52727
+ },
52728
+ mounted() {
52729
+ if (!this.$EventBus) {
52730
+ this.compBaseUrl = (0,patch.getCompBaseUrl)();
52731
+ }
52732
+ },
52733
+ beforeDestroy() {},
52734
+ methods: {
52735
+ getConfigData(configData) {
52736
+ this.configList = configData.configList;
52737
+ console.log("getConfigData", this.configList);
52738
+ this.getValue();
52739
+ },
52740
+ async getValue() {
52741
+ await this.getCommodityDetails();
52742
+ },
52743
+ // 拉取已选商品详情
52744
+ async getCommodityDetails() {
52745
+ // try {
52746
+ let req = {
52747
+ busInfo: JSON.stringify({
52748
+ commodityIds: [...this.configList],
52749
+ commodityTypes: ["604", "605"]
52750
+ })
52751
+ };
52752
+ req = lib_default().stringify(req);
52753
+ const json = await (0,api/* getCommodityDetails */.yX)(req, this.lang);
52754
+ let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
52755
+ if (Array.isArray(dataResult)) {
52756
+ dataResult.forEach(item => {
52757
+ if (Array.isArray(item.malltCommodityTags)) {
52758
+ const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
52759
+ const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
52760
+ item.malltCommodityLeft = left.slice(0, 2);
52761
+ item.malltCommodityRight = right.slice(0, 4);
52762
+ } else {
52763
+ item.malltCommodityLeft = [];
52764
+ item.malltCommodityRight = [];
52765
+ }
52766
+ });
52767
+ // 按选择顺序排序
52768
+ this.shopList = dataResult.sort((a, b) => {
52769
+ return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
52770
+ });
52771
+ } else {
52772
+ this.shopList = [];
52773
+ }
52774
+ // } catch (e) {
52775
+ // this.shopList = [];
52776
+ // }
52777
+ },
52778
+ isActive(item) {
52779
+ const now = Date.now();
52780
+ return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
52781
+ },
52782
+ isNotActive(item) {
52783
+ const now = Date.now();
52784
+ return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
52785
+ },
52786
+ convertCentsToYuan(cents) {
52787
+ const yuan = (Number(cents || 0) / 100).toFixed(2);
52788
+ return parseFloat(yuan);
52789
+ },
52790
+ goDetail(item) {
52791
+ const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
52792
+ const langMap = {
52793
+ "zh-CN": "sc",
52794
+ "zh-HK": "tc",
52795
+ "en-US": "en"
52796
+ };
52797
+ const routeLang = langMap[this.lang];
52798
+ if (item.commodityType === "604") {
52799
+ if ((item.commodityName || "").includes("MySIM")) {
52800
+ window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
52801
+ } else {
52802
+ window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
52803
+ }
52804
+ } else if (item.commodityType === "605") {
52805
+ window.parent.location.href = `${base}/${routeLang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
52806
+ }
52807
+ }
52808
+ }
52809
+ });
52810
+ ;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
52811
+ /* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
52812
+ ;// ./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
52813
+ // extracted by mini-css-extract-plugin
52814
+
52815
+ ;// ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=ff44e87c&prod&lang=scss&scoped=true
52816
+
52817
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
52818
+ var componentNormalizer = __webpack_require__(1656);
52819
+ ;// ./package/cms-via-storedValueCard/View.vue
52820
+
52821
+
52822
+
52823
+ ;
52824
+
52825
+
52826
+ /* normalize component */
52827
+
52828
+ var component = (0,componentNormalizer/* default */.A)(
52829
+ cms_via_storedValueCard_Viewvue_type_script_lang_js,
52830
+ render,
52831
+ staticRenderFns,
52832
+ false,
52833
+ null,
52834
+ "ff44e87c",
52835
+ null
52836
+
52837
+ )
52838
+
52839
+ /* harmony default export */ var View = (component.exports);
52840
+
52841
+ /***/ }),
52842
+
52843
52843
  /***/ 8945:
52844
52844
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
52845
52845
 
@@ -59901,7 +59901,7 @@ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSc
59901
59901
  __webpack_require__.r(__webpack_exports__);
59902
59902
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2128);
59903
59903
 
59904
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 4160));
59904
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 8924));
59905
59905
  const langData = {
59906
59906
  configList: [
59907
59907
  // {