cms-chenhj-ui 2.0.17 → 2.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms-chenhj-ui.common.js +1050 -1040
- package/cms-chenhj-ui.common.js.map +1 -1
- package/cms-chenhj-ui.css +1 -1
- package/cms-chenhj-ui.umd.js +1188 -1178
- package/cms-chenhj-ui.umd.js.map +1 -1
- package/cms-chenhj-ui.umd.min.js +3 -3
- package/cms-chenhj-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/cms-chenhj-ui.common.js
CHANGED
|
@@ -575,7 +575,7 @@ var swiper = __webpack_require__(2791);
|
|
|
575
575
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
576
576
|
var swiper_esm_bundle = __webpack_require__(4418);
|
|
577
577
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
578
|
-
var baseComp = __webpack_require__(
|
|
578
|
+
var baseComp = __webpack_require__(1941);
|
|
579
579
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-aLineThreeLeftOne/View.vue?vue&type=script&lang=js
|
|
580
580
|
|
|
581
581
|
|
|
@@ -3614,6 +3614,120 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADg
|
|
|
3614
3614
|
|
|
3615
3615
|
/***/ }),
|
|
3616
3616
|
|
|
3617
|
+
/***/ 1429:
|
|
3618
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3619
|
+
|
|
3620
|
+
"use strict";
|
|
3621
|
+
// ESM COMPAT FLAG
|
|
3622
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3623
|
+
|
|
3624
|
+
// EXPORTS
|
|
3625
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
3626
|
+
"default": function() { return /* binding */ View; }
|
|
3627
|
+
});
|
|
3628
|
+
|
|
3629
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-titleCenter/View.vue?vue&type=template&id=5d88cd02&scoped=true
|
|
3630
|
+
var render = function render() {
|
|
3631
|
+
var _vm = this,
|
|
3632
|
+
_c = _vm._self._c;
|
|
3633
|
+
return _c('BaseComp', _vm._b({
|
|
3634
|
+
attrs: {
|
|
3635
|
+
"data": _vm.data,
|
|
3636
|
+
"nowCompId": _vm.nowCompId,
|
|
3637
|
+
"isOpcacity": _vm.isOpcacity,
|
|
3638
|
+
"lang": _vm.lang
|
|
3639
|
+
},
|
|
3640
|
+
on: {
|
|
3641
|
+
"getConfigData": _vm.getConfigData
|
|
3642
|
+
}
|
|
3643
|
+
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
3644
|
+
staticClass: "section-head"
|
|
3645
|
+
}, [_c('div', {
|
|
3646
|
+
staticClass: "cmhk-home_main"
|
|
3647
|
+
}, [_c('p', {
|
|
3648
|
+
staticClass: "title"
|
|
3649
|
+
}, [_c('span', {
|
|
3650
|
+
staticClass: "main"
|
|
3651
|
+
}, [_vm._v(_vm._s(_vm.configData.title1))])]), _c('p', {
|
|
3652
|
+
staticClass: "subtitle"
|
|
3653
|
+
}, [_vm._v(_vm._s(_vm.configData.title2))])])])]);
|
|
3654
|
+
};
|
|
3655
|
+
var staticRenderFns = [];
|
|
3656
|
+
|
|
3657
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
3658
|
+
var baseComp = __webpack_require__(1941);
|
|
3659
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-titleCenter/View.vue?vue&type=script&lang=js
|
|
3660
|
+
|
|
3661
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
3662
|
+
name: "cms-titleCenter",
|
|
3663
|
+
components: {
|
|
3664
|
+
BaseComp: baseComp["default"]
|
|
3665
|
+
},
|
|
3666
|
+
props: {
|
|
3667
|
+
data: {
|
|
3668
|
+
type: Object,
|
|
3669
|
+
default: () => {
|
|
3670
|
+
return {};
|
|
3671
|
+
}
|
|
3672
|
+
},
|
|
3673
|
+
nowCompId: {
|
|
3674
|
+
type: [String, Number],
|
|
3675
|
+
default: ""
|
|
3676
|
+
},
|
|
3677
|
+
isOpcacity: {
|
|
3678
|
+
type: Boolean,
|
|
3679
|
+
default: true
|
|
3680
|
+
},
|
|
3681
|
+
lang: {
|
|
3682
|
+
type: String,
|
|
3683
|
+
default: "zh-HK"
|
|
3684
|
+
}
|
|
3685
|
+
},
|
|
3686
|
+
data() {
|
|
3687
|
+
return {
|
|
3688
|
+
configData: {}
|
|
3689
|
+
};
|
|
3690
|
+
},
|
|
3691
|
+
mounted() {},
|
|
3692
|
+
methods: {
|
|
3693
|
+
getConfigData(configData) {
|
|
3694
|
+
this.configData = configData;
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
});
|
|
3698
|
+
;// ./package/cms-titleCenter/View.vue?vue&type=script&lang=js
|
|
3699
|
+
/* harmony default export */ var cms_titleCenter_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
3700
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-titleCenter/View.vue?vue&type=style&index=0&id=5d88cd02&prod&scoped=true&lang=scss
|
|
3701
|
+
// extracted by mini-css-extract-plugin
|
|
3702
|
+
|
|
3703
|
+
;// ./package/cms-titleCenter/View.vue?vue&type=style&index=0&id=5d88cd02&prod&scoped=true&lang=scss
|
|
3704
|
+
|
|
3705
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
3706
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
3707
|
+
;// ./package/cms-titleCenter/View.vue
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
|
|
3711
|
+
;
|
|
3712
|
+
|
|
3713
|
+
|
|
3714
|
+
/* normalize component */
|
|
3715
|
+
|
|
3716
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
3717
|
+
cms_titleCenter_Viewvue_type_script_lang_js,
|
|
3718
|
+
render,
|
|
3719
|
+
staticRenderFns,
|
|
3720
|
+
false,
|
|
3721
|
+
null,
|
|
3722
|
+
"5d88cd02",
|
|
3723
|
+
null
|
|
3724
|
+
|
|
3725
|
+
)
|
|
3726
|
+
|
|
3727
|
+
/* harmony default export */ var View = (component.exports);
|
|
3728
|
+
|
|
3729
|
+
/***/ }),
|
|
3730
|
+
|
|
3617
3731
|
/***/ 1446:
|
|
3618
3732
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3619
3733
|
|
|
@@ -3710,7 +3824,7 @@ var es_iterator_filter = __webpack_require__(2489);
|
|
|
3710
3824
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
3711
3825
|
var es_iterator_for_each = __webpack_require__(7588);
|
|
3712
3826
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
3713
|
-
var baseComp = __webpack_require__(
|
|
3827
|
+
var baseComp = __webpack_require__(1941);
|
|
3714
3828
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-text/View.vue?vue&type=script&lang=js
|
|
3715
3829
|
|
|
3716
3830
|
|
|
@@ -9812,8 +9926,8 @@ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSc
|
|
|
9812
9926
|
|
|
9813
9927
|
var map = {
|
|
9814
9928
|
"./": 176,
|
|
9815
|
-
"./baseComp":
|
|
9816
|
-
"./baseComp.vue":
|
|
9929
|
+
"./baseComp": 1941,
|
|
9930
|
+
"./baseComp.vue": 1941,
|
|
9817
9931
|
"./baseConfig": 649,
|
|
9818
9932
|
"./baseConfig.js": 649,
|
|
9819
9933
|
"./cms-aLineThreeLeftOne": 5041,
|
|
@@ -9922,8 +10036,8 @@ var map = {
|
|
|
9922
10036
|
"./cms-lineFour/index.js": 6175,
|
|
9923
10037
|
"./cms-lineThree": 7277,
|
|
9924
10038
|
"./cms-lineThree/": 7277,
|
|
9925
|
-
"./cms-lineThree/View":
|
|
9926
|
-
"./cms-lineThree/View.vue":
|
|
10039
|
+
"./cms-lineThree/View": 4602,
|
|
10040
|
+
"./cms-lineThree/View.vue": 4602,
|
|
9927
10041
|
"./cms-lineThree/index": 7277,
|
|
9928
10042
|
"./cms-lineThree/index.js": 7277,
|
|
9929
10043
|
"./cms-lineTwo": 8123,
|
|
@@ -9976,8 +10090,8 @@ var map = {
|
|
|
9976
10090
|
"./cms-servePlan-text/index.js": 6501,
|
|
9977
10091
|
"./cms-stored-value-card": 2399,
|
|
9978
10092
|
"./cms-stored-value-card/": 2399,
|
|
9979
|
-
"./cms-stored-value-card/View":
|
|
9980
|
-
"./cms-stored-value-card/View.vue":
|
|
10093
|
+
"./cms-stored-value-card/View": 3837,
|
|
10094
|
+
"./cms-stored-value-card/View.vue": 3837,
|
|
9981
10095
|
"./cms-stored-value-card/index": 2399,
|
|
9982
10096
|
"./cms-stored-value-card/index.js": 2399,
|
|
9983
10097
|
"./cms-termsAndConditions": 9387,
|
|
@@ -10000,8 +10114,8 @@ var map = {
|
|
|
10000
10114
|
"./cms-threeScroll/index.js": 4670,
|
|
10001
10115
|
"./cms-titleCenter": 8904,
|
|
10002
10116
|
"./cms-titleCenter/": 8904,
|
|
10003
|
-
"./cms-titleCenter/View":
|
|
10004
|
-
"./cms-titleCenter/View.vue":
|
|
10117
|
+
"./cms-titleCenter/View": 1429,
|
|
10118
|
+
"./cms-titleCenter/View.vue": 1429,
|
|
10005
10119
|
"./cms-titleCenter/index": 8904,
|
|
10006
10120
|
"./cms-titleCenter/index.js": 8904,
|
|
10007
10121
|
"./cms-titleLeft": 7804,
|
|
@@ -10337,7 +10451,7 @@ var render = function render() {
|
|
|
10337
10451
|
var staticRenderFns = [];
|
|
10338
10452
|
|
|
10339
10453
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
10340
|
-
var baseComp = __webpack_require__(
|
|
10454
|
+
var baseComp = __webpack_require__(1941);
|
|
10341
10455
|
// EXTERNAL MODULE: ./package/patch.js
|
|
10342
10456
|
var patch = __webpack_require__(1618);
|
|
10343
10457
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-dynamic-comp/View.vue?vue&type=script&lang=js
|
|
@@ -10941,6 +11055,274 @@ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSc
|
|
|
10941
11055
|
|
|
10942
11056
|
/***/ }),
|
|
10943
11057
|
|
|
11058
|
+
/***/ 1941:
|
|
11059
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11060
|
+
|
|
11061
|
+
"use strict";
|
|
11062
|
+
// ESM COMPAT FLAG
|
|
11063
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11064
|
+
|
|
11065
|
+
// EXPORTS
|
|
11066
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
11067
|
+
"default": function() { return /* binding */ baseComp; }
|
|
11068
|
+
});
|
|
11069
|
+
|
|
11070
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/baseComp.vue?vue&type=template&id=23d28f12&scoped=true
|
|
11071
|
+
var render = function render() {
|
|
11072
|
+
var _vm = this,
|
|
11073
|
+
_c = _vm._self._c;
|
|
11074
|
+
return _vm.$EventBus && _vm.isOpcacity ? _c('div', {
|
|
11075
|
+
key: _vm.data.componentId,
|
|
11076
|
+
class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.componentId ? 'highLight' : ''],
|
|
11077
|
+
style: _vm.showStyleConfig,
|
|
11078
|
+
attrs: {
|
|
11079
|
+
"component-key": _vm.data.cmsCompName
|
|
11080
|
+
},
|
|
11081
|
+
on: {
|
|
11082
|
+
"click": function ($event) {
|
|
11083
|
+
$event.stopPropagation();
|
|
11084
|
+
return _vm.handleNowComp.apply(null, arguments);
|
|
11085
|
+
}
|
|
11086
|
+
}
|
|
11087
|
+
}, [_c('div', {
|
|
11088
|
+
staticClass: "mask-wrap"
|
|
11089
|
+
}, [_vm._t("default", null, {
|
|
11090
|
+
"isMobile": _vm.isMobile
|
|
11091
|
+
}), _vm.isMask ? _c('div', {
|
|
11092
|
+
staticClass: "mask",
|
|
11093
|
+
on: {
|
|
11094
|
+
"click": _vm.handleNowComp
|
|
11095
|
+
}
|
|
11096
|
+
}) : _vm._e()], 2), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.componentId ? _c('div', {
|
|
11097
|
+
staticClass: "com-delete"
|
|
11098
|
+
}, [_vm.showDel ? _c('i', {
|
|
11099
|
+
staticClass: "el-icon-delete",
|
|
11100
|
+
on: {
|
|
11101
|
+
"click": function ($event) {
|
|
11102
|
+
$event.stopPropagation();
|
|
11103
|
+
return _vm.delComp.apply(null, arguments);
|
|
11104
|
+
}
|
|
11105
|
+
}
|
|
11106
|
+
}) : _vm._e(), _c('i', {
|
|
11107
|
+
staticClass: "el-icon-top",
|
|
11108
|
+
on: {
|
|
11109
|
+
"click": function ($event) {
|
|
11110
|
+
$event.stopPropagation();
|
|
11111
|
+
return _vm.selectParentDom.apply(null, arguments);
|
|
11112
|
+
}
|
|
11113
|
+
}
|
|
11114
|
+
})]) : _vm._e()]) : _vm.showSlot ? _c('div', {
|
|
11115
|
+
key: _vm.data.componentId,
|
|
11116
|
+
ref: "targetElement",
|
|
11117
|
+
style: _vm.showStyleConfig
|
|
11118
|
+
}, [_vm._t("default", null, {
|
|
11119
|
+
"isMobile": _vm.isMobile
|
|
11120
|
+
})], 2) : _vm._e();
|
|
11121
|
+
};
|
|
11122
|
+
var staticRenderFns = [];
|
|
11123
|
+
|
|
11124
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
11125
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
11126
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
11127
|
+
var es_iterator_reduce = __webpack_require__(8237);
|
|
11128
|
+
// EXTERNAL MODULE: ./package/patch.js
|
|
11129
|
+
var patch = __webpack_require__(1618);
|
|
11130
|
+
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
11131
|
+
var dayjs_min = __webpack_require__(1576);
|
|
11132
|
+
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
11133
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/baseComp.vue?vue&type=script&lang=js
|
|
11134
|
+
|
|
11135
|
+
|
|
11136
|
+
|
|
11137
|
+
|
|
11138
|
+
// 待办:判断移动pc端填充不同的样式
|
|
11139
|
+
|
|
11140
|
+
|
|
11141
|
+
/* harmony default export */ var baseCompvue_type_script_lang_js = ({
|
|
11142
|
+
name: "baseComp",
|
|
11143
|
+
props: {
|
|
11144
|
+
data: {
|
|
11145
|
+
type: Object,
|
|
11146
|
+
default: () => {
|
|
11147
|
+
return {};
|
|
11148
|
+
}
|
|
11149
|
+
},
|
|
11150
|
+
nowCompId: {
|
|
11151
|
+
type: [String, Number],
|
|
11152
|
+
default: ""
|
|
11153
|
+
},
|
|
11154
|
+
isOpcacity: {
|
|
11155
|
+
type: Boolean,
|
|
11156
|
+
default: true
|
|
11157
|
+
},
|
|
11158
|
+
isMask: {
|
|
11159
|
+
type: Boolean,
|
|
11160
|
+
default: true
|
|
11161
|
+
},
|
|
11162
|
+
lang: {
|
|
11163
|
+
type: String,
|
|
11164
|
+
default: "zh-HK"
|
|
11165
|
+
},
|
|
11166
|
+
timeline: {
|
|
11167
|
+
type: String,
|
|
11168
|
+
default: ""
|
|
11169
|
+
},
|
|
11170
|
+
cmhkChannel: {
|
|
11171
|
+
type: String,
|
|
11172
|
+
default: "WWW"
|
|
11173
|
+
},
|
|
11174
|
+
showDel: {
|
|
11175
|
+
type: Boolean,
|
|
11176
|
+
default: true
|
|
11177
|
+
}
|
|
11178
|
+
},
|
|
11179
|
+
data() {
|
|
11180
|
+
return {
|
|
11181
|
+
styleConfig_mb: {},
|
|
11182
|
+
styleConfig_pc: {},
|
|
11183
|
+
configData: {},
|
|
11184
|
+
elementWidth: 0,
|
|
11185
|
+
resizeObserver: null
|
|
11186
|
+
};
|
|
11187
|
+
},
|
|
11188
|
+
watch: {
|
|
11189
|
+
data: {
|
|
11190
|
+
handler(val) {
|
|
11191
|
+
this.getStyleConfig(val, "pc");
|
|
11192
|
+
this.getStyleConfig(val, "mb");
|
|
11193
|
+
this.getValue(this.lang);
|
|
11194
|
+
},
|
|
11195
|
+
deep: true,
|
|
11196
|
+
immediate: true
|
|
11197
|
+
},
|
|
11198
|
+
lang: {
|
|
11199
|
+
handler(val) {
|
|
11200
|
+
this.getValue(val);
|
|
11201
|
+
},
|
|
11202
|
+
deep: true,
|
|
11203
|
+
immediate: true
|
|
11204
|
+
}
|
|
11205
|
+
},
|
|
11206
|
+
mounted() {
|
|
11207
|
+
if (this.$EventBus && this.isOpcacity) {
|
|
11208
|
+
this.elementWidth = 800;
|
|
11209
|
+
this.$EventBus.$on("handleDeviceChange", isMobile => {
|
|
11210
|
+
this.elementWidth = isMobile ? 700 : 800;
|
|
11211
|
+
});
|
|
11212
|
+
} else if (this.showSlot) {
|
|
11213
|
+
this.resizeObserver = new ResizeObserver(entries => {
|
|
11214
|
+
for (let entry of entries) {
|
|
11215
|
+
this.elementWidth = entry.contentRect.width;
|
|
11216
|
+
// 可以在这里触发自定义逻辑
|
|
11217
|
+
// this.onWidthChange(this.elementWidth);
|
|
11218
|
+
}
|
|
11219
|
+
});
|
|
11220
|
+
const element = document.getElementById("app") || document.getElementById("__nuxt");
|
|
11221
|
+
this.resizeObserver.observe(element);
|
|
11222
|
+
}
|
|
11223
|
+
},
|
|
11224
|
+
beforeDestroy() {
|
|
11225
|
+
// 组件销毁时停止观察
|
|
11226
|
+
if (this.resizeObserver) {
|
|
11227
|
+
this.resizeObserver.disconnect();
|
|
11228
|
+
}
|
|
11229
|
+
},
|
|
11230
|
+
methods: {
|
|
11231
|
+
selectParentDom() {
|
|
11232
|
+
if (!this.isOpcacity) return;
|
|
11233
|
+
this.$EventBus.$emit("handleParentComp", this.data);
|
|
11234
|
+
},
|
|
11235
|
+
onWidthChange(newWidth) {
|
|
11236
|
+
console.log("新宽度:", newWidth, this.isMobile);
|
|
11237
|
+
},
|
|
11238
|
+
getValue(cur_lang) {
|
|
11239
|
+
var _this$data, _this$data$settings;
|
|
11240
|
+
const obj = {
|
|
11241
|
+
"zh-CN": "lang_sc",
|
|
11242
|
+
"zh-HK": "lang_tc",
|
|
11243
|
+
"en-US": "lang_en"
|
|
11244
|
+
};
|
|
11245
|
+
if ((_this$data = this.data) !== null && _this$data !== void 0 && (_this$data$settings = _this$data.settings) !== null && _this$data$settings !== void 0 && _this$data$settings.settings) {
|
|
11246
|
+
const baseInfo = (0,patch.transfor)(this.data);
|
|
11247
|
+
this.configData = baseInfo.contentConfig.lang_all ? baseInfo.contentConfig.lang_all : baseInfo.contentConfig[`${obj[cur_lang]}`];
|
|
11248
|
+
} else {
|
|
11249
|
+
this.configData = this.data.contentConfig.lang_all ? this.data.contentConfig.lang_all : this.data.contentConfig[`${obj[cur_lang]}`];
|
|
11250
|
+
}
|
|
11251
|
+
this.$emit("getConfigData", this.configData);
|
|
11252
|
+
},
|
|
11253
|
+
getStyleConfig(data, type) {
|
|
11254
|
+
this[`styleConfig_${type}`] = data.styleConfig[type].reduce((pre, cur) => {
|
|
11255
|
+
pre[cur.key] = cur.value + cur.unit;
|
|
11256
|
+
return pre;
|
|
11257
|
+
}, {});
|
|
11258
|
+
},
|
|
11259
|
+
handleNowComp() {
|
|
11260
|
+
if (!this.isOpcacity) return;
|
|
11261
|
+
this.$EventBus.$emit("handleNowComp", this.data);
|
|
11262
|
+
},
|
|
11263
|
+
delComp() {
|
|
11264
|
+
this.$EventBus.$emit("handleDeleteComp", this.data.componentId);
|
|
11265
|
+
}
|
|
11266
|
+
},
|
|
11267
|
+
computed: {
|
|
11268
|
+
showStyleConfig() {
|
|
11269
|
+
if (!this.elementWidth) return {};
|
|
11270
|
+
return this.isMobile ? this.styleConfig_mb : this.styleConfig_pc;
|
|
11271
|
+
},
|
|
11272
|
+
isMobile() {
|
|
11273
|
+
return this.elementWidth < 760;
|
|
11274
|
+
},
|
|
11275
|
+
showSlot() {
|
|
11276
|
+
if (this.$EventBus && this.isOpcacity) return false;
|
|
11277
|
+
const {
|
|
11278
|
+
cmhkChannelConfList = [],
|
|
11279
|
+
startTime = "",
|
|
11280
|
+
endTime = ""
|
|
11281
|
+
} = this.data.baseConfig;
|
|
11282
|
+
console.log("this.cmhkChannel", this.cmhkChannel, this.data.baseConfig);
|
|
11283
|
+
const channelVisable = cmhkChannelConfList.includes("ALL") || cmhkChannelConfList.includes(this.cmhkChannel);
|
|
11284
|
+
if (!channelVisable) return false;
|
|
11285
|
+
if (!startTime && !endTime) return true;
|
|
11286
|
+
const currentTime = this.timeline ? dayjs_min_default()(this.timeline) : dayjs_min_default()();
|
|
11287
|
+
const isStart = startTime ? dayjs_min_default()(currentTime).isAfter(dayjs_min_default()(startTime)) || dayjs_min_default()(currentTime).isSame(dayjs_min_default()(startTime)) : true;
|
|
11288
|
+
const isEnd = endTime ? dayjs_min_default()(currentTime).isBefore(dayjs_min_default()(endTime)) || dayjs_min_default()(currentTime).isSame(dayjs_min_default()(endTime)) : true;
|
|
11289
|
+
return isStart && isEnd;
|
|
11290
|
+
}
|
|
11291
|
+
}
|
|
11292
|
+
});
|
|
11293
|
+
;// ./package/baseComp.vue?vue&type=script&lang=js
|
|
11294
|
+
/* harmony default export */ var package_baseCompvue_type_script_lang_js = (baseCompvue_type_script_lang_js);
|
|
11295
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/baseComp.vue?vue&type=style&index=0&id=23d28f12&prod&lang=scss&scoped=true
|
|
11296
|
+
// extracted by mini-css-extract-plugin
|
|
11297
|
+
|
|
11298
|
+
;// ./package/baseComp.vue?vue&type=style&index=0&id=23d28f12&prod&lang=scss&scoped=true
|
|
11299
|
+
|
|
11300
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11301
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
11302
|
+
;// ./package/baseComp.vue
|
|
11303
|
+
|
|
11304
|
+
|
|
11305
|
+
|
|
11306
|
+
;
|
|
11307
|
+
|
|
11308
|
+
|
|
11309
|
+
/* normalize component */
|
|
11310
|
+
|
|
11311
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
11312
|
+
package_baseCompvue_type_script_lang_js,
|
|
11313
|
+
render,
|
|
11314
|
+
staticRenderFns,
|
|
11315
|
+
false,
|
|
11316
|
+
null,
|
|
11317
|
+
"23d28f12",
|
|
11318
|
+
null
|
|
11319
|
+
|
|
11320
|
+
)
|
|
11321
|
+
|
|
11322
|
+
/* harmony default export */ var baseComp = (component.exports);
|
|
11323
|
+
|
|
11324
|
+
/***/ }),
|
|
11325
|
+
|
|
10944
11326
|
/***/ 1944:
|
|
10945
11327
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
10946
11328
|
|
|
@@ -12124,7 +12506,7 @@ var staticRenderFns = [];
|
|
|
12124
12506
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
12125
12507
|
var es_array_push = __webpack_require__(4114);
|
|
12126
12508
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
12127
|
-
var baseComp = __webpack_require__(
|
|
12509
|
+
var baseComp = __webpack_require__(1941);
|
|
12128
12510
|
// EXTERNAL MODULE: ./node_modules/vuedraggable/dist/vuedraggable.umd.js
|
|
12129
12511
|
var vuedraggable_umd = __webpack_require__(1527);
|
|
12130
12512
|
var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_umd);
|
|
@@ -12623,7 +13005,7 @@ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind
|
|
|
12623
13005
|
__webpack_require__.r(__webpack_exports__);
|
|
12624
13006
|
/* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
|
|
12625
13007
|
|
|
12626
|
-
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
13008
|
+
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 3837));
|
|
12627
13009
|
const langData = {
|
|
12628
13010
|
configList: [
|
|
12629
13011
|
// {
|
|
@@ -12687,7 +13069,8 @@ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSc
|
|
|
12687
13069
|
settings: cmsCompName => {
|
|
12688
13070
|
return (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getInitCompData)({
|
|
12689
13071
|
cmsCompName,
|
|
12690
|
-
langData
|
|
13072
|
+
langData,
|
|
13073
|
+
isLangAll: true
|
|
12691
13074
|
});
|
|
12692
13075
|
}
|
|
12693
13076
|
});
|
|
@@ -12748,7 +13131,7 @@ var es_iterator_constructor = __webpack_require__(8111);
|
|
|
12748
13131
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
12749
13132
|
var es_iterator_for_each = __webpack_require__(7588);
|
|
12750
13133
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
12751
|
-
var baseComp = __webpack_require__(
|
|
13134
|
+
var baseComp = __webpack_require__(1941);
|
|
12752
13135
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-button/View.vue?vue&type=script&lang=js
|
|
12753
13136
|
|
|
12754
13137
|
|
|
@@ -16753,7 +17136,7 @@ var swiper_esm_bundle = __webpack_require__(4418);
|
|
|
16753
17136
|
// EXTERNAL MODULE: ./src/utils/jumpUrl.js
|
|
16754
17137
|
var jumpUrl = __webpack_require__(813);
|
|
16755
17138
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
16756
|
-
var baseComp = __webpack_require__(
|
|
17139
|
+
var baseComp = __webpack_require__(1941);
|
|
16757
17140
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-banner/View.vue?vue&type=script&lang=js
|
|
16758
17141
|
|
|
16759
17142
|
|
|
@@ -25484,7 +25867,7 @@ var render = function render() {
|
|
|
25484
25867
|
var staticRenderFns = [];
|
|
25485
25868
|
|
|
25486
25869
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
25487
|
-
var baseComp = __webpack_require__(
|
|
25870
|
+
var baseComp = __webpack_require__(1941);
|
|
25488
25871
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-column/View.vue?vue&type=script&lang=js
|
|
25489
25872
|
|
|
25490
25873
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -25962,7 +26345,7 @@ var render = function render() {
|
|
|
25962
26345
|
var staticRenderFns = [];
|
|
25963
26346
|
|
|
25964
26347
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
25965
|
-
var baseComp = __webpack_require__(
|
|
26348
|
+
var baseComp = __webpack_require__(1941);
|
|
25966
26349
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-description/View.vue?vue&type=script&lang=js
|
|
25967
26350
|
|
|
25968
26351
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -26142,7 +26525,7 @@ var render = function render() {
|
|
|
26142
26525
|
var staticRenderFns = [];
|
|
26143
26526
|
|
|
26144
26527
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
26145
|
-
var baseComp = __webpack_require__(
|
|
26528
|
+
var baseComp = __webpack_require__(1941);
|
|
26146
26529
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineTwo/View.vue?vue&type=script&lang=js
|
|
26147
26530
|
|
|
26148
26531
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -26416,7 +26799,7 @@ var render = function render() {
|
|
|
26416
26799
|
var staticRenderFns = [];
|
|
26417
26800
|
|
|
26418
26801
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
26419
|
-
var baseComp = __webpack_require__(
|
|
26802
|
+
var baseComp = __webpack_require__(1941);
|
|
26420
26803
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-richText/View.vue?vue&type=script&lang=js
|
|
26421
26804
|
|
|
26422
26805
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -26896,6 +27279,395 @@ module.exports = function (obj) {
|
|
|
26896
27279
|
};
|
|
26897
27280
|
|
|
26898
27281
|
|
|
27282
|
+
/***/ }),
|
|
27283
|
+
|
|
27284
|
+
/***/ 3837:
|
|
27285
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27286
|
+
|
|
27287
|
+
"use strict";
|
|
27288
|
+
// ESM COMPAT FLAG
|
|
27289
|
+
__webpack_require__.r(__webpack_exports__);
|
|
27290
|
+
|
|
27291
|
+
// EXPORTS
|
|
27292
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27293
|
+
"default": function() { return /* binding */ View; }
|
|
27294
|
+
});
|
|
27295
|
+
|
|
27296
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=template&id=ae178d02&scoped=true
|
|
27297
|
+
var render = function render() {
|
|
27298
|
+
var _vm = this,
|
|
27299
|
+
_c = _vm._self._c;
|
|
27300
|
+
return _c('BaseComp', _vm._b({
|
|
27301
|
+
attrs: {
|
|
27302
|
+
"data": _vm.data,
|
|
27303
|
+
"nowCompId": _vm.nowCompId,
|
|
27304
|
+
"isOpcacity": _vm.isOpcacity,
|
|
27305
|
+
"lang": _vm.lang
|
|
27306
|
+
},
|
|
27307
|
+
on: {
|
|
27308
|
+
"getConfigData": _vm.getConfigData
|
|
27309
|
+
}
|
|
27310
|
+
}, 'BaseComp', _vm.$attrs, false), [_c('section', {
|
|
27311
|
+
staticClass: "cmhk-home_main"
|
|
27312
|
+
}, [_c('div', {
|
|
27313
|
+
staticClass: "wrap"
|
|
27314
|
+
}, [_c('div', {
|
|
27315
|
+
ref: "cardList",
|
|
27316
|
+
staticClass: "cardList"
|
|
27317
|
+
}, [_vm.configList.length === 0 ? [_c('div', {
|
|
27318
|
+
staticClass: "card-box"
|
|
27319
|
+
}, [_c('div', {
|
|
27320
|
+
staticClass: "card"
|
|
27321
|
+
}, [_c('div', {
|
|
27322
|
+
staticClass: "img-box"
|
|
27323
|
+
}, [_c('div', {
|
|
27324
|
+
staticClass: "card-img",
|
|
27325
|
+
class: {
|
|
27326
|
+
'is-cms': _vm.$EventBus
|
|
27327
|
+
}
|
|
27328
|
+
}, [_c('img', {
|
|
27329
|
+
staticStyle: {
|
|
27330
|
+
"height": "200px"
|
|
27331
|
+
},
|
|
27332
|
+
attrs: {
|
|
27333
|
+
"src": _vm.placeholderImg,
|
|
27334
|
+
"alt": ""
|
|
27335
|
+
}
|
|
27336
|
+
})])]), _c('div', {
|
|
27337
|
+
staticClass: "content-box"
|
|
27338
|
+
}, [_c('div', {
|
|
27339
|
+
staticClass: "card-name"
|
|
27340
|
+
}, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
|
|
27341
|
+
staticClass: "text-box"
|
|
27342
|
+
}, [_c('div', {
|
|
27343
|
+
staticClass: "card-refPrice"
|
|
27344
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
|
|
27345
|
+
staticClass: "card-pice-text"
|
|
27346
|
+
}, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
|
|
27347
|
+
staticClass: "card-pice"
|
|
27348
|
+
}, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
|
|
27349
|
+
staticClass: "card-btn"
|
|
27350
|
+
}, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
|
|
27351
|
+
return _c('div', {
|
|
27352
|
+
key: `${index}-${item.commodityId || index}`,
|
|
27353
|
+
staticClass: "card-box"
|
|
27354
|
+
}, [_c('div', {
|
|
27355
|
+
staticClass: "card"
|
|
27356
|
+
}, [_c('div', {
|
|
27357
|
+
staticClass: "tag-box-left"
|
|
27358
|
+
}, [_vm._l(item.malltCommodityLeft, function (ele, i) {
|
|
27359
|
+
return [_c('img', {
|
|
27360
|
+
key: i,
|
|
27361
|
+
attrs: {
|
|
27362
|
+
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
27363
|
+
"alt": ""
|
|
27364
|
+
}
|
|
27365
|
+
})];
|
|
27366
|
+
})], 2), _c('div', {
|
|
27367
|
+
staticClass: "tag-box-right"
|
|
27368
|
+
}, [_vm._l(item.malltCommodityRight, function (ele, i) {
|
|
27369
|
+
return [_c('img', {
|
|
27370
|
+
key: i,
|
|
27371
|
+
attrs: {
|
|
27372
|
+
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
27373
|
+
"alt": ""
|
|
27374
|
+
}
|
|
27375
|
+
})];
|
|
27376
|
+
})], 2), _c('div', {
|
|
27377
|
+
staticClass: "img-box"
|
|
27378
|
+
}, [_vm.isNotActive(item) ? _c('div', {
|
|
27379
|
+
staticClass: "mask"
|
|
27380
|
+
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
|
|
27381
|
+
staticClass: "card-img",
|
|
27382
|
+
class: {
|
|
27383
|
+
'is-cms': _vm.$EventBus
|
|
27384
|
+
}
|
|
27385
|
+
}, [_c('img', {
|
|
27386
|
+
attrs: {
|
|
27387
|
+
"src": _vm.compBaseUrl + item.maxPicId,
|
|
27388
|
+
"alt": ""
|
|
27389
|
+
}
|
|
27390
|
+
})])]), _c('div', {
|
|
27391
|
+
staticClass: "content-box"
|
|
27392
|
+
}, [_vm.isNotActive(item) ? _c('div', {
|
|
27393
|
+
staticClass: "content-mask"
|
|
27394
|
+
}) : _vm._e(), _c('div', {
|
|
27395
|
+
staticClass: "card-name"
|
|
27396
|
+
}, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
|
|
27397
|
+
staticClass: "text-box"
|
|
27398
|
+
}, [item.price !== item.refPrice ? _c('div', {
|
|
27399
|
+
staticClass: "card-refPrice"
|
|
27400
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
|
|
27401
|
+
staticClass: "card-refPrice"
|
|
27402
|
+
}), _c('div', {
|
|
27403
|
+
staticClass: "card-pice-text"
|
|
27404
|
+
}, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
|
|
27405
|
+
staticClass: "card-pice spc-font"
|
|
27406
|
+
}, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
|
|
27407
|
+
staticClass: "card-btn",
|
|
27408
|
+
on: {
|
|
27409
|
+
"click": function ($event) {
|
|
27410
|
+
return _vm.goDetail(item);
|
|
27411
|
+
}
|
|
27412
|
+
}
|
|
27413
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.buyNow)), _c('img', {
|
|
27414
|
+
attrs: {
|
|
27415
|
+
"src": _vm.arrowRightImg
|
|
27416
|
+
}
|
|
27417
|
+
})]) : _c('div', {
|
|
27418
|
+
staticClass: "card-btn"
|
|
27419
|
+
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? (_vm.langText.launch || "").replace("NNN", item.upTime) : _vm.langText.Offer) + " ")])])])]);
|
|
27420
|
+
})], 2), !_vm.seeMore && _vm.configList.length > 9 ? _c('div', {
|
|
27421
|
+
ref: "seeMoreRef",
|
|
27422
|
+
staticClass: "seeMore",
|
|
27423
|
+
on: {
|
|
27424
|
+
"click": function ($event) {
|
|
27425
|
+
_vm.seeMore = true;
|
|
27426
|
+
}
|
|
27427
|
+
}
|
|
27428
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.more) + " "), _c('img', {
|
|
27429
|
+
staticClass: "btm",
|
|
27430
|
+
attrs: {
|
|
27431
|
+
"src": _vm.arrowDownImg
|
|
27432
|
+
}
|
|
27433
|
+
}), _c('img', {
|
|
27434
|
+
staticClass: "hover",
|
|
27435
|
+
attrs: {
|
|
27436
|
+
"src": _vm.arrowHoverImg
|
|
27437
|
+
}
|
|
27438
|
+
}), _c('img', {
|
|
27439
|
+
staticClass: "active",
|
|
27440
|
+
attrs: {
|
|
27441
|
+
"src": _vm.arrowActiveImg
|
|
27442
|
+
}
|
|
27443
|
+
})]) : _vm._e()])])]);
|
|
27444
|
+
};
|
|
27445
|
+
var staticRenderFns = [];
|
|
27446
|
+
|
|
27447
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
27448
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
27449
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
27450
|
+
var es_iterator_filter = __webpack_require__(2489);
|
|
27451
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
27452
|
+
var es_iterator_for_each = __webpack_require__(7588);
|
|
27453
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
27454
|
+
var baseComp = __webpack_require__(1941);
|
|
27455
|
+
// EXTERNAL MODULE: ./src/api/index.js
|
|
27456
|
+
var api = __webpack_require__(929);
|
|
27457
|
+
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
|
27458
|
+
var lib = __webpack_require__(9122);
|
|
27459
|
+
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
27460
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
27461
|
+
|
|
27462
|
+
|
|
27463
|
+
|
|
27464
|
+
|
|
27465
|
+
|
|
27466
|
+
|
|
27467
|
+
|
|
27468
|
+
|
|
27469
|
+
|
|
27470
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
27471
|
+
name: "cms-stored-value-card",
|
|
27472
|
+
components: {
|
|
27473
|
+
BaseComp: baseComp["default"]
|
|
27474
|
+
},
|
|
27475
|
+
props: {
|
|
27476
|
+
data: {
|
|
27477
|
+
type: Object,
|
|
27478
|
+
default: () => {
|
|
27479
|
+
return {};
|
|
27480
|
+
}
|
|
27481
|
+
},
|
|
27482
|
+
nowCompId: {
|
|
27483
|
+
type: [String, Number],
|
|
27484
|
+
default: ""
|
|
27485
|
+
},
|
|
27486
|
+
isOpcacity: {
|
|
27487
|
+
type: Boolean,
|
|
27488
|
+
default: true
|
|
27489
|
+
},
|
|
27490
|
+
lang: {
|
|
27491
|
+
type: String,
|
|
27492
|
+
default: "zh-HK"
|
|
27493
|
+
}
|
|
27494
|
+
},
|
|
27495
|
+
data() {
|
|
27496
|
+
return {
|
|
27497
|
+
langConfig: {
|
|
27498
|
+
"zh-HK": {
|
|
27499
|
+
productName: "產品名稱",
|
|
27500
|
+
Price: "建議零售價",
|
|
27501
|
+
onlinePrice: "網上優惠價",
|
|
27502
|
+
buyNow: "立即選購",
|
|
27503
|
+
comingSoon: "即將推出",
|
|
27504
|
+
expired: "優惠已過期",
|
|
27505
|
+
more: "查看更多",
|
|
27506
|
+
launch: "NNN 上線",
|
|
27507
|
+
Offer: "優惠即將推出"
|
|
27508
|
+
},
|
|
27509
|
+
"zh-CN": {
|
|
27510
|
+
productName: "产品名称",
|
|
27511
|
+
Price: "建议零售价",
|
|
27512
|
+
onlinePrice: "网上优惠价",
|
|
27513
|
+
buyNow: "立即选购",
|
|
27514
|
+
comingSoon: "即将推出",
|
|
27515
|
+
expired: "优惠已过期",
|
|
27516
|
+
more: "查看更多",
|
|
27517
|
+
launch: "NNN 上线",
|
|
27518
|
+
Offer: "优惠即将推出"
|
|
27519
|
+
},
|
|
27520
|
+
"en-US": {
|
|
27521
|
+
productName: "Product Name",
|
|
27522
|
+
Price: "RRP",
|
|
27523
|
+
onlinePrice: "Online Price",
|
|
27524
|
+
buyNow: "Buy Now",
|
|
27525
|
+
comingSoon: "Coming Soon",
|
|
27526
|
+
expired: "Expired",
|
|
27527
|
+
more: "See more",
|
|
27528
|
+
launch: "Launch at NNN",
|
|
27529
|
+
Offer: "Offer Coming"
|
|
27530
|
+
}
|
|
27531
|
+
},
|
|
27532
|
+
configList: [],
|
|
27533
|
+
seeMore: false,
|
|
27534
|
+
nowTs: Date.now(),
|
|
27535
|
+
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
27536
|
+
// images
|
|
27537
|
+
placeholderImg: __webpack_require__(5335),
|
|
27538
|
+
arrowRightImg: __webpack_require__(4860),
|
|
27539
|
+
arrowDownImg: __webpack_require__(1861),
|
|
27540
|
+
arrowHoverImg: __webpack_require__(4116),
|
|
27541
|
+
arrowActiveImg: __webpack_require__(9670),
|
|
27542
|
+
shopList: []
|
|
27543
|
+
};
|
|
27544
|
+
},
|
|
27545
|
+
computed: {
|
|
27546
|
+
langText() {
|
|
27547
|
+
return this.config && this.langConfig && this.langConfig[this.lang] || this.langConfig["zh-HK"];
|
|
27548
|
+
},
|
|
27549
|
+
viewList() {
|
|
27550
|
+
if (this.seeMore) return this.shopList;
|
|
27551
|
+
return this.shopList.slice(0, 9);
|
|
27552
|
+
}
|
|
27553
|
+
},
|
|
27554
|
+
mounted() {
|
|
27555
|
+
if (!this.$EventBus) {
|
|
27556
|
+
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
27557
|
+
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
27558
|
+
} else {
|
|
27559
|
+
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
27560
|
+
}
|
|
27561
|
+
}
|
|
27562
|
+
},
|
|
27563
|
+
beforeDestroy() {},
|
|
27564
|
+
methods: {
|
|
27565
|
+
getConfigData(configData) {
|
|
27566
|
+
this.configList = configData.configList;
|
|
27567
|
+
console.log("getConfigData", this.configList);
|
|
27568
|
+
this.getValue();
|
|
27569
|
+
},
|
|
27570
|
+
async getValue() {
|
|
27571
|
+
await this.getCommodityDetails();
|
|
27572
|
+
},
|
|
27573
|
+
// 拉取已选商品详情
|
|
27574
|
+
async getCommodityDetails() {
|
|
27575
|
+
// try {
|
|
27576
|
+
let req = {
|
|
27577
|
+
busInfo: JSON.stringify({
|
|
27578
|
+
commodityIds: [...this.configList],
|
|
27579
|
+
commodityTypes: ["604", "605"]
|
|
27580
|
+
})
|
|
27581
|
+
};
|
|
27582
|
+
req = lib_default().stringify(req);
|
|
27583
|
+
const json = await (0,api/* getCommodityDetails */.yX)(req, this.lang);
|
|
27584
|
+
let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
|
|
27585
|
+
if (Array.isArray(dataResult)) {
|
|
27586
|
+
dataResult.forEach(item => {
|
|
27587
|
+
if (Array.isArray(item.malltCommodityTags)) {
|
|
27588
|
+
const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
|
|
27589
|
+
const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
|
|
27590
|
+
item.malltCommodityLeft = left.slice(0, 2);
|
|
27591
|
+
item.malltCommodityRight = right.slice(0, 4);
|
|
27592
|
+
} else {
|
|
27593
|
+
item.malltCommodityLeft = [];
|
|
27594
|
+
item.malltCommodityRight = [];
|
|
27595
|
+
}
|
|
27596
|
+
});
|
|
27597
|
+
// 按选择顺序排序
|
|
27598
|
+
this.shopList = dataResult.sort((a, b) => {
|
|
27599
|
+
return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
|
|
27600
|
+
});
|
|
27601
|
+
} else {
|
|
27602
|
+
this.shopList = [];
|
|
27603
|
+
}
|
|
27604
|
+
// } catch (e) {
|
|
27605
|
+
// this.shopList = [];
|
|
27606
|
+
// }
|
|
27607
|
+
},
|
|
27608
|
+
isActive(item) {
|
|
27609
|
+
const now = Date.now();
|
|
27610
|
+
return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
|
|
27611
|
+
},
|
|
27612
|
+
isNotActive(item) {
|
|
27613
|
+
const now = Date.now();
|
|
27614
|
+
return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
|
|
27615
|
+
},
|
|
27616
|
+
convertCentsToYuan(cents) {
|
|
27617
|
+
const yuan = (Number(cents || 0) / 100).toFixed(2);
|
|
27618
|
+
return parseFloat(yuan);
|
|
27619
|
+
},
|
|
27620
|
+
goDetail(item) {
|
|
27621
|
+
const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
|
|
27622
|
+
const langMap = {
|
|
27623
|
+
"zh-CN": "sc",
|
|
27624
|
+
"zh-HK": "tc",
|
|
27625
|
+
"en-US": "en"
|
|
27626
|
+
};
|
|
27627
|
+
const routeLang = langMap[this.lang];
|
|
27628
|
+
if (item.commodityType === "604") {
|
|
27629
|
+
if ((item.commodityName || "").includes("MySIM")) {
|
|
27630
|
+
window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
|
|
27631
|
+
} else {
|
|
27632
|
+
window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
|
|
27633
|
+
}
|
|
27634
|
+
} else if (item.commodityType === "605") {
|
|
27635
|
+
window.parent.location.href = `${base}/${routeLang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
|
|
27636
|
+
}
|
|
27637
|
+
}
|
|
27638
|
+
}
|
|
27639
|
+
});
|
|
27640
|
+
;// ./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
27641
|
+
/* harmony default export */ var cms_stored_value_card_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
27642
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=ae178d02&prod&lang=scss&scoped=true
|
|
27643
|
+
// extracted by mini-css-extract-plugin
|
|
27644
|
+
|
|
27645
|
+
;// ./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=ae178d02&prod&lang=scss&scoped=true
|
|
27646
|
+
|
|
27647
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
27648
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
27649
|
+
;// ./package/cms-stored-value-card/View.vue
|
|
27650
|
+
|
|
27651
|
+
|
|
27652
|
+
|
|
27653
|
+
;
|
|
27654
|
+
|
|
27655
|
+
|
|
27656
|
+
/* normalize component */
|
|
27657
|
+
|
|
27658
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
27659
|
+
cms_stored_value_card_Viewvue_type_script_lang_js,
|
|
27660
|
+
render,
|
|
27661
|
+
staticRenderFns,
|
|
27662
|
+
false,
|
|
27663
|
+
null,
|
|
27664
|
+
"ae178d02",
|
|
27665
|
+
null
|
|
27666
|
+
|
|
27667
|
+
)
|
|
27668
|
+
|
|
27669
|
+
/* harmony default export */ var View = (component.exports);
|
|
27670
|
+
|
|
26899
27671
|
/***/ }),
|
|
26900
27672
|
|
|
26901
27673
|
/***/ 3838:
|
|
@@ -27469,7 +28241,7 @@ var es_iterator_constructor = __webpack_require__(8111);
|
|
|
27469
28241
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
27470
28242
|
var es_iterator_reduce = __webpack_require__(8237);
|
|
27471
28243
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
27472
|
-
var baseComp = __webpack_require__(
|
|
28244
|
+
var baseComp = __webpack_require__(1941);
|
|
27473
28245
|
// EXTERNAL MODULE: ./package/patch.js
|
|
27474
28246
|
var patch = __webpack_require__(1618);
|
|
27475
28247
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
|
|
@@ -36524,7 +37296,7 @@ var render = function render() {
|
|
|
36524
37296
|
var staticRenderFns = [];
|
|
36525
37297
|
|
|
36526
37298
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
36527
|
-
var baseComp = __webpack_require__(
|
|
37299
|
+
var baseComp = __webpack_require__(1941);
|
|
36528
37300
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineFive/View.vue?vue&type=script&lang=js
|
|
36529
37301
|
|
|
36530
37302
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -36785,6 +37557,229 @@ module.exports =
|
|
|
36785
37557
|
(function () { return this; })() || Function('return this')();
|
|
36786
37558
|
|
|
36787
37559
|
|
|
37560
|
+
/***/ }),
|
|
37561
|
+
|
|
37562
|
+
/***/ 4602:
|
|
37563
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
37564
|
+
|
|
37565
|
+
"use strict";
|
|
37566
|
+
// ESM COMPAT FLAG
|
|
37567
|
+
__webpack_require__.r(__webpack_exports__);
|
|
37568
|
+
|
|
37569
|
+
// EXPORTS
|
|
37570
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
37571
|
+
"default": function() { return /* binding */ View; }
|
|
37572
|
+
});
|
|
37573
|
+
|
|
37574
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=template&id=241e1e5b&scoped=true
|
|
37575
|
+
var render = function render() {
|
|
37576
|
+
var _vm = this,
|
|
37577
|
+
_c = _vm._self._c,
|
|
37578
|
+
_setup = _vm._self._setupProxy;
|
|
37579
|
+
return _c(_setup.BaseComp, _vm._b({
|
|
37580
|
+
attrs: {
|
|
37581
|
+
"data": _vm.data,
|
|
37582
|
+
"nowCompId": _vm.nowCompId,
|
|
37583
|
+
"isOpcacity": _vm.isOpcacity,
|
|
37584
|
+
"lang": _vm.lang
|
|
37585
|
+
},
|
|
37586
|
+
on: {
|
|
37587
|
+
"getConfigData": _vm.getConfigData
|
|
37588
|
+
}
|
|
37589
|
+
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
37590
|
+
staticClass: "cmhk-home_main"
|
|
37591
|
+
}, [_c('div', {
|
|
37592
|
+
staticClass: "corp-static_wrapper"
|
|
37593
|
+
}, [_c('div', {
|
|
37594
|
+
staticClass: "corp-static_scene_container"
|
|
37595
|
+
}, [_c('ul', {
|
|
37596
|
+
staticClass: "clearfix"
|
|
37597
|
+
}, _vm._l(_vm.configList, function (item, index) {
|
|
37598
|
+
return _c('li', {
|
|
37599
|
+
key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
|
|
37600
|
+
on: {
|
|
37601
|
+
"click": function ($event) {
|
|
37602
|
+
return _setup.decodeJumpUrl(item === null || item === void 0 ? void 0 : item.jumpUrl, _vm.$router);
|
|
37603
|
+
}
|
|
37604
|
+
}
|
|
37605
|
+
}, [_c('div', {
|
|
37606
|
+
staticClass: "card-shadow"
|
|
37607
|
+
}, [_c('div', {
|
|
37608
|
+
staticClass: "image-desbox_wapper"
|
|
37609
|
+
}, [_c('img', {
|
|
37610
|
+
staticClass: "scene-image",
|
|
37611
|
+
attrs: {
|
|
37612
|
+
"src": _setup.isMobileHook ? item === null || item === void 0 ? void 0 : item.uploadImageH5 : item === null || item === void 0 ? void 0 : item.uploadImagePC,
|
|
37613
|
+
"alt": item === null || item === void 0 ? void 0 : item.imagePcATL
|
|
37614
|
+
}
|
|
37615
|
+
})]), _c('div', {
|
|
37616
|
+
staticClass: "corp-static_scene_content"
|
|
37617
|
+
}, [_c('p', {
|
|
37618
|
+
staticClass: "title"
|
|
37619
|
+
}, [_vm._v(_vm._s(item.input1))]), _c('p', {
|
|
37620
|
+
staticClass: "des",
|
|
37621
|
+
class: _vm.panelFold ? 'des-more' : ''
|
|
37622
|
+
}, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.input2) + " ")]), _vm.$i18n.locale == 'zh-CN' && (item === null || item === void 0 ? void 0 : item.input2.length) > 66 ? _c('div', {
|
|
37623
|
+
staticClass: "crad-more",
|
|
37624
|
+
on: {
|
|
37625
|
+
"click": function ($event) {
|
|
37626
|
+
$event.stopPropagation();
|
|
37627
|
+
_vm.panelFold = !_vm.panelFold;
|
|
37628
|
+
}
|
|
37629
|
+
}
|
|
37630
|
+
}, [_c('span', {
|
|
37631
|
+
directives: [{
|
|
37632
|
+
name: "show",
|
|
37633
|
+
rawName: "v-show",
|
|
37634
|
+
value: _vm.$i18n.locale == 'zh-CN',
|
|
37635
|
+
expression: "$i18n.locale == 'zh-CN'"
|
|
37636
|
+
}]
|
|
37637
|
+
}, [_vm._v(_vm._s(_vm.panelFold ? "收起" : "展开")), _c('i', {
|
|
37638
|
+
class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
37639
|
+
})])]) : _vm._e(), _vm.$i18n.locale == 'zh-HK' && (item === null || item === void 0 ? void 0 : item.input2.length) > 66 ? _c('div', {
|
|
37640
|
+
staticClass: "crad-more",
|
|
37641
|
+
on: {
|
|
37642
|
+
"click": function ($event) {
|
|
37643
|
+
$event.stopPropagation();
|
|
37644
|
+
_vm.panelFold = !_vm.panelFold;
|
|
37645
|
+
}
|
|
37646
|
+
}
|
|
37647
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.panelFold ? "收起" : "展開")), _c('i', {
|
|
37648
|
+
class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
37649
|
+
})])]) : _vm._e(), _vm.$i18n.locale == 'en-US' && (item === null || item === void 0 ? void 0 : item.input2.length) > 132 ? _c('div', {
|
|
37650
|
+
staticClass: "crad-more",
|
|
37651
|
+
on: {
|
|
37652
|
+
"click": function ($event) {
|
|
37653
|
+
$event.stopPropagation();
|
|
37654
|
+
_vm.panelFold = !_vm.panelFold;
|
|
37655
|
+
}
|
|
37656
|
+
}
|
|
37657
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.panelFold ? "Collpase" : "Expand")), _c('i', {
|
|
37658
|
+
class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
37659
|
+
})])]) : _vm._e()])])]);
|
|
37660
|
+
}), 0)])])])]);
|
|
37661
|
+
};
|
|
37662
|
+
var staticRenderFns = [];
|
|
37663
|
+
|
|
37664
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
37665
|
+
var baseComp = __webpack_require__(1941);
|
|
37666
|
+
// EXTERNAL MODULE: ./src/utils/jumpUrl.js
|
|
37667
|
+
var jumpUrl = __webpack_require__(813);
|
|
37668
|
+
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
|
|
37669
|
+
var vue_runtime_esm = __webpack_require__(6848);
|
|
37670
|
+
;// ./src/utils/useMobileEffect.js
|
|
37671
|
+
|
|
37672
|
+
const isMobileHook = (0,vue_runtime_esm.ref)(false);
|
|
37673
|
+
const resize = () => {
|
|
37674
|
+
let bodyW = 0;
|
|
37675
|
+
if (document.body) {
|
|
37676
|
+
bodyW = document.body.scrollWidth || document.body.clientWidth;
|
|
37677
|
+
}
|
|
37678
|
+
if (bodyW < 800) {
|
|
37679
|
+
isMobileHook.value = true;
|
|
37680
|
+
} else {
|
|
37681
|
+
isMobileHook.value = false;
|
|
37682
|
+
}
|
|
37683
|
+
};
|
|
37684
|
+
/* harmony default export */ function useMobileEffect() {
|
|
37685
|
+
(0,vue_runtime_esm.onMounted)(() => {
|
|
37686
|
+
resize();
|
|
37687
|
+
window.addEventListener('resize', resize);
|
|
37688
|
+
});
|
|
37689
|
+
(0,vue_runtime_esm.onUnmounted)(() => {
|
|
37690
|
+
window.removeEventListener('resize', resize);
|
|
37691
|
+
});
|
|
37692
|
+
return {
|
|
37693
|
+
isMobileHook
|
|
37694
|
+
};
|
|
37695
|
+
}
|
|
37696
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=script&setup=true&lang=js
|
|
37697
|
+
|
|
37698
|
+
const __default__ = {
|
|
37699
|
+
name: "cms-lineThree",
|
|
37700
|
+
components: {
|
|
37701
|
+
BaseComp: baseComp["default"]
|
|
37702
|
+
},
|
|
37703
|
+
props: {
|
|
37704
|
+
data: {
|
|
37705
|
+
type: Object,
|
|
37706
|
+
default: () => {
|
|
37707
|
+
return {};
|
|
37708
|
+
}
|
|
37709
|
+
},
|
|
37710
|
+
nowCompId: {
|
|
37711
|
+
type: [String, Number],
|
|
37712
|
+
default: ""
|
|
37713
|
+
},
|
|
37714
|
+
isOpcacity: {
|
|
37715
|
+
type: Boolean,
|
|
37716
|
+
default: true
|
|
37717
|
+
},
|
|
37718
|
+
lang: {
|
|
37719
|
+
type: String,
|
|
37720
|
+
default: "zh-HK"
|
|
37721
|
+
}
|
|
37722
|
+
},
|
|
37723
|
+
data() {
|
|
37724
|
+
return {
|
|
37725
|
+
configList: [],
|
|
37726
|
+
panelFold: false
|
|
37727
|
+
};
|
|
37728
|
+
},
|
|
37729
|
+
mounted() {},
|
|
37730
|
+
watch: {},
|
|
37731
|
+
methods: {
|
|
37732
|
+
getConfigData(configData) {
|
|
37733
|
+
this.configList = configData.configList;
|
|
37734
|
+
}
|
|
37735
|
+
}
|
|
37736
|
+
};
|
|
37737
|
+
|
|
37738
|
+
|
|
37739
|
+
/* harmony default export */ var Viewvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
37740
|
+
setup(__props) {
|
|
37741
|
+
const {
|
|
37742
|
+
isMobileHook
|
|
37743
|
+
} = useMobileEffect();
|
|
37744
|
+
return {
|
|
37745
|
+
__sfc: true,
|
|
37746
|
+
isMobileHook,
|
|
37747
|
+
BaseComp: baseComp["default"],
|
|
37748
|
+
decodeJumpUrl: jumpUrl/* decodeJumpUrl */.u
|
|
37749
|
+
};
|
|
37750
|
+
}
|
|
37751
|
+
}));
|
|
37752
|
+
;// ./package/cms-lineThree/View.vue?vue&type=script&setup=true&lang=js
|
|
37753
|
+
/* harmony default export */ var cms_lineThree_Viewvue_type_script_setup_true_lang_js = (Viewvue_type_script_setup_true_lang_js);
|
|
37754
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=style&index=0&id=241e1e5b&prod&lang=scss&scoped=true
|
|
37755
|
+
// extracted by mini-css-extract-plugin
|
|
37756
|
+
|
|
37757
|
+
;// ./package/cms-lineThree/View.vue?vue&type=style&index=0&id=241e1e5b&prod&lang=scss&scoped=true
|
|
37758
|
+
|
|
37759
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
37760
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
37761
|
+
;// ./package/cms-lineThree/View.vue
|
|
37762
|
+
|
|
37763
|
+
|
|
37764
|
+
|
|
37765
|
+
;
|
|
37766
|
+
|
|
37767
|
+
|
|
37768
|
+
/* normalize component */
|
|
37769
|
+
|
|
37770
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
37771
|
+
cms_lineThree_Viewvue_type_script_setup_true_lang_js,
|
|
37772
|
+
render,
|
|
37773
|
+
staticRenderFns,
|
|
37774
|
+
false,
|
|
37775
|
+
null,
|
|
37776
|
+
"241e1e5b",
|
|
37777
|
+
null
|
|
37778
|
+
|
|
37779
|
+
)
|
|
37780
|
+
|
|
37781
|
+
/* harmony default export */ var View = (component.exports);
|
|
37782
|
+
|
|
36788
37783
|
/***/ }),
|
|
36789
37784
|
|
|
36790
37785
|
/***/ 4603:
|
|
@@ -38730,7 +39725,7 @@ var map = {
|
|
|
38730
39725
|
"./cms-imgFour/View.vue": 8238,
|
|
38731
39726
|
"./cms-lineFive/View.vue": 4432,
|
|
38732
39727
|
"./cms-lineFour/View.vue": 9703,
|
|
38733
|
-
"./cms-lineThree/View.vue":
|
|
39728
|
+
"./cms-lineThree/View.vue": 4602,
|
|
38734
39729
|
"./cms-lineTwo/View.vue": 3249,
|
|
38735
39730
|
"./cms-proCard/View.vue": 7063,
|
|
38736
39731
|
"./cms-prodCustomization/View.vue": 6786,
|
|
@@ -38739,11 +39734,11 @@ var map = {
|
|
|
38739
39734
|
"./cms-richText/View.vue": 3411,
|
|
38740
39735
|
"./cms-servePlan-tab/View.vue": 4193,
|
|
38741
39736
|
"./cms-servePlan-text/View.vue": 9487,
|
|
38742
|
-
"./cms-stored-value-card/View.vue":
|
|
39737
|
+
"./cms-stored-value-card/View.vue": 3837,
|
|
38743
39738
|
"./cms-termsAndConditions/View.vue": 8073,
|
|
38744
39739
|
"./cms-text/View.vue": 1452,
|
|
38745
39740
|
"./cms-threeScroll/View.vue": 8045,
|
|
38746
|
-
"./cms-titleCenter/View.vue":
|
|
39741
|
+
"./cms-titleCenter/View.vue": 1429,
|
|
38747
39742
|
"./cms-titleLeft/View.vue": 9004,
|
|
38748
39743
|
"./cms-via-storedValueCard/View.vue": 7243,
|
|
38749
39744
|
"./cms-video-group/View.vue": 8216,
|
|
@@ -38784,272 +39779,6 @@ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
|
38784
39779
|
|
|
38785
39780
|
/***/ }),
|
|
38786
39781
|
|
|
38787
|
-
/***/ 5298:
|
|
38788
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38789
|
-
|
|
38790
|
-
"use strict";
|
|
38791
|
-
// ESM COMPAT FLAG
|
|
38792
|
-
__webpack_require__.r(__webpack_exports__);
|
|
38793
|
-
|
|
38794
|
-
// EXPORTS
|
|
38795
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
38796
|
-
"default": function() { return /* binding */ baseComp; }
|
|
38797
|
-
});
|
|
38798
|
-
|
|
38799
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/baseComp.vue?vue&type=template&id=e19eaa9e&scoped=true
|
|
38800
|
-
var render = function render() {
|
|
38801
|
-
var _vm = this,
|
|
38802
|
-
_c = _vm._self._c;
|
|
38803
|
-
return _vm.$EventBus && _vm.isOpcacity ? _c('div', {
|
|
38804
|
-
key: _vm.data.componentId,
|
|
38805
|
-
class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.componentId ? 'highLight' : ''],
|
|
38806
|
-
style: _vm.showStyleConfig,
|
|
38807
|
-
attrs: {
|
|
38808
|
-
"component-key": _vm.data.cmsCompName
|
|
38809
|
-
},
|
|
38810
|
-
on: {
|
|
38811
|
-
"click": function ($event) {
|
|
38812
|
-
$event.stopPropagation();
|
|
38813
|
-
return _vm.handleNowComp.apply(null, arguments);
|
|
38814
|
-
}
|
|
38815
|
-
}
|
|
38816
|
-
}, [_c('div', {
|
|
38817
|
-
staticClass: "mask-wrap"
|
|
38818
|
-
}, [_vm._t("default", null, {
|
|
38819
|
-
"isMobile": _vm.isMobile
|
|
38820
|
-
}), _vm.isMask ? _c('div', {
|
|
38821
|
-
staticClass: "mask",
|
|
38822
|
-
on: {
|
|
38823
|
-
"click": _vm.handleNowComp
|
|
38824
|
-
}
|
|
38825
|
-
}) : _vm._e()], 2), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.componentId ? _c('div', {
|
|
38826
|
-
staticClass: "com-delete"
|
|
38827
|
-
}, [_vm.showDel ? _c('i', {
|
|
38828
|
-
staticClass: "el-icon-delete",
|
|
38829
|
-
on: {
|
|
38830
|
-
"click": function ($event) {
|
|
38831
|
-
$event.stopPropagation();
|
|
38832
|
-
return _vm.delComp.apply(null, arguments);
|
|
38833
|
-
}
|
|
38834
|
-
}
|
|
38835
|
-
}) : _vm._e(), _c('i', {
|
|
38836
|
-
staticClass: "el-icon-top",
|
|
38837
|
-
on: {
|
|
38838
|
-
"click": function ($event) {
|
|
38839
|
-
$event.stopPropagation();
|
|
38840
|
-
return _vm.selectParentDom.apply(null, arguments);
|
|
38841
|
-
}
|
|
38842
|
-
}
|
|
38843
|
-
})]) : _vm._e()]) : _vm.showSlot ? _c('div', {
|
|
38844
|
-
key: _vm.data.componentId,
|
|
38845
|
-
ref: "targetElement",
|
|
38846
|
-
style: _vm.showStyleConfig
|
|
38847
|
-
}, [_vm._t("default")], 2) : _vm._e();
|
|
38848
|
-
};
|
|
38849
|
-
var staticRenderFns = [];
|
|
38850
|
-
|
|
38851
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
38852
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
38853
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
38854
|
-
var es_iterator_reduce = __webpack_require__(8237);
|
|
38855
|
-
// EXTERNAL MODULE: ./package/patch.js
|
|
38856
|
-
var patch = __webpack_require__(1618);
|
|
38857
|
-
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
38858
|
-
var dayjs_min = __webpack_require__(1576);
|
|
38859
|
-
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
38860
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/baseComp.vue?vue&type=script&lang=js
|
|
38861
|
-
|
|
38862
|
-
|
|
38863
|
-
|
|
38864
|
-
|
|
38865
|
-
// 待办:判断移动pc端填充不同的样式
|
|
38866
|
-
|
|
38867
|
-
|
|
38868
|
-
/* harmony default export */ var baseCompvue_type_script_lang_js = ({
|
|
38869
|
-
name: "baseComp",
|
|
38870
|
-
props: {
|
|
38871
|
-
data: {
|
|
38872
|
-
type: Object,
|
|
38873
|
-
default: () => {
|
|
38874
|
-
return {};
|
|
38875
|
-
}
|
|
38876
|
-
},
|
|
38877
|
-
nowCompId: {
|
|
38878
|
-
type: [String, Number],
|
|
38879
|
-
default: ""
|
|
38880
|
-
},
|
|
38881
|
-
isOpcacity: {
|
|
38882
|
-
type: Boolean,
|
|
38883
|
-
default: true
|
|
38884
|
-
},
|
|
38885
|
-
isMask: {
|
|
38886
|
-
type: Boolean,
|
|
38887
|
-
default: true
|
|
38888
|
-
},
|
|
38889
|
-
lang: {
|
|
38890
|
-
type: String,
|
|
38891
|
-
default: "zh-HK"
|
|
38892
|
-
},
|
|
38893
|
-
timeline: {
|
|
38894
|
-
type: String,
|
|
38895
|
-
default: ""
|
|
38896
|
-
},
|
|
38897
|
-
cmhkChannel: {
|
|
38898
|
-
type: String,
|
|
38899
|
-
default: "WWW"
|
|
38900
|
-
},
|
|
38901
|
-
showDel: {
|
|
38902
|
-
type: Boolean,
|
|
38903
|
-
default: true
|
|
38904
|
-
}
|
|
38905
|
-
},
|
|
38906
|
-
data() {
|
|
38907
|
-
return {
|
|
38908
|
-
styleConfig_mb: {},
|
|
38909
|
-
styleConfig_pc: {},
|
|
38910
|
-
configData: {},
|
|
38911
|
-
elementWidth: 0,
|
|
38912
|
-
resizeObserver: null
|
|
38913
|
-
};
|
|
38914
|
-
},
|
|
38915
|
-
watch: {
|
|
38916
|
-
data: {
|
|
38917
|
-
handler(val) {
|
|
38918
|
-
this.getStyleConfig(val, "pc");
|
|
38919
|
-
this.getStyleConfig(val, "mb");
|
|
38920
|
-
this.getValue(this.lang);
|
|
38921
|
-
},
|
|
38922
|
-
deep: true,
|
|
38923
|
-
immediate: true
|
|
38924
|
-
},
|
|
38925
|
-
lang: {
|
|
38926
|
-
handler(val) {
|
|
38927
|
-
this.getValue(val);
|
|
38928
|
-
},
|
|
38929
|
-
deep: true,
|
|
38930
|
-
immediate: true
|
|
38931
|
-
}
|
|
38932
|
-
},
|
|
38933
|
-
mounted() {
|
|
38934
|
-
if (this.$EventBus && this.isOpcacity) {
|
|
38935
|
-
this.elementWidth = 800;
|
|
38936
|
-
this.$EventBus.$on("handleDeviceChange", isMobile => {
|
|
38937
|
-
this.elementWidth = isMobile ? 700 : 800;
|
|
38938
|
-
});
|
|
38939
|
-
} else if (this.showSlot) {
|
|
38940
|
-
this.resizeObserver = new ResizeObserver(entries => {
|
|
38941
|
-
for (let entry of entries) {
|
|
38942
|
-
this.elementWidth = entry.contentRect.width;
|
|
38943
|
-
// 可以在这里触发自定义逻辑
|
|
38944
|
-
// this.onWidthChange(this.elementWidth);
|
|
38945
|
-
}
|
|
38946
|
-
});
|
|
38947
|
-
const element = document.getElementById("app") || document.getElementById("__nuxt");
|
|
38948
|
-
this.resizeObserver.observe(element);
|
|
38949
|
-
}
|
|
38950
|
-
},
|
|
38951
|
-
beforeDestroy() {
|
|
38952
|
-
// 组件销毁时停止观察
|
|
38953
|
-
if (this.resizeObserver) {
|
|
38954
|
-
this.resizeObserver.disconnect();
|
|
38955
|
-
}
|
|
38956
|
-
},
|
|
38957
|
-
methods: {
|
|
38958
|
-
selectParentDom() {
|
|
38959
|
-
if (!this.isOpcacity) return;
|
|
38960
|
-
this.$EventBus.$emit("handleParentComp", this.data);
|
|
38961
|
-
},
|
|
38962
|
-
onWidthChange(newWidth) {
|
|
38963
|
-
console.log("新宽度:", newWidth, this.isMobile);
|
|
38964
|
-
},
|
|
38965
|
-
getValue(cur_lang) {
|
|
38966
|
-
var _this$data, _this$data$settings;
|
|
38967
|
-
const obj = {
|
|
38968
|
-
"zh-CN": "lang_sc",
|
|
38969
|
-
"zh-HK": "lang_tc",
|
|
38970
|
-
"en-US": "lang_en"
|
|
38971
|
-
};
|
|
38972
|
-
if ((_this$data = this.data) !== null && _this$data !== void 0 && (_this$data$settings = _this$data.settings) !== null && _this$data$settings !== void 0 && _this$data$settings.settings) {
|
|
38973
|
-
const baseInfo = (0,patch.transfor)(this.data);
|
|
38974
|
-
this.configData = baseInfo.contentConfig.lang_all ? baseInfo.contentConfig.lang_all : baseInfo.contentConfig[`${obj[cur_lang]}`];
|
|
38975
|
-
} else {
|
|
38976
|
-
this.configData = this.data.contentConfig.lang_all ? this.data.contentConfig.lang_all : this.data.contentConfig[`${obj[cur_lang]}`];
|
|
38977
|
-
}
|
|
38978
|
-
this.$emit("getConfigData", this.configData);
|
|
38979
|
-
},
|
|
38980
|
-
getStyleConfig(data, type) {
|
|
38981
|
-
this[`styleConfig_${type}`] = data.styleConfig[type].reduce((pre, cur) => {
|
|
38982
|
-
pre[cur.key] = cur.value + cur.unit;
|
|
38983
|
-
return pre;
|
|
38984
|
-
}, {});
|
|
38985
|
-
},
|
|
38986
|
-
handleNowComp() {
|
|
38987
|
-
if (!this.isOpcacity) return;
|
|
38988
|
-
this.$EventBus.$emit("handleNowComp", this.data);
|
|
38989
|
-
},
|
|
38990
|
-
delComp() {
|
|
38991
|
-
this.$EventBus.$emit("handleDeleteComp", this.data.componentId);
|
|
38992
|
-
}
|
|
38993
|
-
},
|
|
38994
|
-
computed: {
|
|
38995
|
-
showStyleConfig() {
|
|
38996
|
-
if (!this.elementWidth) return {};
|
|
38997
|
-
return this.isMobile ? this.styleConfig_mb : this.styleConfig_pc;
|
|
38998
|
-
},
|
|
38999
|
-
isMobile() {
|
|
39000
|
-
return this.elementWidth < 760;
|
|
39001
|
-
},
|
|
39002
|
-
showSlot() {
|
|
39003
|
-
if (this.$EventBus && this.isOpcacity) return false;
|
|
39004
|
-
const {
|
|
39005
|
-
cmhkChannelConfList = [],
|
|
39006
|
-
startTime = "",
|
|
39007
|
-
endTime = ""
|
|
39008
|
-
} = this.data.baseConfig;
|
|
39009
|
-
console.log("this.cmhkChannel", this.cmhkChannel, this.data.baseConfig);
|
|
39010
|
-
const channelVisable = cmhkChannelConfList.includes("ALL") || cmhkChannelConfList.includes(this.cmhkChannel);
|
|
39011
|
-
if (!channelVisable) return false;
|
|
39012
|
-
if (!startTime && !endTime) return true;
|
|
39013
|
-
const currentTime = this.timeline ? dayjs_min_default()(this.timeline) : dayjs_min_default()();
|
|
39014
|
-
const isStart = startTime ? dayjs_min_default()(currentTime).isAfter(dayjs_min_default()(startTime)) || dayjs_min_default()(currentTime).isSame(dayjs_min_default()(startTime)) : true;
|
|
39015
|
-
const isEnd = endTime ? dayjs_min_default()(currentTime).isBefore(dayjs_min_default()(endTime)) || dayjs_min_default()(currentTime).isSame(dayjs_min_default()(endTime)) : true;
|
|
39016
|
-
return isStart && isEnd;
|
|
39017
|
-
}
|
|
39018
|
-
}
|
|
39019
|
-
});
|
|
39020
|
-
;// ./package/baseComp.vue?vue&type=script&lang=js
|
|
39021
|
-
/* harmony default export */ var package_baseCompvue_type_script_lang_js = (baseCompvue_type_script_lang_js);
|
|
39022
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/baseComp.vue?vue&type=style&index=0&id=e19eaa9e&prod&lang=scss&scoped=true
|
|
39023
|
-
// extracted by mini-css-extract-plugin
|
|
39024
|
-
|
|
39025
|
-
;// ./package/baseComp.vue?vue&type=style&index=0&id=e19eaa9e&prod&lang=scss&scoped=true
|
|
39026
|
-
|
|
39027
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
39028
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
39029
|
-
;// ./package/baseComp.vue
|
|
39030
|
-
|
|
39031
|
-
|
|
39032
|
-
|
|
39033
|
-
;
|
|
39034
|
-
|
|
39035
|
-
|
|
39036
|
-
/* normalize component */
|
|
39037
|
-
|
|
39038
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
39039
|
-
package_baseCompvue_type_script_lang_js,
|
|
39040
|
-
render,
|
|
39041
|
-
staticRenderFns,
|
|
39042
|
-
false,
|
|
39043
|
-
null,
|
|
39044
|
-
"e19eaa9e",
|
|
39045
|
-
null
|
|
39046
|
-
|
|
39047
|
-
)
|
|
39048
|
-
|
|
39049
|
-
/* harmony default export */ var baseComp = (component.exports);
|
|
39050
|
-
|
|
39051
|
-
/***/ }),
|
|
39052
|
-
|
|
39053
39782
|
/***/ 5302:
|
|
39054
39783
|
/***/ (function(module) {
|
|
39055
39784
|
|
|
@@ -39138,7 +39867,7 @@ var es_iterator_constructor = __webpack_require__(8111);
|
|
|
39138
39867
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
39139
39868
|
var es_iterator_for_each = __webpack_require__(7588);
|
|
39140
39869
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
39141
|
-
var baseComp = __webpack_require__(
|
|
39870
|
+
var baseComp = __webpack_require__(1941);
|
|
39142
39871
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-image/View.vue?vue&type=script&lang=js
|
|
39143
39872
|
|
|
39144
39873
|
|
|
@@ -39724,7 +40453,7 @@ var swiper = __webpack_require__(2791);
|
|
|
39724
40453
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
39725
40454
|
var swiper_esm_bundle = __webpack_require__(4418);
|
|
39726
40455
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
39727
|
-
var baseComp = __webpack_require__(
|
|
40456
|
+
var baseComp = __webpack_require__(1941);
|
|
39728
40457
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-aLineThreeLeftTwo/View.vue?vue&type=script&lang=js
|
|
39729
40458
|
|
|
39730
40459
|
|
|
@@ -40039,7 +40768,7 @@ var render = function render() {
|
|
|
40039
40768
|
var staticRenderFns = [];
|
|
40040
40769
|
|
|
40041
40770
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
40042
|
-
var baseComp = __webpack_require__(
|
|
40771
|
+
var baseComp = __webpack_require__(1941);
|
|
40043
40772
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-cells/View.vue?vue&type=script&lang=js
|
|
40044
40773
|
|
|
40045
40774
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -40763,229 +41492,6 @@ module.exports = function (options, source) {
|
|
|
40763
41492
|
};
|
|
40764
41493
|
|
|
40765
41494
|
|
|
40766
|
-
/***/ }),
|
|
40767
|
-
|
|
40768
|
-
/***/ 6547:
|
|
40769
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40770
|
-
|
|
40771
|
-
"use strict";
|
|
40772
|
-
// ESM COMPAT FLAG
|
|
40773
|
-
__webpack_require__.r(__webpack_exports__);
|
|
40774
|
-
|
|
40775
|
-
// EXPORTS
|
|
40776
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
40777
|
-
"default": function() { return /* binding */ View; }
|
|
40778
|
-
});
|
|
40779
|
-
|
|
40780
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=template&id=53c1f504&scoped=true
|
|
40781
|
-
var render = function render() {
|
|
40782
|
-
var _vm = this,
|
|
40783
|
-
_c = _vm._self._c,
|
|
40784
|
-
_setup = _vm._self._setupProxy;
|
|
40785
|
-
return _c(_setup.BaseComp, _vm._b({
|
|
40786
|
-
attrs: {
|
|
40787
|
-
"data": _vm.data,
|
|
40788
|
-
"nowCompId": _vm.nowCompId,
|
|
40789
|
-
"isOpcacity": _vm.isOpcacity,
|
|
40790
|
-
"lang": _vm.lang
|
|
40791
|
-
},
|
|
40792
|
-
on: {
|
|
40793
|
-
"getConfigData": _vm.getConfigData
|
|
40794
|
-
}
|
|
40795
|
-
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
40796
|
-
staticClass: "cmhk-home_main"
|
|
40797
|
-
}, [_c('div', {
|
|
40798
|
-
staticClass: "corp-static_wrapper"
|
|
40799
|
-
}, [_c('div', {
|
|
40800
|
-
staticClass: "corp-static_scene_container"
|
|
40801
|
-
}, [_c('ul', {
|
|
40802
|
-
staticClass: "clearfix"
|
|
40803
|
-
}, _vm._l(_vm.configList, function (item, index) {
|
|
40804
|
-
return _c('li', {
|
|
40805
|
-
key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
|
|
40806
|
-
on: {
|
|
40807
|
-
"click": function ($event) {
|
|
40808
|
-
return _setup.decodeJumpUrl(item === null || item === void 0 ? void 0 : item.jumpUrl, _vm.$router);
|
|
40809
|
-
}
|
|
40810
|
-
}
|
|
40811
|
-
}, [_c('div', {
|
|
40812
|
-
staticClass: "card-shadow"
|
|
40813
|
-
}, [_c('div', {
|
|
40814
|
-
staticClass: "image-desbox_wapper"
|
|
40815
|
-
}, [_c('img', {
|
|
40816
|
-
staticClass: "scene-image",
|
|
40817
|
-
attrs: {
|
|
40818
|
-
"src": _setup.isMobileHook ? item === null || item === void 0 ? void 0 : item.uploadImageH5 : item === null || item === void 0 ? void 0 : item.uploadImagePC,
|
|
40819
|
-
"alt": item === null || item === void 0 ? void 0 : item.imagePcATL
|
|
40820
|
-
}
|
|
40821
|
-
})]), _c('div', {
|
|
40822
|
-
staticClass: "corp-static_scene_content"
|
|
40823
|
-
}, [_c('p', {
|
|
40824
|
-
staticClass: "title"
|
|
40825
|
-
}, [_vm._v(_vm._s(item.input1))]), _c('p', {
|
|
40826
|
-
staticClass: "des",
|
|
40827
|
-
class: _vm.panelFold ? 'des-more' : ''
|
|
40828
|
-
}, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.input2) + " ")]), _vm.$i18n.locale == 'zh-CN' && (item === null || item === void 0 ? void 0 : item.input2.length) > 66 ? _c('div', {
|
|
40829
|
-
staticClass: "crad-more",
|
|
40830
|
-
on: {
|
|
40831
|
-
"click": function ($event) {
|
|
40832
|
-
$event.stopPropagation();
|
|
40833
|
-
_vm.panelFold = !_vm.panelFold;
|
|
40834
|
-
}
|
|
40835
|
-
}
|
|
40836
|
-
}, [_c('span', {
|
|
40837
|
-
directives: [{
|
|
40838
|
-
name: "show",
|
|
40839
|
-
rawName: "v-show",
|
|
40840
|
-
value: _vm.$i18n.locale == 'zh-CN',
|
|
40841
|
-
expression: "$i18n.locale == 'zh-CN'"
|
|
40842
|
-
}]
|
|
40843
|
-
}, [_vm._v(_vm._s(_vm.panelFold ? "收起" : "展开")), _c('i', {
|
|
40844
|
-
class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
40845
|
-
})])]) : _vm._e(), _vm.$i18n.locale == 'zh-HK' && (item === null || item === void 0 ? void 0 : item.input2.length) > 66 ? _c('div', {
|
|
40846
|
-
staticClass: "crad-more",
|
|
40847
|
-
on: {
|
|
40848
|
-
"click": function ($event) {
|
|
40849
|
-
$event.stopPropagation();
|
|
40850
|
-
_vm.panelFold = !_vm.panelFold;
|
|
40851
|
-
}
|
|
40852
|
-
}
|
|
40853
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.panelFold ? "收起" : "展開")), _c('i', {
|
|
40854
|
-
class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
40855
|
-
})])]) : _vm._e(), _vm.$i18n.locale == 'en-US' && (item === null || item === void 0 ? void 0 : item.input2.length) > 132 ? _c('div', {
|
|
40856
|
-
staticClass: "crad-more",
|
|
40857
|
-
on: {
|
|
40858
|
-
"click": function ($event) {
|
|
40859
|
-
$event.stopPropagation();
|
|
40860
|
-
_vm.panelFold = !_vm.panelFold;
|
|
40861
|
-
}
|
|
40862
|
-
}
|
|
40863
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.panelFold ? "Collpase" : "Expand")), _c('i', {
|
|
40864
|
-
class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
40865
|
-
})])]) : _vm._e()])])]);
|
|
40866
|
-
}), 0)])])])]);
|
|
40867
|
-
};
|
|
40868
|
-
var staticRenderFns = [];
|
|
40869
|
-
|
|
40870
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
40871
|
-
var baseComp = __webpack_require__(5298);
|
|
40872
|
-
// EXTERNAL MODULE: ./src/utils/jumpUrl.js
|
|
40873
|
-
var jumpUrl = __webpack_require__(813);
|
|
40874
|
-
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
|
|
40875
|
-
var vue_runtime_esm = __webpack_require__(6848);
|
|
40876
|
-
;// ./src/utils/useMobileEffect.js
|
|
40877
|
-
|
|
40878
|
-
const isMobileHook = (0,vue_runtime_esm.ref)(false);
|
|
40879
|
-
const resize = () => {
|
|
40880
|
-
let bodyW = 0;
|
|
40881
|
-
if (document.body) {
|
|
40882
|
-
bodyW = document.body.scrollWidth || document.body.clientWidth;
|
|
40883
|
-
}
|
|
40884
|
-
if (bodyW < 800) {
|
|
40885
|
-
isMobileHook.value = true;
|
|
40886
|
-
} else {
|
|
40887
|
-
isMobileHook.value = false;
|
|
40888
|
-
}
|
|
40889
|
-
};
|
|
40890
|
-
/* harmony default export */ function useMobileEffect() {
|
|
40891
|
-
(0,vue_runtime_esm.onMounted)(() => {
|
|
40892
|
-
resize();
|
|
40893
|
-
window.addEventListener('resize', resize);
|
|
40894
|
-
});
|
|
40895
|
-
(0,vue_runtime_esm.onUnmounted)(() => {
|
|
40896
|
-
window.removeEventListener('resize', resize);
|
|
40897
|
-
});
|
|
40898
|
-
return {
|
|
40899
|
-
isMobileHook
|
|
40900
|
-
};
|
|
40901
|
-
}
|
|
40902
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=script&setup=true&lang=js
|
|
40903
|
-
|
|
40904
|
-
const __default__ = {
|
|
40905
|
-
name: "cms-lineThree",
|
|
40906
|
-
components: {
|
|
40907
|
-
BaseComp: baseComp["default"]
|
|
40908
|
-
},
|
|
40909
|
-
props: {
|
|
40910
|
-
data: {
|
|
40911
|
-
type: Object,
|
|
40912
|
-
default: () => {
|
|
40913
|
-
return {};
|
|
40914
|
-
}
|
|
40915
|
-
},
|
|
40916
|
-
nowCompId: {
|
|
40917
|
-
type: [String, Number],
|
|
40918
|
-
default: ""
|
|
40919
|
-
},
|
|
40920
|
-
isOpcacity: {
|
|
40921
|
-
type: Boolean,
|
|
40922
|
-
default: true
|
|
40923
|
-
},
|
|
40924
|
-
lang: {
|
|
40925
|
-
type: String,
|
|
40926
|
-
default: "zh-HK"
|
|
40927
|
-
}
|
|
40928
|
-
},
|
|
40929
|
-
data() {
|
|
40930
|
-
return {
|
|
40931
|
-
configList: [],
|
|
40932
|
-
panelFold: false
|
|
40933
|
-
};
|
|
40934
|
-
},
|
|
40935
|
-
mounted() {},
|
|
40936
|
-
watch: {},
|
|
40937
|
-
methods: {
|
|
40938
|
-
getConfigData(configData) {
|
|
40939
|
-
this.configList = configData.configList;
|
|
40940
|
-
}
|
|
40941
|
-
}
|
|
40942
|
-
};
|
|
40943
|
-
|
|
40944
|
-
|
|
40945
|
-
/* harmony default export */ var Viewvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
40946
|
-
setup(__props) {
|
|
40947
|
-
const {
|
|
40948
|
-
isMobileHook
|
|
40949
|
-
} = useMobileEffect();
|
|
40950
|
-
return {
|
|
40951
|
-
__sfc: true,
|
|
40952
|
-
isMobileHook,
|
|
40953
|
-
BaseComp: baseComp["default"],
|
|
40954
|
-
decodeJumpUrl: jumpUrl/* decodeJumpUrl */.u
|
|
40955
|
-
};
|
|
40956
|
-
}
|
|
40957
|
-
}));
|
|
40958
|
-
;// ./package/cms-lineThree/View.vue?vue&type=script&setup=true&lang=js
|
|
40959
|
-
/* harmony default export */ var cms_lineThree_Viewvue_type_script_setup_true_lang_js = (Viewvue_type_script_setup_true_lang_js);
|
|
40960
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=style&index=0&id=53c1f504&prod&lang=scss&scoped=true
|
|
40961
|
-
// extracted by mini-css-extract-plugin
|
|
40962
|
-
|
|
40963
|
-
;// ./package/cms-lineThree/View.vue?vue&type=style&index=0&id=53c1f504&prod&lang=scss&scoped=true
|
|
40964
|
-
|
|
40965
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
40966
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
40967
|
-
;// ./package/cms-lineThree/View.vue
|
|
40968
|
-
|
|
40969
|
-
|
|
40970
|
-
|
|
40971
|
-
;
|
|
40972
|
-
|
|
40973
|
-
|
|
40974
|
-
/* normalize component */
|
|
40975
|
-
|
|
40976
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
40977
|
-
cms_lineThree_Viewvue_type_script_setup_true_lang_js,
|
|
40978
|
-
render,
|
|
40979
|
-
staticRenderFns,
|
|
40980
|
-
false,
|
|
40981
|
-
null,
|
|
40982
|
-
"53c1f504",
|
|
40983
|
-
null
|
|
40984
|
-
|
|
40985
|
-
)
|
|
40986
|
-
|
|
40987
|
-
/* harmony default export */ var View = (component.exports);
|
|
40988
|
-
|
|
40989
41495
|
/***/ }),
|
|
40990
41496
|
|
|
40991
41497
|
/***/ 6573:
|
|
@@ -41221,7 +41727,7 @@ var staticRenderFns = [];
|
|
|
41221
41727
|
;// ./package/cms-prodCustomization/View.vue?vue&type=template&id=61a0a18c&scoped=true
|
|
41222
41728
|
|
|
41223
41729
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
41224
|
-
var baseComp = __webpack_require__(
|
|
41730
|
+
var baseComp = __webpack_require__(1941);
|
|
41225
41731
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-prodCustomization/View.vue?vue&type=script&lang=js
|
|
41226
41732
|
|
|
41227
41733
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -49551,7 +50057,7 @@ var api = __webpack_require__(929);
|
|
|
49551
50057
|
var lib = __webpack_require__(9122);
|
|
49552
50058
|
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
49553
50059
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
49554
|
-
var baseComp = __webpack_require__(
|
|
50060
|
+
var baseComp = __webpack_require__(1941);
|
|
49555
50061
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-proCard/View.vue?vue&type=script&lang=js
|
|
49556
50062
|
|
|
49557
50063
|
|
|
@@ -49816,7 +50322,7 @@ var render = function render() {
|
|
|
49816
50322
|
var staticRenderFns = [];
|
|
49817
50323
|
|
|
49818
50324
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
49819
|
-
var baseComp = __webpack_require__(
|
|
50325
|
+
var baseComp = __webpack_require__(1941);
|
|
49820
50326
|
// EXTERNAL MODULE: ./package/patch.js
|
|
49821
50327
|
var patch = __webpack_require__(1618);
|
|
49822
50328
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
@@ -49943,7 +50449,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
49943
50449
|
__webpack_require__.r(__webpack_exports__);
|
|
49944
50450
|
/* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
|
|
49945
50451
|
|
|
49946
|
-
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
50452
|
+
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 4602));
|
|
49947
50453
|
const langData = {
|
|
49948
50454
|
configList: [{
|
|
49949
50455
|
id: Math.random().toString(),
|
|
@@ -50637,7 +51143,7 @@ var render = function render() {
|
|
|
50637
51143
|
var staticRenderFns = [];
|
|
50638
51144
|
|
|
50639
51145
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
50640
|
-
var baseComp = __webpack_require__(
|
|
51146
|
+
var baseComp = __webpack_require__(1941);
|
|
50641
51147
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-productDetails/View.vue?vue&type=script&lang=js
|
|
50642
51148
|
|
|
50643
51149
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -50887,7 +51393,7 @@ var swiper = __webpack_require__(2791);
|
|
|
50887
51393
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
50888
51394
|
var swiper_esm_bundle = __webpack_require__(4418);
|
|
50889
51395
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
50890
|
-
var baseComp = __webpack_require__(
|
|
51396
|
+
var baseComp = __webpack_require__(1941);
|
|
50891
51397
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-threeScroll/View.vue?vue&type=script&lang=js
|
|
50892
51398
|
|
|
50893
51399
|
|
|
@@ -51073,7 +51579,7 @@ var swiper = __webpack_require__(2791);
|
|
|
51073
51579
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
51074
51580
|
var swiper_esm_bundle = __webpack_require__(4418);
|
|
51075
51581
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
51076
|
-
var baseComp = __webpack_require__(
|
|
51582
|
+
var baseComp = __webpack_require__(1941);
|
|
51077
51583
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-termsAndConditions/View.vue?vue&type=script&lang=js
|
|
51078
51584
|
|
|
51079
51585
|
|
|
@@ -51246,120 +51752,6 @@ if ($transfer) $({ target: 'ArrayBuffer', proto: true }, {
|
|
|
51246
51752
|
});
|
|
51247
51753
|
|
|
51248
51754
|
|
|
51249
|
-
/***/ }),
|
|
51250
|
-
|
|
51251
|
-
/***/ 8106:
|
|
51252
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51253
|
-
|
|
51254
|
-
"use strict";
|
|
51255
|
-
// ESM COMPAT FLAG
|
|
51256
|
-
__webpack_require__.r(__webpack_exports__);
|
|
51257
|
-
|
|
51258
|
-
// EXPORTS
|
|
51259
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
51260
|
-
"default": function() { return /* binding */ View; }
|
|
51261
|
-
});
|
|
51262
|
-
|
|
51263
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-titleCenter/View.vue?vue&type=template&id=6b284b71&scoped=true
|
|
51264
|
-
var render = function render() {
|
|
51265
|
-
var _vm = this,
|
|
51266
|
-
_c = _vm._self._c;
|
|
51267
|
-
return _c('BaseComp', _vm._b({
|
|
51268
|
-
attrs: {
|
|
51269
|
-
"data": _vm.data,
|
|
51270
|
-
"nowCompId": _vm.nowCompId,
|
|
51271
|
-
"isOpcacity": _vm.isOpcacity,
|
|
51272
|
-
"lang": _vm.lang
|
|
51273
|
-
},
|
|
51274
|
-
on: {
|
|
51275
|
-
"getConfigData": _vm.getConfigData
|
|
51276
|
-
}
|
|
51277
|
-
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
51278
|
-
staticClass: "section-head"
|
|
51279
|
-
}, [_c('div', {
|
|
51280
|
-
staticClass: "cmhk-home_main"
|
|
51281
|
-
}, [_c('p', {
|
|
51282
|
-
staticClass: "title"
|
|
51283
|
-
}, [_c('span', {
|
|
51284
|
-
staticClass: "main"
|
|
51285
|
-
}, [_vm._v(_vm._s(_vm.configData.title1))])]), _c('p', {
|
|
51286
|
-
staticClass: "subtitle"
|
|
51287
|
-
}, [_vm._v(_vm._s(_vm.configData.title2))])])])]);
|
|
51288
|
-
};
|
|
51289
|
-
var staticRenderFns = [];
|
|
51290
|
-
|
|
51291
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
51292
|
-
var baseComp = __webpack_require__(5298);
|
|
51293
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-titleCenter/View.vue?vue&type=script&lang=js
|
|
51294
|
-
|
|
51295
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
51296
|
-
name: "cms-titleCenter",
|
|
51297
|
-
components: {
|
|
51298
|
-
BaseComp: baseComp["default"]
|
|
51299
|
-
},
|
|
51300
|
-
props: {
|
|
51301
|
-
data: {
|
|
51302
|
-
type: Object,
|
|
51303
|
-
default: () => {
|
|
51304
|
-
return {};
|
|
51305
|
-
}
|
|
51306
|
-
},
|
|
51307
|
-
nowCompId: {
|
|
51308
|
-
type: [String, Number],
|
|
51309
|
-
default: ""
|
|
51310
|
-
},
|
|
51311
|
-
isOpcacity: {
|
|
51312
|
-
type: Boolean,
|
|
51313
|
-
default: true
|
|
51314
|
-
},
|
|
51315
|
-
lang: {
|
|
51316
|
-
type: String,
|
|
51317
|
-
default: "zh-HK"
|
|
51318
|
-
}
|
|
51319
|
-
},
|
|
51320
|
-
data() {
|
|
51321
|
-
return {
|
|
51322
|
-
configData: {}
|
|
51323
|
-
};
|
|
51324
|
-
},
|
|
51325
|
-
mounted() {},
|
|
51326
|
-
methods: {
|
|
51327
|
-
getConfigData(configData) {
|
|
51328
|
-
this.configData = configData;
|
|
51329
|
-
}
|
|
51330
|
-
}
|
|
51331
|
-
});
|
|
51332
|
-
;// ./package/cms-titleCenter/View.vue?vue&type=script&lang=js
|
|
51333
|
-
/* harmony default export */ var cms_titleCenter_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
51334
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-titleCenter/View.vue?vue&type=style&index=0&id=6b284b71&prod&scoped=true&lang=scss
|
|
51335
|
-
// extracted by mini-css-extract-plugin
|
|
51336
|
-
|
|
51337
|
-
;// ./package/cms-titleCenter/View.vue?vue&type=style&index=0&id=6b284b71&prod&scoped=true&lang=scss
|
|
51338
|
-
|
|
51339
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
51340
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
51341
|
-
;// ./package/cms-titleCenter/View.vue
|
|
51342
|
-
|
|
51343
|
-
|
|
51344
|
-
|
|
51345
|
-
;
|
|
51346
|
-
|
|
51347
|
-
|
|
51348
|
-
/* normalize component */
|
|
51349
|
-
|
|
51350
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
51351
|
-
cms_titleCenter_Viewvue_type_script_lang_js,
|
|
51352
|
-
render,
|
|
51353
|
-
staticRenderFns,
|
|
51354
|
-
false,
|
|
51355
|
-
null,
|
|
51356
|
-
"6b284b71",
|
|
51357
|
-
null
|
|
51358
|
-
|
|
51359
|
-
)
|
|
51360
|
-
|
|
51361
|
-
/* harmony default export */ var View = (component.exports);
|
|
51362
|
-
|
|
51363
51755
|
/***/ }),
|
|
51364
51756
|
|
|
51365
51757
|
/***/ 8111:
|
|
@@ -51630,7 +52022,7 @@ var render = function render() {
|
|
|
51630
52022
|
var staticRenderFns = [];
|
|
51631
52023
|
|
|
51632
52024
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
51633
|
-
var baseComp = __webpack_require__(
|
|
52025
|
+
var baseComp = __webpack_require__(1941);
|
|
51634
52026
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-video-group/View.vue?vue&type=script&lang=js
|
|
51635
52027
|
|
|
51636
52028
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -51829,7 +52221,7 @@ var render = function render() {
|
|
|
51829
52221
|
var staticRenderFns = [];
|
|
51830
52222
|
|
|
51831
52223
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
51832
|
-
var baseComp = __webpack_require__(
|
|
52224
|
+
var baseComp = __webpack_require__(1941);
|
|
51833
52225
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-iconFour/View.vue?vue&type=script&lang=js
|
|
51834
52226
|
|
|
51835
52227
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -52034,7 +52426,7 @@ var swiper = __webpack_require__(2791);
|
|
|
52034
52426
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
52035
52427
|
var swiper_esm_bundle = __webpack_require__(4418);
|
|
52036
52428
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
52037
|
-
var baseComp = __webpack_require__(
|
|
52429
|
+
var baseComp = __webpack_require__(1941);
|
|
52038
52430
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-imgFour/View.vue?vue&type=script&lang=js
|
|
52039
52431
|
|
|
52040
52432
|
|
|
@@ -52228,7 +52620,7 @@ var staticRenderFns = [];
|
|
|
52228
52620
|
;// ./package/cms-activityTime/View.vue?vue&type=template&id=0e496ed4&scoped=true
|
|
52229
52621
|
|
|
52230
52622
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
52231
|
-
var baseComp = __webpack_require__(
|
|
52623
|
+
var baseComp = __webpack_require__(1941);
|
|
52232
52624
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-activityTime/View.vue?vue&type=script&lang=js
|
|
52233
52625
|
|
|
52234
52626
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -52570,7 +52962,7 @@ var es_iterator_constructor = __webpack_require__(8111);
|
|
|
52570
52962
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
52571
52963
|
var es_iterator_for_each = __webpack_require__(7588);
|
|
52572
52964
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
52573
|
-
var baseComp = __webpack_require__(
|
|
52965
|
+
var baseComp = __webpack_require__(1941);
|
|
52574
52966
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-video/View.vue?vue&type=script&lang=js
|
|
52575
52967
|
|
|
52576
52968
|
|
|
@@ -53509,7 +53901,7 @@ var render = function render() {
|
|
|
53509
53901
|
var staticRenderFns = [];
|
|
53510
53902
|
|
|
53511
53903
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
53512
|
-
var baseComp = __webpack_require__(
|
|
53904
|
+
var baseComp = __webpack_require__(1941);
|
|
53513
53905
|
// EXTERNAL MODULE: ./src/utils/request.js + 2 modules
|
|
53514
53906
|
var utils_request = __webpack_require__(1564);
|
|
53515
53907
|
;// ./src/api/servePlan.js
|
|
@@ -53888,17 +54280,21 @@ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSc
|
|
|
53888
54280
|
__webpack_require__.r(__webpack_exports__);
|
|
53889
54281
|
/* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
|
|
53890
54282
|
|
|
53891
|
-
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
54283
|
+
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 1429));
|
|
53892
54284
|
const langData = {
|
|
53893
54285
|
title1: "标题",
|
|
53894
54286
|
title2: "副标题"
|
|
53895
54287
|
};
|
|
53896
54288
|
const configDataType = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getLangDataType)(langData, {
|
|
53897
54289
|
title1: {
|
|
53898
|
-
label: "标题"
|
|
54290
|
+
label: "标题",
|
|
54291
|
+
widgetType: "el-input",
|
|
54292
|
+
type: "textarea"
|
|
53899
54293
|
},
|
|
53900
54294
|
title2: {
|
|
53901
|
-
label: "副标题"
|
|
54295
|
+
label: "副标题",
|
|
54296
|
+
widgetType: "el-input",
|
|
54297
|
+
type: "textarea"
|
|
53902
54298
|
}
|
|
53903
54299
|
});
|
|
53904
54300
|
const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSchema)(langData);
|
|
@@ -54069,7 +54465,7 @@ var render = function render() {
|
|
|
54069
54465
|
var staticRenderFns = [];
|
|
54070
54466
|
|
|
54071
54467
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
54072
|
-
var baseComp = __webpack_require__(
|
|
54468
|
+
var baseComp = __webpack_require__(1941);
|
|
54073
54469
|
// EXTERNAL MODULE: ./src/utils/jumpUrl.js
|
|
54074
54470
|
var jumpUrl = __webpack_require__(813);
|
|
54075
54471
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-titleLeft/View.vue?vue&type=script&setup=true&lang=js
|
|
@@ -54534,7 +54930,7 @@ var render = function render() {
|
|
|
54534
54930
|
var staticRenderFns = [];
|
|
54535
54931
|
|
|
54536
54932
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
54537
|
-
var baseComp = __webpack_require__(
|
|
54933
|
+
var baseComp = __webpack_require__(1941);
|
|
54538
54934
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-image-group/View.vue?vue&type=script&lang=js
|
|
54539
54935
|
|
|
54540
54936
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -54670,7 +55066,8 @@ const configDataType = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getLangDataTy
|
|
|
54670
55066
|
label: "条款名称"
|
|
54671
55067
|
},
|
|
54672
55068
|
input2: {
|
|
54673
|
-
label: "内容"
|
|
55069
|
+
label: "内容",
|
|
55070
|
+
widgetType: "isRichText"
|
|
54674
55071
|
}
|
|
54675
55072
|
}]
|
|
54676
55073
|
}
|
|
@@ -54917,7 +55314,7 @@ var render = function render() {
|
|
|
54917
55314
|
var staticRenderFns = [];
|
|
54918
55315
|
|
|
54919
55316
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
54920
|
-
var baseComp = __webpack_require__(
|
|
55317
|
+
var baseComp = __webpack_require__(1941);
|
|
54921
55318
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-text/View.vue?vue&type=script&lang=js
|
|
54922
55319
|
|
|
54923
55320
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -55643,393 +56040,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABz
|
|
|
55643
56040
|
|
|
55644
56041
|
/***/ }),
|
|
55645
56042
|
|
|
55646
|
-
/***/ 9673:
|
|
55647
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
55648
|
-
|
|
55649
|
-
"use strict";
|
|
55650
|
-
// ESM COMPAT FLAG
|
|
55651
|
-
__webpack_require__.r(__webpack_exports__);
|
|
55652
|
-
|
|
55653
|
-
// EXPORTS
|
|
55654
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
55655
|
-
"default": function() { return /* binding */ View; }
|
|
55656
|
-
});
|
|
55657
|
-
|
|
55658
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=template&id=5dba4ef6&scoped=true
|
|
55659
|
-
var render = function render() {
|
|
55660
|
-
var _vm = this,
|
|
55661
|
-
_c = _vm._self._c;
|
|
55662
|
-
return _c('BaseComp', _vm._b({
|
|
55663
|
-
attrs: {
|
|
55664
|
-
"data": _vm.data,
|
|
55665
|
-
"nowCompId": _vm.nowCompId,
|
|
55666
|
-
"isOpcacity": _vm.isOpcacity,
|
|
55667
|
-
"lang": _vm.lang
|
|
55668
|
-
},
|
|
55669
|
-
on: {
|
|
55670
|
-
"getConfigData": _vm.getConfigData
|
|
55671
|
-
}
|
|
55672
|
-
}, 'BaseComp', _vm.$attrs, false), [_c('section', {
|
|
55673
|
-
staticClass: "cmhk-home_main"
|
|
55674
|
-
}, [_c('div', {
|
|
55675
|
-
staticClass: "wrap"
|
|
55676
|
-
}, [_c('div', {
|
|
55677
|
-
ref: "cardList",
|
|
55678
|
-
staticClass: "cardList"
|
|
55679
|
-
}, [_vm.configList.length === 0 ? [_c('div', {
|
|
55680
|
-
staticClass: "card-box"
|
|
55681
|
-
}, [_c('div', {
|
|
55682
|
-
staticClass: "card"
|
|
55683
|
-
}, [_c('div', {
|
|
55684
|
-
staticClass: "img-box"
|
|
55685
|
-
}, [_c('div', {
|
|
55686
|
-
staticClass: "card-img",
|
|
55687
|
-
class: {
|
|
55688
|
-
'is-cms': _vm.$EventBus
|
|
55689
|
-
}
|
|
55690
|
-
}, [_c('img', {
|
|
55691
|
-
staticStyle: {
|
|
55692
|
-
"height": "200px"
|
|
55693
|
-
},
|
|
55694
|
-
attrs: {
|
|
55695
|
-
"src": _vm.placeholderImg,
|
|
55696
|
-
"alt": ""
|
|
55697
|
-
}
|
|
55698
|
-
})])]), _c('div', {
|
|
55699
|
-
staticClass: "content-box"
|
|
55700
|
-
}, [_c('div', {
|
|
55701
|
-
staticClass: "card-name"
|
|
55702
|
-
}, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
|
|
55703
|
-
staticClass: "text-box"
|
|
55704
|
-
}, [_c('div', {
|
|
55705
|
-
staticClass: "card-refPrice"
|
|
55706
|
-
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
|
|
55707
|
-
staticClass: "card-pice-text"
|
|
55708
|
-
}, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
|
|
55709
|
-
staticClass: "card-pice"
|
|
55710
|
-
}, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
|
|
55711
|
-
staticClass: "card-btn"
|
|
55712
|
-
}, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
|
|
55713
|
-
return _c('div', {
|
|
55714
|
-
key: `${index}-${item.commodityId || index}`,
|
|
55715
|
-
staticClass: "card-box"
|
|
55716
|
-
}, [_c('div', {
|
|
55717
|
-
staticClass: "card"
|
|
55718
|
-
}, [_c('div', {
|
|
55719
|
-
staticClass: "tag-box-left"
|
|
55720
|
-
}, [_vm._l(item.malltCommodityLeft, function (ele, i) {
|
|
55721
|
-
return [_c('img', {
|
|
55722
|
-
key: i,
|
|
55723
|
-
attrs: {
|
|
55724
|
-
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
55725
|
-
"alt": ""
|
|
55726
|
-
}
|
|
55727
|
-
})];
|
|
55728
|
-
})], 2), _c('div', {
|
|
55729
|
-
staticClass: "tag-box-right"
|
|
55730
|
-
}, [_vm._l(item.malltCommodityRight, function (ele, i) {
|
|
55731
|
-
return [_c('img', {
|
|
55732
|
-
key: i,
|
|
55733
|
-
attrs: {
|
|
55734
|
-
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
55735
|
-
"alt": ""
|
|
55736
|
-
}
|
|
55737
|
-
})];
|
|
55738
|
-
})], 2), _c('div', {
|
|
55739
|
-
staticClass: "img-box"
|
|
55740
|
-
}, [_vm.isNotActive(item) ? _c('div', {
|
|
55741
|
-
staticClass: "mask"
|
|
55742
|
-
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
|
|
55743
|
-
staticClass: "card-img",
|
|
55744
|
-
class: {
|
|
55745
|
-
'is-cms': _vm.$EventBus
|
|
55746
|
-
}
|
|
55747
|
-
}, [_c('img', {
|
|
55748
|
-
attrs: {
|
|
55749
|
-
"src": _vm.compBaseUrl + item.maxPicId,
|
|
55750
|
-
"alt": ""
|
|
55751
|
-
}
|
|
55752
|
-
})])]), _c('div', {
|
|
55753
|
-
staticClass: "content-box"
|
|
55754
|
-
}, [_vm.isNotActive(item) ? _c('div', {
|
|
55755
|
-
staticClass: "content-mask"
|
|
55756
|
-
}) : _vm._e(), _c('div', {
|
|
55757
|
-
staticClass: "card-name"
|
|
55758
|
-
}, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
|
|
55759
|
-
staticClass: "text-box"
|
|
55760
|
-
}, [item.price !== item.refPrice ? _c('div', {
|
|
55761
|
-
staticClass: "card-refPrice"
|
|
55762
|
-
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
|
|
55763
|
-
staticClass: "card-refPrice"
|
|
55764
|
-
}), _c('div', {
|
|
55765
|
-
staticClass: "card-pice-text"
|
|
55766
|
-
}, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
|
|
55767
|
-
staticClass: "card-pice spc-font"
|
|
55768
|
-
}, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
|
|
55769
|
-
staticClass: "card-btn",
|
|
55770
|
-
on: {
|
|
55771
|
-
"click": function ($event) {
|
|
55772
|
-
return _vm.goDetail(item);
|
|
55773
|
-
}
|
|
55774
|
-
}
|
|
55775
|
-
}, [_vm._v(" " + _vm._s(_vm.langText.buyNow)), _c('img', {
|
|
55776
|
-
attrs: {
|
|
55777
|
-
"src": _vm.arrowRightImg
|
|
55778
|
-
}
|
|
55779
|
-
})]) : _c('div', {
|
|
55780
|
-
staticClass: "card-btn"
|
|
55781
|
-
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? (_vm.langText.launch || "").replace("NNN", item.upTime) : _vm.langText.Offer) + " ")])])])]);
|
|
55782
|
-
})], 2), !_vm.seeMore && _vm.configList.length > 9 ? _c('div', {
|
|
55783
|
-
ref: "seeMoreRef",
|
|
55784
|
-
staticClass: "seeMore",
|
|
55785
|
-
on: {
|
|
55786
|
-
"click": function ($event) {
|
|
55787
|
-
_vm.seeMore = true;
|
|
55788
|
-
}
|
|
55789
|
-
}
|
|
55790
|
-
}, [_vm._v(" " + _vm._s(_vm.langText.more) + " "), _c('img', {
|
|
55791
|
-
staticClass: "btm",
|
|
55792
|
-
attrs: {
|
|
55793
|
-
"src": _vm.arrowDownImg
|
|
55794
|
-
}
|
|
55795
|
-
}), _c('img', {
|
|
55796
|
-
staticClass: "hover",
|
|
55797
|
-
attrs: {
|
|
55798
|
-
"src": _vm.arrowHoverImg
|
|
55799
|
-
}
|
|
55800
|
-
}), _c('img', {
|
|
55801
|
-
staticClass: "active",
|
|
55802
|
-
attrs: {
|
|
55803
|
-
"src": _vm.arrowActiveImg
|
|
55804
|
-
}
|
|
55805
|
-
})]) : _vm._e()])])]);
|
|
55806
|
-
};
|
|
55807
|
-
var staticRenderFns = [];
|
|
55808
|
-
|
|
55809
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
55810
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
55811
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
55812
|
-
var es_iterator_filter = __webpack_require__(2489);
|
|
55813
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
55814
|
-
var es_iterator_for_each = __webpack_require__(7588);
|
|
55815
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
55816
|
-
var baseComp = __webpack_require__(5298);
|
|
55817
|
-
// EXTERNAL MODULE: ./src/api/index.js
|
|
55818
|
-
var api = __webpack_require__(929);
|
|
55819
|
-
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
|
55820
|
-
var lib = __webpack_require__(9122);
|
|
55821
|
-
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
55822
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
55823
|
-
|
|
55824
|
-
|
|
55825
|
-
|
|
55826
|
-
|
|
55827
|
-
|
|
55828
|
-
|
|
55829
|
-
|
|
55830
|
-
|
|
55831
|
-
|
|
55832
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
55833
|
-
name: "cms-stored-value-card",
|
|
55834
|
-
components: {
|
|
55835
|
-
BaseComp: baseComp["default"]
|
|
55836
|
-
},
|
|
55837
|
-
props: {
|
|
55838
|
-
data: {
|
|
55839
|
-
type: Object,
|
|
55840
|
-
default: () => {
|
|
55841
|
-
return {};
|
|
55842
|
-
}
|
|
55843
|
-
},
|
|
55844
|
-
nowCompId: {
|
|
55845
|
-
type: [String, Number],
|
|
55846
|
-
default: ""
|
|
55847
|
-
},
|
|
55848
|
-
isOpcacity: {
|
|
55849
|
-
type: Boolean,
|
|
55850
|
-
default: true
|
|
55851
|
-
},
|
|
55852
|
-
lang: {
|
|
55853
|
-
type: String,
|
|
55854
|
-
default: "zh-HK"
|
|
55855
|
-
}
|
|
55856
|
-
},
|
|
55857
|
-
data() {
|
|
55858
|
-
return {
|
|
55859
|
-
langConfig: {
|
|
55860
|
-
"zh-HK": {
|
|
55861
|
-
productName: "產品名稱",
|
|
55862
|
-
Price: "建議零售價",
|
|
55863
|
-
onlinePrice: "網上優惠價",
|
|
55864
|
-
buyNow: "立即選購",
|
|
55865
|
-
comingSoon: "即將推出",
|
|
55866
|
-
expired: "優惠已過期",
|
|
55867
|
-
more: "查看更多",
|
|
55868
|
-
launch: "NNN 上線",
|
|
55869
|
-
Offer: "優惠即將推出"
|
|
55870
|
-
},
|
|
55871
|
-
"zh-CN": {
|
|
55872
|
-
productName: "产品名称",
|
|
55873
|
-
Price: "建议零售价",
|
|
55874
|
-
onlinePrice: "网上优惠价",
|
|
55875
|
-
buyNow: "立即选购",
|
|
55876
|
-
comingSoon: "即将推出",
|
|
55877
|
-
expired: "优惠已过期",
|
|
55878
|
-
more: "查看更多",
|
|
55879
|
-
launch: "NNN 上线",
|
|
55880
|
-
Offer: "优惠即将推出"
|
|
55881
|
-
},
|
|
55882
|
-
"en-US": {
|
|
55883
|
-
productName: "Product Name",
|
|
55884
|
-
Price: "RRP",
|
|
55885
|
-
onlinePrice: "Online Price",
|
|
55886
|
-
buyNow: "Buy Now",
|
|
55887
|
-
comingSoon: "Coming Soon",
|
|
55888
|
-
expired: "Expired",
|
|
55889
|
-
more: "See more",
|
|
55890
|
-
launch: "Launch at NNN",
|
|
55891
|
-
Offer: "Offer Coming"
|
|
55892
|
-
}
|
|
55893
|
-
},
|
|
55894
|
-
configList: [],
|
|
55895
|
-
seeMore: false,
|
|
55896
|
-
nowTs: Date.now(),
|
|
55897
|
-
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
55898
|
-
// images
|
|
55899
|
-
placeholderImg: __webpack_require__(5335),
|
|
55900
|
-
arrowRightImg: __webpack_require__(4860),
|
|
55901
|
-
arrowDownImg: __webpack_require__(1861),
|
|
55902
|
-
arrowHoverImg: __webpack_require__(4116),
|
|
55903
|
-
arrowActiveImg: __webpack_require__(9670),
|
|
55904
|
-
shopList: []
|
|
55905
|
-
};
|
|
55906
|
-
},
|
|
55907
|
-
computed: {
|
|
55908
|
-
langText() {
|
|
55909
|
-
return this.config && this.langConfig && this.langConfig[this.lang] || this.langConfig["zh-HK"];
|
|
55910
|
-
},
|
|
55911
|
-
viewList() {
|
|
55912
|
-
if (this.seeMore) return this.shopList;
|
|
55913
|
-
return this.shopList.slice(0, 9);
|
|
55914
|
-
}
|
|
55915
|
-
},
|
|
55916
|
-
mounted() {
|
|
55917
|
-
if (!this.$EventBus) {
|
|
55918
|
-
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
55919
|
-
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
55920
|
-
} else {
|
|
55921
|
-
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
55922
|
-
}
|
|
55923
|
-
}
|
|
55924
|
-
},
|
|
55925
|
-
beforeDestroy() {},
|
|
55926
|
-
methods: {
|
|
55927
|
-
getConfigData(configData) {
|
|
55928
|
-
this.configList = configData.configList;
|
|
55929
|
-
console.log("getConfigData", this.configList);
|
|
55930
|
-
this.getValue();
|
|
55931
|
-
},
|
|
55932
|
-
async getValue() {
|
|
55933
|
-
await this.getCommodityDetails();
|
|
55934
|
-
},
|
|
55935
|
-
// 拉取已选商品详情
|
|
55936
|
-
async getCommodityDetails() {
|
|
55937
|
-
// try {
|
|
55938
|
-
let req = {
|
|
55939
|
-
busInfo: JSON.stringify({
|
|
55940
|
-
commodityIds: [...this.configList],
|
|
55941
|
-
commodityTypes: ["604", "605"]
|
|
55942
|
-
})
|
|
55943
|
-
};
|
|
55944
|
-
req = lib_default().stringify(req);
|
|
55945
|
-
const json = await (0,api/* getCommodityDetails */.yX)(req, {
|
|
55946
|
-
lang_sc: "zh-CN",
|
|
55947
|
-
lang_tc: "zh-HK",
|
|
55948
|
-
lang_en: "en-US"
|
|
55949
|
-
}[this.lang]);
|
|
55950
|
-
let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
|
|
55951
|
-
if (Array.isArray(dataResult)) {
|
|
55952
|
-
dataResult.forEach(item => {
|
|
55953
|
-
if (Array.isArray(item.malltCommodityTags)) {
|
|
55954
|
-
const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
|
|
55955
|
-
const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
|
|
55956
|
-
item.malltCommodityLeft = left.slice(0, 2);
|
|
55957
|
-
item.malltCommodityRight = right.slice(0, 4);
|
|
55958
|
-
} else {
|
|
55959
|
-
item.malltCommodityLeft = [];
|
|
55960
|
-
item.malltCommodityRight = [];
|
|
55961
|
-
}
|
|
55962
|
-
});
|
|
55963
|
-
// 按选择顺序排序
|
|
55964
|
-
this.shopList = dataResult.sort((a, b) => {
|
|
55965
|
-
return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
|
|
55966
|
-
});
|
|
55967
|
-
} else {
|
|
55968
|
-
this.shopList = [];
|
|
55969
|
-
}
|
|
55970
|
-
// } catch (e) {
|
|
55971
|
-
// this.shopList = [];
|
|
55972
|
-
// }
|
|
55973
|
-
},
|
|
55974
|
-
isActive(item) {
|
|
55975
|
-
const now = Date.now();
|
|
55976
|
-
return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
|
|
55977
|
-
},
|
|
55978
|
-
isNotActive(item) {
|
|
55979
|
-
const now = Date.now();
|
|
55980
|
-
return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
|
|
55981
|
-
},
|
|
55982
|
-
convertCentsToYuan(cents) {
|
|
55983
|
-
const yuan = (Number(cents || 0) / 100).toFixed(2);
|
|
55984
|
-
return parseFloat(yuan);
|
|
55985
|
-
},
|
|
55986
|
-
goDetail(item) {
|
|
55987
|
-
const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
|
|
55988
|
-
if (item.commodityType === "604") {
|
|
55989
|
-
if ((item.commodityName || "").includes("MySIM")) {
|
|
55990
|
-
window.parent.location.href = `${base}/${this.lang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
|
|
55991
|
-
} else {
|
|
55992
|
-
window.parent.location.href = `${base}/${this.lang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
|
|
55993
|
-
}
|
|
55994
|
-
} else if (item.commodityType === "605") {
|
|
55995
|
-
window.parent.location.href = `${base}/${this.lang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
|
|
55996
|
-
}
|
|
55997
|
-
}
|
|
55998
|
-
}
|
|
55999
|
-
});
|
|
56000
|
-
;// ./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
56001
|
-
/* harmony default export */ var cms_stored_value_card_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
56002
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=5dba4ef6&prod&lang=scss&scoped=true
|
|
56003
|
-
// extracted by mini-css-extract-plugin
|
|
56004
|
-
|
|
56005
|
-
;// ./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=5dba4ef6&prod&lang=scss&scoped=true
|
|
56006
|
-
|
|
56007
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
56008
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
56009
|
-
;// ./package/cms-stored-value-card/View.vue
|
|
56010
|
-
|
|
56011
|
-
|
|
56012
|
-
|
|
56013
|
-
;
|
|
56014
|
-
|
|
56015
|
-
|
|
56016
|
-
/* normalize component */
|
|
56017
|
-
|
|
56018
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
56019
|
-
cms_stored_value_card_Viewvue_type_script_lang_js,
|
|
56020
|
-
render,
|
|
56021
|
-
staticRenderFns,
|
|
56022
|
-
false,
|
|
56023
|
-
null,
|
|
56024
|
-
"5dba4ef6",
|
|
56025
|
-
null
|
|
56026
|
-
|
|
56027
|
-
)
|
|
56028
|
-
|
|
56029
|
-
/* harmony default export */ var View = (component.exports);
|
|
56030
|
-
|
|
56031
|
-
/***/ }),
|
|
56032
|
-
|
|
56033
56043
|
/***/ 9699:
|
|
56034
56044
|
/***/ (function(__unused_webpack_module, exports) {
|
|
56035
56045
|
|
|
@@ -56217,7 +56227,7 @@ var render = function render() {
|
|
|
56217
56227
|
var staticRenderFns = [];
|
|
56218
56228
|
|
|
56219
56229
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
56220
|
-
var baseComp = __webpack_require__(
|
|
56230
|
+
var baseComp = __webpack_require__(1941);
|
|
56221
56231
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineFour/View.vue?vue&type=script&lang=js
|
|
56222
56232
|
|
|
56223
56233
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -56447,7 +56457,7 @@ var es_iterator_for_each = __webpack_require__(7588);
|
|
|
56447
56457
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
|
|
56448
56458
|
var es_iterator_map = __webpack_require__(1701);
|
|
56449
56459
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
56450
|
-
var baseComp = __webpack_require__(
|
|
56460
|
+
var baseComp = __webpack_require__(1941);
|
|
56451
56461
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-question/View.vue?vue&type=script&lang=js
|
|
56452
56462
|
|
|
56453
56463
|
|