cms-chenhj-ui 1.0.55 → 1.0.57

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.
@@ -25500,158 +25500,85 @@ __webpack_require__.d(__webpack_exports__, {
25500
25500
  "default": function() { return /* binding */ View; }
25501
25501
  });
25502
25502
 
25503
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-banner/View.vue?vue&type=template&id=33b2c1db&scoped=true
25503
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-question/View.vue?vue&type=template&id=4d8f5e87&scoped=true
25504
25504
  var render = function render() {
25505
+ var _vm$_stableProblemGui;
25505
25506
  var _vm = this,
25506
25507
  _c = _vm._self._c;
25507
25508
  return _c('div', {
25508
- staticClass: "test",
25509
25509
  class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? 'highLight' : ''],
25510
- staticStyle: {
25511
- "position": "relative",
25512
- "cursor": "pointer"
25513
- },
25514
25510
  style: _vm.style,
25515
25511
  on: {
25516
25512
  "click": function ($event) {
25517
25513
  $event.stopPropagation();
25518
- return _vm.handleNowComp();
25514
+ return _vm.handleNowComp.apply(null, arguments);
25519
25515
  }
25520
25516
  }
25521
25517
  }, [_c('div', {
25522
- staticClass: "content-swiper tt_banner"
25523
- }, [_vm.cmsConfig.bannerList.length > 0 ? _c('div', {
25524
- staticClass: "relative position"
25518
+ staticClass: "position",
25519
+ on: {
25520
+ "click": function ($event) {
25521
+ $event.stopPropagation();
25522
+ return _vm.handleNowComp.apply(null, arguments);
25523
+ }
25524
+ }
25525
+ }, [_c('section', {
25526
+ staticClass: "cmhk-home_main"
25525
25527
  }, [_c('div', {
25526
- staticClass: "my_banner"
25528
+ staticClass: "article"
25527
25529
  }, [_c('div', {
25528
- staticClass: "swiper-container_contentswiper",
25529
- attrs: {
25530
- "id": `contentSwiper${_vm.data.id}`
25531
- }
25530
+ staticClass: "pageCenter"
25532
25531
  }, [_c('div', {
25533
- staticClass: "swiper-wrapper",
25534
- staticStyle: {
25535
- "width": "1074px",
25536
- "height": "100%"
25537
- }
25538
- }, _vm._l(_vm.cmsConfig.bannerList, function (item, inx) {
25539
- return _c('div', {
25540
- key: inx,
25541
- staticClass: "swiper-slide"
25542
- }, [item ? _c('div', {
25543
- staticClass: "swiper-banner_box",
25532
+ staticClass: "family-problem-guide"
25533
+ }, [_c('div', {
25534
+ staticClass: "tab-header"
25535
+ }, [_c('ul', _vm._l(_vm._stableProblemGuide, function (item, index) {
25536
+ return _c('li', {
25537
+ key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
25538
+ class: _vm.problemActive == index ? 'active' : '',
25544
25539
  on: {
25545
25540
  "click": function ($event) {
25546
- return _vm.decodeJumpUrl(item.jumpUrl, _vm.$router);
25541
+ _vm.problemActive = index;
25547
25542
  }
25548
25543
  }
25549
- }, [_c('img', {
25550
- staticClass: "swiper-banner_image layout-pc",
25551
- attrs: {
25552
- "src": item.uploadImagePC,
25553
- "alt": "PC"
25554
- }
25555
- }), _c('img', {
25556
- staticClass: "swiper-banner_image layout-mobile",
25557
- attrs: {
25558
- "src": item.uploadImageH5,
25559
- "alt": "H5"
25560
- }
25561
- }), _c('div', {
25562
- staticClass: "extra-swiper_box layout-pc"
25563
- }, [item.title ? _c('div', {
25564
- staticClass: "swiper-contentbtn"
25565
- }, [_c('span', [_vm._v(_vm._s(item.title))])]) : _vm._e(), item.des ? _c('div', {
25566
- staticClass: "swiper-labels"
25567
- }, [_c('span', [_vm._v(_vm._s(item.des))])]) : _vm._e(), _c('div', {
25568
- staticClass: "swiper-btn_container"
25569
- }, [item.input1 != '' ? _c('a', {
25570
- attrs: {
25571
- "href": item.jumpUrl1,
25572
- "target": "_self"
25573
- }
25574
- }, [_c('button', {
25575
- staticClass: "swiper-opbtn have-arrow"
25576
- }, [_c('span', [_vm._v(_vm._s(item.input1))])])]) : _vm._e(), item.input2 != '' ? _c('a', {
25577
- attrs: {
25578
- "href": item.jumpUrl2,
25579
- "target": "_self"
25580
- }
25581
- }, [_c('button', {
25582
- staticClass: "swiper-opbtn_wt"
25583
- }, [_c('span', [_vm._v(_vm._s(item.input2))])])]) : _vm._e()])])]) : _vm._e()]);
25584
- }), 0)])]), _c('div', {
25585
- directives: [{
25586
- name: "show",
25587
- rawName: "v-show",
25588
- value: _vm.cmsConfig.bannerList[_vm.swiperIdx].input1 || _vm.cmsConfig.bannerList[_vm.swiperIdx].input2 || _vm.cmsConfig.bannerList[_vm.swiperIdx].input3 || _vm.cmsConfig.bannerList[_vm.swiperIdx].inputNew,
25589
- expression: "\n cmsConfig.bannerList[swiperIdx].input1 ||\n cmsConfig.bannerList[swiperIdx].input2 ||\n cmsConfig.bannerList[swiperIdx].input3 ||\n cmsConfig.bannerList[swiperIdx].inputNew\n "
25590
- }],
25591
- staticClass: "mb-swiper_box layout-mobile"
25592
- }, [_vm.cmsConfig.bannerList[_vm.swiperIdx].title ? _c('div', {
25593
- staticClass: "swiper-contentbtn"
25594
- }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].title))])]) : _vm._e(), _vm.cmsConfig.bannerList[_vm.swiperIdx].des ? _c('div', {
25595
- staticClass: "swiper-label"
25596
- }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].des))])]) : _vm._e(), _c('div', {
25597
- staticClass: "swiper-btn_container"
25598
- }, [_vm.cmsConfig.bannerList[_vm.swiperIdx].input1 ? _c('a', {
25599
- attrs: {
25600
- "href": _vm.cmsConfig.bannerList[_vm.swiperIdx].jumpUrl1,
25601
- "target": "_self"
25602
- }
25603
- }, [_c('button', {
25604
- staticClass: "swiper-opbtn have-arrow"
25605
- }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].input1))])])]) : _vm._e(), _vm.cmsConfig.bannerList[_vm.swiperIdx].input2 ? _c('a', {
25606
- attrs: {
25607
- "href": _vm.cmsConfig.bannerList[_vm.swiperIdx].jumpUrl2,
25608
- "target": "_self"
25609
- }
25610
- }, [_c('button', {
25611
- staticClass: "swiper-opbtn_wt have-arrow"
25612
- }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].input2))])])]) : _vm._e()])]), _vm.cmsConfig.bannerList.length > 1 ? _c('div', {
25613
- staticClass: "cmhk-swiper-button-number"
25614
- }, [_vm._l(_vm.cmsConfig.bannerList, function (item, idx) {
25615
- return _c('div', {
25616
- key: idx,
25617
- staticClass: "line-customs_wrapper",
25544
+ }, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.typeName) + " ")]);
25545
+ }), 0)]), _c('div', {
25546
+ staticClass: "tab-body tab-panel_body"
25547
+ }, [_c('dl', _vm._l(((_vm$_stableProblemGui = _vm._stableProblemGuide[_vm.problemActive]) === null || _vm$_stableProblemGui === void 0 ? void 0 : _vm$_stableProblemGui.contentArray) || [], function (item, index) {
25548
+ return _c('dd', {
25549
+ key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
25618
25550
  on: {
25619
25551
  "click": function ($event) {
25620
25552
  $event.stopPropagation();
25621
- return _vm.jumpToSlide(idx);
25553
+ return _vm.open(item, index, $event);
25622
25554
  }
25623
25555
  }
25624
25556
  }, [_c('div', {
25625
- class: ['cmhk-line-customs', idx === _vm.swiperIdx ? 'cmhk-line-customs-active' : '']
25626
- }, [item && item.input1 ? _c('div', {
25627
- staticClass: "swiper-popupup layout-pc"
25628
- }, [_c('p', {
25629
- staticClass: "swiper-popuptext"
25630
- }, [_vm._v(_vm._s(item.input1))])]) : _vm._e()])]);
25631
- }), _c('div', {
25632
- staticClass: "swiper-button-puase",
25633
- on: {
25634
- "click": function ($event) {
25635
- $event.stopPropagation();
25636
- return _vm.swiperPlay.apply(null, arguments);
25557
+ staticClass: "body-header"
25558
+ }, [_c('i', [_vm._v(_vm._s(index + 1))]), _vm._v(_vm._s(item.input1)), _c('span', {
25559
+ class: !item.status ? '' : 'active'
25560
+ }, [_vm._v(_vm._s(!item.status ? _vm.$t("roamIndex.Expand") : _vm.$t("roamIndex.Collpase")))])]), _c('div', {
25561
+ directives: [{
25562
+ name: "show",
25563
+ rawName: "v-show",
25564
+ value: _vm.expend == item.input1 && item.status,
25565
+ expression: "expend == item.input1 && item.status"
25566
+ }],
25567
+ staticClass: "body-main"
25568
+ }, [_c('div', {
25569
+ domProps: {
25570
+ "innerHTML": _vm._s(item.input2)
25637
25571
  }
25638
- }
25639
- }, [!_vm.swiperPlayVal ? _c('img', {
25640
- staticClass: "playstart-image",
25641
- attrs: {
25642
- "src": __webpack_require__(2254)
25643
- }
25644
- }) : _vm._e(), _vm.swiperPlayVal ? _c('img', {
25645
- staticClass: "playstop-image",
25646
- attrs: {
25647
- "src": __webpack_require__(2584)
25648
- }
25649
- }) : _vm._e()])], 2) : _vm._e()]) : _vm._e(), _c('div', {
25572
+ })])]);
25573
+ }), 0)])])])])]), _c('div', {
25650
25574
  class: {
25651
25575
  opcacity: _vm.isOpcacity
25652
25576
  },
25653
25577
  on: {
25654
- "click": _vm.handleNowComp
25578
+ "click": function ($event) {
25579
+ $event.stopPropagation();
25580
+ return _vm.handleNowComp.apply(null, arguments);
25581
+ }
25655
25582
  }
25656
25583
  })]), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
25657
25584
  staticClass: "com-delete"
@@ -25667,21 +25594,13 @@ var render = function render() {
25667
25594
  };
25668
25595
  var staticRenderFns = [];
25669
25596
 
25670
- ;// ./package/cms-banner/View.vue?vue&type=template&id=33b2c1db&scoped=true
25671
-
25672
25597
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
25673
25598
  var es_iterator_constructor = __webpack_require__(8111);
25674
25599
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
25675
25600
  var es_iterator_for_each = __webpack_require__(7588);
25676
- // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
25677
- var swiper = __webpack_require__(828);
25678
- // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
25679
- var swiper_esm_bundle = __webpack_require__(1532);
25680
- // EXTERNAL MODULE: ./src/utils/jumpUrl.js
25681
- var jumpUrl = __webpack_require__(4102);
25682
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-banner/View.vue?vue&type=script&lang=js
25683
-
25684
-
25601
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
25602
+ var es_iterator_map = __webpack_require__(1701);
25603
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-question/View.vue?vue&type=script&lang=js
25685
25604
 
25686
25605
 
25687
25606
 
@@ -25689,7 +25608,7 @@ var jumpUrl = __webpack_require__(4102);
25689
25608
 
25690
25609
 
25691
25610
  /* harmony default export */ var Viewvue_type_script_lang_js = ({
25692
- name: "cms-banner",
25611
+ name: "cms-question",
25693
25612
  props: {
25694
25613
  data: {
25695
25614
  type: Object,
@@ -25713,25 +25632,14 @@ var jumpUrl = __webpack_require__(4102);
25713
25632
  data() {
25714
25633
  return {
25715
25634
  style: {},
25716
- // 样式
25717
- isEditor: true,
25718
- cmsConfig: {
25719
- bannerList: []
25720
- },
25721
25635
  CN: [],
25722
25636
  HK: [],
25723
25637
  EN: [],
25724
- // 轮播
25725
- swiperOne: null,
25726
- swiperIdx: 0,
25727
- swiperPlayVal: true
25638
+ list: [],
25639
+ expend: "",
25640
+ problemActive: 0
25728
25641
  };
25729
25642
  },
25730
- created() {
25731
- if (this.$route.path != "/editor") {
25732
- this.isEditor = false;
25733
- }
25734
- },
25735
25643
  mounted() {
25736
25644
  if (this.$EventBus) {
25737
25645
  this.$EventBus.$on("forceUpdateCom", data => {
@@ -25744,9 +25652,6 @@ var jumpUrl = __webpack_require__(4102);
25744
25652
  }
25745
25653
  });
25746
25654
  }
25747
- if (this.cmsConfig.bannerList.length > 0) {
25748
- this.initSwiper("bannerList");
25749
- }
25750
25655
  },
25751
25656
  watch: {
25752
25657
  data: {
@@ -25760,7 +25665,6 @@ var jumpUrl = __webpack_require__(4102);
25760
25665
  val.settings.attribute.forEach(item => {
25761
25666
  obj[item.key] = item.value;
25762
25667
  });
25763
- this.style = obj;
25764
25668
  this.getValue(this.lang);
25765
25669
  },
25766
25670
  deep: true,
@@ -25781,7 +25685,20 @@ var jumpUrl = __webpack_require__(4102);
25781
25685
  "zh-HK": "HK",
25782
25686
  "en-US": "EN"
25783
25687
  };
25784
- this.cmsConfig.bannerList = this[`${obj[val]}`];
25688
+ this.list = this[`${obj[val]}`];
25689
+ },
25690
+ open(item, index, event) {
25691
+ var _this$list$this$probl;
25692
+ console.log(event);
25693
+ this.expend = item.input1;
25694
+ (_this$list$this$probl = this.list[this.problemActive]) === null || _this$list$this$probl === void 0 ? void 0 : _this$list$this$probl.contentArray.forEach((cur, curIndex) => {
25695
+ var _this$list$this$probl2;
25696
+ this.$set((_this$list$this$probl2 = this.list[this.problemActive]) === null || _this$list$this$probl2 === void 0 ? void 0 : _this$list$this$probl2.contentArray[curIndex], "status", curIndex == index ? !item.status : false);
25697
+ });
25698
+ },
25699
+ decodeJumpUrl(url) {
25700
+ if (!url) return;
25701
+ top.location.href = url;
25785
25702
  },
25786
25703
  handleNowComp() {
25787
25704
  if (!this.isOpcacity) return;
@@ -25795,75 +25712,33 @@ var jumpUrl = __webpack_require__(4102);
25795
25712
  this.$EventBus.$emit("handleDeleteComp", {
25796
25713
  key: this.data.id
25797
25714
  });
25798
- },
25799
- initSwiper(operationName) {
25800
- const vm = this;
25801
- if (operationName === "bannerList" && this.cmsConfig.bannerList.length > 0) {
25802
- // 当广告个数大于1的时候才开启循环
25803
- const ifLoop = this.cmsConfig.bannerList.length > 1 ? true : false;
25804
- this.swiperOne = new swiper_esm_bundle/* default */.A(`#contentSwiper${this.data.id}`, {
25805
- initialSlide: 0,
25806
- // 初始化时slide的索引
25807
- autoplay: {
25808
- // 自动开始
25809
- delay: 5000,
25810
- // 时间间隔
25811
- disableOnInteraction: false // 手动操作轮播图后不会暂停
25812
- },
25813
- loop: ifLoop,
25814
- // 循环模式选项
25815
- spaceBetween: 30,
25816
- // 在slide之间设置距离
25817
- observer: true,
25818
- observeParents: true,
25819
- on: {
25820
- slideChangeTransitionEnd: function () {
25821
- // swiper从一个slide过渡到另一个slide结束时执行
25822
- console.log("realIndex", this.realIndex);
25823
- if (this.realIndex > vm.cmsConfig.bannerList.length - 1) return;
25824
- vm.swiperIdx = this.realIndex;
25825
- },
25826
- resize: function () {
25827
- this.update(true);
25828
- }
25829
- }
25830
- });
25831
- }
25832
- },
25833
- // 轮播
25834
- swiperPlay() {
25835
- this.swiperPlayVal = !this.swiperPlayVal;
25836
- this.swiperPlayVal ? this.swiperClickStart() : this.swiperClickStop();
25837
- },
25838
- swiperClickStop() {
25839
- this.swiperOne.autoplay.stop();
25840
- },
25841
- swiperClickStart() {
25842
- this.swiperOne.autoplay.start();
25843
- },
25844
- jumpToSlide(idx) {
25845
- // banner 轮播PC
25846
- console.log("PC点击了", idx);
25847
- // 在Loop模式下Swiper切换到指定slide。切换到的是slide索引是realIndex
25848
- this.swiperOne.slideToLoop(idx, 1000, false);
25849
- this.swiperIdx = idx;
25850
- },
25851
- //跳转
25852
- decodeJumpUrl(path, route) {
25853
- (0,jumpUrl/* decodeJumpUrl */.u)(path, route);
25715
+ }
25716
+ },
25717
+ computed: {
25718
+ _stableProblemGuide() {
25719
+ let res = this.list || [];
25720
+ return res.map(item => {
25721
+ return {
25722
+ ...item,
25723
+ contentArray: ((item === null || item === void 0 ? void 0 : item.contentArray) || []).map(cur => ({
25724
+ ...cur,
25725
+ status: (cur === null || cur === void 0 ? void 0 : cur.status) || false
25726
+ }))
25727
+ };
25728
+ });
25854
25729
  }
25855
25730
  }
25856
25731
  });
25857
- ;// ./package/cms-banner/View.vue?vue&type=script&lang=js
25858
- /* harmony default export */ var cms_banner_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
25859
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-banner/View.vue?vue&type=style&index=0&id=33b2c1db&prod&scoped=true&lang=scss
25732
+ ;// ./package/cms-question/View.vue?vue&type=script&lang=js
25733
+ /* harmony default export */ var cms_question_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
25734
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-question/View.vue?vue&type=style&index=0&id=4d8f5e87&prod&lang=scss&scoped=true
25860
25735
  // extracted by mini-css-extract-plugin
25861
25736
 
25862
- ;// ./package/cms-banner/View.vue?vue&type=style&index=0&id=33b2c1db&prod&scoped=true&lang=scss
25737
+ ;// ./package/cms-question/View.vue?vue&type=style&index=0&id=4d8f5e87&prod&lang=scss&scoped=true
25863
25738
 
25864
25739
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
25865
25740
  var componentNormalizer = __webpack_require__(1656);
25866
- ;// ./package/cms-banner/View.vue
25741
+ ;// ./package/cms-question/View.vue
25867
25742
 
25868
25743
 
25869
25744
 
@@ -25873,12 +25748,12 @@ var componentNormalizer = __webpack_require__(1656);
25873
25748
  /* normalize component */
25874
25749
 
25875
25750
  var component = (0,componentNormalizer/* default */.A)(
25876
- cms_banner_Viewvue_type_script_lang_js,
25751
+ cms_question_Viewvue_type_script_lang_js,
25877
25752
  render,
25878
25753
  staticRenderFns,
25879
25754
  false,
25880
25755
  null,
25881
- "33b2c1db",
25756
+ "4d8f5e87",
25882
25757
  null
25883
25758
 
25884
25759
  )
@@ -38263,7 +38138,7 @@ var map = {
38263
38138
  "./cms-aLineThreeLeftTwo/View.vue": 149,
38264
38139
  "./cms-activityCountdown/View.vue": 5591,
38265
38140
  "./cms-activityTime/View.vue": 4879,
38266
- "./cms-banner/View.vue": 2903,
38141
+ "./cms-banner/View.vue": 6274,
38267
38142
  "./cms-breadCrumb/View.vue": 1263,
38268
38143
  "./cms-button/View.vue": 7081,
38269
38144
  "./cms-cells/View.vue": 2442,
@@ -38281,7 +38156,7 @@ var map = {
38281
38156
  "./cms-proCard/View.vue": 5572,
38282
38157
  "./cms-prodCustomization/View.vue": 4249,
38283
38158
  "./cms-productDetails/View.vue": 8167,
38284
- "./cms-question/View.vue": 5284,
38159
+ "./cms-question/View.vue": 2903,
38285
38160
  "./cms-richText/View.vue": 7182,
38286
38161
  "./cms-row/View.vue": 1610,
38287
38162
  "./cms-servePlan-tab/View.vue": 3858,
@@ -38319,386 +38194,112 @@ webpackContext.id = 5184;
38319
38194
 
38320
38195
  /***/ }),
38321
38196
 
38322
- /***/ 5284:
38323
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
38197
+ /***/ 5370:
38198
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
38324
38199
 
38325
38200
  "use strict";
38326
- // ESM COMPAT FLAG
38327
- __webpack_require__.r(__webpack_exports__);
38328
38201
 
38329
- // EXPORTS
38330
- __webpack_require__.d(__webpack_exports__, {
38331
- "default": function() { return /* binding */ View; }
38332
- });
38202
+ var lengthOfArrayLike = __webpack_require__(6198);
38333
38203
 
38334
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-question/View.vue?vue&type=template&id=4d8f5e87&scoped=true
38335
- var render = function render() {
38336
- var _vm$_stableProblemGui;
38337
- var _vm = this,
38338
- _c = _vm._self._c;
38339
- return _c('div', {
38340
- class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? 'highLight' : ''],
38341
- style: _vm.style,
38342
- on: {
38343
- "click": function ($event) {
38344
- $event.stopPropagation();
38345
- return _vm.handleNowComp.apply(null, arguments);
38346
- }
38347
- }
38348
- }, [_c('div', {
38349
- staticClass: "position",
38350
- on: {
38351
- "click": function ($event) {
38352
- $event.stopPropagation();
38353
- return _vm.handleNowComp.apply(null, arguments);
38354
- }
38355
- }
38356
- }, [_c('section', {
38357
- staticClass: "cmhk-home_main"
38358
- }, [_c('div', {
38359
- staticClass: "article"
38360
- }, [_c('div', {
38361
- staticClass: "pageCenter"
38362
- }, [_c('div', {
38363
- staticClass: "family-problem-guide"
38364
- }, [_c('div', {
38365
- staticClass: "tab-header"
38366
- }, [_c('ul', _vm._l(_vm._stableProblemGuide, function (item, index) {
38367
- return _c('li', {
38368
- key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
38369
- class: _vm.problemActive == index ? 'active' : '',
38370
- on: {
38371
- "click": function ($event) {
38372
- _vm.problemActive = index;
38373
- }
38374
- }
38375
- }, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.typeName) + " ")]);
38376
- }), 0)]), _c('div', {
38377
- staticClass: "tab-body tab-panel_body"
38378
- }, [_c('dl', _vm._l(((_vm$_stableProblemGui = _vm._stableProblemGuide[_vm.problemActive]) === null || _vm$_stableProblemGui === void 0 ? void 0 : _vm$_stableProblemGui.contentArray) || [], function (item, index) {
38379
- return _c('dd', {
38380
- key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
38381
- on: {
38382
- "click": function ($event) {
38383
- $event.stopPropagation();
38384
- return _vm.open(item, index, $event);
38385
- }
38386
- }
38387
- }, [_c('div', {
38388
- staticClass: "body-header"
38389
- }, [_c('i', [_vm._v(_vm._s(index + 1))]), _vm._v(_vm._s(item.input1)), _c('span', {
38390
- class: !item.status ? '' : 'active'
38391
- }, [_vm._v(_vm._s(!item.status ? _vm.$t("roamIndex.Expand") : _vm.$t("roamIndex.Collpase")))])]), _c('div', {
38392
- directives: [{
38393
- name: "show",
38394
- rawName: "v-show",
38395
- value: _vm.expend == item.input1 && item.status,
38396
- expression: "expend == item.input1 && item.status"
38397
- }],
38398
- staticClass: "body-main"
38399
- }, [_c('div', {
38400
- domProps: {
38401
- "innerHTML": _vm._s(item.input2)
38402
- }
38403
- })])]);
38404
- }), 0)])])])])]), _c('div', {
38405
- class: {
38406
- opcacity: _vm.isOpcacity
38407
- },
38408
- on: {
38409
- "click": function ($event) {
38410
- $event.stopPropagation();
38411
- return _vm.handleNowComp.apply(null, arguments);
38412
- }
38413
- }
38414
- })]), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
38415
- staticClass: "com-delete"
38416
- }, [_c('i', {
38417
- staticClass: "el-icon-delete",
38418
- on: {
38419
- "click": function ($event) {
38420
- $event.stopPropagation();
38421
- return _vm.deleteComponent.apply(null, arguments);
38422
- }
38423
- }
38424
- })]) : _vm._e()]);
38204
+ module.exports = function (Constructor, list, $length) {
38205
+ var index = 0;
38206
+ var length = arguments.length > 2 ? $length : lengthOfArrayLike(list);
38207
+ var result = new Constructor(length);
38208
+ while (length > index) result[index] = list[index++];
38209
+ return result;
38425
38210
  };
38426
- var staticRenderFns = [];
38427
38211
 
38428
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
38429
- var es_iterator_constructor = __webpack_require__(8111);
38430
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
38431
- var es_iterator_for_each = __webpack_require__(7588);
38432
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
38433
- var es_iterator_map = __webpack_require__(1701);
38434
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-question/View.vue?vue&type=script&lang=js
38435
38212
 
38213
+ /***/ }),
38436
38214
 
38215
+ /***/ 5397:
38216
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
38437
38217
 
38218
+ "use strict";
38438
38219
 
38220
+ // toObject with fallback for non-array-like ES3 strings
38221
+ var IndexedObject = __webpack_require__(7055);
38222
+ var requireObjectCoercible = __webpack_require__(7750);
38439
38223
 
38224
+ module.exports = function (it) {
38225
+ return IndexedObject(requireObjectCoercible(it));
38226
+ };
38440
38227
 
38441
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
38442
- name: "cms-question",
38443
- props: {
38444
- data: {
38445
- type: Object,
38446
- default: () => {
38447
- return {};
38228
+
38229
+ /***/ }),
38230
+
38231
+ /***/ 5434:
38232
+ /***/ (function(__unused_webpack_module, exports) {
38233
+
38234
+ "use strict";
38235
+
38236
+
38237
+ exports.__esModule = true;
38238
+ exports["default"] = {
38239
+ el: {
38240
+ colorpicker: {
38241
+ confirm: '确定',
38242
+ clear: '清空'
38243
+ },
38244
+ datepicker: {
38245
+ now: '此刻',
38246
+ today: '今天',
38247
+ cancel: '取消',
38248
+ clear: '清空',
38249
+ confirm: '确定',
38250
+ selectDate: '选择日期',
38251
+ selectTime: '选择时间',
38252
+ startDate: '开始日期',
38253
+ startTime: '开始时间',
38254
+ endDate: '结束日期',
38255
+ endTime: '结束时间',
38256
+ prevYear: '前一年',
38257
+ nextYear: '后一年',
38258
+ prevMonth: '上个月',
38259
+ nextMonth: '下个月',
38260
+ year: '年',
38261
+ month1: '1 月',
38262
+ month2: '2 月',
38263
+ month3: '3 月',
38264
+ month4: '4 月',
38265
+ month5: '5 月',
38266
+ month6: '6 月',
38267
+ month7: '7 月',
38268
+ month8: '8 月',
38269
+ month9: '9 月',
38270
+ month10: '10 月',
38271
+ month11: '11 月',
38272
+ month12: '12 月',
38273
+ // week: '周次',
38274
+ weeks: {
38275
+ sun: '日',
38276
+ mon: '一',
38277
+ tue: '二',
38278
+ wed: '三',
38279
+ thu: '四',
38280
+ fri: '五',
38281
+ sat: '六'
38282
+ },
38283
+ months: {
38284
+ jan: '一月',
38285
+ feb: '二月',
38286
+ mar: '三月',
38287
+ apr: '四月',
38288
+ may: '五月',
38289
+ jun: '六月',
38290
+ jul: '七月',
38291
+ aug: '八月',
38292
+ sep: '九月',
38293
+ oct: '十月',
38294
+ nov: '十一月',
38295
+ dec: '十二月'
38448
38296
  }
38449
38297
  },
38450
- nowCompId: {
38451
- type: [String, Number],
38452
- default: ""
38453
- },
38454
- isOpcacity: {
38455
- type: Boolean,
38456
- default: true
38457
- },
38458
- lang: {
38459
- type: String,
38460
- default: "zh-HK"
38461
- }
38462
- },
38463
- data() {
38464
- return {
38465
- style: {},
38466
- CN: [],
38467
- HK: [],
38468
- EN: [],
38469
- list: [],
38470
- expend: "",
38471
- problemActive: 0
38472
- };
38473
- },
38474
- mounted() {
38475
- if (this.$EventBus) {
38476
- this.$EventBus.$on("forceUpdateCom", data => {
38477
- if (data.id == this.data.id) {
38478
- let obj = {};
38479
- data.settings.attribute.forEach(item => {
38480
- obj[item.key] = item.value;
38481
- });
38482
- this.style = obj;
38483
- }
38484
- });
38485
- }
38486
- },
38487
- watch: {
38488
- data: {
38489
- handler(val) {
38490
- let obj = {};
38491
- val.settings.settings.forEach(item => {
38492
- this.CN = item.value.bannerList.CN;
38493
- this.HK = item.value.bannerList.HK;
38494
- this.EN = item.value.bannerList.EN;
38495
- });
38496
- val.settings.attribute.forEach(item => {
38497
- obj[item.key] = item.value;
38498
- });
38499
- this.getValue(this.lang);
38500
- },
38501
- deep: true,
38502
- immediate: true
38503
- },
38504
- lang: {
38505
- handler(val) {
38506
- this.getValue(val);
38507
- },
38508
- deep: true,
38509
- immediate: true
38510
- }
38511
- },
38512
- methods: {
38513
- getValue(val) {
38514
- const obj = {
38515
- "zh-CN": "CN",
38516
- "zh-HK": "HK",
38517
- "en-US": "EN"
38518
- };
38519
- this.list = this[`${obj[val]}`];
38520
- },
38521
- open(item, index, event) {
38522
- var _this$list$this$probl;
38523
- console.log(event);
38524
- this.expend = item.input1;
38525
- (_this$list$this$probl = this.list[this.problemActive]) === null || _this$list$this$probl === void 0 ? void 0 : _this$list$this$probl.contentArray.forEach((cur, curIndex) => {
38526
- var _this$list$this$probl2;
38527
- this.$set((_this$list$this$probl2 = this.list[this.problemActive]) === null || _this$list$this$probl2 === void 0 ? void 0 : _this$list$this$probl2.contentArray[curIndex], "status", curIndex == index ? !item.status : false);
38528
- });
38529
- },
38530
- decodeJumpUrl(url) {
38531
- if (!url) return;
38532
- top.location.href = url;
38533
- },
38534
- handleNowComp() {
38535
- if (!this.isOpcacity) return;
38536
- this.$EventBus.$emit("handleNowComp", {
38537
- key: this.data.id,
38538
- settings: this.data.settings,
38539
- nowCompName: this.data.compName
38540
- });
38541
- },
38542
- deleteComponent() {
38543
- this.$EventBus.$emit("handleDeleteComp", {
38544
- key: this.data.id
38545
- });
38546
- }
38547
- },
38548
- computed: {
38549
- _stableProblemGuide() {
38550
- let res = this.list || [];
38551
- return res.map(item => {
38552
- return {
38553
- ...item,
38554
- contentArray: ((item === null || item === void 0 ? void 0 : item.contentArray) || []).map(cur => ({
38555
- ...cur,
38556
- status: (cur === null || cur === void 0 ? void 0 : cur.status) || false
38557
- }))
38558
- };
38559
- });
38560
- }
38561
- }
38562
- });
38563
- ;// ./package/cms-question/View.vue?vue&type=script&lang=js
38564
- /* harmony default export */ var cms_question_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
38565
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-question/View.vue?vue&type=style&index=0&id=4d8f5e87&prod&lang=scss&scoped=true
38566
- // extracted by mini-css-extract-plugin
38567
-
38568
- ;// ./package/cms-question/View.vue?vue&type=style&index=0&id=4d8f5e87&prod&lang=scss&scoped=true
38569
-
38570
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
38571
- var componentNormalizer = __webpack_require__(1656);
38572
- ;// ./package/cms-question/View.vue
38573
-
38574
-
38575
-
38576
- ;
38577
-
38578
-
38579
- /* normalize component */
38580
-
38581
- var component = (0,componentNormalizer/* default */.A)(
38582
- cms_question_Viewvue_type_script_lang_js,
38583
- render,
38584
- staticRenderFns,
38585
- false,
38586
- null,
38587
- "4d8f5e87",
38588
- null
38589
-
38590
- )
38591
-
38592
- /* harmony default export */ var View = (component.exports);
38593
-
38594
- /***/ }),
38595
-
38596
- /***/ 5370:
38597
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
38598
-
38599
- "use strict";
38600
-
38601
- var lengthOfArrayLike = __webpack_require__(6198);
38602
-
38603
- module.exports = function (Constructor, list, $length) {
38604
- var index = 0;
38605
- var length = arguments.length > 2 ? $length : lengthOfArrayLike(list);
38606
- var result = new Constructor(length);
38607
- while (length > index) result[index] = list[index++];
38608
- return result;
38609
- };
38610
-
38611
-
38612
- /***/ }),
38613
-
38614
- /***/ 5397:
38615
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
38616
-
38617
- "use strict";
38618
-
38619
- // toObject with fallback for non-array-like ES3 strings
38620
- var IndexedObject = __webpack_require__(7055);
38621
- var requireObjectCoercible = __webpack_require__(7750);
38622
-
38623
- module.exports = function (it) {
38624
- return IndexedObject(requireObjectCoercible(it));
38625
- };
38626
-
38627
-
38628
- /***/ }),
38629
-
38630
- /***/ 5434:
38631
- /***/ (function(__unused_webpack_module, exports) {
38632
-
38633
- "use strict";
38634
-
38635
-
38636
- exports.__esModule = true;
38637
- exports["default"] = {
38638
- el: {
38639
- colorpicker: {
38640
- confirm: '确定',
38641
- clear: '清空'
38642
- },
38643
- datepicker: {
38644
- now: '此刻',
38645
- today: '今天',
38646
- cancel: '取消',
38647
- clear: '清空',
38648
- confirm: '确定',
38649
- selectDate: '选择日期',
38650
- selectTime: '选择时间',
38651
- startDate: '开始日期',
38652
- startTime: '开始时间',
38653
- endDate: '结束日期',
38654
- endTime: '结束时间',
38655
- prevYear: '前一年',
38656
- nextYear: '后一年',
38657
- prevMonth: '上个月',
38658
- nextMonth: '下个月',
38659
- year: '年',
38660
- month1: '1 月',
38661
- month2: '2 月',
38662
- month3: '3 月',
38663
- month4: '4 月',
38664
- month5: '5 月',
38665
- month6: '6 月',
38666
- month7: '7 月',
38667
- month8: '8 月',
38668
- month9: '9 月',
38669
- month10: '10 月',
38670
- month11: '11 月',
38671
- month12: '12 月',
38672
- // week: '周次',
38673
- weeks: {
38674
- sun: '日',
38675
- mon: '一',
38676
- tue: '二',
38677
- wed: '三',
38678
- thu: '四',
38679
- fri: '五',
38680
- sat: '六'
38681
- },
38682
- months: {
38683
- jan: '一月',
38684
- feb: '二月',
38685
- mar: '三月',
38686
- apr: '四月',
38687
- may: '五月',
38688
- jun: '六月',
38689
- jul: '七月',
38690
- aug: '八月',
38691
- sep: '九月',
38692
- oct: '十月',
38693
- nov: '十一月',
38694
- dec: '十二月'
38695
- }
38696
- },
38697
- select: {
38698
- loading: '加载中',
38699
- noMatch: '无匹配数据',
38700
- noData: '无数据',
38701
- placeholder: '请选择'
38298
+ select: {
38299
+ loading: '加载中',
38300
+ noMatch: '无匹配数据',
38301
+ noData: '无数据',
38302
+ placeholder: '请选择'
38702
38303
  },
38703
38304
  cascader: {
38704
38305
  noMatch: '无匹配数据',
@@ -43643,6 +43244,405 @@ var component = (0,componentNormalizer/* default */.A)(
43643
43244
  module.exports = {};
43644
43245
 
43645
43246
 
43247
+ /***/ }),
43248
+
43249
+ /***/ 6274:
43250
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
43251
+
43252
+ "use strict";
43253
+ // ESM COMPAT FLAG
43254
+ __webpack_require__.r(__webpack_exports__);
43255
+
43256
+ // EXPORTS
43257
+ __webpack_require__.d(__webpack_exports__, {
43258
+ "default": function() { return /* binding */ View; }
43259
+ });
43260
+
43261
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-banner/View.vue?vue&type=template&id=504b8057&scoped=true
43262
+ var render = function render() {
43263
+ var _vm = this,
43264
+ _c = _vm._self._c;
43265
+ return _c('div', {
43266
+ staticClass: "test",
43267
+ class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? 'highLight' : ''],
43268
+ staticStyle: {
43269
+ "position": "relative",
43270
+ "cursor": "pointer"
43271
+ },
43272
+ style: _vm.style,
43273
+ on: {
43274
+ "click": function ($event) {
43275
+ $event.stopPropagation();
43276
+ return _vm.handleNowComp();
43277
+ }
43278
+ }
43279
+ }, [_c('div', {
43280
+ staticClass: "content-swiper tt_banner"
43281
+ }, [_vm.cmsConfig.bannerList.length > 0 ? _c('div', {
43282
+ staticClass: "relative position"
43283
+ }, [_c('div', {
43284
+ staticClass: "my_banner"
43285
+ }, [_c('div', {
43286
+ staticClass: "swiper-container_contentswiper",
43287
+ attrs: {
43288
+ "id": `contentSwiper${_vm.data.id}`
43289
+ }
43290
+ }, [_c('div', {
43291
+ staticClass: "swiper-wrapper",
43292
+ staticStyle: {
43293
+ "width": "1074px",
43294
+ "height": "100%"
43295
+ }
43296
+ }, _vm._l(_vm.cmsConfig.bannerList, function (item, inx) {
43297
+ return _c('div', {
43298
+ key: inx,
43299
+ staticClass: "swiper-slide"
43300
+ }, [item ? _c('div', {
43301
+ staticClass: "swiper-banner_box",
43302
+ on: {
43303
+ "click": function ($event) {
43304
+ return _vm.decodeJumpUrl(item.jumpUrl, _vm.$router);
43305
+ }
43306
+ }
43307
+ }, [_c('img', {
43308
+ staticClass: "swiper-banner_image layout-pc",
43309
+ attrs: {
43310
+ "src": item.uploadImagePC,
43311
+ "alt": "PC"
43312
+ }
43313
+ }), _c('img', {
43314
+ staticClass: "swiper-banner_image layout-mobile",
43315
+ attrs: {
43316
+ "src": item.uploadImageH5,
43317
+ "alt": "H5"
43318
+ }
43319
+ }), _c('div', {
43320
+ staticClass: "extra-swiper_box layout-pc"
43321
+ }, [item.title ? _c('div', {
43322
+ staticClass: "swiper-contentbtn"
43323
+ }, [_c('span', [_vm._v(_vm._s(item.title))])]) : _vm._e(), item.des ? _c('div', {
43324
+ staticClass: "swiper-labels"
43325
+ }, [_c('span', [_vm._v(_vm._s(item.des))])]) : _vm._e(), _c('div', {
43326
+ staticClass: "swiper-btn_container"
43327
+ }, [item.input1 != '' ? _c('a', {
43328
+ attrs: {
43329
+ "href": item.jumpUrl1,
43330
+ "target": "_self"
43331
+ }
43332
+ }, [_c('button', {
43333
+ staticClass: "swiper-opbtn have-arrow"
43334
+ }, [_c('span', [_vm._v(_vm._s(item.input1))])])]) : _vm._e(), item.input2 != '' ? _c('a', {
43335
+ attrs: {
43336
+ "href": item.jumpUrl2,
43337
+ "target": "_self"
43338
+ }
43339
+ }, [_c('button', {
43340
+ staticClass: "swiper-opbtn_wt"
43341
+ }, [_c('span', [_vm._v(_vm._s(item.input2))])])]) : _vm._e()])])]) : _vm._e()]);
43342
+ }), 0)])]), _c('div', {
43343
+ directives: [{
43344
+ name: "show",
43345
+ rawName: "v-show",
43346
+ value: _vm.cmsConfig.bannerList[_vm.swiperIdx].input1 || _vm.cmsConfig.bannerList[_vm.swiperIdx].input2 || _vm.cmsConfig.bannerList[_vm.swiperIdx].input3 || _vm.cmsConfig.bannerList[_vm.swiperIdx].inputNew,
43347
+ expression: "\n cmsConfig.bannerList[swiperIdx].input1 ||\n cmsConfig.bannerList[swiperIdx].input2 ||\n cmsConfig.bannerList[swiperIdx].input3 ||\n cmsConfig.bannerList[swiperIdx].inputNew\n "
43348
+ }],
43349
+ staticClass: "mb-swiper_box layout-mobile"
43350
+ }, [_vm.cmsConfig.bannerList[_vm.swiperIdx].title ? _c('div', {
43351
+ staticClass: "swiper-contentbtn"
43352
+ }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].title))])]) : _vm._e(), _vm.cmsConfig.bannerList[_vm.swiperIdx].des ? _c('div', {
43353
+ staticClass: "swiper-label"
43354
+ }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].des))])]) : _vm._e(), _c('div', {
43355
+ staticClass: "swiper-btn_container"
43356
+ }, [_vm.cmsConfig.bannerList[_vm.swiperIdx].input1 ? _c('a', {
43357
+ attrs: {
43358
+ "href": _vm.cmsConfig.bannerList[_vm.swiperIdx].jumpUrl1,
43359
+ "target": "_self"
43360
+ }
43361
+ }, [_c('button', {
43362
+ staticClass: "swiper-opbtn have-arrow"
43363
+ }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].input1))])])]) : _vm._e(), _vm.cmsConfig.bannerList[_vm.swiperIdx].input2 ? _c('a', {
43364
+ attrs: {
43365
+ "href": _vm.cmsConfig.bannerList[_vm.swiperIdx].jumpUrl2,
43366
+ "target": "_self"
43367
+ }
43368
+ }, [_c('button', {
43369
+ staticClass: "swiper-opbtn_wt have-arrow"
43370
+ }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].input2))])])]) : _vm._e()])]), _vm.cmsConfig.bannerList.length > 1 ? _c('div', {
43371
+ staticClass: "cmhk-swiper-button-number"
43372
+ }, [_vm._l(_vm.cmsConfig.bannerList, function (item, idx) {
43373
+ return _c('div', {
43374
+ key: idx,
43375
+ staticClass: "line-customs_wrapper",
43376
+ on: {
43377
+ "click": function ($event) {
43378
+ $event.stopPropagation();
43379
+ return _vm.jumpToSlide(idx);
43380
+ }
43381
+ }
43382
+ }, [_c('div', {
43383
+ class: ['cmhk-line-customs', idx === _vm.swiperIdx ? 'cmhk-line-customs-active' : '']
43384
+ }, [item && item.input1 ? _c('div', {
43385
+ staticClass: "swiper-popupup layout-pc"
43386
+ }, [_c('p', {
43387
+ staticClass: "swiper-popuptext"
43388
+ }, [_vm._v(_vm._s(item.input1))])]) : _vm._e()])]);
43389
+ }), _c('div', {
43390
+ staticClass: "swiper-button-puase",
43391
+ on: {
43392
+ "click": function ($event) {
43393
+ $event.stopPropagation();
43394
+ return _vm.swiperPlay.apply(null, arguments);
43395
+ }
43396
+ }
43397
+ }, [!_vm.swiperPlayVal ? _c('img', {
43398
+ staticClass: "playstart-image",
43399
+ attrs: {
43400
+ "src": __webpack_require__(2254)
43401
+ }
43402
+ }) : _vm._e(), _vm.swiperPlayVal ? _c('img', {
43403
+ staticClass: "playstop-image",
43404
+ attrs: {
43405
+ "src": __webpack_require__(2584)
43406
+ }
43407
+ }) : _vm._e()])], 2) : _vm._e()]) : _vm._e(), _c('div', {
43408
+ class: {
43409
+ opcacity: _vm.isOpcacity
43410
+ },
43411
+ on: {
43412
+ "click": _vm.handleNowComp
43413
+ }
43414
+ })]), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
43415
+ staticClass: "com-delete"
43416
+ }, [_c('i', {
43417
+ staticClass: "el-icon-delete",
43418
+ on: {
43419
+ "click": function ($event) {
43420
+ $event.stopPropagation();
43421
+ return _vm.deleteComponent.apply(null, arguments);
43422
+ }
43423
+ }
43424
+ })]) : _vm._e()]);
43425
+ };
43426
+ var staticRenderFns = [];
43427
+
43428
+ ;// ./package/cms-banner/View.vue?vue&type=template&id=504b8057&scoped=true
43429
+
43430
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
43431
+ var es_iterator_constructor = __webpack_require__(8111);
43432
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
43433
+ var es_iterator_for_each = __webpack_require__(7588);
43434
+ // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
43435
+ var swiper = __webpack_require__(828);
43436
+ // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
43437
+ var swiper_esm_bundle = __webpack_require__(1532);
43438
+ // EXTERNAL MODULE: ./src/utils/jumpUrl.js
43439
+ var jumpUrl = __webpack_require__(4102);
43440
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-banner/View.vue?vue&type=script&lang=js
43441
+
43442
+
43443
+
43444
+
43445
+
43446
+
43447
+
43448
+
43449
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
43450
+ name: "cms-banner",
43451
+ props: {
43452
+ data: {
43453
+ type: Object,
43454
+ default: () => {
43455
+ return {};
43456
+ }
43457
+ },
43458
+ nowCompId: {
43459
+ type: [String, Number],
43460
+ default: ""
43461
+ },
43462
+ isOpcacity: {
43463
+ type: Boolean,
43464
+ default: true
43465
+ },
43466
+ lang: {
43467
+ type: String,
43468
+ default: "zh-HK"
43469
+ }
43470
+ },
43471
+ data() {
43472
+ return {
43473
+ style: {},
43474
+ // 样式
43475
+ isEditor: true,
43476
+ cmsConfig: {
43477
+ bannerList: []
43478
+ },
43479
+ CN: [],
43480
+ HK: [],
43481
+ EN: [],
43482
+ // 轮播
43483
+ swiperOne: null,
43484
+ swiperIdx: 0,
43485
+ swiperPlayVal: true
43486
+ };
43487
+ },
43488
+ created() {
43489
+ if (this.$route.path != "/editor") {
43490
+ this.isEditor = false;
43491
+ }
43492
+ },
43493
+ mounted() {
43494
+ if (this.$EventBus) {
43495
+ this.$EventBus.$on("forceUpdateCom", data => {
43496
+ if (data.id == this.data.id) {
43497
+ let obj = {};
43498
+ data.settings.attribute.forEach(item => {
43499
+ obj[item.key] = item.value;
43500
+ });
43501
+ this.style = obj;
43502
+ }
43503
+ });
43504
+ }
43505
+ if (this.cmsConfig.bannerList.length > 0) {
43506
+ this.initSwiper("bannerList");
43507
+ }
43508
+ },
43509
+ watch: {
43510
+ data: {
43511
+ handler(val) {
43512
+ let obj = {};
43513
+ val.settings.settings.forEach(item => {
43514
+ this.CN = item.value.bannerList.CN;
43515
+ this.HK = item.value.bannerList.HK;
43516
+ this.EN = item.value.bannerList.EN;
43517
+ });
43518
+ val.settings.attribute.forEach(item => {
43519
+ obj[item.key] = item.value;
43520
+ });
43521
+ this.style = obj;
43522
+ this.getValue(this.lang);
43523
+ },
43524
+ deep: true,
43525
+ immediate: true
43526
+ },
43527
+ lang: {
43528
+ handler(val) {
43529
+ this.getValue(val);
43530
+ },
43531
+ deep: true,
43532
+ immediate: true
43533
+ }
43534
+ },
43535
+ methods: {
43536
+ getValue(val) {
43537
+ const obj = {
43538
+ "zh-CN": "CN",
43539
+ "zh-HK": "HK",
43540
+ "en-US": "EN"
43541
+ };
43542
+ this.cmsConfig.bannerList = this[`${obj[val]}`];
43543
+ },
43544
+ handleNowComp() {
43545
+ if (!this.isOpcacity) return;
43546
+ this.$EventBus.$emit("handleNowComp", {
43547
+ key: this.data.id,
43548
+ settings: this.data.settings,
43549
+ nowCompName: this.data.compName
43550
+ });
43551
+ },
43552
+ deleteComponent() {
43553
+ this.$EventBus.$emit("handleDeleteComp", {
43554
+ key: this.data.id
43555
+ });
43556
+ },
43557
+ initSwiper(operationName) {
43558
+ const vm = this;
43559
+ if (operationName === "bannerList" && this.cmsConfig.bannerList.length > 0) {
43560
+ // 当广告个数大于1的时候才开启循环
43561
+ const ifLoop = this.cmsConfig.bannerList.length > 1 ? true : false;
43562
+ this.swiperOne = new swiper_esm_bundle/* default */.A(`#contentSwiper${this.data.id}`, {
43563
+ initialSlide: 0,
43564
+ // 初始化时slide的索引
43565
+ autoplay: {
43566
+ // 自动开始
43567
+ delay: 5000,
43568
+ // 时间间隔
43569
+ disableOnInteraction: false // 手动操作轮播图后不会暂停
43570
+ },
43571
+ loop: ifLoop,
43572
+ // 循环模式选项
43573
+ spaceBetween: 30,
43574
+ // 在slide之间设置距离
43575
+ observer: true,
43576
+ observeParents: true,
43577
+ on: {
43578
+ slideChangeTransitionEnd: function () {
43579
+ // swiper从一个slide过渡到另一个slide结束时执行
43580
+ console.log("realIndex", this.realIndex);
43581
+ if (this.realIndex > vm.cmsConfig.bannerList.length - 1) return;
43582
+ vm.swiperIdx = this.realIndex;
43583
+ },
43584
+ resize: function () {
43585
+ this.update(true);
43586
+ }
43587
+ }
43588
+ });
43589
+ }
43590
+ },
43591
+ // 轮播
43592
+ swiperPlay() {
43593
+ this.swiperPlayVal = !this.swiperPlayVal;
43594
+ this.swiperPlayVal ? this.swiperClickStart() : this.swiperClickStop();
43595
+ },
43596
+ swiperClickStop() {
43597
+ this.swiperOne.autoplay.stop();
43598
+ },
43599
+ swiperClickStart() {
43600
+ this.swiperOne.autoplay.start();
43601
+ },
43602
+ jumpToSlide(idx) {
43603
+ // banner 轮播PC
43604
+ console.log("PC点击了", idx);
43605
+ // 在Loop模式下Swiper切换到指定slide。切换到的是slide索引是realIndex
43606
+ this.swiperOne.slideToLoop(idx, 1000, false);
43607
+ this.swiperIdx = idx;
43608
+ },
43609
+ //跳转
43610
+ decodeJumpUrl(path, route) {
43611
+ (0,jumpUrl/* decodeJumpUrl */.u)(path, route);
43612
+ }
43613
+ }
43614
+ });
43615
+ ;// ./package/cms-banner/View.vue?vue&type=script&lang=js
43616
+ /* harmony default export */ var cms_banner_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
43617
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-banner/View.vue?vue&type=style&index=0&id=504b8057&prod&scoped=true&lang=scss
43618
+ // extracted by mini-css-extract-plugin
43619
+
43620
+ ;// ./package/cms-banner/View.vue?vue&type=style&index=0&id=504b8057&prod&scoped=true&lang=scss
43621
+
43622
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
43623
+ var componentNormalizer = __webpack_require__(1656);
43624
+ ;// ./package/cms-banner/View.vue
43625
+
43626
+
43627
+
43628
+ ;
43629
+
43630
+
43631
+ /* normalize component */
43632
+
43633
+ var component = (0,componentNormalizer/* default */.A)(
43634
+ cms_banner_Viewvue_type_script_lang_js,
43635
+ render,
43636
+ staticRenderFns,
43637
+ false,
43638
+ null,
43639
+ "504b8057",
43640
+ null
43641
+
43642
+ )
43643
+
43644
+ /* harmony default export */ var View = (component.exports);
43645
+
43646
43646
  /***/ }),
43647
43647
 
43648
43648
  /***/ 6279: