cms-chenhj-ui 1.0.56 → 1.0.58

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.
@@ -35437,7 +35437,7 @@ var map = {
35437
35437
  "./cms-aLineThreeLeftTwo/View.vue": 152,
35438
35438
  "./cms-activityCountdown/View.vue": 54,
35439
35439
  "./cms-activityTime/View.vue": 9204,
35440
- "./cms-banner/View.vue": 7026,
35440
+ "./cms-banner/View.vue": 9099,
35441
35441
  "./cms-breadCrumb/View.vue": 5202,
35442
35442
  "./cms-button/View.vue": 1011,
35443
35443
  "./cms-cells/View.vue": 9730,
@@ -46437,7 +46437,115 @@ var isDefined = exports.isDefined = function isDefined(val) {
46437
46437
 
46438
46438
  /***/ }),
46439
46439
 
46440
- /***/ 7026:
46440
+ /***/ 7040:
46441
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
46442
+
46443
+ "use strict";
46444
+
46445
+ /* eslint-disable es/no-symbol -- required for testing */
46446
+ var NATIVE_SYMBOL = __webpack_require__(4495);
46447
+
46448
+ module.exports = NATIVE_SYMBOL &&
46449
+ !Symbol.sham &&
46450
+ typeof Symbol.iterator == 'symbol';
46451
+
46452
+
46453
+ /***/ }),
46454
+
46455
+ /***/ 7055:
46456
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
46457
+
46458
+ "use strict";
46459
+
46460
+ var uncurryThis = __webpack_require__(9504);
46461
+ var fails = __webpack_require__(9039);
46462
+ var classof = __webpack_require__(2195);
46463
+
46464
+ var $Object = Object;
46465
+ var split = uncurryThis(''.split);
46466
+
46467
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
46468
+ module.exports = fails(function () {
46469
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
46470
+ // eslint-disable-next-line no-prototype-builtins -- safe
46471
+ return !$Object('z').propertyIsEnumerable(0);
46472
+ }) ? function (it) {
46473
+ return classof(it) === 'String' ? split(it, '') : $Object(it);
46474
+ } : $Object;
46475
+
46476
+
46477
+ /***/ }),
46478
+
46479
+ /***/ 7080:
46480
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
46481
+
46482
+ "use strict";
46483
+
46484
+ var has = (__webpack_require__(4402).has);
46485
+
46486
+ // Perform ? RequireInternalSlot(M, [[SetData]])
46487
+ module.exports = function (it) {
46488
+ has(it);
46489
+ return it;
46490
+ };
46491
+
46492
+
46493
+ /***/ }),
46494
+
46495
+ /***/ 7095:
46496
+ /***/ (function(module) {
46497
+
46498
+ "use strict";
46499
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAABs1BMVEUAAAAjfb8igNAyescrgsglh8kvfcgrg8kpf8Quf8gyfMghiskjicgzescphMkzescohcgyesczeccxe8gnhsssgskkiMgkiMgohMgye8csgcksgsgye8cxfMg0eMcye8csgskliMkhicgkicoliMkyfMUphMg1e8sohMchisoiickhisk1eMcjiMgmh8ghiskohckhisgiisklhskii8o1ecgyeMgliMkjiMn5+fkwfMcvfscyesckh8grgscohMczecYtf8csgcgpg8ctgMciicgkiMgmh8gmhsgohccwe8cmhsf29/gzeccnhcckickhicnU4/Dz9fff6PKCuN2Etd1xqNheoNQ0esfq7/XD2Ozf6fOIs9319vhnpta/1uuvzeeGstxuqddrodVZntJdmdLu8vfl7fSwy+abv+J0ptczi8o7g8nH2+230emhxONvpNdkoNVMmdBRkM9Njc46icouhsnx9PfW4/Gsy+anxuV8stuBrttvrdl5q9ljm9NFlM87jsxBjMy70um00ei0zOeRud+JuN50sNphpNVTmtE2f8nQ3u661OqSvd+Dtt1Ch8tY5AiOAAAAOXRSTlMACgX6sHNjPBrtb+3S0ldXM/DscyL4+PDu5t/QzLiwkohtY1tCQugi/Pjm39/MzLi4sK+SiIgzkpL7Vli6AAAEyUlEQVRYw52Yd1saQRDGL0EhoCQxpndN770IiiDCXeSQlqigQAwJBrHXWGJL7/nI2b05d2/ZO+4u7wN/8fB7Zt6dnd1ZoZ4OOs83nDp5+cgR98lTDeedB4X/0b62huPhcDiA1NPT04sUCrkbPPvsUfZcuHu1u7tbAfVQUMjv95/Zv8c6pvFytyKEoaAQBmGdaLWG2tt4vF/BQGKQG+YQks/dutec42qWnmERFAH50QdAPp/XZRbOA0mS+klEkBvxCEg+rL5zdYM6fFsUJYhIAYHZvYACEEGdPmzMuXhMkmKxWP8zxiPAaDmglktGnP1Hu4xBIQ7U5zigz2kXkbjUkHppSAyoz+HUjSfahSSxZod1zQZ1dnbqxXTxqMhGpKKQ2QEF5AexKAfn0+FjXVgxbFF/TUGqHvGpoZhartTUz60oAwKRyubMJskFT7P19CQKIAlLWTWIiYCQ9EHxc8y+iBAQazZJTXfVFFDQpUmsOZFIRMFrlBuz1+qbjeWlyTVGoigiCEkxiS1Io4gwJYjkIf2nKZJQQCQiviD1Vw0pHo8f2kMCikRYs40K0s97hF1qVQO6roCiBFTdnnuNNfsKa4Bq9g3W/N8JAgK7T0BIF5KJJDIbgXBi4tJWYa3yEquYqlHxLVZlvbTgp6A4EuyUOyQgpNjS1vRwOi/XUT6dmZ6gZmOdUc6dSDIBZmOrxbmPZbnDRHJ5eoEu/1Aw6MCnVBsKiJpdfT/WYS55uDRBCnK3Au4BRzV7rpLvsKD85wU1IgCdRaAmBvStKFsByZ/eIBA16RA63yGz3dTev7MGypXU1FQ9FtqTSWI20tdMhyVQapyaHUfpOYWHEWI21vOagGTZEATlqNr9SLiPIqIFKT6v+cPqVFaXlF3HqZGKHDorNEe0ZsdqQOmBwc85PVR+FIOoSV7hBmM2BxoM7BR+T2b5BEdYs28KTcRsSI0DBQJLAyspDjVC2wis/zXWbB6E28jizNRYuha0u/cVOYRrxGwRiwNBq13amZlKsyDt8g8NOYQmtiB5EDT/nY1c3sgjSO2GFdDibCU3JnMRMWY3m4IQ5ksRSoADkYL0CvfBbGPQ4vcNwDCSR2nPhu3/MKE1m6ujb9uFl8s626S8zpr9SGiHgAyWX14pZtN6e+3duLbV4k17kCnI2NeaBjlWlg02LVuQjwWy/vb60c8ZptW2QKvVnGuFSWugD5sIxLbaNqaNfF+xBMpX5ndBijz4OGLM3l5btgIqj09Qs9XjSLhDWi3W3K+0OWd5dcGnXf4zcGRrzZaqgx+zZpzsp/kfPm1BHiCXCHIcSWJ18Mv0VC6Xm0wNK8pkMugLSk2iHz6sjmwiDhJziUBqBBC5jFa3XhcKhVdrf15oNYq0MVMqlTbn4TZCz7VWetECDn89Bhlej4EDFy0IiZotSubzGoiY7dFcRkmrlSzNa4xDcBkFuUhBWp/XSEEyw+RT1SQ78xqAguf0Rgh781ofjBA6Q43NeQ2GGn7M6rI/r+Exi9P+/5jX9IfRdtHuvOZwGg3H9uY1Gg8/rtuZ11ou1XtAsD6vnb5S/0lDtDav8U8a/COLlXnN67L07GM2r7k9e208RPEFSR+i7D2NURD/NGb/sS5M2kjI5mMd/3zotvR8+A8KIBAXc/TW+QAAAABJRU5ErkJggg==";
46500
+
46501
+ /***/ }),
46502
+
46503
+ /***/ 7217:
46504
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
46505
+
46506
+ "use strict";
46507
+ __webpack_require__.r(__webpack_exports__);
46508
+ /* harmony default export */ __webpack_exports__["default"] = ({
46509
+ onlinePurchase: 'Online Purchase',
46510
+ CMHK: 'CMHK 5G',
46511
+ servicePlans: 'Service Plans',
46512
+ broadband: 'Home Broadband',
46513
+ Gband: '5G Broadband',
46514
+ devices: 'Handsets & Devices',
46515
+ card: 'Prepaid Card Service',
46516
+ data: 'Data & VAS',
46517
+ IDD: 'Global Services & IDD',
46518
+ policy: 'Privacy Policy',
46519
+ summary: 'Key Information Summary',
46520
+ customer: 'Our Customer Charter',
46521
+ infomations: 'Your imfomations',
46522
+ privacy: 'Privacy',
46523
+ conditions: 'Contract Terms & Conditions',
46524
+ us: 'About Us',
46525
+ overview: 'Corporate Overview',
46526
+ news: 'Company News',
46527
+ notice: 'Tender Notice',
46528
+ join: 'Join Us',
46529
+ links: 'Friendly Links',
46530
+ partnerships: 'Partnerships',
46531
+ help: 'Help and Support',
46532
+ onlineHelp: 'Online Help and Support',
46533
+ education: 'Customer Education Zone',
46534
+ fraud: 'Customer Education Zone',
46535
+ shop: 'CMHK Shop',
46536
+ contact: 'Contact Us',
46537
+ questions: 'FAQ/Frequently Asked Questions',
46538
+ service: '24-hour Customer Service Hotline 12580',
46539
+ hotline: 'Sales Hotline 12588 (11am to 8pm)',
46540
+ follow: 'Follow or Contact Us',
46541
+ download: 'Download MyLink App, follow our official WeChat account, and stay tuned for more information and enjoy mobile services',
46542
+ account: 'WeChat Official Account',
46543
+ bottomText: '© 2023 China Mobile Hong Kong Company Limited. All rights reserved'
46544
+ });
46545
+
46546
+ /***/ }),
46547
+
46548
+ /***/ 7326:
46441
46549
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
46442
46550
 
46443
46551
  "use strict";
@@ -46449,160 +46557,41 @@ __webpack_require__.d(__webpack_exports__, {
46449
46557
  "default": function() { return /* binding */ View; }
46450
46558
  });
46451
46559
 
46452
- ;// ./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=33b2c1db&scoped=true
46560
+ ;// ./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-via-storedValueCard/View.vue?vue&type=template&id=9f29a076&scoped=true
46453
46561
  var render = function render() {
46454
46562
  var _vm = this,
46455
46563
  _c = _vm._self._c;
46456
46564
  return _c('div', {
46457
- staticClass: "test",
46565
+ staticClass: "servePlan",
46458
46566
  class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? 'highLight' : ''],
46459
- staticStyle: {
46460
- "position": "relative",
46461
- "cursor": "pointer"
46462
- },
46463
- style: _vm.style,
46464
46567
  on: {
46465
46568
  "click": function ($event) {
46466
46569
  $event.stopPropagation();
46467
- return _vm.handleNowComp();
46570
+ return _vm.handleNowComp.apply(null, arguments);
46468
46571
  }
46469
46572
  }
46470
46573
  }, [_c('div', {
46471
- staticClass: "content-swiper tt_banner"
46472
- }, [_vm.cmsConfig.bannerList.length > 0 ? _c('div', {
46473
- staticClass: "relative position"
46474
- }, [_c('div', {
46475
- staticClass: "my_banner"
46476
- }, [_c('div', {
46477
- staticClass: "swiper-container_contentswiper",
46478
- attrs: {
46479
- "id": `contentSwiper${_vm.data.id}`
46480
- }
46481
- }, [_c('div', {
46482
- staticClass: "swiper-wrapper",
46483
- staticStyle: {
46484
- "width": "1074px",
46485
- "height": "100%"
46486
- }
46487
- }, _vm._l(_vm.cmsConfig.bannerList, function (item, inx) {
46488
- return _c('div', {
46489
- key: inx,
46490
- staticClass: "swiper-slide"
46491
- }, [item ? _c('div', {
46492
- staticClass: "swiper-banner_box",
46493
- on: {
46494
- "click": function ($event) {
46495
- return _vm.decodeJumpUrl(item.jumpUrl, _vm.$router);
46496
- }
46497
- }
46498
- }, [_c('img', {
46499
- staticClass: "swiper-banner_image layout-pc",
46500
- attrs: {
46501
- "src": item.uploadImagePC,
46502
- "alt": "PC"
46503
- }
46504
- }), _c('img', {
46505
- staticClass: "swiper-banner_image layout-mobile",
46506
- attrs: {
46507
- "src": item.uploadImageH5,
46508
- "alt": "H5"
46509
- }
46510
- }), _c('div', {
46511
- staticClass: "extra-swiper_box layout-pc"
46512
- }, [item.title ? _c('div', {
46513
- staticClass: "swiper-contentbtn"
46514
- }, [_c('span', [_vm._v(_vm._s(item.title))])]) : _vm._e(), item.des ? _c('div', {
46515
- staticClass: "swiper-labels"
46516
- }, [_c('span', [_vm._v(_vm._s(item.des))])]) : _vm._e(), _c('div', {
46517
- staticClass: "swiper-btn_container"
46518
- }, [item.input1 != '' ? _c('a', {
46519
- attrs: {
46520
- "href": item.jumpUrl1,
46521
- "target": "_self"
46522
- }
46523
- }, [_c('button', {
46524
- staticClass: "swiper-opbtn have-arrow"
46525
- }, [_c('span', [_vm._v(_vm._s(item.input1))])])]) : _vm._e(), item.input2 != '' ? _c('a', {
46526
- attrs: {
46527
- "href": item.jumpUrl2,
46528
- "target": "_self"
46529
- }
46530
- }, [_c('button', {
46531
- staticClass: "swiper-opbtn_wt"
46532
- }, [_c('span', [_vm._v(_vm._s(item.input2))])])]) : _vm._e()])])]) : _vm._e()]);
46533
- }), 0)])]), _c('div', {
46534
- directives: [{
46535
- name: "show",
46536
- rawName: "v-show",
46537
- 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,
46538
- expression: "\n cmsConfig.bannerList[swiperIdx].input1 ||\n cmsConfig.bannerList[swiperIdx].input2 ||\n cmsConfig.bannerList[swiperIdx].input3 ||\n cmsConfig.bannerList[swiperIdx].inputNew\n "
46539
- }],
46540
- staticClass: "mb-swiper_box layout-mobile"
46541
- }, [_vm.cmsConfig.bannerList[_vm.swiperIdx].title ? _c('div', {
46542
- staticClass: "swiper-contentbtn"
46543
- }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].title))])]) : _vm._e(), _vm.cmsConfig.bannerList[_vm.swiperIdx].des ? _c('div', {
46544
- staticClass: "swiper-label"
46545
- }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].des))])]) : _vm._e(), _c('div', {
46546
- staticClass: "swiper-btn_container"
46547
- }, [_vm.cmsConfig.bannerList[_vm.swiperIdx].input1 ? _c('a', {
46548
- attrs: {
46549
- "href": _vm.cmsConfig.bannerList[_vm.swiperIdx].jumpUrl1,
46550
- "target": "_self"
46551
- }
46552
- }, [_c('button', {
46553
- staticClass: "swiper-opbtn have-arrow"
46554
- }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].input1))])])]) : _vm._e(), _vm.cmsConfig.bannerList[_vm.swiperIdx].input2 ? _c('a', {
46555
- attrs: {
46556
- "href": _vm.cmsConfig.bannerList[_vm.swiperIdx].jumpUrl2,
46557
- "target": "_self"
46558
- }
46559
- }, [_c('button', {
46560
- staticClass: "swiper-opbtn_wt have-arrow"
46561
- }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].input2))])])]) : _vm._e()])]), _vm.cmsConfig.bannerList.length > 1 ? _c('div', {
46562
- staticClass: "cmhk-swiper-button-number"
46563
- }, [_vm._l(_vm.cmsConfig.bannerList, function (item, idx) {
46564
- return _c('div', {
46565
- key: idx,
46566
- staticClass: "line-customs_wrapper",
46567
- on: {
46568
- "click": function ($event) {
46569
- $event.stopPropagation();
46570
- return _vm.jumpToSlide(idx);
46571
- }
46572
- }
46573
- }, [_c('div', {
46574
- class: ['cmhk-line-customs', idx === _vm.swiperIdx ? 'cmhk-line-customs-active' : '']
46575
- }, [item && item.input1 ? _c('div', {
46576
- staticClass: "swiper-popupup layout-pc"
46577
- }, [_c('p', {
46578
- staticClass: "swiper-popuptext"
46579
- }, [_vm._v(_vm._s(item.input1))])]) : _vm._e()])]);
46580
- }), _c('div', {
46581
- staticClass: "swiper-button-puase",
46574
+ staticClass: "position",
46582
46575
  on: {
46583
- "click": function ($event) {
46584
- $event.stopPropagation();
46585
- return _vm.swiperPlay.apply(null, arguments);
46586
- }
46587
- }
46588
- }, [!_vm.swiperPlayVal ? _c('img', {
46589
- staticClass: "playstart-image",
46590
- attrs: {
46591
- "src": __webpack_require__(2254)
46576
+ "click": _vm.handleNowComp
46592
46577
  }
46593
- }) : _vm._e(), _vm.swiperPlayVal ? _c('img', {
46594
- staticClass: "playstop-image",
46578
+ }, [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
46579
+ key: _vm.servePlanSrc,
46595
46580
  attrs: {
46596
- "src": __webpack_require__(2584)
46581
+ "name": `cmsacive${_vm.componentId}`,
46582
+ "url": _vm.servePlanSrc,
46583
+ "props": {
46584
+ data: _vm.propsdata5
46585
+ }
46597
46586
  }
46598
- }) : _vm._e()])], 2) : _vm._e()]) : _vm._e(), _c('div', {
46587
+ }) : _vm._e(), _c('div', {
46599
46588
  class: {
46600
46589
  opcacity: _vm.isOpcacity
46601
46590
  },
46602
46591
  on: {
46603
46592
  "click": _vm.handleNowComp
46604
46593
  }
46605
- })]), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
46594
+ })], 1), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
46606
46595
  staticClass: "com-delete"
46607
46596
  }, [_c('i', {
46608
46597
  staticClass: "el-icon-delete",
@@ -46616,21 +46605,13 @@ var render = function render() {
46616
46605
  };
46617
46606
  var staticRenderFns = [];
46618
46607
 
46619
- ;// ./package/cms-banner/View.vue?vue&type=template&id=33b2c1db&scoped=true
46620
-
46608
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
46609
+ var es_array_push = __webpack_require__(4114);
46621
46610
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
46622
46611
  var es_iterator_constructor = __webpack_require__(8111);
46623
46612
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
46624
46613
  var es_iterator_for_each = __webpack_require__(7588);
46625
- // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
46626
- var swiper = __webpack_require__(2791);
46627
- // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
46628
- var swiper_esm_bundle = __webpack_require__(4418);
46629
- // EXTERNAL MODULE: ./src/utils/jumpUrl.js
46630
- var jumpUrl = __webpack_require__(813);
46631
- ;// ./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
46632
-
46633
-
46614
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
46634
46615
 
46635
46616
 
46636
46617
 
@@ -46638,7 +46619,7 @@ var jumpUrl = __webpack_require__(813);
46638
46619
 
46639
46620
 
46640
46621
  /* harmony default export */ var Viewvue_type_script_lang_js = ({
46641
- name: "cms-banner",
46622
+ name: "cms-via-storedValueCard",
46642
46623
  props: {
46643
46624
  data: {
46644
46625
  type: Object,
@@ -46656,33 +46637,27 @@ var jumpUrl = __webpack_require__(813);
46656
46637
  },
46657
46638
  lang: {
46658
46639
  type: String,
46659
- default: "zh-HK"
46640
+ default: ""
46660
46641
  }
46661
46642
  },
46662
46643
  data() {
46663
46644
  return {
46664
46645
  style: {},
46665
46646
  // 样式
46666
- isEditor: true,
46667
- cmsConfig: {
46668
- bannerList: []
46669
- },
46670
- CN: [],
46671
- HK: [],
46672
- EN: [],
46673
- // 轮播
46674
- swiperOne: null,
46675
- swiperIdx: 0,
46676
- swiperPlayVal: true
46647
+ servePlanSrc: "",
46648
+ routeLang: "tc",
46649
+ parentShopCategoryId: "",
46650
+ propsdata5: {},
46651
+ showWujie: false,
46652
+ servePlanSrcIframe: "",
46653
+ baseUrl: "",
46654
+ componentUrl: "",
46655
+ componentId: "",
46656
+ viaCompInstId: ""
46677
46657
  };
46678
46658
  },
46679
- created() {
46680
- if (this.$route.path != "/editor") {
46681
- this.isEditor = false;
46682
- }
46683
- },
46684
- mounted() {
46685
- if (this.$EventBus) {
46659
+ async mounted() {
46660
+ if (this.$EventBus && this.isOpcacity) {
46686
46661
  this.$EventBus.$on("forceUpdateCom", data => {
46687
46662
  if (data.id == this.data.id) {
46688
46663
  let obj = {};
@@ -46692,45 +46667,100 @@ var jumpUrl = __webpack_require__(813);
46692
46667
  this.style = obj;
46693
46668
  }
46694
46669
  });
46670
+ window.addEventListener("message", this.handleMessage, false);
46695
46671
  }
46696
- if (this.cmsConfig.bannerList.length > 0) {
46697
- this.initSwiper("bannerList");
46672
+ let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}`;
46673
+ this.baseUrl = originUrl;
46674
+ if (!this.$EventBus) {
46675
+ originUrl = `${window.location.origin}`;
46676
+ if (window.location.origin.includes("-uat")) {
46677
+ this.baseUrl = "https://omniapi-uat.hk.chinamobile.com";
46678
+ } else {
46679
+ this.baseUrl = "https://omniapi.hk.chinamobile.com";
46680
+ }
46698
46681
  }
46682
+ this.getUrl(this.lang);
46683
+ },
46684
+ created() {
46685
+ console.log("当前组件被重新渲染了", this.data.settings.settings[0].value.componentId || "当前组件被重新渲染了");
46699
46686
  },
46700
46687
  watch: {
46701
46688
  data: {
46702
46689
  handler(val) {
46703
46690
  let obj = {};
46704
46691
  val.settings.settings.forEach(item => {
46705
- this.CN = item.value.bannerList.CN;
46706
- this.HK = item.value.bannerList.HK;
46707
- this.EN = item.value.bannerList.EN;
46692
+ this.componentUrl = item.componentUrl;
46693
+ this.componentId = item.value.componentId;
46694
+ if (this.componentId) {
46695
+ setTimeout(() => {
46696
+ this.showWujie = true;
46697
+ });
46698
+ }
46699
+ this.viaCompInstId = item.value.viaCompInstId;
46708
46700
  });
46701
+ this.getUrl(this.lang);
46709
46702
  val.settings.attribute.forEach(item => {
46710
46703
  obj[item.key] = item.value;
46711
46704
  });
46712
46705
  this.style = obj;
46713
- this.getValue(this.lang);
46714
46706
  },
46715
46707
  deep: true,
46716
46708
  immediate: true
46717
46709
  },
46718
46710
  lang: {
46719
46711
  handler(val) {
46720
- this.getValue(val);
46712
+ console.log("changelang");
46713
+ this.getUrl(val);
46721
46714
  },
46722
46715
  deep: true,
46723
46716
  immediate: true
46724
46717
  }
46725
46718
  },
46726
46719
  methods: {
46727
- getValue(val) {
46728
- const obj = {
46729
- "zh-CN": "CN",
46730
- "zh-HK": "HK",
46731
- "en-US": "EN"
46720
+ wujieFetchMx(url, options) {
46721
+ return window.fetch(url, {
46722
+ ...options,
46723
+ credentials: "include"
46724
+ });
46725
+ },
46726
+ getUrl(lang) {
46727
+ const obj = this.$EventBus ? {
46728
+ "zh-CN": "en",
46729
+ "zh-HK": "en",
46730
+ "en-US": "en"
46731
+ } : {
46732
+ "zh-CN": "sc",
46733
+ "zh-HK": "tc",
46734
+ "en-US": "en"
46732
46735
  };
46733
- this.cmsConfig.bannerList = this[`${obj[val]}`];
46736
+ this.routeLang = obj[lang];
46737
+ const currentSrc = this.componentUrl.replace("langTag", `${obj[lang]}`);
46738
+ this.servePlanSrc = `${this.baseUrl}${currentSrc}`;
46739
+ console.log("currentSrc", this.servePlanSrc);
46740
+ if (this.$EventBus) {
46741
+ this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW`;
46742
+ }
46743
+ this.propsdata5 = {
46744
+ orgId: sessionStorage.getItem("orgId") || "",
46745
+ staffId: sessionStorage.getItem("staffId") || "",
46746
+ cmhkChannel: this.getCmhkChannelMx(),
46747
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
46748
+ componentId: this.componentId,
46749
+ viaCompInstId: this.viaCompInstId
46750
+ };
46751
+ },
46752
+ getCmhkChannelMx() {
46753
+ const host = window.location.host;
46754
+ const wwwHostList = ["www.hk.chinamobile.com", "www-uat.hk.chinamobile.com", "localhost:9640", "localhost:9700", "localhost:9701"];
46755
+ if (({"NODE_ENV":"production","VUE_APP_CONSOLE_PRD":"aHR0cDovLzEwLjAuMjguMjI6OTcwMA==","VUE_APP_CONSOLE_UAT":"aHR0cDovLzEwLjAuMjguMjU6OTcwMA==","VUE_APP_NUXT_DEV":"aHR0cDovLzEwLjAuMjguNjA6OTY0MA==","VUE_APP_NUXT_PRD1":"https://www.hk.chinamobile.com","VUE_APP_NUXT_PRD2":"https://omniapi.hk.chinamobile.com","VUE_APP_NUXT_PRD3":"aHR0cDovLzEwLjAuMjguMjI6NzgyMg==","VUE_APP_NUXT_UAT1":"aHR0cDovLzEwLjAuMjguMTYx","VUE_APP_NUXT_UAT1_NOHTTP":"MTAuMC4yOC4xNjE=","VUE_APP_NUXT_UAT2":"https://www-uat.hk.chinamobile.com","VUE_APP_NUXT_UAT2_NOHTTP":"MTAuMC4yOC4xNzo5NjAy","VUE_APP_NUXT_UAT3":"https://omniapi-uat.hk.chinamobile.com","VUE_APP_SCHEMA_PRD":"aHR0cDovLzEwLjAuMjguMjI6OTcwNA==","VUE_APP_SCHEMA_UAT":"aHR0cDovLzEwLjAuMjguMjU6OTcwNA==","BASE_URL":"/"}).MODE == "devlopment") {
46756
+ wwwHostList.push(this.$Base64.decode("MTAuMC4yOC4xNjE="));
46757
+ wwwHostList.push(this.$Base64.decode("MTAuMC4yOC4xNzo5NjAy"));
46758
+ }
46759
+ if (wwwHostList.includes(host)) {
46760
+ return "WWW";
46761
+ } else {
46762
+ return sessionStorage.getItem("cmhkChannel") || "WWW";
46763
+ }
46734
46764
  },
46735
46765
  handleNowComp() {
46736
46766
  if (!this.isOpcacity) return;
@@ -46745,74 +46775,23 @@ var jumpUrl = __webpack_require__(813);
46745
46775
  key: this.data.id
46746
46776
  });
46747
46777
  },
46748
- initSwiper(operationName) {
46749
- const vm = this;
46750
- if (operationName === "bannerList" && this.cmsConfig.bannerList.length > 0) {
46751
- // 当广告个数大于1的时候才开启循环
46752
- const ifLoop = this.cmsConfig.bannerList.length > 1 ? true : false;
46753
- this.swiperOne = new swiper_esm_bundle/* default */.A(`#contentSwiper${this.data.id}`, {
46754
- initialSlide: 0,
46755
- // 初始化时slide的索引
46756
- autoplay: {
46757
- // 自动开始
46758
- delay: 5000,
46759
- // 时间间隔
46760
- disableOnInteraction: false // 手动操作轮播图后不会暂停
46761
- },
46762
- loop: ifLoop,
46763
- // 循环模式选项
46764
- spaceBetween: 30,
46765
- // 在slide之间设置距离
46766
- observer: true,
46767
- observeParents: true,
46768
- on: {
46769
- slideChangeTransitionEnd: function () {
46770
- // swiper从一个slide过渡到另一个slide结束时执行
46771
- console.log("realIndex", this.realIndex);
46772
- if (this.realIndex > vm.cmsConfig.bannerList.length - 1) return;
46773
- vm.swiperIdx = this.realIndex;
46774
- },
46775
- resize: function () {
46776
- this.update(true);
46777
- }
46778
- }
46779
- });
46780
- }
46781
- },
46782
- // 轮播
46783
- swiperPlay() {
46784
- this.swiperPlayVal = !this.swiperPlayVal;
46785
- this.swiperPlayVal ? this.swiperClickStart() : this.swiperClickStop();
46786
- },
46787
- swiperClickStop() {
46788
- this.swiperOne.autoplay.stop();
46789
- },
46790
- swiperClickStart() {
46791
- this.swiperOne.autoplay.start();
46792
- },
46793
- jumpToSlide(idx) {
46794
- // banner 轮播PC
46795
- console.log("PC点击了", idx);
46796
- // 在Loop模式下Swiper切换到指定slide。切换到的是slide索引是realIndex
46797
- this.swiperOne.slideToLoop(idx, 1000, false);
46798
- this.swiperIdx = idx;
46799
- },
46800
- //跳转
46801
- decodeJumpUrl(path, route) {
46802
- (0,jumpUrl/* decodeJumpUrl */.u)(path, route);
46778
+ handleMessage(e) {
46779
+ console.log(e.data, "789");
46780
+ const iframe = this.$refs.iframeRef;
46781
+ iframe.style.height = e.data + "px";
46803
46782
  }
46804
46783
  }
46805
46784
  });
46806
- ;// ./package/cms-banner/View.vue?vue&type=script&lang=js
46807
- /* harmony default export */ var cms_banner_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
46808
- ;// ./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=33b2c1db&prod&scoped=true&lang=scss
46785
+ ;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
46786
+ /* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
46787
+ ;// ./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-via-storedValueCard/View.vue?vue&type=style&index=0&id=9f29a076&prod&lang=scss&scoped=true
46809
46788
  // extracted by mini-css-extract-plugin
46810
46789
 
46811
- ;// ./package/cms-banner/View.vue?vue&type=style&index=0&id=33b2c1db&prod&scoped=true&lang=scss
46790
+ ;// ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=9f29a076&prod&lang=scss&scoped=true
46812
46791
 
46813
46792
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
46814
46793
  var componentNormalizer = __webpack_require__(1656);
46815
- ;// ./package/cms-banner/View.vue
46794
+ ;// ./package/cms-via-storedValueCard/View.vue
46816
46795
 
46817
46796
 
46818
46797
 
@@ -46822,12 +46801,12 @@ var componentNormalizer = __webpack_require__(1656);
46822
46801
  /* normalize component */
46823
46802
 
46824
46803
  var component = (0,componentNormalizer/* default */.A)(
46825
- cms_banner_Viewvue_type_script_lang_js,
46804
+ cms_via_storedValueCard_Viewvue_type_script_lang_js,
46826
46805
  render,
46827
46806
  staticRenderFns,
46828
46807
  false,
46829
46808
  null,
46830
- "33b2c1db",
46809
+ "9f29a076",
46831
46810
  null
46832
46811
 
46833
46812
  )
@@ -46836,161 +46815,126 @@ var component = (0,componentNormalizer/* default */.A)(
46836
46815
 
46837
46816
  /***/ }),
46838
46817
 
46839
- /***/ 7040:
46840
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
46818
+ /***/ 7347:
46819
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
46841
46820
 
46842
46821
  "use strict";
46843
46822
 
46844
- /* eslint-disable es/no-symbol -- required for testing */
46845
- var NATIVE_SYMBOL = __webpack_require__(4495);
46823
+ var DESCRIPTORS = __webpack_require__(3724);
46824
+ var call = __webpack_require__(9565);
46825
+ var propertyIsEnumerableModule = __webpack_require__(8773);
46826
+ var createPropertyDescriptor = __webpack_require__(6980);
46827
+ var toIndexedObject = __webpack_require__(5397);
46828
+ var toPropertyKey = __webpack_require__(6969);
46829
+ var hasOwn = __webpack_require__(9297);
46830
+ var IE8_DOM_DEFINE = __webpack_require__(5917);
46846
46831
 
46847
- module.exports = NATIVE_SYMBOL &&
46848
- !Symbol.sham &&
46849
- typeof Symbol.iterator == 'symbol';
46832
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
46833
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
46834
+
46835
+ // `Object.getOwnPropertyDescriptor` method
46836
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
46837
+ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
46838
+ O = toIndexedObject(O);
46839
+ P = toPropertyKey(P);
46840
+ if (IE8_DOM_DEFINE) try {
46841
+ return $getOwnPropertyDescriptor(O, P);
46842
+ } catch (error) { /* empty */ }
46843
+ if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
46844
+ };
46850
46845
 
46851
46846
 
46852
46847
  /***/ }),
46853
46848
 
46854
- /***/ 7055:
46849
+ /***/ 7394:
46855
46850
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
46856
46851
 
46857
46852
  "use strict";
46858
46853
 
46859
- var uncurryThis = __webpack_require__(9504);
46860
- var fails = __webpack_require__(9039);
46854
+ var globalThis = __webpack_require__(4576);
46855
+ var uncurryThisAccessor = __webpack_require__(6706);
46861
46856
  var classof = __webpack_require__(2195);
46862
46857
 
46863
- var $Object = Object;
46864
- var split = uncurryThis(''.split);
46858
+ var ArrayBuffer = globalThis.ArrayBuffer;
46859
+ var TypeError = globalThis.TypeError;
46865
46860
 
46866
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
46867
- module.exports = fails(function () {
46868
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
46869
- // eslint-disable-next-line no-prototype-builtins -- safe
46870
- return !$Object('z').propertyIsEnumerable(0);
46871
- }) ? function (it) {
46872
- return classof(it) === 'String' ? split(it, '') : $Object(it);
46873
- } : $Object;
46861
+ // Includes
46862
+ // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
46863
+ // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
46864
+ module.exports = ArrayBuffer && uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
46865
+ if (classof(O) !== 'ArrayBuffer') throw new TypeError('ArrayBuffer expected');
46866
+ return O.byteLength;
46867
+ };
46874
46868
 
46875
46869
 
46876
46870
  /***/ }),
46877
46871
 
46878
- /***/ 7080:
46879
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
46872
+ /***/ 7439:
46873
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
46880
46874
 
46881
46875
  "use strict";
46882
-
46883
- var has = (__webpack_require__(4402).has);
46884
-
46885
- // Perform ? RequireInternalSlot(M, [[SetData]])
46886
- module.exports = function (it) {
46887
- has(it);
46888
- return it;
46889
- };
46890
-
46891
-
46892
- /***/ }),
46893
-
46894
- /***/ 7095:
46895
- /***/ (function(module) {
46896
-
46897
- "use strict";
46898
- module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAABs1BMVEUAAAAjfb8igNAyescrgsglh8kvfcgrg8kpf8Quf8gyfMghiskjicgzescphMkzescohcgyesczeccxe8gnhsssgskkiMgkiMgohMgye8csgcksgsgye8cxfMg0eMcye8csgskliMkhicgkicoliMkyfMUphMg1e8sohMchisoiickhisk1eMcjiMgmh8ghiskohckhisgiisklhskii8o1ecgyeMgliMkjiMn5+fkwfMcvfscyesckh8grgscohMczecYtf8csgcgpg8ctgMciicgkiMgmh8gmhsgohccwe8cmhsf29/gzeccnhcckickhicnU4/Dz9fff6PKCuN2Etd1xqNheoNQ0esfq7/XD2Ozf6fOIs9319vhnpta/1uuvzeeGstxuqddrodVZntJdmdLu8vfl7fSwy+abv+J0ptczi8o7g8nH2+230emhxONvpNdkoNVMmdBRkM9Njc46icouhsnx9PfW4/Gsy+anxuV8stuBrttvrdl5q9ljm9NFlM87jsxBjMy70um00ei0zOeRud+JuN50sNphpNVTmtE2f8nQ3u661OqSvd+Dtt1Ch8tY5AiOAAAAOXRSTlMACgX6sHNjPBrtb+3S0ldXM/DscyL4+PDu5t/QzLiwkohtY1tCQugi/Pjm39/MzLi4sK+SiIgzkpL7Vli6AAAEyUlEQVRYw52Yd1saQRDGL0EhoCQxpndN770IiiDCXeSQlqigQAwJBrHXWGJL7/nI2b05d2/ZO+4u7wN/8fB7Zt6dnd1ZoZ4OOs83nDp5+cgR98lTDeedB4X/0b62huPhcDiA1NPT04sUCrkbPPvsUfZcuHu1u7tbAfVQUMjv95/Zv8c6pvFytyKEoaAQBmGdaLWG2tt4vF/BQGKQG+YQks/dutec42qWnmERFAH50QdAPp/XZRbOA0mS+klEkBvxCEg+rL5zdYM6fFsUJYhIAYHZvYACEEGdPmzMuXhMkmKxWP8zxiPAaDmglktGnP1Hu4xBIQ7U5zigz2kXkbjUkHppSAyoz+HUjSfahSSxZod1zQZ1dnbqxXTxqMhGpKKQ2QEF5AexKAfn0+FjXVgxbFF/TUGqHvGpoZhartTUz60oAwKRyubMJskFT7P19CQKIAlLWTWIiYCQ9EHxc8y+iBAQazZJTXfVFFDQpUmsOZFIRMFrlBuz1+qbjeWlyTVGoigiCEkxiS1Io4gwJYjkIf2nKZJQQCQiviD1Vw0pHo8f2kMCikRYs40K0s97hF1qVQO6roCiBFTdnnuNNfsKa4Bq9g3W/N8JAgK7T0BIF5KJJDIbgXBi4tJWYa3yEquYqlHxLVZlvbTgp6A4EuyUOyQgpNjS1vRwOi/XUT6dmZ6gZmOdUc6dSDIBZmOrxbmPZbnDRHJ5eoEu/1Aw6MCnVBsKiJpdfT/WYS55uDRBCnK3Au4BRzV7rpLvsKD85wU1IgCdRaAmBvStKFsByZ/eIBA16RA63yGz3dTev7MGypXU1FQ9FtqTSWI20tdMhyVQapyaHUfpOYWHEWI21vOagGTZEATlqNr9SLiPIqIFKT6v+cPqVFaXlF3HqZGKHDorNEe0ZsdqQOmBwc85PVR+FIOoSV7hBmM2BxoM7BR+T2b5BEdYs28KTcRsSI0DBQJLAyspDjVC2wis/zXWbB6E28jizNRYuha0u/cVOYRrxGwRiwNBq13amZlKsyDt8g8NOYQmtiB5EDT/nY1c3sgjSO2GFdDibCU3JnMRMWY3m4IQ5ksRSoADkYL0CvfBbGPQ4vcNwDCSR2nPhu3/MKE1m6ujb9uFl8s626S8zpr9SGiHgAyWX14pZtN6e+3duLbV4k17kCnI2NeaBjlWlg02LVuQjwWy/vb60c8ZptW2QKvVnGuFSWugD5sIxLbaNqaNfF+xBMpX5ndBijz4OGLM3l5btgIqj09Qs9XjSLhDWi3W3K+0OWd5dcGnXf4zcGRrzZaqgx+zZpzsp/kfPm1BHiCXCHIcSWJ18Mv0VC6Xm0wNK8pkMugLSk2iHz6sjmwiDhJziUBqBBC5jFa3XhcKhVdrf15oNYq0MVMqlTbn4TZCz7VWetECDn89Bhlej4EDFy0IiZotSubzGoiY7dFcRkmrlSzNa4xDcBkFuUhBWp/XSEEyw+RT1SQ78xqAguf0Rgh781ofjBA6Q43NeQ2GGn7M6rI/r+Exi9P+/5jX9IfRdtHuvOZwGg3H9uY1Gg8/rtuZ11ou1XtAsD6vnb5S/0lDtDav8U8a/COLlXnN67L07GM2r7k9e208RPEFSR+i7D2NURD/NGb/sS5M2kjI5mMd/3zotvR8+A8KIBAXc/TW+QAAAABJRU5ErkJggg==";
46899
-
46900
- /***/ }),
46901
-
46902
- /***/ 7217:
46903
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
46904
-
46905
- "use strict";
46906
- __webpack_require__.r(__webpack_exports__);
46907
- /* harmony default export */ __webpack_exports__["default"] = ({
46908
- onlinePurchase: 'Online Purchase',
46909
- CMHK: 'CMHK 5G',
46910
- servicePlans: 'Service Plans',
46911
- broadband: 'Home Broadband',
46912
- Gband: '5G Broadband',
46913
- devices: 'Handsets & Devices',
46914
- card: 'Prepaid Card Service',
46915
- data: 'Data & VAS',
46916
- IDD: 'Global Services & IDD',
46917
- policy: 'Privacy Policy',
46918
- summary: 'Key Information Summary',
46919
- customer: 'Our Customer Charter',
46920
- infomations: 'Your imfomations',
46921
- privacy: 'Privacy',
46922
- conditions: 'Contract Terms & Conditions',
46923
- us: 'About Us',
46924
- overview: 'Corporate Overview',
46925
- news: 'Company News',
46926
- notice: 'Tender Notice',
46927
- join: 'Join Us',
46928
- links: 'Friendly Links',
46929
- partnerships: 'Partnerships',
46930
- help: 'Help and Support',
46931
- onlineHelp: 'Online Help and Support',
46932
- education: 'Customer Education Zone',
46933
- fraud: 'Customer Education Zone',
46934
- shop: 'CMHK Shop',
46935
- contact: 'Contact Us',
46936
- questions: 'FAQ/Frequently Asked Questions',
46937
- service: '24-hour Customer Service Hotline 12580',
46938
- hotline: 'Sales Hotline 12588 (11am to 8pm)',
46939
- follow: 'Follow or Contact Us',
46940
- download: 'Download MyLink App, follow our official WeChat account, and stay tuned for more information and enjoy mobile services',
46941
- account: 'WeChat Official Account',
46942
- bottomText: '© 2023 China Mobile Hong Kong Company Limited. All rights reserved'
46943
- });
46944
-
46945
- /***/ }),
46946
-
46947
- /***/ 7326:
46948
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
46949
-
46950
- "use strict";
46951
- // ESM COMPAT FLAG
46952
- __webpack_require__.r(__webpack_exports__);
46876
+ // ESM COMPAT FLAG
46877
+ __webpack_require__.r(__webpack_exports__);
46953
46878
 
46954
46879
  // EXPORTS
46955
46880
  __webpack_require__.d(__webpack_exports__, {
46956
46881
  "default": function() { return /* binding */ View; }
46957
46882
  });
46958
46883
 
46959
- ;// ./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-via-storedValueCard/View.vue?vue&type=template&id=9f29a076&scoped=true
46884
+ ;// ./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-column/View.vue?vue&type=template&id=bd317c30
46960
46885
  var render = function render() {
46961
46886
  var _vm = this,
46962
46887
  _c = _vm._self._c;
46963
- return _c('div', {
46964
- staticClass: "servePlan",
46888
+ return _c('Draggable', {
46889
+ attrs: {
46890
+ "chosen-class": "chosen",
46891
+ "force-fallback": "true",
46892
+ "group": "people",
46893
+ "animation": "1000",
46894
+ "disabled": _vm.dragDisabled
46895
+ },
46896
+ on: {
46897
+ "start": _vm.onStart,
46898
+ "end": _vm.onEnd
46899
+ }
46900
+ }, [_c('div', {
46901
+ staticClass: "drag-column-container",
46965
46902
  class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? 'highLight' : ''],
46903
+ staticStyle: {
46904
+ "position": "relative"
46905
+ },
46906
+ style: _vm.style,
46966
46907
  on: {
46967
46908
  "click": function ($event) {
46968
46909
  $event.stopPropagation();
46969
46910
  return _vm.handleNowComp.apply(null, arguments);
46970
46911
  }
46971
46912
  }
46972
- }, [_c('div', {
46973
- staticClass: "position",
46974
- on: {
46975
- "click": _vm.handleNowComp
46976
- }
46977
- }, [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
46978
- key: _vm.servePlanSrc,
46979
- attrs: {
46980
- "name": `cmsacive${_vm.componentId}`,
46981
- "url": _vm.servePlanSrc,
46982
- "props": {
46983
- data: _vm.propsdata5
46913
+ }, [_vm._l(_vm.data.list, function (item) {
46914
+ return [_c('Draggable', {
46915
+ key: item.id,
46916
+ staticClass: "drag-column",
46917
+ class: [_vm.isEditor ? 'border' : ''],
46918
+ attrs: {
46919
+ "id": item.id,
46920
+ "chosen-class": "chosen",
46921
+ "force-fallback": "true",
46922
+ "group": "people",
46923
+ "animation": "1000",
46924
+ "disabled": _vm.dragDisabled
46925
+ },
46926
+ on: {
46927
+ "start": _vm.onStart,
46928
+ "end": _vm.onEnd
46984
46929
  }
46985
- }
46986
- }) : _vm._e(), _c('div', {
46987
- class: {
46988
- opcacity: _vm.isOpcacity
46989
- },
46990
- on: {
46991
- "click": _vm.handleNowComp
46992
- }
46993
- })], 1), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
46930
+ }, [item ? [_c(item.compName, {
46931
+ tag: "component",
46932
+ attrs: {
46933
+ "data": item,
46934
+ "nowCompId": _vm.nowCompId
46935
+ }
46936
+ })] : _vm._e()], 2)];
46937
+ }), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
46994
46938
  staticClass: "com-delete"
46995
46939
  }, [_c('i', {
46996
46940
  staticClass: "el-icon-delete",
@@ -47000,17 +46944,21 @@ var render = function render() {
47000
46944
  return _vm.deleteComponent.apply(null, arguments);
47001
46945
  }
47002
46946
  }
47003
- })]) : _vm._e()]);
46947
+ })]) : _vm._e()], 2)]);
47004
46948
  };
47005
46949
  var staticRenderFns = [];
47006
46950
 
47007
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
47008
- var es_array_push = __webpack_require__(4114);
47009
46951
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
47010
46952
  var es_iterator_constructor = __webpack_require__(8111);
47011
46953
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
47012
46954
  var es_iterator_for_each = __webpack_require__(7588);
47013
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
46955
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
46956
+ var es_iterator_map = __webpack_require__(1701);
46957
+ // EXTERNAL MODULE: ./node_modules/vuedraggable/dist/vuedraggable.umd.js
46958
+ var vuedraggable_umd = __webpack_require__(1527);
46959
+ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_umd);
46960
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-column/View.vue?vue&type=script&lang=js
46961
+
47014
46962
 
47015
46963
 
47016
46964
 
@@ -47018,7 +46966,10 @@ var es_iterator_for_each = __webpack_require__(7588);
47018
46966
 
47019
46967
 
47020
46968
  /* harmony default export */ var Viewvue_type_script_lang_js = ({
47021
- name: "cms-via-storedValueCard",
46969
+ name: "cms-column",
46970
+ components: {
46971
+ Draggable: (vuedraggable_umd_default())
46972
+ },
47022
46973
  props: {
47023
46974
  data: {
47024
46975
  type: Object,
@@ -47029,34 +46980,60 @@ var es_iterator_for_each = __webpack_require__(7588);
47029
46980
  nowCompId: {
47030
46981
  type: [String, Number],
47031
46982
  default: ""
47032
- },
47033
- isOpcacity: {
47034
- type: Boolean,
47035
- default: true
47036
- },
47037
- lang: {
47038
- type: String,
47039
- default: ""
46983
+ }
46984
+ },
46985
+ watch: {
46986
+ data: {
46987
+ handler(val) {
46988
+ let obj = {};
46989
+ let num = 0;
46990
+ let originHeight = 0;
46991
+ val.settings.settings.forEach(item => {
46992
+ if (item.key == "num") {
46993
+ num = item.value;
46994
+ }
46995
+ });
46996
+ val.settings.attribute.map(item => {
46997
+ obj[item.key] = item.value;
46998
+ if (this.getDevice() == "mobile" || this.getDevice() == "tablet") {
46999
+ if (item.key == "height") {
47000
+ if (item.value.indexOf("px") != -1) {
47001
+ originHeight = parseFloat(item.value.split("px")[0]) * num + "px";
47002
+ }
47003
+ if (item.value.indexOf("%") != -1) {
47004
+ originHeight = parseFloat(item.value.split("px")[0]) * num + "%";
47005
+ }
47006
+ }
47007
+ }
47008
+ });
47009
+ this.style = obj;
47010
+ if (this.getDevice() == "mobile" || this.getDevice() == "tablet") {
47011
+ this.style.height = originHeight;
47012
+ }
47013
+ if (this.isEditor) {
47014
+ this.style.width = `calc(${obj.width} - 2px)`;
47015
+ }
47016
+ },
47017
+ deep: true,
47018
+ immediate: true
47040
47019
  }
47041
47020
  },
47042
47021
  data() {
47043
47022
  return {
47044
47023
  style: {},
47045
- // 样式
47046
- servePlanSrc: "",
47047
- routeLang: "tc",
47048
- parentShopCategoryId: "",
47049
- propsdata5: {},
47050
- showWujie: false,
47051
- servePlanSrcIframe: "",
47052
- baseUrl: "",
47053
- componentUrl: "",
47054
- componentId: "",
47055
- viaCompInstId: ""
47024
+ isEditor: true,
47025
+ // 是否是开发态
47026
+ dragDisabled: false
47056
47027
  };
47057
47028
  },
47058
- async mounted() {
47059
- if (this.$EventBus && this.isOpcacity) {
47029
+ created() {
47030
+ if (this.$route.path != "/editor") {
47031
+ this.isEditor = false;
47032
+ this.dragDisabled = true;
47033
+ }
47034
+ },
47035
+ mounted() {
47036
+ if (this.$EventBus) {
47060
47037
  this.$EventBus.$on("forceUpdateCom", data => {
47061
47038
  if (data.id == this.data.id) {
47062
47039
  let obj = {};
@@ -47066,100 +47043,37 @@ var es_iterator_for_each = __webpack_require__(7588);
47066
47043
  this.style = obj;
47067
47044
  }
47068
47045
  });
47069
- window.addEventListener("message", this.handleMessage, false);
47070
- }
47071
- let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}`;
47072
- this.baseUrl = originUrl;
47073
- if (!this.$EventBus) {
47074
- originUrl = `${window.location.origin}`;
47075
- if (window.location.origin.includes("-uat")) {
47076
- this.baseUrl = "https://omniapi-uat.hk.chinamobile.com";
47077
- } else {
47078
- this.baseUrl = "https://omniapi.hk.chinamobile.com";
47079
- }
47080
- }
47081
- this.getUrl(this.lang);
47082
- },
47083
- created() {
47084
- console.log("当前组件被重新渲染了", this.data.settings.settings[0].value.componentId || "当前组件被重新渲染了");
47085
- },
47086
- watch: {
47087
- data: {
47088
- handler(val) {
47089
- let obj = {};
47090
- val.settings.settings.forEach(item => {
47091
- this.componentUrl = item.componentUrl;
47092
- this.componentId = item.value.componentId;
47093
- if (this.componentId) {
47094
- setTimeout(() => {
47095
- this.showWujie = true;
47096
- });
47097
- }
47098
- this.viaCompInstId = item.value.viaCompInstId;
47099
- });
47100
- this.getUrl(this.lang);
47101
- val.settings.attribute.forEach(item => {
47102
- obj[item.key] = item.value;
47103
- });
47104
- this.style = obj;
47105
- },
47106
- deep: true,
47107
- immediate: true
47108
- },
47109
- lang: {
47110
- handler(val) {
47111
- console.log("changelang");
47112
- this.getUrl(val);
47113
- },
47114
- deep: true,
47115
- immediate: true
47116
47046
  }
47117
47047
  },
47118
47048
  methods: {
47119
- wujieFetchMx(url, options) {
47120
- return window.fetch(url, {
47121
- ...options,
47122
- credentials: "include"
47123
- });
47124
- },
47125
- getUrl(lang) {
47126
- const obj = this.$EventBus ? {
47127
- "zh-CN": "en",
47128
- "zh-HK": "en",
47129
- "en-US": "en"
47130
- } : {
47131
- "zh-CN": "sc",
47132
- "zh-HK": "tc",
47133
- "en-US": "en"
47049
+ getDevice() {
47050
+ const DEVICES = {
47051
+ /**
47052
+ * 桌面
47053
+ */
47054
+ DESKTOP: "pc",
47055
+ PC: "pc",
47056
+ /**
47057
+ * 平板
47058
+ */
47059
+ TABLET: "tablet",
47060
+ /**
47061
+ * 移动端/手机
47062
+ */
47063
+ MOBILE: "mobile"
47134
47064
  };
47135
- this.routeLang = obj[lang];
47136
- const currentSrc = this.componentUrl.replace("langTag", `${obj[lang]}`);
47137
- this.servePlanSrc = `${this.baseUrl}${currentSrc}`;
47138
- console.log("currentSrc", this.servePlanSrc);
47139
- if (this.$EventBus) {
47140
- this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW`;
47065
+ const tablet = "(max-width: 1024px)";
47066
+ const mobile = "(max-width: 1024px)";
47067
+ if (window.parent.matchMedia(mobile).matches) {
47068
+ return DEVICES.MOBILE;
47069
+ } else if (window.parent.matchMedia(tablet).matches) {
47070
+ return DEVICES.TABLET;
47141
47071
  }
47142
- this.propsdata5 = {
47143
- orgId: sessionStorage.getItem("orgId") || "",
47144
- staffId: sessionStorage.getItem("staffId") || "",
47145
- cmhkChannel: this.getCmhkChannelMx(),
47146
- cmhkToken: sessionStorage.getItem("cmhkToken") || "",
47147
- componentId: this.componentId,
47148
- viaCompInstId: this.viaCompInstId
47149
- };
47072
+ return DEVICES.PC;
47150
47073
  },
47151
- getCmhkChannelMx() {
47152
- const host = window.location.host;
47153
- const wwwHostList = ["www.hk.chinamobile.com", "www-uat.hk.chinamobile.com", "localhost:9640", "localhost:9700", "localhost:9701"];
47154
- if (({"NODE_ENV":"production","VUE_APP_CONSOLE_PRD":"aHR0cDovLzEwLjAuMjguMjI6OTcwMA==","VUE_APP_CONSOLE_UAT":"aHR0cDovLzEwLjAuMjguMjU6OTcwMA==","VUE_APP_NUXT_DEV":"aHR0cDovLzEwLjAuMjguNjA6OTY0MA==","VUE_APP_NUXT_PRD1":"https://www.hk.chinamobile.com","VUE_APP_NUXT_PRD2":"https://omniapi.hk.chinamobile.com","VUE_APP_NUXT_PRD3":"aHR0cDovLzEwLjAuMjguMjI6NzgyMg==","VUE_APP_NUXT_UAT1":"aHR0cDovLzEwLjAuMjguMTYx","VUE_APP_NUXT_UAT1_NOHTTP":"MTAuMC4yOC4xNjE=","VUE_APP_NUXT_UAT2":"https://www-uat.hk.chinamobile.com","VUE_APP_NUXT_UAT2_NOHTTP":"MTAuMC4yOC4xNzo5NjAy","VUE_APP_NUXT_UAT3":"https://omniapi-uat.hk.chinamobile.com","VUE_APP_SCHEMA_PRD":"aHR0cDovLzEwLjAuMjguMjI6OTcwNA==","VUE_APP_SCHEMA_UAT":"aHR0cDovLzEwLjAuMjguMjU6OTcwNA==","BASE_URL":"/"}).MODE == "devlopment") {
47155
- wwwHostList.push(this.$Base64.decode("MTAuMC4yOC4xNjE="));
47156
- wwwHostList.push(this.$Base64.decode("MTAuMC4yOC4xNzo5NjAy"));
47157
- }
47158
- if (wwwHostList.includes(host)) {
47159
- return "WWW";
47160
- } else {
47161
- return sessionStorage.getItem("cmhkChannel") || "WWW";
47162
- }
47074
+ onStart() {},
47075
+ onEnd(e) {
47076
+ console.log(e, 8);
47163
47077
  },
47164
47078
  handleNowComp() {
47165
47079
  if (!this.isOpcacity) return;
@@ -47173,24 +47087,19 @@ var es_iterator_for_each = __webpack_require__(7588);
47173
47087
  this.$EventBus.$emit("handleDeleteComp", {
47174
47088
  key: this.data.id
47175
47089
  });
47176
- },
47177
- handleMessage(e) {
47178
- console.log(e.data, "789");
47179
- const iframe = this.$refs.iframeRef;
47180
- iframe.style.height = e.data + "px";
47181
47090
  }
47182
47091
  }
47183
47092
  });
47184
- ;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
47185
- /* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
47186
- ;// ./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-via-storedValueCard/View.vue?vue&type=style&index=0&id=9f29a076&prod&lang=scss&scoped=true
47093
+ ;// ./package/cms-column/View.vue?vue&type=script&lang=js
47094
+ /* harmony default export */ var cms_column_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
47095
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-column/View.vue?vue&type=style&index=0&id=bd317c30&prod&lang=css
47187
47096
  // extracted by mini-css-extract-plugin
47188
47097
 
47189
- ;// ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=9f29a076&prod&lang=scss&scoped=true
47098
+ ;// ./package/cms-column/View.vue?vue&type=style&index=0&id=bd317c30&prod&lang=css
47190
47099
 
47191
47100
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
47192
47101
  var componentNormalizer = __webpack_require__(1656);
47193
- ;// ./package/cms-via-storedValueCard/View.vue
47102
+ ;// ./package/cms-column/View.vue
47194
47103
 
47195
47104
 
47196
47105
 
@@ -47200,12 +47109,12 @@ var componentNormalizer = __webpack_require__(1656);
47200
47109
  /* normalize component */
47201
47110
 
47202
47111
  var component = (0,componentNormalizer/* default */.A)(
47203
- cms_via_storedValueCard_Viewvue_type_script_lang_js,
47112
+ cms_column_Viewvue_type_script_lang_js,
47204
47113
  render,
47205
47114
  staticRenderFns,
47206
47115
  false,
47207
47116
  null,
47208
- "9f29a076",
47117
+ null,
47209
47118
  null
47210
47119
 
47211
47120
  )
@@ -47214,379 +47123,71 @@ var component = (0,componentNormalizer/* default */.A)(
47214
47123
 
47215
47124
  /***/ }),
47216
47125
 
47217
- /***/ 7347:
47218
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
47126
+ /***/ 7467:
47127
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
47219
47128
 
47220
47129
  "use strict";
47221
47130
 
47222
- var DESCRIPTORS = __webpack_require__(3724);
47223
- var call = __webpack_require__(9565);
47224
- var propertyIsEnumerableModule = __webpack_require__(8773);
47225
- var createPropertyDescriptor = __webpack_require__(6980);
47226
- var toIndexedObject = __webpack_require__(5397);
47227
- var toPropertyKey = __webpack_require__(6969);
47228
- var hasOwn = __webpack_require__(9297);
47229
- var IE8_DOM_DEFINE = __webpack_require__(5917);
47131
+ var arrayToReversed = __webpack_require__(7628);
47132
+ var ArrayBufferViewCore = __webpack_require__(4644);
47230
47133
 
47231
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
47232
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
47134
+ var aTypedArray = ArrayBufferViewCore.aTypedArray;
47135
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
47136
+ var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
47233
47137
 
47234
- // `Object.getOwnPropertyDescriptor` method
47235
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
47236
- exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
47237
- O = toIndexedObject(O);
47238
- P = toPropertyKey(P);
47239
- if (IE8_DOM_DEFINE) try {
47240
- return $getOwnPropertyDescriptor(O, P);
47241
- } catch (error) { /* empty */ }
47242
- if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
47243
- };
47138
+ // `%TypedArray%.prototype.toReversed` method
47139
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
47140
+ exportTypedArrayMethod('toReversed', function toReversed() {
47141
+ return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
47142
+ });
47244
47143
 
47245
47144
 
47246
47145
  /***/ }),
47247
47146
 
47248
- /***/ 7394:
47147
+ /***/ 7476:
47249
47148
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
47250
47149
 
47251
47150
  "use strict";
47252
47151
 
47253
- var globalThis = __webpack_require__(4576);
47254
- var uncurryThisAccessor = __webpack_require__(6706);
47255
- var classof = __webpack_require__(2195);
47256
-
47257
- var ArrayBuffer = globalThis.ArrayBuffer;
47258
- var TypeError = globalThis.TypeError;
47152
+ var classofRaw = __webpack_require__(2195);
47153
+ var uncurryThis = __webpack_require__(9504);
47259
47154
 
47260
- // Includes
47261
- // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
47262
- // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
47263
- module.exports = ArrayBuffer && uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
47264
- if (classof(O) !== 'ArrayBuffer') throw new TypeError('ArrayBuffer expected');
47265
- return O.byteLength;
47155
+ module.exports = function (fn) {
47156
+ // Nashorn bug:
47157
+ // https://github.com/zloirock/core-js/issues/1128
47158
+ // https://github.com/zloirock/core-js/issues/1130
47159
+ if (classofRaw(fn) === 'Function') return uncurryThis(fn);
47266
47160
  };
47267
47161
 
47268
47162
 
47269
47163
  /***/ }),
47270
47164
 
47271
- /***/ 7439:
47272
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
47165
+ /***/ 7551:
47166
+ /***/ (function(module) {
47273
47167
 
47274
47168
  "use strict";
47275
- // ESM COMPAT FLAG
47276
- __webpack_require__.r(__webpack_exports__);
47277
-
47278
- // EXPORTS
47279
- __webpack_require__.d(__webpack_exports__, {
47280
- "default": function() { return /* binding */ View; }
47281
- });
47282
-
47283
- ;// ./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-column/View.vue?vue&type=template&id=bd317c30
47284
- var render = function render() {
47285
- var _vm = this,
47286
- _c = _vm._self._c;
47287
- return _c('Draggable', {
47288
- attrs: {
47289
- "chosen-class": "chosen",
47290
- "force-fallback": "true",
47291
- "group": "people",
47292
- "animation": "1000",
47293
- "disabled": _vm.dragDisabled
47294
- },
47295
- on: {
47296
- "start": _vm.onStart,
47297
- "end": _vm.onEnd
47298
- }
47299
- }, [_c('div', {
47300
- staticClass: "drag-column-container",
47301
- class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? 'highLight' : ''],
47302
- staticStyle: {
47303
- "position": "relative"
47304
- },
47305
- style: _vm.style,
47306
- on: {
47307
- "click": function ($event) {
47308
- $event.stopPropagation();
47309
- return _vm.handleNowComp.apply(null, arguments);
47310
- }
47311
- }
47312
- }, [_vm._l(_vm.data.list, function (item) {
47313
- return [_c('Draggable', {
47314
- key: item.id,
47315
- staticClass: "drag-column",
47316
- class: [_vm.isEditor ? 'border' : ''],
47317
- attrs: {
47318
- "id": item.id,
47319
- "chosen-class": "chosen",
47320
- "force-fallback": "true",
47321
- "group": "people",
47322
- "animation": "1000",
47323
- "disabled": _vm.dragDisabled
47324
- },
47325
- on: {
47326
- "start": _vm.onStart,
47327
- "end": _vm.onEnd
47328
- }
47329
- }, [item ? [_c(item.compName, {
47330
- tag: "component",
47331
- attrs: {
47332
- "data": item,
47333
- "nowCompId": _vm.nowCompId
47334
- }
47335
- })] : _vm._e()], 2)];
47336
- }), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
47337
- staticClass: "com-delete"
47338
- }, [_c('i', {
47339
- staticClass: "el-icon-delete",
47340
- on: {
47341
- "click": function ($event) {
47342
- $event.stopPropagation();
47343
- return _vm.deleteComponent.apply(null, arguments);
47344
- }
47345
- }
47346
- })]) : _vm._e()], 2)]);
47347
- };
47348
- var staticRenderFns = [];
47349
47169
 
47350
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
47351
- var es_iterator_constructor = __webpack_require__(8111);
47352
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
47353
- var es_iterator_for_each = __webpack_require__(7588);
47354
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
47355
- var es_iterator_map = __webpack_require__(1701);
47356
- // EXTERNAL MODULE: ./node_modules/vuedraggable/dist/vuedraggable.umd.js
47357
- var vuedraggable_umd = __webpack_require__(1527);
47358
- var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_umd);
47359
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-column/View.vue?vue&type=script&lang=js
47360
47170
 
47171
+ /** @type {import('./functionApply')} */
47172
+ module.exports = Function.prototype.apply;
47361
47173
 
47174
+ /***/ }),
47362
47175
 
47176
+ /***/ 7566:
47177
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
47363
47178
 
47179
+ "use strict";
47364
47180
 
47181
+ var defineBuiltIn = __webpack_require__(6840);
47182
+ var uncurryThis = __webpack_require__(9504);
47183
+ var toString = __webpack_require__(655);
47184
+ var validateArgumentsLength = __webpack_require__(2812);
47365
47185
 
47366
-
47367
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
47368
- name: "cms-column",
47369
- components: {
47370
- Draggable: (vuedraggable_umd_default())
47371
- },
47372
- props: {
47373
- data: {
47374
- type: Object,
47375
- default: () => {
47376
- return {};
47377
- }
47378
- },
47379
- nowCompId: {
47380
- type: [String, Number],
47381
- default: ""
47382
- }
47383
- },
47384
- watch: {
47385
- data: {
47386
- handler(val) {
47387
- let obj = {};
47388
- let num = 0;
47389
- let originHeight = 0;
47390
- val.settings.settings.forEach(item => {
47391
- if (item.key == "num") {
47392
- num = item.value;
47393
- }
47394
- });
47395
- val.settings.attribute.map(item => {
47396
- obj[item.key] = item.value;
47397
- if (this.getDevice() == "mobile" || this.getDevice() == "tablet") {
47398
- if (item.key == "height") {
47399
- if (item.value.indexOf("px") != -1) {
47400
- originHeight = parseFloat(item.value.split("px")[0]) * num + "px";
47401
- }
47402
- if (item.value.indexOf("%") != -1) {
47403
- originHeight = parseFloat(item.value.split("px")[0]) * num + "%";
47404
- }
47405
- }
47406
- }
47407
- });
47408
- this.style = obj;
47409
- if (this.getDevice() == "mobile" || this.getDevice() == "tablet") {
47410
- this.style.height = originHeight;
47411
- }
47412
- if (this.isEditor) {
47413
- this.style.width = `calc(${obj.width} - 2px)`;
47414
- }
47415
- },
47416
- deep: true,
47417
- immediate: true
47418
- }
47419
- },
47420
- data() {
47421
- return {
47422
- style: {},
47423
- isEditor: true,
47424
- // 是否是开发态
47425
- dragDisabled: false
47426
- };
47427
- },
47428
- created() {
47429
- if (this.$route.path != "/editor") {
47430
- this.isEditor = false;
47431
- this.dragDisabled = true;
47432
- }
47433
- },
47434
- mounted() {
47435
- if (this.$EventBus) {
47436
- this.$EventBus.$on("forceUpdateCom", data => {
47437
- if (data.id == this.data.id) {
47438
- let obj = {};
47439
- data.settings.attribute.forEach(item => {
47440
- obj[item.key] = item.value;
47441
- });
47442
- this.style = obj;
47443
- }
47444
- });
47445
- }
47446
- },
47447
- methods: {
47448
- getDevice() {
47449
- const DEVICES = {
47450
- /**
47451
- * 桌面
47452
- */
47453
- DESKTOP: "pc",
47454
- PC: "pc",
47455
- /**
47456
- * 平板
47457
- */
47458
- TABLET: "tablet",
47459
- /**
47460
- * 移动端/手机
47461
- */
47462
- MOBILE: "mobile"
47463
- };
47464
- const tablet = "(max-width: 1024px)";
47465
- const mobile = "(max-width: 1024px)";
47466
- if (window.parent.matchMedia(mobile).matches) {
47467
- return DEVICES.MOBILE;
47468
- } else if (window.parent.matchMedia(tablet).matches) {
47469
- return DEVICES.TABLET;
47470
- }
47471
- return DEVICES.PC;
47472
- },
47473
- onStart() {},
47474
- onEnd(e) {
47475
- console.log(e, 8);
47476
- },
47477
- handleNowComp() {
47478
- if (!this.isOpcacity) return;
47479
- this.$EventBus.$emit("handleNowComp", {
47480
- key: this.data.id,
47481
- settings: this.data.settings,
47482
- nowCompName: this.data.compName
47483
- });
47484
- },
47485
- deleteComponent() {
47486
- this.$EventBus.$emit("handleDeleteComp", {
47487
- key: this.data.id
47488
- });
47489
- }
47490
- }
47491
- });
47492
- ;// ./package/cms-column/View.vue?vue&type=script&lang=js
47493
- /* harmony default export */ var cms_column_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
47494
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-column/View.vue?vue&type=style&index=0&id=bd317c30&prod&lang=css
47495
- // extracted by mini-css-extract-plugin
47496
-
47497
- ;// ./package/cms-column/View.vue?vue&type=style&index=0&id=bd317c30&prod&lang=css
47498
-
47499
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
47500
- var componentNormalizer = __webpack_require__(1656);
47501
- ;// ./package/cms-column/View.vue
47502
-
47503
-
47504
-
47505
- ;
47506
-
47507
-
47508
- /* normalize component */
47509
-
47510
- var component = (0,componentNormalizer/* default */.A)(
47511
- cms_column_Viewvue_type_script_lang_js,
47512
- render,
47513
- staticRenderFns,
47514
- false,
47515
- null,
47516
- null,
47517
- null
47518
-
47519
- )
47520
-
47521
- /* harmony default export */ var View = (component.exports);
47522
-
47523
- /***/ }),
47524
-
47525
- /***/ 7467:
47526
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
47527
-
47528
- "use strict";
47529
-
47530
- var arrayToReversed = __webpack_require__(7628);
47531
- var ArrayBufferViewCore = __webpack_require__(4644);
47532
-
47533
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
47534
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
47535
- var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
47536
-
47537
- // `%TypedArray%.prototype.toReversed` method
47538
- // https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
47539
- exportTypedArrayMethod('toReversed', function toReversed() {
47540
- return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
47541
- });
47542
-
47543
-
47544
- /***/ }),
47545
-
47546
- /***/ 7476:
47547
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
47548
-
47549
- "use strict";
47550
-
47551
- var classofRaw = __webpack_require__(2195);
47552
- var uncurryThis = __webpack_require__(9504);
47553
-
47554
- module.exports = function (fn) {
47555
- // Nashorn bug:
47556
- // https://github.com/zloirock/core-js/issues/1128
47557
- // https://github.com/zloirock/core-js/issues/1130
47558
- if (classofRaw(fn) === 'Function') return uncurryThis(fn);
47559
- };
47560
-
47561
-
47562
- /***/ }),
47563
-
47564
- /***/ 7551:
47565
- /***/ (function(module) {
47566
-
47567
- "use strict";
47568
-
47569
-
47570
- /** @type {import('./functionApply')} */
47571
- module.exports = Function.prototype.apply;
47572
-
47573
- /***/ }),
47574
-
47575
- /***/ 7566:
47576
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
47577
-
47578
- "use strict";
47579
-
47580
- var defineBuiltIn = __webpack_require__(6840);
47581
- var uncurryThis = __webpack_require__(9504);
47582
- var toString = __webpack_require__(655);
47583
- var validateArgumentsLength = __webpack_require__(2812);
47584
-
47585
- var $URLSearchParams = URLSearchParams;
47586
- var URLSearchParamsPrototype = $URLSearchParams.prototype;
47587
- var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
47588
- var $has = uncurryThis(URLSearchParamsPrototype.has);
47589
- var params = new $URLSearchParams('a=1');
47186
+ var $URLSearchParams = URLSearchParams;
47187
+ var URLSearchParamsPrototype = $URLSearchParams.prototype;
47188
+ var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
47189
+ var $has = uncurryThis(URLSearchParamsPrototype.has);
47190
+ var params = new $URLSearchParams('a=1');
47590
47191
 
47591
47192
  // `undefined` case is a Chromium 117 bug
47592
47193
  // https://bugs.chromium.org/p/v8/issues/detail?id=14222
@@ -50397,24 +49998,378 @@ var render = function render() {
50397
49998
  staticClass: "crad-more",
50398
49999
  on: {
50399
50000
  "click": function ($event) {
50400
- $event.stopPropagation();
50401
- _vm.panelFold = !_vm.panelFold;
50001
+ $event.stopPropagation();
50002
+ _vm.panelFold = !_vm.panelFold;
50003
+ }
50004
+ }
50005
+ }, [_c('span', [_vm._v(_vm._s(_vm.panelFold ? "收起" : "展開")), _c('i', {
50006
+ class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
50007
+ })])]) : _vm._e(), _vm.$i18n.locale == 'en-US' && (item === null || item === void 0 ? void 0 : item.input2.length) > 132 ? _c('div', {
50008
+ staticClass: "crad-more",
50009
+ on: {
50010
+ "click": function ($event) {
50011
+ $event.stopPropagation();
50012
+ _vm.panelFold = !_vm.panelFold;
50013
+ }
50014
+ }
50015
+ }, [_c('span', [_vm._v(_vm._s(_vm.panelFold ? "Collpase" : "Expand")), _c('i', {
50016
+ class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
50017
+ })])]) : _vm._e()])])]);
50018
+ }), 0)])])]), _c('div', {
50019
+ class: {
50020
+ opcacity: _vm.isOpcacity
50021
+ },
50022
+ on: {
50023
+ "click": _vm.handleNowComp
50024
+ }
50025
+ })]), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
50026
+ staticClass: "com-delete"
50027
+ }, [_c('i', {
50028
+ staticClass: "el-icon-delete",
50029
+ on: {
50030
+ "click": function ($event) {
50031
+ $event.stopPropagation();
50032
+ return _vm.deleteComponent.apply(null, arguments);
50033
+ }
50034
+ }
50035
+ })]) : _vm._e()]);
50036
+ };
50037
+ var staticRenderFns = [];
50038
+
50039
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
50040
+ var es_iterator_constructor = __webpack_require__(8111);
50041
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
50042
+ var es_iterator_for_each = __webpack_require__(7588);
50043
+ // EXTERNAL MODULE: ./src/utils/jumpUrl.js
50044
+ var jumpUrl = __webpack_require__(813);
50045
+ // EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
50046
+ var vue_runtime_esm = __webpack_require__(6848);
50047
+ ;// ./src/utils/useMobileEffect.js
50048
+
50049
+ const isMobileHook = (0,vue_runtime_esm.ref)(false);
50050
+ const resize = () => {
50051
+ let bodyW = 0;
50052
+ if (document.body) {
50053
+ bodyW = document.body.scrollWidth || document.body.clientWidth;
50054
+ }
50055
+ if (bodyW < 800) {
50056
+ isMobileHook.value = true;
50057
+ } else {
50058
+ isMobileHook.value = false;
50059
+ }
50060
+ };
50061
+ /* harmony default export */ function useMobileEffect() {
50062
+ (0,vue_runtime_esm.onMounted)(() => {
50063
+ resize();
50064
+ window.addEventListener('resize', resize);
50065
+ });
50066
+ (0,vue_runtime_esm.onUnmounted)(() => {
50067
+ window.removeEventListener('resize', resize);
50068
+ });
50069
+ return {
50070
+ isMobileHook
50071
+ };
50072
+ }
50073
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=script&setup=true&lang=js
50074
+
50075
+
50076
+
50077
+
50078
+ const __default__ = {
50079
+ name: "cms-lineThree",
50080
+ props: {
50081
+ data: {
50082
+ type: Object,
50083
+ default: () => {
50084
+ return {};
50085
+ }
50086
+ },
50087
+ nowCompId: {
50088
+ type: [String, Number],
50089
+ default: ""
50090
+ },
50091
+ isOpcacity: {
50092
+ type: Boolean,
50093
+ default: true
50094
+ },
50095
+ lang: {
50096
+ type: String,
50097
+ default: "zh-HK"
50098
+ }
50099
+ },
50100
+ data() {
50101
+ return {
50102
+ style: {},
50103
+ CN: [],
50104
+ HK: [],
50105
+ EN: [],
50106
+ list: [],
50107
+ panelFold: false
50108
+ };
50109
+ },
50110
+ mounted() {
50111
+ if (this.$EventBus) {
50112
+ this.$EventBus.$on("forceUpdateCom", data => {
50113
+ if (data.id == this.data.id) {
50114
+ let obj = {};
50115
+ data.settings.attribute.forEach(item => {
50116
+ obj[item.key] = item.value;
50117
+ });
50118
+ this.style = obj;
50119
+ }
50120
+ });
50121
+ }
50122
+ },
50123
+ watch: {
50124
+ data: {
50125
+ handler(val) {
50126
+ let obj = {};
50127
+ val.settings.settings.forEach(item => {
50128
+ this.CN = item.value.bannerList.CN;
50129
+ this.HK = item.value.bannerList.HK;
50130
+ this.EN = item.value.bannerList.EN;
50131
+ });
50132
+ val.settings.attribute.forEach(item => {
50133
+ obj[item.key] = item.value;
50134
+ });
50135
+ this.getValue(this.lang);
50136
+ },
50137
+ deep: true,
50138
+ immediate: true
50139
+ },
50140
+ lang: {
50141
+ handler(val) {
50142
+ this.getValue(val);
50143
+ },
50144
+ deep: true,
50145
+ immediate: true
50146
+ }
50147
+ },
50148
+ methods: {
50149
+ getValue(val) {
50150
+ const obj = {
50151
+ "zh-CN": "CN",
50152
+ "zh-HK": "HK",
50153
+ "en-US": "EN"
50154
+ };
50155
+ this.list = this[`${obj[val]}`];
50156
+ },
50157
+ handleNowComp() {
50158
+ if (!this.isOpcacity) return;
50159
+ this.$EventBus.$emit("handleNowComp", {
50160
+ key: this.data.id,
50161
+ settings: this.data.settings,
50162
+ nowCompName: this.data.compName
50163
+ });
50164
+ },
50165
+ deleteComponent() {
50166
+ this.$EventBus.$emit("handleDeleteComp", {
50167
+ key: this.data.id
50168
+ });
50169
+ }
50170
+ }
50171
+ };
50172
+
50173
+
50174
+ /* harmony default export */ var Viewvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
50175
+ setup(__props) {
50176
+ const {
50177
+ isMobileHook
50178
+ } = useMobileEffect();
50179
+ return {
50180
+ __sfc: true,
50181
+ isMobileHook,
50182
+ decodeJumpUrl: jumpUrl/* decodeJumpUrl */.u
50183
+ };
50184
+ }
50185
+ }));
50186
+ ;// ./package/cms-lineThree/View.vue?vue&type=script&setup=true&lang=js
50187
+ /* harmony default export */ var cms_lineThree_Viewvue_type_script_setup_true_lang_js = (Viewvue_type_script_setup_true_lang_js);
50188
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=style&index=0&id=42dea33b&prod&lang=scss&scoped=true
50189
+ // extracted by mini-css-extract-plugin
50190
+
50191
+ ;// ./package/cms-lineThree/View.vue?vue&type=style&index=0&id=42dea33b&prod&lang=scss&scoped=true
50192
+
50193
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
50194
+ var componentNormalizer = __webpack_require__(1656);
50195
+ ;// ./package/cms-lineThree/View.vue
50196
+
50197
+
50198
+
50199
+ ;
50200
+
50201
+
50202
+ /* normalize component */
50203
+
50204
+ var component = (0,componentNormalizer/* default */.A)(
50205
+ cms_lineThree_Viewvue_type_script_setup_true_lang_js,
50206
+ render,
50207
+ staticRenderFns,
50208
+ false,
50209
+ null,
50210
+ "42dea33b",
50211
+ null
50212
+
50213
+ )
50214
+
50215
+ /* harmony default export */ var View = (component.exports);
50216
+
50217
+ /***/ }),
50218
+
50219
+ /***/ 9099:
50220
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
50221
+
50222
+ "use strict";
50223
+ // ESM COMPAT FLAG
50224
+ __webpack_require__.r(__webpack_exports__);
50225
+
50226
+ // EXPORTS
50227
+ __webpack_require__.d(__webpack_exports__, {
50228
+ "default": function() { return /* binding */ View; }
50229
+ });
50230
+
50231
+ ;// ./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=27afd59e&scoped=true
50232
+ var render = function render() {
50233
+ var _vm$cmsConfig$bannerL;
50234
+ var _vm = this,
50235
+ _c = _vm._self._c;
50236
+ return _c('div', {
50237
+ staticClass: "test",
50238
+ class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? 'highLight' : ''],
50239
+ staticStyle: {
50240
+ "position": "relative",
50241
+ "cursor": "pointer"
50242
+ },
50243
+ style: _vm.style,
50244
+ on: {
50245
+ "click": function ($event) {
50246
+ $event.stopPropagation();
50247
+ return _vm.handleNowComp();
50248
+ }
50249
+ }
50250
+ }, [_c('div', {
50251
+ staticClass: "content-swiper tt_banner"
50252
+ }, [_vm.cmsConfig.bannerList.length > 0 ? _c('div', {
50253
+ staticClass: "relative position"
50254
+ }, [_c('div', {
50255
+ staticClass: "my_banner"
50256
+ }, [_c('div', {
50257
+ staticClass: "swiper-container_contentswiper",
50258
+ attrs: {
50259
+ "id": `contentSwiper${_vm.data.id}`
50260
+ }
50261
+ }, [_c('div', {
50262
+ staticClass: "swiper-wrapper",
50263
+ staticStyle: {
50264
+ "width": "1074px",
50265
+ "height": "100%"
50266
+ }
50267
+ }, _vm._l(_vm.cmsConfig.bannerList, function (item, inx) {
50268
+ return _c('div', {
50269
+ key: inx,
50270
+ staticClass: "swiper-slide"
50271
+ }, [item ? _c('div', {
50272
+ staticClass: "swiper-banner_box",
50273
+ on: {
50274
+ "click": function ($event) {
50275
+ return _vm.decodeJumpUrl(item.jumpUrl, _vm.$router);
50402
50276
  }
50403
50277
  }
50404
- }, [_c('span', [_vm._v(_vm._s(_vm.panelFold ? "收起" : "展開")), _c('i', {
50405
- class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
50406
- })])]) : _vm._e(), _vm.$i18n.locale == 'en-US' && (item === null || item === void 0 ? void 0 : item.input2.length) > 132 ? _c('div', {
50407
- staticClass: "crad-more",
50278
+ }, [_c('img', {
50279
+ staticClass: "swiper-banner_image layout-pc",
50280
+ attrs: {
50281
+ "src": item.uploadImagePC,
50282
+ "alt": "PC"
50283
+ }
50284
+ }), _c('img', {
50285
+ staticClass: "swiper-banner_image layout-mobile",
50286
+ attrs: {
50287
+ "src": item.uploadImageH5,
50288
+ "alt": "H5"
50289
+ }
50290
+ }), _c('div', {
50291
+ staticClass: "extra-swiper_box layout-pc"
50292
+ }, [item.title ? _c('div', {
50293
+ staticClass: "swiper-contentbtn"
50294
+ }, [_c('span', [_vm._v(_vm._s(item.title))])]) : _vm._e(), item.des ? _c('div', {
50295
+ staticClass: "swiper-labels"
50296
+ }, [_c('span', [_vm._v(_vm._s(item.des))])]) : _vm._e(), _c('div', {
50297
+ staticClass: "swiper-btn_container"
50298
+ }, [item.input1 != '' ? _c('a', {
50299
+ attrs: {
50300
+ "href": item.jumpUrl1,
50301
+ "target": "_self"
50302
+ }
50303
+ }, [_c('button', {
50304
+ staticClass: "swiper-opbtn have-arrow"
50305
+ }, [_c('span', [_vm._v(_vm._s(item.input1))])])]) : _vm._e(), item.input2 != '' ? _c('a', {
50306
+ attrs: {
50307
+ "href": item.jumpUrl2,
50308
+ "target": "_self"
50309
+ }
50310
+ }, [_c('button', {
50311
+ staticClass: "swiper-opbtn_wt"
50312
+ }, [_c('span', [_vm._v(_vm._s(item.input2))])])]) : _vm._e()])])]) : _vm._e()]);
50313
+ }), 0)])]), _vm.cmsConfig.bannerList[_vm.swiperIdx].title || _vm.cmsConfig.bannerList[_vm.swiperIdx].des || _vm.cmsConfig.bannerList[_vm.swiperIdx].input1 || _vm.cmsConfig.bannerList[_vm.swiperIdx].input2 || (_vm$cmsConfig$bannerL = _vm.cmsConfig.bannerList[_vm.swiperIdx]) !== null && _vm$cmsConfig$bannerL !== void 0 && _vm$cmsConfig$bannerL.input3 ? _c('div', {
50314
+ staticClass: "mb-swiper_box layout-mobile"
50315
+ }, [_vm.cmsConfig.bannerList[_vm.swiperIdx].title ? _c('div', {
50316
+ staticClass: "swiper-contentbtn"
50317
+ }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].title))])]) : _vm._e(), _vm.cmsConfig.bannerList[_vm.swiperIdx].des ? _c('div', {
50318
+ staticClass: "swiper-label"
50319
+ }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].des))])]) : _vm._e(), _c('div', {
50320
+ staticClass: "swiper-btn_container"
50321
+ }, [_vm.cmsConfig.bannerList[_vm.swiperIdx].input1 ? _c('a', {
50322
+ attrs: {
50323
+ "href": _vm.cmsConfig.bannerList[_vm.swiperIdx].jumpUrl1,
50324
+ "target": "_self"
50325
+ }
50326
+ }, [_c('button', {
50327
+ staticClass: "swiper-opbtn have-arrow"
50328
+ }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].input1))])])]) : _vm._e(), _vm.cmsConfig.bannerList[_vm.swiperIdx].input2 ? _c('a', {
50329
+ attrs: {
50330
+ "href": _vm.cmsConfig.bannerList[_vm.swiperIdx].jumpUrl2,
50331
+ "target": "_self"
50332
+ }
50333
+ }, [_c('button', {
50334
+ staticClass: "swiper-opbtn_wt have-arrow"
50335
+ }, [_c('span', [_vm._v(_vm._s(_vm.cmsConfig.bannerList[_vm.swiperIdx].input2))])])]) : _vm._e()])]) : _vm._e(), _vm.cmsConfig.bannerList.length > 1 ? _c('div', {
50336
+ staticClass: "cmhk-swiper-button-number"
50337
+ }, [_vm._l(_vm.cmsConfig.bannerList, function (item, idx) {
50338
+ return _c('div', {
50339
+ key: idx,
50340
+ staticClass: "line-customs_wrapper",
50408
50341
  on: {
50409
50342
  "click": function ($event) {
50410
50343
  $event.stopPropagation();
50411
- _vm.panelFold = !_vm.panelFold;
50344
+ return _vm.jumpToSlide(idx);
50412
50345
  }
50413
50346
  }
50414
- }, [_c('span', [_vm._v(_vm._s(_vm.panelFold ? "Collpase" : "Expand")), _c('i', {
50415
- class: _vm.panelFold ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
50416
- })])]) : _vm._e()])])]);
50417
- }), 0)])])]), _c('div', {
50347
+ }, [_c('div', {
50348
+ class: ['cmhk-line-customs', idx === _vm.swiperIdx ? 'cmhk-line-customs-active' : '']
50349
+ }, [item && item.input1 ? _c('div', {
50350
+ staticClass: "swiper-popupup layout-pc"
50351
+ }, [_c('p', {
50352
+ staticClass: "swiper-popuptext"
50353
+ }, [_vm._v(_vm._s(item.input1))])]) : _vm._e()])]);
50354
+ }), _c('div', {
50355
+ staticClass: "swiper-button-puase",
50356
+ on: {
50357
+ "click": function ($event) {
50358
+ $event.stopPropagation();
50359
+ return _vm.swiperPlay.apply(null, arguments);
50360
+ }
50361
+ }
50362
+ }, [!_vm.swiperPlayVal ? _c('img', {
50363
+ staticClass: "playstart-image",
50364
+ attrs: {
50365
+ "src": __webpack_require__(2254)
50366
+ }
50367
+ }) : _vm._e(), _vm.swiperPlayVal ? _c('img', {
50368
+ staticClass: "playstop-image",
50369
+ attrs: {
50370
+ "src": __webpack_require__(2584)
50371
+ }
50372
+ }) : _vm._e()])], 2) : _vm._e()]) : _vm._e(), _c('div', {
50418
50373
  class: {
50419
50374
  opcacity: _vm.isOpcacity
50420
50375
  },
@@ -50435,47 +50390,29 @@ var render = function render() {
50435
50390
  };
50436
50391
  var staticRenderFns = [];
50437
50392
 
50393
+ ;// ./package/cms-banner/View.vue?vue&type=template&id=27afd59e&scoped=true
50394
+
50438
50395
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
50439
50396
  var es_iterator_constructor = __webpack_require__(8111);
50440
50397
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
50441
50398
  var es_iterator_for_each = __webpack_require__(7588);
50399
+ // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
50400
+ var swiper = __webpack_require__(2791);
50401
+ // EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
50402
+ var swiper_esm_bundle = __webpack_require__(4418);
50442
50403
  // EXTERNAL MODULE: ./src/utils/jumpUrl.js
50443
50404
  var jumpUrl = __webpack_require__(813);
50444
- // EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
50445
- var vue_runtime_esm = __webpack_require__(6848);
50446
- ;// ./src/utils/useMobileEffect.js
50405
+ ;// ./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
50447
50406
 
50448
- const isMobileHook = (0,vue_runtime_esm.ref)(false);
50449
- const resize = () => {
50450
- let bodyW = 0;
50451
- if (document.body) {
50452
- bodyW = document.body.scrollWidth || document.body.clientWidth;
50453
- }
50454
- if (bodyW < 800) {
50455
- isMobileHook.value = true;
50456
- } else {
50457
- isMobileHook.value = false;
50458
- }
50459
- };
50460
- /* harmony default export */ function useMobileEffect() {
50461
- (0,vue_runtime_esm.onMounted)(() => {
50462
- resize();
50463
- window.addEventListener('resize', resize);
50464
- });
50465
- (0,vue_runtime_esm.onUnmounted)(() => {
50466
- window.removeEventListener('resize', resize);
50467
- });
50468
- return {
50469
- isMobileHook
50470
- };
50471
- }
50472
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=script&setup=true&lang=js
50473
50407
 
50474
50408
 
50475
50409
 
50476
50410
 
50477
- const __default__ = {
50478
- name: "cms-lineThree",
50411
+
50412
+
50413
+
50414
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
50415
+ name: "cms-banner",
50479
50416
  props: {
50480
50417
  data: {
50481
50418
  type: Object,
@@ -50499,13 +50436,25 @@ const __default__ = {
50499
50436
  data() {
50500
50437
  return {
50501
50438
  style: {},
50439
+ // 样式
50440
+ isEditor: true,
50441
+ cmsConfig: {
50442
+ bannerList: []
50443
+ },
50502
50444
  CN: [],
50503
50445
  HK: [],
50504
50446
  EN: [],
50505
- list: [],
50506
- panelFold: false
50447
+ // 轮播
50448
+ swiperOne: null,
50449
+ swiperIdx: 0,
50450
+ swiperPlayVal: true
50507
50451
  };
50508
50452
  },
50453
+ created() {
50454
+ if (this.$route.path != "/editor") {
50455
+ this.isEditor = false;
50456
+ }
50457
+ },
50509
50458
  mounted() {
50510
50459
  if (this.$EventBus) {
50511
50460
  this.$EventBus.$on("forceUpdateCom", data => {
@@ -50518,6 +50467,9 @@ const __default__ = {
50518
50467
  }
50519
50468
  });
50520
50469
  }
50470
+ if (this.cmsConfig.bannerList.length > 0) {
50471
+ this.initSwiper("bannerList");
50472
+ }
50521
50473
  },
50522
50474
  watch: {
50523
50475
  data: {
@@ -50531,6 +50483,7 @@ const __default__ = {
50531
50483
  val.settings.attribute.forEach(item => {
50532
50484
  obj[item.key] = item.value;
50533
50485
  });
50486
+ this.style = obj;
50534
50487
  this.getValue(this.lang);
50535
50488
  },
50536
50489
  deep: true,
@@ -50551,7 +50504,7 @@ const __default__ = {
50551
50504
  "zh-HK": "HK",
50552
50505
  "en-US": "EN"
50553
50506
  };
50554
- this.list = this[`${obj[val]}`];
50507
+ this.cmsConfig.bannerList = this[`${obj[val]}`];
50555
50508
  },
50556
50509
  handleNowComp() {
50557
50510
  if (!this.isOpcacity) return;
@@ -50565,33 +50518,75 @@ const __default__ = {
50565
50518
  this.$EventBus.$emit("handleDeleteComp", {
50566
50519
  key: this.data.id
50567
50520
  });
50521
+ },
50522
+ initSwiper(operationName) {
50523
+ const vm = this;
50524
+ if (operationName === "bannerList" && this.cmsConfig.bannerList.length > 0) {
50525
+ // 当广告个数大于1的时候才开启循环
50526
+ const ifLoop = this.cmsConfig.bannerList.length > 1 ? true : false;
50527
+ this.swiperOne = new swiper_esm_bundle/* default */.A(`#contentSwiper${this.data.id}`, {
50528
+ initialSlide: 0,
50529
+ // 初始化时slide的索引
50530
+ autoplay: {
50531
+ // 自动开始
50532
+ delay: 5000,
50533
+ // 时间间隔
50534
+ disableOnInteraction: false // 手动操作轮播图后不会暂停
50535
+ },
50536
+ loop: ifLoop,
50537
+ // 循环模式选项
50538
+ spaceBetween: 30,
50539
+ // 在slide之间设置距离
50540
+ observer: true,
50541
+ observeParents: true,
50542
+ on: {
50543
+ slideChangeTransitionEnd: function () {
50544
+ // swiper从一个slide过渡到另一个slide结束时执行
50545
+ console.log("realIndex", this.realIndex);
50546
+ if (this.realIndex > vm.cmsConfig.bannerList.length - 1) return;
50547
+ vm.swiperIdx = this.realIndex;
50548
+ },
50549
+ resize: function () {
50550
+ this.update(true);
50551
+ }
50552
+ }
50553
+ });
50554
+ }
50555
+ },
50556
+ // 轮播
50557
+ swiperPlay() {
50558
+ this.swiperPlayVal = !this.swiperPlayVal;
50559
+ this.swiperPlayVal ? this.swiperClickStart() : this.swiperClickStop();
50560
+ },
50561
+ swiperClickStop() {
50562
+ this.swiperOne.autoplay.stop();
50563
+ },
50564
+ swiperClickStart() {
50565
+ this.swiperOne.autoplay.start();
50566
+ },
50567
+ jumpToSlide(idx) {
50568
+ // banner 轮播PC
50569
+ console.log("PC点击了", idx);
50570
+ // 在Loop模式下Swiper切换到指定slide。切换到的是slide索引是realIndex
50571
+ this.swiperOne.slideToLoop(idx, 1000, false);
50572
+ this.swiperIdx = idx;
50573
+ },
50574
+ //跳转
50575
+ decodeJumpUrl(path, route) {
50576
+ (0,jumpUrl/* decodeJumpUrl */.u)(path, route);
50568
50577
  }
50569
50578
  }
50570
- };
50571
-
50572
-
50573
- /* harmony default export */ var Viewvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
50574
- setup(__props) {
50575
- const {
50576
- isMobileHook
50577
- } = useMobileEffect();
50578
- return {
50579
- __sfc: true,
50580
- isMobileHook,
50581
- decodeJumpUrl: jumpUrl/* decodeJumpUrl */.u
50582
- };
50583
- }
50584
- }));
50585
- ;// ./package/cms-lineThree/View.vue?vue&type=script&setup=true&lang=js
50586
- /* harmony default export */ var cms_lineThree_Viewvue_type_script_setup_true_lang_js = (Viewvue_type_script_setup_true_lang_js);
50587
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineThree/View.vue?vue&type=style&index=0&id=42dea33b&prod&lang=scss&scoped=true
50579
+ });
50580
+ ;// ./package/cms-banner/View.vue?vue&type=script&lang=js
50581
+ /* harmony default export */ var cms_banner_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
50582
+ ;// ./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=27afd59e&prod&scoped=true&lang=scss
50588
50583
  // extracted by mini-css-extract-plugin
50589
50584
 
50590
- ;// ./package/cms-lineThree/View.vue?vue&type=style&index=0&id=42dea33b&prod&lang=scss&scoped=true
50585
+ ;// ./package/cms-banner/View.vue?vue&type=style&index=0&id=27afd59e&prod&scoped=true&lang=scss
50591
50586
 
50592
50587
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
50593
50588
  var componentNormalizer = __webpack_require__(1656);
50594
- ;// ./package/cms-lineThree/View.vue
50589
+ ;// ./package/cms-banner/View.vue
50595
50590
 
50596
50591
 
50597
50592
 
@@ -50601,12 +50596,12 @@ var componentNormalizer = __webpack_require__(1656);
50601
50596
  /* normalize component */
50602
50597
 
50603
50598
  var component = (0,componentNormalizer/* default */.A)(
50604
- cms_lineThree_Viewvue_type_script_setup_true_lang_js,
50599
+ cms_banner_Viewvue_type_script_lang_js,
50605
50600
  render,
50606
50601
  staticRenderFns,
50607
50602
  false,
50608
50603
  null,
50609
- "42dea33b",
50604
+ "27afd59e",
50610
50605
  null
50611
50606
 
50612
50607
  )