cms-chenhj-ui 2.0.25 → 2.0.26

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.
@@ -1579,6 +1579,234 @@ module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
1579
1579
  };
1580
1580
 
1581
1581
 
1582
+ /***/ }),
1583
+
1584
+ /***/ 517:
1585
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1586
+
1587
+ "use strict";
1588
+ // ESM COMPAT FLAG
1589
+ __webpack_require__.r(__webpack_exports__);
1590
+
1591
+ // EXPORTS
1592
+ __webpack_require__.d(__webpack_exports__, {
1593
+ "default": function() { return /* binding */ View; }
1594
+ });
1595
+
1596
+ ;// ./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-threeScroll/View.vue?vue&type=template&id=4ecaae13&scoped=true
1597
+ var render = function render() {
1598
+ var _vm = this,
1599
+ _c = _vm._self._c;
1600
+ return _c('BaseComp', _vm._b({
1601
+ attrs: {
1602
+ "data": _vm.data,
1603
+ "nowCompId": _vm.nowCompId,
1604
+ "isOpcacity": _vm.isOpcacity,
1605
+ "lang": _vm.lang
1606
+ },
1607
+ on: {
1608
+ "getConfigData": _vm.getConfigData
1609
+ }
1610
+ }, 'BaseComp', _vm.$attrs, false), [_c('section', {
1611
+ ref: "news",
1612
+ staticClass: "cmhk-home_main"
1613
+ }, [_vm.configList.length ? _c('div', {
1614
+ staticClass: "section-body"
1615
+ }, [_c('div', {
1616
+ staticClass: "cmhk-section_corp_news-ser"
1617
+ }, [_c('div', {
1618
+ staticClass: "news-box_container"
1619
+ }, [_c('div', {
1620
+ staticClass: "news-box_swiper",
1621
+ attrs: {
1622
+ "id": `news-swiper${_vm.data.componentId}`
1623
+ }
1624
+ }, [_c('div', {
1625
+ staticClass: "swiper-wrapper"
1626
+ }, _vm._l(_vm.configList, function (item, inx) {
1627
+ return _c('div', {
1628
+ key: `${inx}${item === null || item === void 0 ? void 0 : item.id}`,
1629
+ staticClass: "swiper-slide"
1630
+ }, [_c('div', {
1631
+ staticClass: "new-read_card read-card_bg-wt",
1632
+ on: {
1633
+ "click": function ($event) {
1634
+ return _vm.decodeJumpUrl(item.jumpUrl);
1635
+ }
1636
+ }
1637
+ }, [_c('div', {
1638
+ staticClass: "image-desbox_wapper"
1639
+ }, [_c('img', {
1640
+ staticClass: "layout-pc",
1641
+ attrs: {
1642
+ "src": item.uploadImagePC,
1643
+ "alt": item.imagePcATL
1644
+ }
1645
+ }), _c('img', {
1646
+ staticClass: "layout-mobile",
1647
+ attrs: {
1648
+ "src": item.uploadImageH5,
1649
+ "alt": item.imageH5ATL
1650
+ }
1651
+ })]), _c('div', {
1652
+ staticClass: "new-read_card-content"
1653
+ }, [_c('p', {
1654
+ staticClass: "title"
1655
+ }, [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.input1))]), _c('p', {
1656
+ staticClass: "time"
1657
+ }, [_vm._v(_vm._s(item.input2))]), _c('p', {
1658
+ staticClass: "des"
1659
+ }, [_vm._v(_vm._s(item.input3))]), item.input4 ? _c('p', {
1660
+ staticClass: "continue-read"
1661
+ }, [_vm._v(" " + _vm._s(item.input4) + " "), _c('i', {
1662
+ staticClass: "el-icon-arrow-right"
1663
+ })]) : _vm._e()])])]);
1664
+ }), 0)]), _vm.configList.length > 3 ? [_c('div', {
1665
+ staticClass: "pag-prev left layout-pc",
1666
+ class: [_vm.swiperNewsIdx > 2 ? 'is-active' : ''],
1667
+ on: {
1668
+ "click": _vm.newsPrev
1669
+ }
1670
+ }, [_c('i', {
1671
+ staticClass: "el-icon-arrow-left"
1672
+ })]), _c('div', {
1673
+ staticClass: "pag-next right layout-pc",
1674
+ class: [_vm.swiperNewsIdx < _vm.configList.length - 1 ? 'is-active' : ''],
1675
+ on: {
1676
+ "click": _vm.newsNext
1677
+ }
1678
+ }, [_c('i', {
1679
+ staticClass: "el-icon-arrow-right"
1680
+ })])] : _vm._e()], 2)])]) : _vm._e()])]);
1681
+ };
1682
+ var staticRenderFns = [];
1683
+
1684
+ // EXTERNAL MODULE: ./src/utils/index.js
1685
+ var utils = __webpack_require__(1996);
1686
+ // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
1687
+ var swiper = __webpack_require__(2791);
1688
+ // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
1689
+ var swiper_esm_bundle = __webpack_require__(4418);
1690
+ // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
1691
+ var baseComp = __webpack_require__(4128);
1692
+ ;// ./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
1693
+
1694
+
1695
+
1696
+
1697
+
1698
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
1699
+ name: "cms-threeScroll",
1700
+ components: {
1701
+ BaseComp: baseComp["default"]
1702
+ },
1703
+ props: {
1704
+ data: {
1705
+ type: Object,
1706
+ default: () => {
1707
+ return {};
1708
+ }
1709
+ },
1710
+ nowCompId: {
1711
+ type: [String, Number],
1712
+ default: ""
1713
+ },
1714
+ isOpcacity: {
1715
+ type: Boolean,
1716
+ default: true
1717
+ },
1718
+ lang: {
1719
+ type: String,
1720
+ default: "zh-HK"
1721
+ }
1722
+ },
1723
+ data() {
1724
+ return {
1725
+ configList: [],
1726
+ swiperNewsIdx: 0,
1727
+ newsSwiper: null
1728
+ };
1729
+ },
1730
+ mounted() {
1731
+ const vm = this;
1732
+ this.$nextTick(() => {
1733
+ this.newsSwiper = new swiper_esm_bundle/* default */.A(`#news-swiper${this.data.componentId}`, {
1734
+ autoplay: false,
1735
+ loop: false,
1736
+ // 循环模式选项
1737
+ slidesPerView: (0,utils/* getDevice */.Pf)() !== "mobile" ? 3 : "auto",
1738
+ // spaceBetween: getDevice() !== 'mobile' ? 32 : 16, // 在slide之间设置距离
1739
+ observer: true,
1740
+ observeParents: true,
1741
+ touchMoveStopPropagation: true,
1742
+ on: {
1743
+ slideChangeTransitionEnd: function () {
1744
+ if ((0,utils/* getDevice */.Pf)() !== "mobile") {
1745
+ vm.swiperNewsIdx = this.realIndex + 2;
1746
+ } else {
1747
+ vm.swiperNewsIdx = this.realIndex;
1748
+ }
1749
+ console.log("新闻-当前页最后一个元素下标", vm.swiperNewsIdx);
1750
+ },
1751
+ resize: function () {
1752
+ this.update(true);
1753
+ }
1754
+ }
1755
+ });
1756
+ });
1757
+ },
1758
+ watch: {},
1759
+ methods: {
1760
+ getConfigData(configData) {
1761
+ this.configList = configData.configList;
1762
+ },
1763
+ newsPrev() {
1764
+ if (this.swiperNewsIdx > 2) {
1765
+ this.newsSwiper.slidePrev();
1766
+ }
1767
+ },
1768
+ newsNext() {
1769
+ if (this.swiperNewsIdx < this.configList.length - 1) {
1770
+ this.newsSwiper.slideNext();
1771
+ }
1772
+ },
1773
+ decodeJumpUrl(url) {
1774
+ if (!url) return;
1775
+ top.location.href = url;
1776
+ }
1777
+ }
1778
+ });
1779
+ ;// ./package/cms-threeScroll/View.vue?vue&type=script&lang=js
1780
+ /* harmony default export */ var cms_threeScroll_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
1781
+ ;// ./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-threeScroll/View.vue?vue&type=style&index=0&id=4ecaae13&prod&lang=scss&scoped=true
1782
+ // extracted by mini-css-extract-plugin
1783
+
1784
+ ;// ./package/cms-threeScroll/View.vue?vue&type=style&index=0&id=4ecaae13&prod&lang=scss&scoped=true
1785
+
1786
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1787
+ var componentNormalizer = __webpack_require__(1656);
1788
+ ;// ./package/cms-threeScroll/View.vue
1789
+
1790
+
1791
+
1792
+ ;
1793
+
1794
+
1795
+ /* normalize component */
1796
+
1797
+ var component = (0,componentNormalizer/* default */.A)(
1798
+ cms_threeScroll_Viewvue_type_script_lang_js,
1799
+ render,
1800
+ staticRenderFns,
1801
+ false,
1802
+ null,
1803
+ "4ecaae13",
1804
+ null
1805
+
1806
+ )
1807
+
1808
+ /* harmony default export */ var View = (component.exports);
1809
+
1582
1810
  /***/ }),
1583
1811
 
1584
1812
  /***/ 550:
@@ -10835,8 +11063,8 @@ var map = {
10835
11063
  "./cms-activityTime/index.js": 7197,
10836
11064
  "./cms-banner": 1739,
10837
11065
  "./cms-banner/": 1739,
10838
- "./cms-banner/View": 2646,
10839
- "./cms-banner/View.vue": 2646,
11066
+ "./cms-banner/View": 6815,
11067
+ "./cms-banner/View.vue": 6815,
10840
11068
  "./cms-banner/components/cmhkALabel": 753,
10841
11069
  "./cms-banner/components/cmhkALabel.vue": 753,
10842
11070
  "./cms-banner/index": 1739,
@@ -10986,8 +11214,8 @@ var map = {
10986
11214
  "./cms-text/index.js": 394,
10987
11215
  "./cms-threeScroll": 4670,
10988
11216
  "./cms-threeScroll/": 4670,
10989
- "./cms-threeScroll/View": 3257,
10990
- "./cms-threeScroll/View.vue": 3257,
11217
+ "./cms-threeScroll/View": 517,
11218
+ "./cms-threeScroll/View.vue": 517,
10991
11219
  "./cms-threeScroll/index": 4670,
10992
11220
  "./cms-threeScroll/index.js": 4670,
10993
11221
  "./cms-titleCenter": 8904,
@@ -11316,7 +11544,7 @@ module.exports = function bind(fn, thisArg) {
11316
11544
  __webpack_require__.r(__webpack_exports__);
11317
11545
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
11318
11546
 
11319
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 2646));
11547
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 6815));
11320
11548
  const langData = {
11321
11549
  configList: [{
11322
11550
  id: Math.random().toString(),
@@ -17644,310 +17872,6 @@ Sortable.mount(Remove, Revert);
17644
17872
  /* harmony default export */ __webpack_exports__["default"] = (Sortable);
17645
17873
 
17646
17874
 
17647
- /***/ }),
17648
-
17649
- /***/ 2646:
17650
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17651
-
17652
- "use strict";
17653
- // ESM COMPAT FLAG
17654
- __webpack_require__.r(__webpack_exports__);
17655
-
17656
- // EXPORTS
17657
- __webpack_require__.d(__webpack_exports__, {
17658
- "default": function() { return /* binding */ View; }
17659
- });
17660
-
17661
- ;// ./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-banner/View.vue?vue&type=template&id=355e1f51&scoped=true
17662
- var render = function render() {
17663
- var _vm$configList$_vm$sw;
17664
- var _vm = this,
17665
- _c = _vm._self._c;
17666
- return _c('BaseComp', _vm._b({
17667
- attrs: {
17668
- "data": _vm.data,
17669
- "nowCompId": _vm.nowCompId,
17670
- "isOpcacity": _vm.isOpcacity,
17671
- "lang": _vm.lang
17672
- },
17673
- on: {
17674
- "getConfigData": _vm.getConfigData
17675
- }
17676
- }, 'BaseComp', _vm.$attrs, false), [_c('div', {
17677
- staticClass: "content-swiper tt_banner"
17678
- }, [_vm.configList.length > 0 ? _c('div', {
17679
- staticClass: "relative position"
17680
- }, [_c('div', {
17681
- staticClass: "my_banner"
17682
- }, [_c('div', {
17683
- staticClass: "swiper-container_contentswiper",
17684
- attrs: {
17685
- "id": `contentSwiper${_vm.data.componentId}`
17686
- }
17687
- }, [_c('div', {
17688
- staticClass: "swiper-wrapper"
17689
- }, _vm._l(_vm.configList, function (item, inx) {
17690
- return _c('div', {
17691
- key: inx,
17692
- staticClass: "swiper-slide"
17693
- }, [item ? _c('div', {
17694
- staticClass: "swiper-banner_box",
17695
- on: {
17696
- "click": function ($event) {
17697
- return _vm.decodeJumpUrl(item.jumpUrl, _vm.$router);
17698
- }
17699
- }
17700
- }, [_c('img', {
17701
- staticClass: "swiper-banner_image layout-pc",
17702
- attrs: {
17703
- "src": item.uploadImagePC,
17704
- "alt": "PC"
17705
- }
17706
- }), _c('img', {
17707
- staticClass: "swiper-banner_image layout-mobile",
17708
- attrs: {
17709
- "src": item.uploadImageH5,
17710
- "alt": "H5"
17711
- }
17712
- }), _c('div', {
17713
- staticClass: "extra-swiper_box layout-pc"
17714
- }, [item.title ? _c('div', {
17715
- staticClass: "swiper-contentbtn"
17716
- }, [_c('span', [_vm._v(_vm._s(item.title))])]) : _vm._e(), item.des ? _c('div', {
17717
- staticClass: "swiper-labels"
17718
- }, [_c('span', [_vm._v(_vm._s(item.des))])]) : _vm._e(), _c('div', {
17719
- staticClass: "swiper-btn_container"
17720
- }, [item.input1 != '' ? _c('a', {
17721
- attrs: {
17722
- "href": item.jumpUrl1,
17723
- "target": "_self"
17724
- }
17725
- }, [_c('button', {
17726
- staticClass: "swiper-opbtn have-arrow"
17727
- }, [_c('span', [_vm._v(_vm._s(item.input1))])])]) : _vm._e(), item.input2 != '' ? _c('a', {
17728
- attrs: {
17729
- "href": item.jumpUrl2,
17730
- "target": "_self"
17731
- }
17732
- }, [_c('button', {
17733
- staticClass: "swiper-opbtn_wt"
17734
- }, [_c('span', [_vm._v(_vm._s(item.input2))])])]) : _vm._e()])])]) : _vm._e()]);
17735
- }), 0)])]), _vm.configList[_vm.swiperIdx].title || _vm.configList[_vm.swiperIdx].des || _vm.configList[_vm.swiperIdx].input1 || _vm.configList[_vm.swiperIdx].input2 || (_vm$configList$_vm$sw = _vm.configList[_vm.swiperIdx]) !== null && _vm$configList$_vm$sw !== void 0 && _vm$configList$_vm$sw.input3 ? _c('div', {
17736
- staticClass: "mb-swiper_box layout-mobile"
17737
- }, [_vm.configList[_vm.swiperIdx].title ? _c('div', {
17738
- staticClass: "swiper-contentbtn"
17739
- }, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].title))])]) : _vm._e(), _vm.configList[_vm.swiperIdx].des ? _c('div', {
17740
- staticClass: "swiper-label"
17741
- }, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].des))])]) : _vm._e(), _c('div', {
17742
- staticClass: "swiper-btn_container"
17743
- }, [_vm.configList[_vm.swiperIdx].input1 ? _c('a', {
17744
- attrs: {
17745
- "href": _vm.configList[_vm.swiperIdx].jumpUrl1,
17746
- "target": "_self"
17747
- }
17748
- }, [_c('button', {
17749
- staticClass: "swiper-opbtn have-arrow"
17750
- }, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].input1))])])]) : _vm._e(), _vm.configList[_vm.swiperIdx].input2 ? _c('a', {
17751
- attrs: {
17752
- "href": _vm.configList[_vm.swiperIdx].jumpUrl2,
17753
- "target": "_self"
17754
- }
17755
- }, [_c('button', {
17756
- staticClass: "swiper-opbtn_wt have-arrow"
17757
- }, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].input2))])])]) : _vm._e()])]) : _vm._e(), _vm.configList.length > 1 ? _c('div', {
17758
- staticClass: "cmhk-swiper-button-number"
17759
- }, [_vm._l(_vm.configList, function (item, idx) {
17760
- return _c('div', {
17761
- key: idx,
17762
- staticClass: "line-customs_wrapper",
17763
- on: {
17764
- "click": function ($event) {
17765
- $event.stopPropagation();
17766
- return _vm.jumpToSlide(idx);
17767
- }
17768
- }
17769
- }, [_c('div', {
17770
- class: ['cmhk-line-customs', idx === _vm.swiperIdx ? 'cmhk-line-customs-active' : '']
17771
- }, [item && item.input1 ? _c('div', {
17772
- staticClass: "swiper-popupup layout-pc"
17773
- }, [_c('p', {
17774
- staticClass: "swiper-popuptext"
17775
- }, [_vm._v(_vm._s(item.input1))])]) : _vm._e()])]);
17776
- }), _c('div', {
17777
- staticClass: "swiper-button-puase",
17778
- on: {
17779
- "click": function ($event) {
17780
- $event.stopPropagation();
17781
- return _vm.swiperPlay.apply(null, arguments);
17782
- }
17783
- }
17784
- }, [!_vm.swiperPlayVal ? _c('img', {
17785
- staticClass: "playstart-image",
17786
- attrs: {
17787
- "src": __webpack_require__(2254)
17788
- }
17789
- }) : _vm._e(), _vm.swiperPlayVal ? _c('img', {
17790
- staticClass: "playstop-image",
17791
- attrs: {
17792
- "src": __webpack_require__(2584)
17793
- }
17794
- }) : _vm._e()])], 2) : _vm._e()]) : _vm._e()])]);
17795
- };
17796
- var staticRenderFns = [];
17797
-
17798
- ;// ./package/cms-banner/View.vue?vue&type=template&id=355e1f51&scoped=true
17799
-
17800
- // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
17801
- var swiper = __webpack_require__(2791);
17802
- // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
17803
- var swiper_esm_bundle = __webpack_require__(4418);
17804
- // EXTERNAL MODULE: ./src/utils/jumpUrl.js
17805
- var jumpUrl = __webpack_require__(813);
17806
- // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
17807
- var baseComp = __webpack_require__(4128);
17808
- ;// ./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
17809
-
17810
-
17811
-
17812
-
17813
-
17814
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
17815
- name: "cms-banner",
17816
- components: {
17817
- BaseComp: baseComp["default"]
17818
- },
17819
- props: {
17820
- data: {
17821
- type: Object,
17822
- default: () => {
17823
- return {};
17824
- }
17825
- },
17826
- nowCompId: {
17827
- type: [String, Number],
17828
- default: ""
17829
- },
17830
- isOpcacity: {
17831
- type: Boolean,
17832
- default: true
17833
- },
17834
- lang: {
17835
- type: String,
17836
- default: "zh-HK"
17837
- }
17838
- },
17839
- data() {
17840
- return {
17841
- configList: [],
17842
- // 轮播
17843
- swiperOne: null,
17844
- swiperIdx: 0,
17845
- swiperPlayVal: true
17846
- };
17847
- },
17848
- created() {},
17849
- mounted() {
17850
- // if (this.configList.length > 0) {
17851
- // this.initSwiper("bannerList");
17852
- // }
17853
- },
17854
- watch: {},
17855
- methods: {
17856
- getConfigData(configData) {
17857
- this.configList = configData.configList;
17858
- this.$nextTick(() => {
17859
- this.initSwiper();
17860
- });
17861
- },
17862
- initSwiper() {
17863
- const vm = this;
17864
- if (this.configList.length > 0) {
17865
- // 当广告个数大于1的时候才开启循环
17866
- const ifLoop = this.configList.length > 1 ? true : false;
17867
- this.swiperOne = new swiper_esm_bundle/* default */.A(`#contentSwiper${this.data.componentId}`, {
17868
- initialSlide: 0,
17869
- // 初始化时slide的索引
17870
- autoplay: {
17871
- // 自动开始
17872
- delay: 5000,
17873
- // 时间间隔
17874
- disableOnInteraction: false // 手动操作轮播图后不会暂停
17875
- },
17876
- loop: ifLoop,
17877
- // 循环模式选项
17878
- spaceBetween: 30,
17879
- // 在slide之间设置距离
17880
- observer: true,
17881
- observeParents: true,
17882
- on: {
17883
- slideChangeTransitionEnd: function () {
17884
- // swiper从一个slide过渡到另一个slide结束时执行
17885
- console.log("realIndex", this.realIndex);
17886
- if (this.realIndex > vm.configList.length - 1) return;
17887
- vm.swiperIdx = this.realIndex;
17888
- },
17889
- resize: function () {
17890
- this.update(true);
17891
- }
17892
- }
17893
- });
17894
- }
17895
- },
17896
- // 轮播
17897
- swiperPlay() {
17898
- this.swiperPlayVal = !this.swiperPlayVal;
17899
- this.swiperPlayVal ? this.swiperClickStart() : this.swiperClickStop();
17900
- },
17901
- swiperClickStop() {
17902
- this.swiperOne.autoplay.stop();
17903
- },
17904
- swiperClickStart() {
17905
- this.swiperOne.autoplay.start();
17906
- },
17907
- jumpToSlide(idx) {
17908
- // banner 轮播PC
17909
- console.log("PC点击了", idx);
17910
- // 在Loop模式下Swiper切换到指定slide。切换到的是slide索引是realIndex
17911
- this.swiperOne.slideToLoop(idx, 1000, false);
17912
- this.swiperIdx = idx;
17913
- },
17914
- //跳转
17915
- decodeJumpUrl(path, route) {
17916
- (0,jumpUrl/* decodeJumpUrl */.u)(path, route);
17917
- }
17918
- }
17919
- });
17920
- ;// ./package/cms-banner/View.vue?vue&type=script&lang=js
17921
- /* harmony default export */ var cms_banner_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
17922
- ;// ./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-banner/View.vue?vue&type=style&index=0&id=355e1f51&prod&scoped=true&lang=scss
17923
- // extracted by mini-css-extract-plugin
17924
-
17925
- ;// ./package/cms-banner/View.vue?vue&type=style&index=0&id=355e1f51&prod&scoped=true&lang=scss
17926
-
17927
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
17928
- var componentNormalizer = __webpack_require__(1656);
17929
- ;// ./package/cms-banner/View.vue
17930
-
17931
-
17932
-
17933
- ;
17934
-
17935
-
17936
- /* normalize component */
17937
-
17938
- var component = (0,componentNormalizer/* default */.A)(
17939
- cms_banner_Viewvue_type_script_lang_js,
17940
- render,
17941
- staticRenderFns,
17942
- false,
17943
- null,
17944
- "355e1f51",
17945
- null
17946
-
17947
- )
17948
-
17949
- /* harmony default export */ var View = (component.exports);
17950
-
17951
17875
  /***/ }),
17952
17876
 
17953
17877
  /***/ 2652:
@@ -27734,232 +27658,6 @@ var component = (0,componentNormalizer/* default */.A)(
27734
27658
 
27735
27659
  /***/ }),
27736
27660
 
27737
- /***/ 3257:
27738
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
27739
-
27740
- "use strict";
27741
- // ESM COMPAT FLAG
27742
- __webpack_require__.r(__webpack_exports__);
27743
-
27744
- // EXPORTS
27745
- __webpack_require__.d(__webpack_exports__, {
27746
- "default": function() { return /* binding */ View; }
27747
- });
27748
-
27749
- ;// ./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-threeScroll/View.vue?vue&type=template&id=b5477492&scoped=true
27750
- var render = function render() {
27751
- var _vm = this,
27752
- _c = _vm._self._c;
27753
- return _c('BaseComp', _vm._b({
27754
- attrs: {
27755
- "data": _vm.data,
27756
- "nowCompId": _vm.nowCompId,
27757
- "isOpcacity": _vm.isOpcacity,
27758
- "lang": _vm.lang
27759
- },
27760
- on: {
27761
- "getConfigData": _vm.getConfigData
27762
- }
27763
- }, 'BaseComp', _vm.$attrs, false), [_c('section', {
27764
- ref: "news",
27765
- staticClass: "cmhk-home_main"
27766
- }, [_vm.configList.length ? _c('div', {
27767
- staticClass: "section-body"
27768
- }, [_c('div', {
27769
- staticClass: "cmhk-section_corp_news-ser"
27770
- }, [_c('div', {
27771
- staticClass: "news-box_container"
27772
- }, [_c('div', {
27773
- staticClass: "news-box_swiper",
27774
- attrs: {
27775
- "id": `news-swiper${_vm.data.componentId}`
27776
- }
27777
- }, [_c('div', {
27778
- staticClass: "swiper-wrapper"
27779
- }, _vm._l(_vm.configList, function (item, inx) {
27780
- return _c('div', {
27781
- key: `${inx}${item === null || item === void 0 ? void 0 : item.id}`,
27782
- staticClass: "swiper-slide"
27783
- }, [_c('div', {
27784
- staticClass: "new-read_card read-card_bg-wt",
27785
- on: {
27786
- "click": function ($event) {
27787
- return _vm.decodeJumpUrl(item.jumpUrl);
27788
- }
27789
- }
27790
- }, [_c('div', {
27791
- staticClass: "image-desbox_wapper"
27792
- }, [_c('img', {
27793
- staticClass: "layout-pc",
27794
- attrs: {
27795
- "src": item.uploadImagePC,
27796
- "alt": item.imagePcATL
27797
- }
27798
- }), _c('img', {
27799
- staticClass: "layout-mobile",
27800
- attrs: {
27801
- "src": item.uploadImageH5,
27802
- "alt": item.imageH5ATL
27803
- }
27804
- })]), _c('div', {
27805
- staticClass: "new-read_card-content"
27806
- }, [_c('p', {
27807
- staticClass: "title"
27808
- }, [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.input1))]), _c('p', {
27809
- staticClass: "time"
27810
- }, [_vm._v(_vm._s(item.input2))]), _c('p', {
27811
- staticClass: "des"
27812
- }, [_vm._v(_vm._s(item.input3))]), item.input4 ? _c('p', {
27813
- staticClass: "continue-read"
27814
- }, [_vm._v(" " + _vm._s(item.input4) + " "), _c('i', {
27815
- staticClass: "el-icon-arrow-right"
27816
- })]) : _vm._e()])])]);
27817
- }), 0)]), _vm.configList.length > 3 ? [_c('div', {
27818
- staticClass: "pag-prev left layout-pc",
27819
- class: [_vm.swiperNewsIdx > 2 ? 'is-active' : ''],
27820
- on: {
27821
- "click": _vm.newsPrev
27822
- }
27823
- }, [_c('i', {
27824
- staticClass: "el-icon-arrow-left"
27825
- })]), _c('div', {
27826
- staticClass: "pag-next right layout-pc",
27827
- class: [_vm.swiperNewsIdx < _vm.configList.length - 1 ? 'is-active' : ''],
27828
- on: {
27829
- "click": _vm.newsNext
27830
- }
27831
- }, [_c('i', {
27832
- staticClass: "el-icon-arrow-right"
27833
- })])] : _vm._e()], 2)])]) : _vm._e()])]);
27834
- };
27835
- var staticRenderFns = [];
27836
-
27837
- // EXTERNAL MODULE: ./src/utils/index.js
27838
- var utils = __webpack_require__(1996);
27839
- // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
27840
- var swiper = __webpack_require__(2791);
27841
- // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
27842
- var swiper_esm_bundle = __webpack_require__(4418);
27843
- // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
27844
- var baseComp = __webpack_require__(4128);
27845
- ;// ./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
27846
-
27847
-
27848
-
27849
-
27850
-
27851
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
27852
- name: "cms-threeScroll",
27853
- components: {
27854
- BaseComp: baseComp["default"]
27855
- },
27856
- props: {
27857
- data: {
27858
- type: Object,
27859
- default: () => {
27860
- return {};
27861
- }
27862
- },
27863
- nowCompId: {
27864
- type: [String, Number],
27865
- default: ""
27866
- },
27867
- isOpcacity: {
27868
- type: Boolean,
27869
- default: true
27870
- },
27871
- lang: {
27872
- type: String,
27873
- default: "zh-HK"
27874
- }
27875
- },
27876
- data() {
27877
- return {
27878
- configList: [],
27879
- swiperNewsIdx: 0,
27880
- newsSwiper: null
27881
- };
27882
- },
27883
- mounted() {
27884
- const vm = this;
27885
- this.newsSwiper = new swiper_esm_bundle/* default */.A(`#news-swiper${this.data.componentId}`, {
27886
- autoplay: false,
27887
- loop: false,
27888
- // 循环模式选项
27889
- slidesPerView: (0,utils/* getDevice */.Pf)() !== "mobile" ? 3 : "auto",
27890
- // spaceBetween: getDevice() !== 'mobile' ? 32 : 16, // 在slide之间设置距离
27891
- observer: true,
27892
- observeParents: true,
27893
- touchMoveStopPropagation: true,
27894
- on: {
27895
- slideChangeTransitionEnd: function () {
27896
- if ((0,utils/* getDevice */.Pf)() !== "mobile") {
27897
- vm.swiperNewsIdx = this.realIndex + 2;
27898
- } else {
27899
- vm.swiperNewsIdx = this.realIndex;
27900
- }
27901
- console.log("新闻-当前页最后一个元素下标", vm.swiperNewsIdx);
27902
- },
27903
- resize: function () {
27904
- this.update(true);
27905
- }
27906
- }
27907
- });
27908
- },
27909
- watch: {},
27910
- methods: {
27911
- getConfigData(configData) {
27912
- this.configList = configData.configList;
27913
- },
27914
- newsPrev() {
27915
- if (this.swiperNewsIdx > 2) {
27916
- this.newsSwiper.slidePrev();
27917
- }
27918
- },
27919
- newsNext() {
27920
- if (this.swiperNewsIdx < this.configList.length - 1) {
27921
- this.newsSwiper.slideNext();
27922
- }
27923
- },
27924
- decodeJumpUrl(url) {
27925
- if (!url) return;
27926
- top.location.href = url;
27927
- }
27928
- }
27929
- });
27930
- ;// ./package/cms-threeScroll/View.vue?vue&type=script&lang=js
27931
- /* harmony default export */ var cms_threeScroll_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
27932
- ;// ./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-threeScroll/View.vue?vue&type=style&index=0&id=b5477492&prod&lang=scss&scoped=true
27933
- // extracted by mini-css-extract-plugin
27934
-
27935
- ;// ./package/cms-threeScroll/View.vue?vue&type=style&index=0&id=b5477492&prod&lang=scss&scoped=true
27936
-
27937
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
27938
- var componentNormalizer = __webpack_require__(1656);
27939
- ;// ./package/cms-threeScroll/View.vue
27940
-
27941
-
27942
-
27943
- ;
27944
-
27945
-
27946
- /* normalize component */
27947
-
27948
- var component = (0,componentNormalizer/* default */.A)(
27949
- cms_threeScroll_Viewvue_type_script_lang_js,
27950
- render,
27951
- staticRenderFns,
27952
- false,
27953
- null,
27954
- "b5477492",
27955
- null
27956
-
27957
- )
27958
-
27959
- /* harmony default export */ var View = (component.exports);
27960
-
27961
- /***/ }),
27962
-
27963
27661
  /***/ 3368:
27964
27662
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
27965
27663
 
@@ -39147,7 +38845,7 @@ module.exports = function (object, key, value) {
39147
38845
  __webpack_require__.r(__webpack_exports__);
39148
38846
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
39149
38847
 
39150
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 3257));
38848
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 517));
39151
38849
  const langData = {
39152
38850
  configList: [{
39153
38851
  id: Math.random().toString(),
@@ -40996,7 +40694,7 @@ var map = {
40996
40694
  "./cms-aLineThreeLeftTwo/View.vue": 5422,
40997
40695
  "./cms-activityCountdown/View.vue": 8437,
40998
40696
  "./cms-activityTime/View.vue": 8322,
40999
- "./cms-banner/View.vue": 2646,
40697
+ "./cms-banner/View.vue": 6815,
41000
40698
  "./cms-button/View.vue": 2404,
41001
40699
  "./cms-cells/View.vue": 5700,
41002
40700
  "./cms-column-card/View.vue": 2328,
@@ -41020,7 +40718,7 @@ var map = {
41020
40718
  "./cms-servePlan-text/View.vue": 9487,
41021
40719
  "./cms-termsAndConditions/View.vue": 8073,
41022
40720
  "./cms-text/View.vue": 1452,
41023
- "./cms-threeScroll/View.vue": 3257,
40721
+ "./cms-threeScroll/View.vue": 517,
41024
40722
  "./cms-titleCenter/View.vue": 1429,
41025
40723
  "./cms-titleLeft/View.vue": 428,
41026
40724
  "./cms-via-storedValueCard/View.vue": 343,
@@ -41527,7 +41225,7 @@ const configDataType = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getLangDataTy
41527
41225
  borderColor: {
41528
41226
  label: "边框颜色",
41529
41227
  widgetType: "el-color-picker",
41530
- predefine: ['#2F85FF', '#f48427', '#52C41A', '#D6197F']
41228
+ predefine: ["#2F85FF", "#f48427", "#52C41A", "#D6197F"]
41531
41229
  },
41532
41230
  borderRadius: {
41533
41231
  label: "圆角(px)",
@@ -41541,7 +41239,7 @@ const configDataType = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getLangDataTy
41541
41239
  backgroundColor: {
41542
41240
  label: "背景颜色",
41543
41241
  widgetType: "el-color-picker",
41544
- predefine: ['#2F85FF', '#f48427', '#52C41A', '#D6197F']
41242
+ predefine: ["#2F85FF", "#f48427", "#52C41A", "#D6197F"]
41545
41243
  },
41546
41244
  backgroundImage: {
41547
41245
  label: "背景图片",
@@ -41566,7 +41264,8 @@ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSc
41566
41264
  settings: cmsCompName => {
41567
41265
  return (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getInitCompData)({
41568
41266
  cmsCompName,
41569
- langData
41267
+ langData,
41268
+ isLangAll: true
41570
41269
  });
41571
41270
  }
41572
41271
  });
@@ -43697,6 +43396,310 @@ exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties :
43697
43396
  };
43698
43397
 
43699
43398
 
43399
+ /***/ }),
43400
+
43401
+ /***/ 6815:
43402
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
43403
+
43404
+ "use strict";
43405
+ // ESM COMPAT FLAG
43406
+ __webpack_require__.r(__webpack_exports__);
43407
+
43408
+ // EXPORTS
43409
+ __webpack_require__.d(__webpack_exports__, {
43410
+ "default": function() { return /* binding */ View; }
43411
+ });
43412
+
43413
+ ;// ./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-banner/View.vue?vue&type=template&id=379acd83&scoped=true
43414
+ var render = function render() {
43415
+ var _vm$configList$_vm$sw;
43416
+ var _vm = this,
43417
+ _c = _vm._self._c;
43418
+ return _c('BaseComp', _vm._b({
43419
+ attrs: {
43420
+ "data": _vm.data,
43421
+ "nowCompId": _vm.nowCompId,
43422
+ "isOpcacity": _vm.isOpcacity,
43423
+ "lang": _vm.lang
43424
+ },
43425
+ on: {
43426
+ "getConfigData": _vm.getConfigData
43427
+ }
43428
+ }, 'BaseComp', _vm.$attrs, false), [_c('div', {
43429
+ staticClass: "content-swiper tt_banner"
43430
+ }, [_vm.configList.length > 0 ? _c('div', {
43431
+ staticClass: "relative position"
43432
+ }, [_c('div', {
43433
+ staticClass: "my_banner"
43434
+ }, [_c('div', {
43435
+ staticClass: "swiper-container_contentswiper",
43436
+ attrs: {
43437
+ "id": `contentSwiper${_vm.data.componentId}`
43438
+ }
43439
+ }, [_c('div', {
43440
+ staticClass: "swiper-wrapper"
43441
+ }, _vm._l(_vm.configList, function (item, inx) {
43442
+ return _c('div', {
43443
+ key: inx,
43444
+ staticClass: "swiper-slide"
43445
+ }, [item ? _c('div', {
43446
+ staticClass: "swiper-banner_box",
43447
+ on: {
43448
+ "click": function ($event) {
43449
+ return _vm.decodeJumpUrl(item.jumpUrl, _vm.$router);
43450
+ }
43451
+ }
43452
+ }, [_c('img', {
43453
+ staticClass: "swiper-banner_image layout-pc",
43454
+ attrs: {
43455
+ "src": item.uploadImagePC,
43456
+ "alt": "PC"
43457
+ }
43458
+ }), _c('img', {
43459
+ staticClass: "swiper-banner_image layout-mobile",
43460
+ attrs: {
43461
+ "src": item.uploadImageH5,
43462
+ "alt": "H5"
43463
+ }
43464
+ }), _c('div', {
43465
+ staticClass: "extra-swiper_box layout-pc"
43466
+ }, [item.title ? _c('div', {
43467
+ staticClass: "swiper-contentbtn"
43468
+ }, [_c('span', [_vm._v(_vm._s(item.title))])]) : _vm._e(), item.des ? _c('div', {
43469
+ staticClass: "swiper-labels"
43470
+ }, [_c('span', [_vm._v(_vm._s(item.des))])]) : _vm._e(), _c('div', {
43471
+ staticClass: "swiper-btn_container"
43472
+ }, [item.input1 != '' ? _c('a', {
43473
+ attrs: {
43474
+ "href": item.jumpUrl1,
43475
+ "target": "_self"
43476
+ }
43477
+ }, [_c('button', {
43478
+ staticClass: "swiper-opbtn have-arrow"
43479
+ }, [_c('span', [_vm._v(_vm._s(item.input1))])])]) : _vm._e(), item.input2 != '' ? _c('a', {
43480
+ attrs: {
43481
+ "href": item.jumpUrl2,
43482
+ "target": "_self"
43483
+ }
43484
+ }, [_c('button', {
43485
+ staticClass: "swiper-opbtn_wt"
43486
+ }, [_c('span', [_vm._v(_vm._s(item.input2))])])]) : _vm._e()])])]) : _vm._e()]);
43487
+ }), 0)])]), _vm.configList[_vm.swiperIdx].title || _vm.configList[_vm.swiperIdx].des || _vm.configList[_vm.swiperIdx].input1 || _vm.configList[_vm.swiperIdx].input2 || (_vm$configList$_vm$sw = _vm.configList[_vm.swiperIdx]) !== null && _vm$configList$_vm$sw !== void 0 && _vm$configList$_vm$sw.input3 ? _c('div', {
43488
+ staticClass: "mb-swiper_box layout-mobile"
43489
+ }, [_vm.configList[_vm.swiperIdx].title ? _c('div', {
43490
+ staticClass: "swiper-contentbtn"
43491
+ }, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].title))])]) : _vm._e(), _vm.configList[_vm.swiperIdx].des ? _c('div', {
43492
+ staticClass: "swiper-label"
43493
+ }, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].des))])]) : _vm._e(), _c('div', {
43494
+ staticClass: "swiper-btn_container"
43495
+ }, [_vm.configList[_vm.swiperIdx].input1 ? _c('a', {
43496
+ attrs: {
43497
+ "href": _vm.configList[_vm.swiperIdx].jumpUrl1,
43498
+ "target": "_self"
43499
+ }
43500
+ }, [_c('button', {
43501
+ staticClass: "swiper-opbtn have-arrow"
43502
+ }, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].input1))])])]) : _vm._e(), _vm.configList[_vm.swiperIdx].input2 ? _c('a', {
43503
+ attrs: {
43504
+ "href": _vm.configList[_vm.swiperIdx].jumpUrl2,
43505
+ "target": "_self"
43506
+ }
43507
+ }, [_c('button', {
43508
+ staticClass: "swiper-opbtn_wt have-arrow"
43509
+ }, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].input2))])])]) : _vm._e()])]) : _vm._e(), _vm.configList.length > 1 ? _c('div', {
43510
+ staticClass: "cmhk-swiper-button-number"
43511
+ }, [_vm._l(_vm.configList, function (item, idx) {
43512
+ return _c('div', {
43513
+ key: idx,
43514
+ staticClass: "line-customs_wrapper",
43515
+ on: {
43516
+ "click": function ($event) {
43517
+ $event.stopPropagation();
43518
+ return _vm.jumpToSlide(idx);
43519
+ }
43520
+ }
43521
+ }, [_c('div', {
43522
+ class: ['cmhk-line-customs', idx === _vm.swiperIdx ? 'cmhk-line-customs-active' : '']
43523
+ }, [item && item.input1 ? _c('div', {
43524
+ staticClass: "swiper-popupup layout-pc"
43525
+ }, [_c('p', {
43526
+ staticClass: "swiper-popuptext"
43527
+ }, [_vm._v(_vm._s(item.input1))])]) : _vm._e()])]);
43528
+ }), _c('div', {
43529
+ staticClass: "swiper-button-puase",
43530
+ on: {
43531
+ "click": function ($event) {
43532
+ $event.stopPropagation();
43533
+ return _vm.swiperPlay.apply(null, arguments);
43534
+ }
43535
+ }
43536
+ }, [!_vm.swiperPlayVal ? _c('img', {
43537
+ staticClass: "playstart-image",
43538
+ attrs: {
43539
+ "src": __webpack_require__(2254)
43540
+ }
43541
+ }) : _vm._e(), _vm.swiperPlayVal ? _c('img', {
43542
+ staticClass: "playstop-image",
43543
+ attrs: {
43544
+ "src": __webpack_require__(2584)
43545
+ }
43546
+ }) : _vm._e()])], 2) : _vm._e()]) : _vm._e()])]);
43547
+ };
43548
+ var staticRenderFns = [];
43549
+
43550
+ ;// ./package/cms-banner/View.vue?vue&type=template&id=379acd83&scoped=true
43551
+
43552
+ // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
43553
+ var swiper = __webpack_require__(2791);
43554
+ // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
43555
+ var swiper_esm_bundle = __webpack_require__(4418);
43556
+ // EXTERNAL MODULE: ./src/utils/jumpUrl.js
43557
+ var jumpUrl = __webpack_require__(813);
43558
+ // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
43559
+ var baseComp = __webpack_require__(4128);
43560
+ ;// ./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
43561
+
43562
+
43563
+
43564
+
43565
+
43566
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
43567
+ name: "cms-banner",
43568
+ components: {
43569
+ BaseComp: baseComp["default"]
43570
+ },
43571
+ props: {
43572
+ data: {
43573
+ type: Object,
43574
+ default: () => {
43575
+ return {};
43576
+ }
43577
+ },
43578
+ nowCompId: {
43579
+ type: [String, Number],
43580
+ default: ""
43581
+ },
43582
+ isOpcacity: {
43583
+ type: Boolean,
43584
+ default: true
43585
+ },
43586
+ lang: {
43587
+ type: String,
43588
+ default: "zh-HK"
43589
+ }
43590
+ },
43591
+ data() {
43592
+ return {
43593
+ configList: [],
43594
+ // 轮播
43595
+ swiperOne: null,
43596
+ swiperIdx: 0,
43597
+ swiperPlayVal: true
43598
+ };
43599
+ },
43600
+ created() {},
43601
+ mounted() {
43602
+ // if (this.configList.length > 0) {
43603
+ // this.initSwiper("bannerList");
43604
+ // }
43605
+ },
43606
+ watch: {},
43607
+ methods: {
43608
+ getConfigData(configData) {
43609
+ this.configList = configData.configList;
43610
+ this.$nextTick(() => {
43611
+ this.initSwiper();
43612
+ });
43613
+ },
43614
+ initSwiper() {
43615
+ const vm = this;
43616
+ if (this.configList.length > 0) {
43617
+ // 当广告个数大于1的时候才开启循环
43618
+ const ifLoop = this.configList.length > 1 ? true : false;
43619
+ this.swiperOne = new swiper_esm_bundle/* default */.A(`#contentSwiper${this.data.componentId}`, {
43620
+ initialSlide: 0,
43621
+ // 初始化时slide的索引
43622
+ autoplay: {
43623
+ // 自动开始
43624
+ delay: 5000,
43625
+ // 时间间隔
43626
+ disableOnInteraction: false // 手动操作轮播图后不会暂停
43627
+ },
43628
+ loop: ifLoop,
43629
+ // 循环模式选项
43630
+ spaceBetween: 30,
43631
+ // 在slide之间设置距离
43632
+ observer: true,
43633
+ observeParents: true,
43634
+ on: {
43635
+ slideChangeTransitionEnd: function () {
43636
+ // swiper从一个slide过渡到另一个slide结束时执行
43637
+ console.log("realIndex", this.realIndex);
43638
+ if (this.realIndex > vm.configList.length - 1) return;
43639
+ vm.swiperIdx = this.realIndex;
43640
+ },
43641
+ resize: function () {
43642
+ this.update(true);
43643
+ }
43644
+ }
43645
+ });
43646
+ }
43647
+ },
43648
+ // 轮播
43649
+ swiperPlay() {
43650
+ this.swiperPlayVal = !this.swiperPlayVal;
43651
+ this.swiperPlayVal ? this.swiperClickStart() : this.swiperClickStop();
43652
+ },
43653
+ swiperClickStop() {
43654
+ this.swiperOne.autoplay.stop();
43655
+ },
43656
+ swiperClickStart() {
43657
+ this.swiperOne.autoplay.start();
43658
+ },
43659
+ jumpToSlide(idx) {
43660
+ // banner 轮播PC
43661
+ console.log("PC点击了", idx);
43662
+ // 在Loop模式下Swiper切换到指定slide。切换到的是slide索引是realIndex
43663
+ this.swiperOne.slideToLoop(idx, 1000, false);
43664
+ this.swiperIdx = idx;
43665
+ },
43666
+ //跳转
43667
+ decodeJumpUrl(path, route) {
43668
+ (0,jumpUrl/* decodeJumpUrl */.u)(path, route);
43669
+ }
43670
+ }
43671
+ });
43672
+ ;// ./package/cms-banner/View.vue?vue&type=script&lang=js
43673
+ /* harmony default export */ var cms_banner_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
43674
+ ;// ./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-banner/View.vue?vue&type=style&index=0&id=379acd83&prod&scoped=true&lang=scss
43675
+ // extracted by mini-css-extract-plugin
43676
+
43677
+ ;// ./package/cms-banner/View.vue?vue&type=style&index=0&id=379acd83&prod&scoped=true&lang=scss
43678
+
43679
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
43680
+ var componentNormalizer = __webpack_require__(1656);
43681
+ ;// ./package/cms-banner/View.vue
43682
+
43683
+
43684
+
43685
+ ;
43686
+
43687
+
43688
+ /* normalize component */
43689
+
43690
+ var component = (0,componentNormalizer/* default */.A)(
43691
+ cms_banner_Viewvue_type_script_lang_js,
43692
+ render,
43693
+ staticRenderFns,
43694
+ false,
43695
+ null,
43696
+ "379acd83",
43697
+ null
43698
+
43699
+ )
43700
+
43701
+ /* harmony default export */ var View = (component.exports);
43702
+
43700
43703
  /***/ }),
43701
43704
 
43702
43705
  /***/ 6823: