cms-chenhj-ui 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms-chenhj-ui.common.js +797 -797
- package/cms-chenhj-ui.common.js.map +1 -1
- package/cms-chenhj-ui.css +1 -1
- package/cms-chenhj-ui.umd.js +797 -797
- package/cms-chenhj-ui.umd.js.map +1 -1
- package/cms-chenhj-ui.umd.min.js +2 -2
- package/cms-chenhj-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/cms-chenhj-ui.umd.js
CHANGED
|
@@ -237,7 +237,7 @@ var swiper = __webpack_require__(828);
|
|
|
237
237
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
238
238
|
var swiper_esm_bundle = __webpack_require__(1532);
|
|
239
239
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
240
|
-
var baseComp = __webpack_require__(
|
|
240
|
+
var baseComp = __webpack_require__(9345);
|
|
241
241
|
;// ./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-aLineThreeLeftTwo/View.vue?vue&type=script&lang=js
|
|
242
242
|
|
|
243
243
|
|
|
@@ -10042,7 +10042,7 @@ var render = function render() {
|
|
|
10042
10042
|
var staticRenderFns = [];
|
|
10043
10043
|
|
|
10044
10044
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
10045
|
-
var baseComp = __webpack_require__(
|
|
10045
|
+
var baseComp = __webpack_require__(9345);
|
|
10046
10046
|
;// ./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-lineTwo/View.vue?vue&type=script&lang=js
|
|
10047
10047
|
|
|
10048
10048
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -19915,100 +19915,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACB
|
|
|
19915
19915
|
|
|
19916
19916
|
/***/ }),
|
|
19917
19917
|
|
|
19918
|
-
/***/ 2274:
|
|
19919
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19920
|
-
|
|
19921
|
-
"use strict";
|
|
19922
|
-
// ESM COMPAT FLAG
|
|
19923
|
-
__webpack_require__.r(__webpack_exports__);
|
|
19924
|
-
|
|
19925
|
-
// EXPORTS
|
|
19926
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
19927
|
-
"default": function() { return /* binding */ View; }
|
|
19928
|
-
});
|
|
19929
|
-
|
|
19930
|
-
;// ./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-view/View.vue?vue&type=template&id=09f4dc30&scoped=true
|
|
19931
|
-
var render = function render() {
|
|
19932
|
-
var _vm = this,
|
|
19933
|
-
_c = _vm._self._c;
|
|
19934
|
-
return _c('div', {
|
|
19935
|
-
staticClass: "view-container"
|
|
19936
|
-
}, [_vm._l(_vm.data, function (item) {
|
|
19937
|
-
return [_c(item.cmsCompName, {
|
|
19938
|
-
key: item.componentId,
|
|
19939
|
-
tag: "component",
|
|
19940
|
-
attrs: {
|
|
19941
|
-
"data": item,
|
|
19942
|
-
"lang": _vm.lang,
|
|
19943
|
-
"timeline": _vm.timeline,
|
|
19944
|
-
"cmhkChannel": _vm.cmhkChannel,
|
|
19945
|
-
"isOpcacity": false
|
|
19946
|
-
}
|
|
19947
|
-
})];
|
|
19948
|
-
})], 2);
|
|
19949
|
-
};
|
|
19950
|
-
var staticRenderFns = [];
|
|
19951
|
-
|
|
19952
|
-
;// ./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-view/View.vue?vue&type=script&lang=js
|
|
19953
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
19954
|
-
name: "cms-view",
|
|
19955
|
-
props: {
|
|
19956
|
-
data: {
|
|
19957
|
-
type: Array,
|
|
19958
|
-
default: () => {
|
|
19959
|
-
return [];
|
|
19960
|
-
}
|
|
19961
|
-
},
|
|
19962
|
-
lang: {
|
|
19963
|
-
type: String,
|
|
19964
|
-
default: "zh-HK"
|
|
19965
|
-
},
|
|
19966
|
-
timeline: {
|
|
19967
|
-
type: String,
|
|
19968
|
-
default: ""
|
|
19969
|
-
},
|
|
19970
|
-
cmhkChannel: {
|
|
19971
|
-
type: String,
|
|
19972
|
-
default: "WWW"
|
|
19973
|
-
}
|
|
19974
|
-
},
|
|
19975
|
-
created() {
|
|
19976
|
-
this.$i18n.locale = this.lang;
|
|
19977
|
-
}
|
|
19978
|
-
});
|
|
19979
|
-
;// ./package/cms-view/View.vue?vue&type=script&lang=js
|
|
19980
|
-
/* harmony default export */ var cms_view_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
19981
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-57.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-57.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-57.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-view/View.vue?vue&type=style&index=0&id=09f4dc30&prod&scoped=true&lang=css
|
|
19982
|
-
// extracted by mini-css-extract-plugin
|
|
19983
|
-
|
|
19984
|
-
;// ./package/cms-view/View.vue?vue&type=style&index=0&id=09f4dc30&prod&scoped=true&lang=css
|
|
19985
|
-
|
|
19986
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
19987
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
19988
|
-
;// ./package/cms-view/View.vue
|
|
19989
|
-
|
|
19990
|
-
|
|
19991
|
-
|
|
19992
|
-
;
|
|
19993
|
-
|
|
19994
|
-
|
|
19995
|
-
/* normalize component */
|
|
19996
|
-
|
|
19997
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
19998
|
-
cms_view_Viewvue_type_script_lang_js,
|
|
19999
|
-
render,
|
|
20000
|
-
staticRenderFns,
|
|
20001
|
-
false,
|
|
20002
|
-
null,
|
|
20003
|
-
"09f4dc30",
|
|
20004
|
-
null
|
|
20005
|
-
|
|
20006
|
-
)
|
|
20007
|
-
|
|
20008
|
-
/* harmony default export */ var View = (component.exports);
|
|
20009
|
-
|
|
20010
|
-
/***/ }),
|
|
20011
|
-
|
|
20012
19918
|
/***/ 2297:
|
|
20013
19919
|
/***/ (function(module) {
|
|
20014
19920
|
|
|
@@ -20181,210 +20087,6 @@ module.exports = Object.create || function create(O, Properties) {
|
|
|
20181
20087
|
};
|
|
20182
20088
|
|
|
20183
20089
|
|
|
20184
|
-
/***/ }),
|
|
20185
|
-
|
|
20186
|
-
/***/ 2396:
|
|
20187
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20188
|
-
|
|
20189
|
-
"use strict";
|
|
20190
|
-
|
|
20191
|
-
// EXPORTS
|
|
20192
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
20193
|
-
A: function() { return /* binding */ baseComp; }
|
|
20194
|
-
});
|
|
20195
|
-
|
|
20196
|
-
;// ./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/baseComp.vue?vue&type=template&id=54115f12
|
|
20197
|
-
var render = function render() {
|
|
20198
|
-
var _vm = this,
|
|
20199
|
-
_c = _vm._self._c;
|
|
20200
|
-
return _vm.$EventBus && _vm.isOpcacity ? _c('div', {
|
|
20201
|
-
key: _vm.data.componentId,
|
|
20202
|
-
class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.componentId ? 'highLight' : ''],
|
|
20203
|
-
style: _vm.styleConfig_mb,
|
|
20204
|
-
on: {
|
|
20205
|
-
"click": function ($event) {
|
|
20206
|
-
$event.stopPropagation();
|
|
20207
|
-
return _vm.handleNowComp.apply(null, arguments);
|
|
20208
|
-
}
|
|
20209
|
-
}
|
|
20210
|
-
}, [_c('div', {
|
|
20211
|
-
staticClass: "position",
|
|
20212
|
-
on: {
|
|
20213
|
-
"click": function ($event) {
|
|
20214
|
-
$event.stopPropagation();
|
|
20215
|
-
return _vm.handleNowComp.apply(null, arguments);
|
|
20216
|
-
}
|
|
20217
|
-
}
|
|
20218
|
-
}, [_vm._t("default"), _c('div', {
|
|
20219
|
-
class: {
|
|
20220
|
-
opcacity: _vm.isOpcacity
|
|
20221
|
-
},
|
|
20222
|
-
on: {
|
|
20223
|
-
"click": _vm.handleNowComp
|
|
20224
|
-
}
|
|
20225
|
-
})], 2), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.componentId ? _c('div', {
|
|
20226
|
-
staticClass: "com-delete"
|
|
20227
|
-
}, [_c('i', {
|
|
20228
|
-
staticClass: "el-icon-delete",
|
|
20229
|
-
on: {
|
|
20230
|
-
"click": function ($event) {
|
|
20231
|
-
$event.stopPropagation();
|
|
20232
|
-
return _vm.delComp.apply(null, arguments);
|
|
20233
|
-
}
|
|
20234
|
-
}
|
|
20235
|
-
})]) : _vm._e()]) : _vm.showSlot ? _c('div', {
|
|
20236
|
-
key: _vm.data.componentId,
|
|
20237
|
-
style: _vm.styleConfig_mb
|
|
20238
|
-
}, [_vm._t("default")], 2) : _vm._e();
|
|
20239
|
-
};
|
|
20240
|
-
var staticRenderFns = [];
|
|
20241
|
-
|
|
20242
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
20243
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
20244
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
20245
|
-
var es_iterator_reduce = __webpack_require__(8237);
|
|
20246
|
-
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
20247
|
-
var patch = __webpack_require__(7890);
|
|
20248
|
-
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
20249
|
-
var dayjs_min = __webpack_require__(8655);
|
|
20250
|
-
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
20251
|
-
;// ./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/baseComp.vue?vue&type=script&lang=js
|
|
20252
|
-
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
|
|
20256
|
-
// 待办:判断移动pc端填充不同的样式
|
|
20257
|
-
|
|
20258
|
-
|
|
20259
|
-
/* harmony default export */ var baseCompvue_type_script_lang_js = ({
|
|
20260
|
-
name: "baseComp",
|
|
20261
|
-
props: {
|
|
20262
|
-
data: {
|
|
20263
|
-
type: Object,
|
|
20264
|
-
default: () => {
|
|
20265
|
-
return {};
|
|
20266
|
-
}
|
|
20267
|
-
},
|
|
20268
|
-
nowCompId: {
|
|
20269
|
-
type: [String, Number],
|
|
20270
|
-
default: ""
|
|
20271
|
-
},
|
|
20272
|
-
isOpcacity: {
|
|
20273
|
-
type: Boolean,
|
|
20274
|
-
default: true
|
|
20275
|
-
},
|
|
20276
|
-
lang: {
|
|
20277
|
-
type: String,
|
|
20278
|
-
default: "zh-HK"
|
|
20279
|
-
},
|
|
20280
|
-
timeline: {
|
|
20281
|
-
type: String,
|
|
20282
|
-
default: ""
|
|
20283
|
-
},
|
|
20284
|
-
cmhkChannel: {
|
|
20285
|
-
type: String,
|
|
20286
|
-
default: "WWW"
|
|
20287
|
-
}
|
|
20288
|
-
},
|
|
20289
|
-
data() {
|
|
20290
|
-
return {
|
|
20291
|
-
styleConfig_mb: {},
|
|
20292
|
-
styleConfig_pc: {},
|
|
20293
|
-
configData: {}
|
|
20294
|
-
};
|
|
20295
|
-
},
|
|
20296
|
-
mounted() {},
|
|
20297
|
-
watch: {
|
|
20298
|
-
data: {
|
|
20299
|
-
handler(val) {
|
|
20300
|
-
this.getStyleConfig(val, "pc");
|
|
20301
|
-
this.getStyleConfig(val, "mb");
|
|
20302
|
-
this.getValue(this.lang);
|
|
20303
|
-
},
|
|
20304
|
-
deep: true,
|
|
20305
|
-
immediate: true
|
|
20306
|
-
},
|
|
20307
|
-
lang: {
|
|
20308
|
-
handler(val) {
|
|
20309
|
-
this.getValue(val);
|
|
20310
|
-
},
|
|
20311
|
-
deep: true,
|
|
20312
|
-
immediate: true
|
|
20313
|
-
}
|
|
20314
|
-
},
|
|
20315
|
-
methods: {
|
|
20316
|
-
getValue(cur_lang) {
|
|
20317
|
-
var _this$data, _this$data$settings;
|
|
20318
|
-
const obj = {
|
|
20319
|
-
"zh-CN": "lang_sc",
|
|
20320
|
-
"zh-HK": "lang_tc",
|
|
20321
|
-
"en-US": "lang_en"
|
|
20322
|
-
};
|
|
20323
|
-
if ((_this$data = this.data) !== null && _this$data !== void 0 && (_this$data$settings = _this$data.settings) !== null && _this$data$settings !== void 0 && _this$data$settings.settings) {
|
|
20324
|
-
const baseInfo = (0,patch/* transfor */.k)(this.data);
|
|
20325
|
-
this.configData = baseInfo.contentConfig.lang_all ? baseInfo.contentConfig.lang_all : baseInfo.contentConfig[`${obj[cur_lang]}`];
|
|
20326
|
-
} else {
|
|
20327
|
-
this.configData = this.data.contentConfig.lang_all ? this.data.contentConfig.lang_all : this.data.contentConfig[`${obj[cur_lang]}`];
|
|
20328
|
-
}
|
|
20329
|
-
this.$emit("getConfigData", this.configData);
|
|
20330
|
-
},
|
|
20331
|
-
getStyleConfig(data, type) {
|
|
20332
|
-
this[`styleConfig_${type}`] = data.styleConfig[type].reduce((pre, cur) => {
|
|
20333
|
-
pre[cur.key] = cur.value;
|
|
20334
|
-
return pre;
|
|
20335
|
-
}, {});
|
|
20336
|
-
},
|
|
20337
|
-
handleNowComp() {
|
|
20338
|
-
if (!this.isOpcacity) return;
|
|
20339
|
-
this.$EventBus.$emit("handleNowComp", this.data);
|
|
20340
|
-
},
|
|
20341
|
-
delComp() {
|
|
20342
|
-
this.$EventBus.$emit("handleDeleteComp", this.data.componentId);
|
|
20343
|
-
}
|
|
20344
|
-
},
|
|
20345
|
-
computed: {
|
|
20346
|
-
showSlot() {
|
|
20347
|
-
const {
|
|
20348
|
-
cmhkChannelConfList = [],
|
|
20349
|
-
startTime = "",
|
|
20350
|
-
endTime = ""
|
|
20351
|
-
} = this.data.baseConfig;
|
|
20352
|
-
console.log("this.cmhkChannel", this.cmhkChannel, this.data.baseConfig);
|
|
20353
|
-
const channelVisable = cmhkChannelConfList.includes(this.cmhkChannel);
|
|
20354
|
-
if (!channelVisable) return false;
|
|
20355
|
-
if (!startTime && !endTime) return true;
|
|
20356
|
-
const currentTime = this.timeline ? dayjs_min_default()(this.timeline) : dayjs_min_default()();
|
|
20357
|
-
const isStart = startTime ? dayjs_min_default()(currentTime).isAfter(dayjs_min_default()(startTime)) || dayjs_min_default()(currentTime).isSame(dayjs_min_default()(startTime)) : true;
|
|
20358
|
-
const isEnd = endTime ? dayjs_min_default()(currentTime).isBefore(dayjs_min_default()(endTime)) || dayjs_min_default()(currentTime).isSame(dayjs_min_default()(endTime)) : true;
|
|
20359
|
-
return isStart && isEnd;
|
|
20360
|
-
}
|
|
20361
|
-
}
|
|
20362
|
-
});
|
|
20363
|
-
;// ./package/baseComp.vue?vue&type=script&lang=js
|
|
20364
|
-
/* harmony default export */ var package_baseCompvue_type_script_lang_js = (baseCompvue_type_script_lang_js);
|
|
20365
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20366
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
20367
|
-
;// ./package/baseComp.vue
|
|
20368
|
-
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
|
|
20372
|
-
|
|
20373
|
-
/* normalize component */
|
|
20374
|
-
;
|
|
20375
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
20376
|
-
package_baseCompvue_type_script_lang_js,
|
|
20377
|
-
render,
|
|
20378
|
-
staticRenderFns,
|
|
20379
|
-
false,
|
|
20380
|
-
null,
|
|
20381
|
-
null,
|
|
20382
|
-
null
|
|
20383
|
-
|
|
20384
|
-
)
|
|
20385
|
-
|
|
20386
|
-
/* harmony default export */ var baseComp = (component.exports);
|
|
20387
|
-
|
|
20388
20090
|
/***/ }),
|
|
20389
20091
|
|
|
20390
20092
|
/***/ 2443:
|
|
@@ -20871,6 +20573,166 @@ var userAgent = navigator && navigator.userAgent;
|
|
|
20871
20573
|
module.exports = userAgent ? String(userAgent) : '';
|
|
20872
20574
|
|
|
20873
20575
|
|
|
20576
|
+
/***/ }),
|
|
20577
|
+
|
|
20578
|
+
/***/ 2928:
|
|
20579
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20580
|
+
|
|
20581
|
+
"use strict";
|
|
20582
|
+
// ESM COMPAT FLAG
|
|
20583
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20584
|
+
|
|
20585
|
+
// EXPORTS
|
|
20586
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
20587
|
+
"default": function() { return /* binding */ View; }
|
|
20588
|
+
});
|
|
20589
|
+
|
|
20590
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=template&id=183f20d8&scoped=true
|
|
20591
|
+
var render = function render() {
|
|
20592
|
+
var _vm = this,
|
|
20593
|
+
_c = _vm._self._c;
|
|
20594
|
+
return _c('BaseComp', _vm._b({
|
|
20595
|
+
attrs: {
|
|
20596
|
+
"data": _vm.data,
|
|
20597
|
+
"nowCompId": _vm.nowCompId,
|
|
20598
|
+
"isOpcacity": _vm.isOpcacity,
|
|
20599
|
+
"lang": _vm.lang
|
|
20600
|
+
},
|
|
20601
|
+
on: {
|
|
20602
|
+
"getConfigData": _vm.getConfigData
|
|
20603
|
+
}
|
|
20604
|
+
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
|
|
20605
|
+
key: _vm.data.componentId,
|
|
20606
|
+
attrs: {
|
|
20607
|
+
"name": `cmsacive${_vm.data.componentId}`,
|
|
20608
|
+
"url": _vm.wujieCompUrl,
|
|
20609
|
+
"props": {
|
|
20610
|
+
data: _vm.propsdata5
|
|
20611
|
+
}
|
|
20612
|
+
}
|
|
20613
|
+
}) : _vm._e()], 1);
|
|
20614
|
+
};
|
|
20615
|
+
var staticRenderFns = [];
|
|
20616
|
+
|
|
20617
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
20618
|
+
var baseComp = __webpack_require__(9345);
|
|
20619
|
+
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
20620
|
+
var patch = __webpack_require__(7890);
|
|
20621
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
20622
|
+
|
|
20623
|
+
|
|
20624
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
20625
|
+
name: "cms-via-storedValueCard",
|
|
20626
|
+
components: {
|
|
20627
|
+
BaseComp: baseComp/* default */.A
|
|
20628
|
+
},
|
|
20629
|
+
props: {
|
|
20630
|
+
data: {
|
|
20631
|
+
type: Object,
|
|
20632
|
+
default: () => {
|
|
20633
|
+
return {};
|
|
20634
|
+
}
|
|
20635
|
+
},
|
|
20636
|
+
nowCompId: {
|
|
20637
|
+
type: [String, Number],
|
|
20638
|
+
default: ""
|
|
20639
|
+
},
|
|
20640
|
+
isOpcacity: {
|
|
20641
|
+
type: Boolean,
|
|
20642
|
+
default: true
|
|
20643
|
+
},
|
|
20644
|
+
lang: {
|
|
20645
|
+
type: String,
|
|
20646
|
+
default: ""
|
|
20647
|
+
}
|
|
20648
|
+
},
|
|
20649
|
+
data() {
|
|
20650
|
+
return {
|
|
20651
|
+
wujieCompUrl: "",
|
|
20652
|
+
propsdata5: {},
|
|
20653
|
+
showWujie: false,
|
|
20654
|
+
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
20655
|
+
componentUrl: "",
|
|
20656
|
+
componentId: "",
|
|
20657
|
+
viaCompInstId: ""
|
|
20658
|
+
};
|
|
20659
|
+
},
|
|
20660
|
+
async mounted() {
|
|
20661
|
+
if (!this.$EventBus) {
|
|
20662
|
+
if (window.location.origin.includes("-uat")) {
|
|
20663
|
+
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
20664
|
+
} else {
|
|
20665
|
+
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
20666
|
+
}
|
|
20667
|
+
}
|
|
20668
|
+
this.getUrl(this.lang);
|
|
20669
|
+
},
|
|
20670
|
+
created() {},
|
|
20671
|
+
methods: {
|
|
20672
|
+
getConfigData() {
|
|
20673
|
+
const wujieConfig = this.data.wujieConfig;
|
|
20674
|
+
this.componentUrl = wujieConfig.componentUrl;
|
|
20675
|
+
this.componentId = wujieConfig.componentId;
|
|
20676
|
+
this.viaCompInstId = wujieConfig.viaCompInstId;
|
|
20677
|
+
this.getUrl(this.lang);
|
|
20678
|
+
if (this.componentId) {
|
|
20679
|
+
setTimeout(() => {
|
|
20680
|
+
this.showWujie = true;
|
|
20681
|
+
});
|
|
20682
|
+
}
|
|
20683
|
+
},
|
|
20684
|
+
wujieFetchMx(url, options) {
|
|
20685
|
+
return window.fetch(url, {
|
|
20686
|
+
...options,
|
|
20687
|
+
credentials: "include"
|
|
20688
|
+
});
|
|
20689
|
+
},
|
|
20690
|
+
getUrl(lang) {
|
|
20691
|
+
const langMap = {
|
|
20692
|
+
"zh-CN": "sc",
|
|
20693
|
+
"zh-HK": "tc",
|
|
20694
|
+
"en-US": "en"
|
|
20695
|
+
};
|
|
20696
|
+
const langTag = this.$EventBus ? "tc" : langMap[lang];
|
|
20697
|
+
const curCompUrl = this.componentUrl.replace("langTag", langTag);
|
|
20698
|
+
this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
|
|
20699
|
+
console.log("wujieCompUrl", this.wujieCompUrl);
|
|
20700
|
+
this.propsdata5 = {
|
|
20701
|
+
orgId: sessionStorage.getItem("orgId") || "",
|
|
20702
|
+
staffId: sessionStorage.getItem("staffId") || "",
|
|
20703
|
+
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
20704
|
+
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
20705
|
+
componentId: this.componentId,
|
|
20706
|
+
viaCompInstId: this.viaCompInstId
|
|
20707
|
+
};
|
|
20708
|
+
}
|
|
20709
|
+
}
|
|
20710
|
+
});
|
|
20711
|
+
;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
20712
|
+
/* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
20713
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20714
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
20715
|
+
;// ./package/cms-via-storedValueCard/View.vue
|
|
20716
|
+
|
|
20717
|
+
|
|
20718
|
+
|
|
20719
|
+
|
|
20720
|
+
|
|
20721
|
+
/* normalize component */
|
|
20722
|
+
;
|
|
20723
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
20724
|
+
cms_via_storedValueCard_Viewvue_type_script_lang_js,
|
|
20725
|
+
render,
|
|
20726
|
+
staticRenderFns,
|
|
20727
|
+
false,
|
|
20728
|
+
null,
|
|
20729
|
+
"183f20d8",
|
|
20730
|
+
null
|
|
20731
|
+
|
|
20732
|
+
)
|
|
20733
|
+
|
|
20734
|
+
/* harmony default export */ var View = (component.exports);
|
|
20735
|
+
|
|
20874
20736
|
/***/ }),
|
|
20875
20737
|
|
|
20876
20738
|
/***/ 2933:
|
|
@@ -20935,7 +20797,7 @@ var render = function render() {
|
|
|
20935
20797
|
var staticRenderFns = [];
|
|
20936
20798
|
|
|
20937
20799
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
20938
|
-
var baseComp = __webpack_require__(
|
|
20800
|
+
var baseComp = __webpack_require__(9345);
|
|
20939
20801
|
;// ./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-iconFour/View.vue?vue&type=script&lang=js
|
|
20940
20802
|
|
|
20941
20803
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -21119,7 +20981,7 @@ var staticRenderFns = [];
|
|
|
21119
20981
|
;// ./package/cms-prodCustomization/View.vue?vue&type=template&id=737dd414&scoped=true
|
|
21120
20982
|
|
|
21121
20983
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
21122
|
-
var baseComp = __webpack_require__(
|
|
20984
|
+
var baseComp = __webpack_require__(9345);
|
|
21123
20985
|
;// ./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-prodCustomization/View.vue?vue&type=script&lang=js
|
|
21124
20986
|
|
|
21125
20987
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -29560,6 +29422,100 @@ module.exports = !fails(function () {
|
|
|
29560
29422
|
});
|
|
29561
29423
|
|
|
29562
29424
|
|
|
29425
|
+
/***/ }),
|
|
29426
|
+
|
|
29427
|
+
/***/ 3774:
|
|
29428
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
29429
|
+
|
|
29430
|
+
"use strict";
|
|
29431
|
+
// ESM COMPAT FLAG
|
|
29432
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29433
|
+
|
|
29434
|
+
// EXPORTS
|
|
29435
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
29436
|
+
"default": function() { return /* binding */ View; }
|
|
29437
|
+
});
|
|
29438
|
+
|
|
29439
|
+
;// ./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-view/View.vue?vue&type=template&id=e4796b30&scoped=true
|
|
29440
|
+
var render = function render() {
|
|
29441
|
+
var _vm = this,
|
|
29442
|
+
_c = _vm._self._c;
|
|
29443
|
+
return _c('div', {
|
|
29444
|
+
staticClass: "view-container"
|
|
29445
|
+
}, [_vm._l(_vm.data, function (item) {
|
|
29446
|
+
return [_c(item.cmsCompName, {
|
|
29447
|
+
key: item.componentId,
|
|
29448
|
+
tag: "component",
|
|
29449
|
+
attrs: {
|
|
29450
|
+
"data": item,
|
|
29451
|
+
"lang": _vm.lang,
|
|
29452
|
+
"timeline": _vm.timeline,
|
|
29453
|
+
"cmhkChannel": _vm.cmhkChannel,
|
|
29454
|
+
"isOpcacity": false
|
|
29455
|
+
}
|
|
29456
|
+
})];
|
|
29457
|
+
})], 2);
|
|
29458
|
+
};
|
|
29459
|
+
var staticRenderFns = [];
|
|
29460
|
+
|
|
29461
|
+
;// ./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-view/View.vue?vue&type=script&lang=js
|
|
29462
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
29463
|
+
name: "cms-view",
|
|
29464
|
+
props: {
|
|
29465
|
+
data: {
|
|
29466
|
+
type: Array,
|
|
29467
|
+
default: () => {
|
|
29468
|
+
return [];
|
|
29469
|
+
}
|
|
29470
|
+
},
|
|
29471
|
+
lang: {
|
|
29472
|
+
type: String,
|
|
29473
|
+
default: "zh-HK"
|
|
29474
|
+
},
|
|
29475
|
+
timeline: {
|
|
29476
|
+
type: String,
|
|
29477
|
+
default: ""
|
|
29478
|
+
},
|
|
29479
|
+
cmhkChannel: {
|
|
29480
|
+
type: String,
|
|
29481
|
+
default: "WWW"
|
|
29482
|
+
}
|
|
29483
|
+
},
|
|
29484
|
+
created() {
|
|
29485
|
+
this.$i18n.locale = this.lang;
|
|
29486
|
+
}
|
|
29487
|
+
});
|
|
29488
|
+
;// ./package/cms-view/View.vue?vue&type=script&lang=js
|
|
29489
|
+
/* harmony default export */ var cms_view_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
29490
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-57.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-57.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-57.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-view/View.vue?vue&type=style&index=0&id=e4796b30&prod&scoped=true&lang=css
|
|
29491
|
+
// extracted by mini-css-extract-plugin
|
|
29492
|
+
|
|
29493
|
+
;// ./package/cms-view/View.vue?vue&type=style&index=0&id=e4796b30&prod&scoped=true&lang=css
|
|
29494
|
+
|
|
29495
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
29496
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
29497
|
+
;// ./package/cms-view/View.vue
|
|
29498
|
+
|
|
29499
|
+
|
|
29500
|
+
|
|
29501
|
+
;
|
|
29502
|
+
|
|
29503
|
+
|
|
29504
|
+
/* normalize component */
|
|
29505
|
+
|
|
29506
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
29507
|
+
cms_view_Viewvue_type_script_lang_js,
|
|
29508
|
+
render,
|
|
29509
|
+
staticRenderFns,
|
|
29510
|
+
false,
|
|
29511
|
+
null,
|
|
29512
|
+
"e4796b30",
|
|
29513
|
+
null
|
|
29514
|
+
|
|
29515
|
+
)
|
|
29516
|
+
|
|
29517
|
+
/* harmony default export */ var View = (component.exports);
|
|
29518
|
+
|
|
29563
29519
|
/***/ }),
|
|
29564
29520
|
|
|
29565
29521
|
/***/ 3789:
|
|
@@ -29718,7 +29674,7 @@ var render = function render() {
|
|
|
29718
29674
|
var staticRenderFns = [];
|
|
29719
29675
|
|
|
29720
29676
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
29721
|
-
var baseComp = __webpack_require__(
|
|
29677
|
+
var baseComp = __webpack_require__(9345);
|
|
29722
29678
|
;// ./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-productDetails/View.vue?vue&type=script&lang=js
|
|
29723
29679
|
|
|
29724
29680
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -30910,7 +30866,7 @@ var es_iterator_for_each = __webpack_require__(7588);
|
|
|
30910
30866
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
|
|
30911
30867
|
var es_iterator_map = __webpack_require__(1701);
|
|
30912
30868
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
30913
|
-
var baseComp = __webpack_require__(
|
|
30869
|
+
var baseComp = __webpack_require__(9345);
|
|
30914
30870
|
;// ./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
|
|
30915
30871
|
|
|
30916
30872
|
|
|
@@ -31287,7 +31243,7 @@ var swiper = __webpack_require__(828);
|
|
|
31287
31243
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
31288
31244
|
var swiper_esm_bundle = __webpack_require__(1532);
|
|
31289
31245
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
31290
|
-
var baseComp = __webpack_require__(
|
|
31246
|
+
var baseComp = __webpack_require__(9345);
|
|
31291
31247
|
;// ./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-termsAndConditions/View.vue?vue&type=script&lang=js
|
|
31292
31248
|
|
|
31293
31249
|
|
|
@@ -31517,7 +31473,7 @@ var render = function render() {
|
|
|
31517
31473
|
var staticRenderFns = [];
|
|
31518
31474
|
|
|
31519
31475
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
31520
|
-
var baseComp = __webpack_require__(
|
|
31476
|
+
var baseComp = __webpack_require__(9345);
|
|
31521
31477
|
;// ./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-servePlan-text/View.vue?vue&type=script&lang=js
|
|
31522
31478
|
|
|
31523
31479
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -32407,7 +32363,7 @@ var map = {
|
|
|
32407
32363
|
"./cms-aLineThreeLeftTwo/View.vue": 136,
|
|
32408
32364
|
"./cms-activityCountdown/View.vue": 6191,
|
|
32409
32365
|
"./cms-activityTime/View.vue": 8071,
|
|
32410
|
-
"./cms-banner/View.vue":
|
|
32366
|
+
"./cms-banner/View.vue": 8370,
|
|
32411
32367
|
"./cms-cells/View.vue": 8791,
|
|
32412
32368
|
"./cms-description/View.vue": 7054,
|
|
32413
32369
|
"./cms-iconFour/View.vue": 2933,
|
|
@@ -32427,8 +32383,8 @@ var map = {
|
|
|
32427
32383
|
"./cms-threeScroll/View.vue": 8687,
|
|
32428
32384
|
"./cms-titleCenter/View.vue": 6867,
|
|
32429
32385
|
"./cms-titleLeft/View.vue": 9728,
|
|
32430
|
-
"./cms-via-storedValueCard/View.vue":
|
|
32431
|
-
"./cms-view/View.vue":
|
|
32386
|
+
"./cms-via-storedValueCard/View.vue": 2928,
|
|
32387
|
+
"./cms-view/View.vue": 3774
|
|
32432
32388
|
};
|
|
32433
32389
|
|
|
32434
32390
|
|
|
@@ -32485,166 +32441,6 @@ module.exports = function (it) {
|
|
|
32485
32441
|
};
|
|
32486
32442
|
|
|
32487
32443
|
|
|
32488
|
-
/***/ }),
|
|
32489
|
-
|
|
32490
|
-
/***/ 5428:
|
|
32491
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
32492
|
-
|
|
32493
|
-
"use strict";
|
|
32494
|
-
// ESM COMPAT FLAG
|
|
32495
|
-
__webpack_require__.r(__webpack_exports__);
|
|
32496
|
-
|
|
32497
|
-
// EXPORTS
|
|
32498
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
32499
|
-
"default": function() { return /* binding */ View; }
|
|
32500
|
-
});
|
|
32501
|
-
|
|
32502
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=template&id=07a9c5f6&scoped=true
|
|
32503
|
-
var render = function render() {
|
|
32504
|
-
var _vm = this,
|
|
32505
|
-
_c = _vm._self._c;
|
|
32506
|
-
return _c('BaseComp', _vm._b({
|
|
32507
|
-
attrs: {
|
|
32508
|
-
"data": _vm.data,
|
|
32509
|
-
"nowCompId": _vm.nowCompId,
|
|
32510
|
-
"isOpcacity": _vm.isOpcacity,
|
|
32511
|
-
"lang": _vm.lang
|
|
32512
|
-
},
|
|
32513
|
-
on: {
|
|
32514
|
-
"getConfigData": _vm.getConfigData
|
|
32515
|
-
}
|
|
32516
|
-
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
|
|
32517
|
-
key: _vm.wujieCompUrl,
|
|
32518
|
-
attrs: {
|
|
32519
|
-
"name": `cmsacive${_vm.data.componentId}`,
|
|
32520
|
-
"url": _vm.wujieCompUrl,
|
|
32521
|
-
"props": {
|
|
32522
|
-
data: _vm.propsdata5
|
|
32523
|
-
}
|
|
32524
|
-
}
|
|
32525
|
-
}) : _vm._e()], 1);
|
|
32526
|
-
};
|
|
32527
|
-
var staticRenderFns = [];
|
|
32528
|
-
|
|
32529
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
32530
|
-
var baseComp = __webpack_require__(2396);
|
|
32531
|
-
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
32532
|
-
var patch = __webpack_require__(7890);
|
|
32533
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
32534
|
-
|
|
32535
|
-
|
|
32536
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
32537
|
-
name: "cms-via-storedValueCard",
|
|
32538
|
-
components: {
|
|
32539
|
-
BaseComp: baseComp/* default */.A
|
|
32540
|
-
},
|
|
32541
|
-
props: {
|
|
32542
|
-
data: {
|
|
32543
|
-
type: Object,
|
|
32544
|
-
default: () => {
|
|
32545
|
-
return {};
|
|
32546
|
-
}
|
|
32547
|
-
},
|
|
32548
|
-
nowCompId: {
|
|
32549
|
-
type: [String, Number],
|
|
32550
|
-
default: ""
|
|
32551
|
-
},
|
|
32552
|
-
isOpcacity: {
|
|
32553
|
-
type: Boolean,
|
|
32554
|
-
default: true
|
|
32555
|
-
},
|
|
32556
|
-
lang: {
|
|
32557
|
-
type: String,
|
|
32558
|
-
default: ""
|
|
32559
|
-
}
|
|
32560
|
-
},
|
|
32561
|
-
data() {
|
|
32562
|
-
return {
|
|
32563
|
-
wujieCompUrl: "",
|
|
32564
|
-
propsdata5: {},
|
|
32565
|
-
showWujie: false,
|
|
32566
|
-
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
32567
|
-
componentUrl: "",
|
|
32568
|
-
componentId: "",
|
|
32569
|
-
viaCompInstId: ""
|
|
32570
|
-
};
|
|
32571
|
-
},
|
|
32572
|
-
async mounted() {
|
|
32573
|
-
if (!this.$EventBus) {
|
|
32574
|
-
if (window.location.origin.includes("-uat")) {
|
|
32575
|
-
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
32576
|
-
} else {
|
|
32577
|
-
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
32578
|
-
}
|
|
32579
|
-
}
|
|
32580
|
-
this.getUrl(this.lang);
|
|
32581
|
-
},
|
|
32582
|
-
created() {},
|
|
32583
|
-
methods: {
|
|
32584
|
-
getConfigData() {
|
|
32585
|
-
const wujieConfig = this.data.wujieConfig;
|
|
32586
|
-
this.componentUrl = wujieConfig.componentUrl;
|
|
32587
|
-
this.componentId = wujieConfig.componentId;
|
|
32588
|
-
this.viaCompInstId = wujieConfig.viaCompInstId;
|
|
32589
|
-
this.getUrl(this.lang);
|
|
32590
|
-
if (this.componentId) {
|
|
32591
|
-
setTimeout(() => {
|
|
32592
|
-
this.showWujie = true;
|
|
32593
|
-
});
|
|
32594
|
-
}
|
|
32595
|
-
},
|
|
32596
|
-
wujieFetchMx(url, options) {
|
|
32597
|
-
return window.fetch(url, {
|
|
32598
|
-
...options,
|
|
32599
|
-
credentials: "include"
|
|
32600
|
-
});
|
|
32601
|
-
},
|
|
32602
|
-
getUrl(lang) {
|
|
32603
|
-
const langMap = {
|
|
32604
|
-
"zh-CN": "sc",
|
|
32605
|
-
"zh-HK": "tc",
|
|
32606
|
-
"en-US": "en"
|
|
32607
|
-
};
|
|
32608
|
-
const langTag = this.$EventBus ? "en" : langMap[lang];
|
|
32609
|
-
const curCompUrl = this.componentUrl.replace("langTag", langTag);
|
|
32610
|
-
this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
|
|
32611
|
-
console.log("wujieCompUrl", this.wujieCompUrl);
|
|
32612
|
-
this.propsdata5 = {
|
|
32613
|
-
orgId: sessionStorage.getItem("orgId") || "",
|
|
32614
|
-
staffId: sessionStorage.getItem("staffId") || "",
|
|
32615
|
-
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
32616
|
-
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
32617
|
-
componentId: this.componentId,
|
|
32618
|
-
viaCompInstId: this.viaCompInstId
|
|
32619
|
-
};
|
|
32620
|
-
}
|
|
32621
|
-
}
|
|
32622
|
-
});
|
|
32623
|
-
;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
32624
|
-
/* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
32625
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
32626
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
32627
|
-
;// ./package/cms-via-storedValueCard/View.vue
|
|
32628
|
-
|
|
32629
|
-
|
|
32630
|
-
|
|
32631
|
-
|
|
32632
|
-
|
|
32633
|
-
/* normalize component */
|
|
32634
|
-
;
|
|
32635
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
32636
|
-
cms_via_storedValueCard_Viewvue_type_script_lang_js,
|
|
32637
|
-
render,
|
|
32638
|
-
staticRenderFns,
|
|
32639
|
-
false,
|
|
32640
|
-
null,
|
|
32641
|
-
"07a9c5f6",
|
|
32642
|
-
null
|
|
32643
|
-
|
|
32644
|
-
)
|
|
32645
|
-
|
|
32646
|
-
/* harmony default export */ var View = (component.exports);
|
|
32647
|
-
|
|
32648
32444
|
/***/ }),
|
|
32649
32445
|
|
|
32650
32446
|
/***/ 5434:
|
|
@@ -33584,7 +33380,7 @@ function queryComponentConfigure(data) {
|
|
|
33584
33380
|
var lib = __webpack_require__(7087);
|
|
33585
33381
|
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
33586
33382
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
33587
|
-
var baseComp = __webpack_require__(
|
|
33383
|
+
var baseComp = __webpack_require__(9345);
|
|
33588
33384
|
;// ./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-proCard/View.vue?vue&type=script&lang=js
|
|
33589
33385
|
|
|
33590
33386
|
|
|
@@ -33896,7 +33692,7 @@ var render = function render() {
|
|
|
33896
33692
|
var staticRenderFns = [];
|
|
33897
33693
|
|
|
33898
33694
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
33899
|
-
var baseComp = __webpack_require__(
|
|
33695
|
+
var baseComp = __webpack_require__(9345);
|
|
33900
33696
|
// EXTERNAL MODULE: ./src/utils/request.js + 2 modules
|
|
33901
33697
|
var utils_request = __webpack_require__(9688);
|
|
33902
33698
|
;// ./src/api/servePlan.js
|
|
@@ -34679,7 +34475,7 @@ var render = function render() {
|
|
|
34679
34475
|
var staticRenderFns = [];
|
|
34680
34476
|
|
|
34681
34477
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
34682
|
-
var baseComp = __webpack_require__(
|
|
34478
|
+
var baseComp = __webpack_require__(9345);
|
|
34683
34479
|
;// ./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-richText/View.vue?vue&type=script&lang=js
|
|
34684
34480
|
|
|
34685
34481
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -35087,7 +34883,7 @@ var swiper = __webpack_require__(828);
|
|
|
35087
34883
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
35088
34884
|
var swiper_esm_bundle = __webpack_require__(1532);
|
|
35089
34885
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
35090
|
-
var baseComp = __webpack_require__(
|
|
34886
|
+
var baseComp = __webpack_require__(9345);
|
|
35091
34887
|
;// ./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-imgFour/View.vue?vue&type=script&lang=js
|
|
35092
34888
|
|
|
35093
34889
|
|
|
@@ -35180,311 +34976,6 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
35180
34976
|
|
|
35181
34977
|
/***/ }),
|
|
35182
34978
|
|
|
35183
|
-
/***/ 6770:
|
|
35184
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
35185
|
-
|
|
35186
|
-
"use strict";
|
|
35187
|
-
// ESM COMPAT FLAG
|
|
35188
|
-
__webpack_require__.r(__webpack_exports__);
|
|
35189
|
-
|
|
35190
|
-
// EXPORTS
|
|
35191
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
35192
|
-
"default": function() { return /* binding */ View; }
|
|
35193
|
-
});
|
|
35194
|
-
|
|
35195
|
-
;// ./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=741e5e02&scoped=true
|
|
35196
|
-
var render = function render() {
|
|
35197
|
-
var _vm$configList$_vm$sw;
|
|
35198
|
-
var _vm = this,
|
|
35199
|
-
_c = _vm._self._c;
|
|
35200
|
-
return _c('BaseComp', _vm._b({
|
|
35201
|
-
attrs: {
|
|
35202
|
-
"data": _vm.data,
|
|
35203
|
-
"nowCompId": _vm.nowCompId,
|
|
35204
|
-
"isOpcacity": _vm.isOpcacity,
|
|
35205
|
-
"lang": _vm.lang
|
|
35206
|
-
},
|
|
35207
|
-
on: {
|
|
35208
|
-
"getConfigData": _vm.getConfigData
|
|
35209
|
-
}
|
|
35210
|
-
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
35211
|
-
staticClass: "content-swiper tt_banner"
|
|
35212
|
-
}, [_vm.configList.length > 0 ? _c('div', {
|
|
35213
|
-
staticClass: "relative position"
|
|
35214
|
-
}, [_c('div', {
|
|
35215
|
-
staticClass: "my_banner"
|
|
35216
|
-
}, [_c('div', {
|
|
35217
|
-
staticClass: "swiper-container_contentswiper",
|
|
35218
|
-
attrs: {
|
|
35219
|
-
"id": `contentSwiper${_vm.data.id}`
|
|
35220
|
-
}
|
|
35221
|
-
}, [_c('div', {
|
|
35222
|
-
staticClass: "swiper-wrapper",
|
|
35223
|
-
staticStyle: {
|
|
35224
|
-
"width": "1074px",
|
|
35225
|
-
"height": "100%"
|
|
35226
|
-
}
|
|
35227
|
-
}, _vm._l(_vm.configList, function (item, inx) {
|
|
35228
|
-
return _c('div', {
|
|
35229
|
-
key: inx,
|
|
35230
|
-
staticClass: "swiper-slide"
|
|
35231
|
-
}, [item ? _c('div', {
|
|
35232
|
-
staticClass: "swiper-banner_box",
|
|
35233
|
-
on: {
|
|
35234
|
-
"click": function ($event) {
|
|
35235
|
-
return _vm.decodeJumpUrl(item.jumpUrl, _vm.$router);
|
|
35236
|
-
}
|
|
35237
|
-
}
|
|
35238
|
-
}, [_c('img', {
|
|
35239
|
-
staticClass: "swiper-banner_image layout-pc",
|
|
35240
|
-
attrs: {
|
|
35241
|
-
"src": item.uploadImagePC,
|
|
35242
|
-
"alt": "PC"
|
|
35243
|
-
}
|
|
35244
|
-
}), _c('img', {
|
|
35245
|
-
staticClass: "swiper-banner_image layout-mobile",
|
|
35246
|
-
attrs: {
|
|
35247
|
-
"src": item.uploadImageH5,
|
|
35248
|
-
"alt": "H5"
|
|
35249
|
-
}
|
|
35250
|
-
}), _c('div', {
|
|
35251
|
-
staticClass: "extra-swiper_box layout-pc"
|
|
35252
|
-
}, [item.title ? _c('div', {
|
|
35253
|
-
staticClass: "swiper-contentbtn"
|
|
35254
|
-
}, [_c('span', [_vm._v(_vm._s(item.title))])]) : _vm._e(), item.des ? _c('div', {
|
|
35255
|
-
staticClass: "swiper-labels"
|
|
35256
|
-
}, [_c('span', [_vm._v(_vm._s(item.des))])]) : _vm._e(), _c('div', {
|
|
35257
|
-
staticClass: "swiper-btn_container"
|
|
35258
|
-
}, [item.input1 != '' ? _c('a', {
|
|
35259
|
-
attrs: {
|
|
35260
|
-
"href": item.jumpUrl1,
|
|
35261
|
-
"target": "_self"
|
|
35262
|
-
}
|
|
35263
|
-
}, [_c('button', {
|
|
35264
|
-
staticClass: "swiper-opbtn have-arrow"
|
|
35265
|
-
}, [_c('span', [_vm._v(_vm._s(item.input1))])])]) : _vm._e(), item.input2 != '' ? _c('a', {
|
|
35266
|
-
attrs: {
|
|
35267
|
-
"href": item.jumpUrl2,
|
|
35268
|
-
"target": "_self"
|
|
35269
|
-
}
|
|
35270
|
-
}, [_c('button', {
|
|
35271
|
-
staticClass: "swiper-opbtn_wt"
|
|
35272
|
-
}, [_c('span', [_vm._v(_vm._s(item.input2))])])]) : _vm._e()])])]) : _vm._e()]);
|
|
35273
|
-
}), 0)])]), _vm.configList[_vm.swiperIdx].title || _vm.configList[_vm.swiperIdx].des || _vm.configList[_vm.swiperIdx].input1 || _vm.configList[_vm.swiperIdx].input2 || (_vm$configList$_vm$sw = _vm.configList[_vm.swiperIdx]) !== null && _vm$configList$_vm$sw !== void 0 && _vm$configList$_vm$sw.input3 ? _c('div', {
|
|
35274
|
-
staticClass: "mb-swiper_box layout-mobile"
|
|
35275
|
-
}, [_vm.configList[_vm.swiperIdx].title ? _c('div', {
|
|
35276
|
-
staticClass: "swiper-contentbtn"
|
|
35277
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].title))])]) : _vm._e(), _vm.configList[_vm.swiperIdx].des ? _c('div', {
|
|
35278
|
-
staticClass: "swiper-label"
|
|
35279
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].des))])]) : _vm._e(), _c('div', {
|
|
35280
|
-
staticClass: "swiper-btn_container"
|
|
35281
|
-
}, [_vm.configList[_vm.swiperIdx].input1 ? _c('a', {
|
|
35282
|
-
attrs: {
|
|
35283
|
-
"href": _vm.configList[_vm.swiperIdx].jumpUrl1,
|
|
35284
|
-
"target": "_self"
|
|
35285
|
-
}
|
|
35286
|
-
}, [_c('button', {
|
|
35287
|
-
staticClass: "swiper-opbtn have-arrow"
|
|
35288
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].input1))])])]) : _vm._e(), _vm.configList[_vm.swiperIdx].input2 ? _c('a', {
|
|
35289
|
-
attrs: {
|
|
35290
|
-
"href": _vm.configList[_vm.swiperIdx].jumpUrl2,
|
|
35291
|
-
"target": "_self"
|
|
35292
|
-
}
|
|
35293
|
-
}, [_c('button', {
|
|
35294
|
-
staticClass: "swiper-opbtn_wt have-arrow"
|
|
35295
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].input2))])])]) : _vm._e()])]) : _vm._e(), _vm.configList.length > 1 ? _c('div', {
|
|
35296
|
-
staticClass: "cmhk-swiper-button-number"
|
|
35297
|
-
}, [_vm._l(_vm.configList, function (item, idx) {
|
|
35298
|
-
return _c('div', {
|
|
35299
|
-
key: idx,
|
|
35300
|
-
staticClass: "line-customs_wrapper",
|
|
35301
|
-
on: {
|
|
35302
|
-
"click": function ($event) {
|
|
35303
|
-
$event.stopPropagation();
|
|
35304
|
-
return _vm.jumpToSlide(idx);
|
|
35305
|
-
}
|
|
35306
|
-
}
|
|
35307
|
-
}, [_c('div', {
|
|
35308
|
-
class: ['cmhk-line-customs', idx === _vm.swiperIdx ? 'cmhk-line-customs-active' : '']
|
|
35309
|
-
}, [item && item.input1 ? _c('div', {
|
|
35310
|
-
staticClass: "swiper-popupup layout-pc"
|
|
35311
|
-
}, [_c('p', {
|
|
35312
|
-
staticClass: "swiper-popuptext"
|
|
35313
|
-
}, [_vm._v(_vm._s(item.input1))])]) : _vm._e()])]);
|
|
35314
|
-
}), _c('div', {
|
|
35315
|
-
staticClass: "swiper-button-puase",
|
|
35316
|
-
on: {
|
|
35317
|
-
"click": function ($event) {
|
|
35318
|
-
$event.stopPropagation();
|
|
35319
|
-
return _vm.swiperPlay.apply(null, arguments);
|
|
35320
|
-
}
|
|
35321
|
-
}
|
|
35322
|
-
}, [!_vm.swiperPlayVal ? _c('img', {
|
|
35323
|
-
staticClass: "playstart-image",
|
|
35324
|
-
attrs: {
|
|
35325
|
-
"src": __webpack_require__(2254)
|
|
35326
|
-
}
|
|
35327
|
-
}) : _vm._e(), _vm.swiperPlayVal ? _c('img', {
|
|
35328
|
-
staticClass: "playstop-image",
|
|
35329
|
-
attrs: {
|
|
35330
|
-
"src": __webpack_require__(2584)
|
|
35331
|
-
}
|
|
35332
|
-
}) : _vm._e()])], 2) : _vm._e()]) : _vm._e()])]);
|
|
35333
|
-
};
|
|
35334
|
-
var staticRenderFns = [];
|
|
35335
|
-
|
|
35336
|
-
;// ./package/cms-banner/View.vue?vue&type=template&id=741e5e02&scoped=true
|
|
35337
|
-
|
|
35338
|
-
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
|
|
35339
|
-
var swiper = __webpack_require__(828);
|
|
35340
|
-
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
35341
|
-
var swiper_esm_bundle = __webpack_require__(1532);
|
|
35342
|
-
// EXTERNAL MODULE: ./src/utils/jumpUrl.js
|
|
35343
|
-
var jumpUrl = __webpack_require__(4102);
|
|
35344
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
35345
|
-
var baseComp = __webpack_require__(2396);
|
|
35346
|
-
;// ./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
|
|
35347
|
-
|
|
35348
|
-
|
|
35349
|
-
|
|
35350
|
-
|
|
35351
|
-
|
|
35352
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
35353
|
-
name: "cms-banner",
|
|
35354
|
-
components: {
|
|
35355
|
-
BaseComp: baseComp/* default */.A
|
|
35356
|
-
},
|
|
35357
|
-
props: {
|
|
35358
|
-
data: {
|
|
35359
|
-
type: Object,
|
|
35360
|
-
default: () => {
|
|
35361
|
-
return {};
|
|
35362
|
-
}
|
|
35363
|
-
},
|
|
35364
|
-
nowCompId: {
|
|
35365
|
-
type: [String, Number],
|
|
35366
|
-
default: ""
|
|
35367
|
-
},
|
|
35368
|
-
isOpcacity: {
|
|
35369
|
-
type: Boolean,
|
|
35370
|
-
default: true
|
|
35371
|
-
},
|
|
35372
|
-
lang: {
|
|
35373
|
-
type: String,
|
|
35374
|
-
default: "zh-HK"
|
|
35375
|
-
}
|
|
35376
|
-
},
|
|
35377
|
-
data() {
|
|
35378
|
-
return {
|
|
35379
|
-
configList: [],
|
|
35380
|
-
// 轮播
|
|
35381
|
-
swiperOne: null,
|
|
35382
|
-
swiperIdx: 0,
|
|
35383
|
-
swiperPlayVal: true
|
|
35384
|
-
};
|
|
35385
|
-
},
|
|
35386
|
-
created() {},
|
|
35387
|
-
mounted() {
|
|
35388
|
-
if (this.configList.length > 0) {
|
|
35389
|
-
this.initSwiper("bannerList");
|
|
35390
|
-
}
|
|
35391
|
-
},
|
|
35392
|
-
watch: {},
|
|
35393
|
-
methods: {
|
|
35394
|
-
getConfigData(configData) {
|
|
35395
|
-
this.configList = configData.configList;
|
|
35396
|
-
},
|
|
35397
|
-
initSwiper(operationName) {
|
|
35398
|
-
const vm = this;
|
|
35399
|
-
if (operationName === "bannerList" && this.configList.length > 0) {
|
|
35400
|
-
// 当广告个数大于1的时候才开启循环
|
|
35401
|
-
const ifLoop = this.configList.length > 1 ? true : false;
|
|
35402
|
-
this.swiperOne = new swiper_esm_bundle/* default */.A(`#contentSwiper${this.data.id}`, {
|
|
35403
|
-
initialSlide: 0,
|
|
35404
|
-
// 初始化时slide的索引
|
|
35405
|
-
autoplay: {
|
|
35406
|
-
// 自动开始
|
|
35407
|
-
delay: 5000,
|
|
35408
|
-
// 时间间隔
|
|
35409
|
-
disableOnInteraction: false // 手动操作轮播图后不会暂停
|
|
35410
|
-
},
|
|
35411
|
-
loop: ifLoop,
|
|
35412
|
-
// 循环模式选项
|
|
35413
|
-
spaceBetween: 30,
|
|
35414
|
-
// 在slide之间设置距离
|
|
35415
|
-
observer: true,
|
|
35416
|
-
observeParents: true,
|
|
35417
|
-
on: {
|
|
35418
|
-
slideChangeTransitionEnd: function () {
|
|
35419
|
-
// swiper从一个slide过渡到另一个slide结束时执行
|
|
35420
|
-
console.log("realIndex", this.realIndex);
|
|
35421
|
-
if (this.realIndex > vm.configList.length - 1) return;
|
|
35422
|
-
vm.swiperIdx = this.realIndex;
|
|
35423
|
-
},
|
|
35424
|
-
resize: function () {
|
|
35425
|
-
this.update(true);
|
|
35426
|
-
}
|
|
35427
|
-
}
|
|
35428
|
-
});
|
|
35429
|
-
}
|
|
35430
|
-
},
|
|
35431
|
-
// 轮播
|
|
35432
|
-
swiperPlay() {
|
|
35433
|
-
this.swiperPlayVal = !this.swiperPlayVal;
|
|
35434
|
-
this.swiperPlayVal ? this.swiperClickStart() : this.swiperClickStop();
|
|
35435
|
-
},
|
|
35436
|
-
swiperClickStop() {
|
|
35437
|
-
this.swiperOne.autoplay.stop();
|
|
35438
|
-
},
|
|
35439
|
-
swiperClickStart() {
|
|
35440
|
-
this.swiperOne.autoplay.start();
|
|
35441
|
-
},
|
|
35442
|
-
jumpToSlide(idx) {
|
|
35443
|
-
// banner 轮播PC
|
|
35444
|
-
console.log("PC点击了", idx);
|
|
35445
|
-
// 在Loop模式下Swiper切换到指定slide。切换到的是slide索引是realIndex
|
|
35446
|
-
this.swiperOne.slideToLoop(idx, 1000, false);
|
|
35447
|
-
this.swiperIdx = idx;
|
|
35448
|
-
},
|
|
35449
|
-
//跳转
|
|
35450
|
-
decodeJumpUrl(path, route) {
|
|
35451
|
-
(0,jumpUrl/* decodeJumpUrl */.u)(path, route);
|
|
35452
|
-
}
|
|
35453
|
-
}
|
|
35454
|
-
});
|
|
35455
|
-
;// ./package/cms-banner/View.vue?vue&type=script&lang=js
|
|
35456
|
-
/* harmony default export */ var cms_banner_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
35457
|
-
;// ./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=741e5e02&prod&scoped=true&lang=scss
|
|
35458
|
-
// extracted by mini-css-extract-plugin
|
|
35459
|
-
|
|
35460
|
-
;// ./package/cms-banner/View.vue?vue&type=style&index=0&id=741e5e02&prod&scoped=true&lang=scss
|
|
35461
|
-
|
|
35462
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
35463
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
35464
|
-
;// ./package/cms-banner/View.vue
|
|
35465
|
-
|
|
35466
|
-
|
|
35467
|
-
|
|
35468
|
-
;
|
|
35469
|
-
|
|
35470
|
-
|
|
35471
|
-
/* normalize component */
|
|
35472
|
-
|
|
35473
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
35474
|
-
cms_banner_Viewvue_type_script_lang_js,
|
|
35475
|
-
render,
|
|
35476
|
-
staticRenderFns,
|
|
35477
|
-
false,
|
|
35478
|
-
null,
|
|
35479
|
-
"741e5e02",
|
|
35480
|
-
null
|
|
35481
|
-
|
|
35482
|
-
)
|
|
35483
|
-
|
|
35484
|
-
/* harmony default export */ var View = (component.exports);
|
|
35485
|
-
|
|
35486
|
-
/***/ }),
|
|
35487
|
-
|
|
35488
34979
|
/***/ 6801:
|
|
35489
34980
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
35490
34981
|
|
|
@@ -35625,7 +35116,7 @@ var render = function render() {
|
|
|
35625
35116
|
var staticRenderFns = [];
|
|
35626
35117
|
|
|
35627
35118
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
35628
|
-
var baseComp = __webpack_require__(
|
|
35119
|
+
var baseComp = __webpack_require__(9345);
|
|
35629
35120
|
;// ./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-titleCenter/View.vue?vue&type=script&lang=js
|
|
35630
35121
|
|
|
35631
35122
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -35823,7 +35314,7 @@ var render = function render() {
|
|
|
35823
35314
|
var staticRenderFns = [];
|
|
35824
35315
|
|
|
35825
35316
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
35826
|
-
var baseComp = __webpack_require__(
|
|
35317
|
+
var baseComp = __webpack_require__(9345);
|
|
35827
35318
|
;// ./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-description/View.vue?vue&type=script&lang=js
|
|
35828
35319
|
|
|
35829
35320
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -36768,7 +36259,7 @@ var swiper = __webpack_require__(828);
|
|
|
36768
36259
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
36769
36260
|
var swiper_esm_bundle = __webpack_require__(1532);
|
|
36770
36261
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
36771
|
-
var baseComp = __webpack_require__(
|
|
36262
|
+
var baseComp = __webpack_require__(9345);
|
|
36772
36263
|
;// ./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-aLineThreeLeftOne/View.vue?vue&type=script&lang=js
|
|
36773
36264
|
|
|
36774
36265
|
|
|
@@ -37272,7 +36763,7 @@ var es_iterator_constructor = __webpack_require__(8111);
|
|
|
37272
36763
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
37273
36764
|
var es_iterator_reduce = __webpack_require__(8237);
|
|
37274
36765
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
37275
|
-
var baseComp = __webpack_require__(
|
|
36766
|
+
var baseComp = __webpack_require__(9345);
|
|
37276
36767
|
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
37277
36768
|
var patch = __webpack_require__(7890);
|
|
37278
36769
|
;// ./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-servePlan-tab/View.vue?vue&type=script&lang=js
|
|
@@ -37474,28 +36965,32 @@ const baseConfig = {
|
|
|
37474
36965
|
endTime: ""
|
|
37475
36966
|
// 其他公共项 跟多语言项配置分开
|
|
37476
36967
|
};
|
|
37477
|
-
const styleBaseConfig = (paddingTop = "
|
|
36968
|
+
const styleBaseConfig = (paddingTop = "10", paddingBottom = "10", paddingLeft = "10", paddingRight = "10", unit = "") => {
|
|
37478
36969
|
return [{
|
|
37479
36970
|
title: "宽度",
|
|
37480
36971
|
key: "paddingTop",
|
|
37481
|
-
value: paddingTop
|
|
36972
|
+
value: paddingTop,
|
|
36973
|
+
unit
|
|
37482
36974
|
}, {
|
|
37483
36975
|
title: "宽度",
|
|
37484
36976
|
key: "paddingBottom",
|
|
37485
|
-
value: paddingBottom
|
|
36977
|
+
value: paddingBottom,
|
|
36978
|
+
unit
|
|
37486
36979
|
}, {
|
|
37487
36980
|
title: "宽度",
|
|
37488
36981
|
key: "paddingLeft",
|
|
37489
|
-
value: paddingLeft
|
|
36982
|
+
value: paddingLeft,
|
|
36983
|
+
unit
|
|
37490
36984
|
}, {
|
|
37491
36985
|
title: "宽度",
|
|
37492
36986
|
key: "paddingRight",
|
|
37493
|
-
value: paddingRight
|
|
36987
|
+
value: paddingRight,
|
|
36988
|
+
unit
|
|
37494
36989
|
}];
|
|
37495
36990
|
};
|
|
37496
36991
|
const styleConfig = {
|
|
37497
|
-
|
|
37498
|
-
|
|
36992
|
+
pc: styleBaseConfig(32, 32, 0, 0, "px"),
|
|
36993
|
+
mb: styleBaseConfig(24, 24, 0, 0, "px")
|
|
37499
36994
|
};
|
|
37500
36995
|
// 三语 四个表单
|
|
37501
36996
|
// 非三语 两个表单
|
|
@@ -38080,7 +37575,7 @@ var render = function render() {
|
|
|
38080
37575
|
var staticRenderFns = [];
|
|
38081
37576
|
|
|
38082
37577
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
38083
|
-
var baseComp = __webpack_require__(
|
|
37578
|
+
var baseComp = __webpack_require__(9345);
|
|
38084
37579
|
;// ./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-lineFour/View.vue?vue&type=script&lang=js
|
|
38085
37580
|
|
|
38086
37581
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -38199,7 +37694,7 @@ var staticRenderFns = [];
|
|
|
38199
37694
|
;// ./package/cms-activityTime/View.vue?vue&type=template&id=3c971a40&scoped=true
|
|
38200
37695
|
|
|
38201
37696
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
38202
|
-
var baseComp = __webpack_require__(
|
|
37697
|
+
var baseComp = __webpack_require__(9345);
|
|
38203
37698
|
;// ./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-activityTime/View.vue?vue&type=script&lang=js
|
|
38204
37699
|
|
|
38205
37700
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -38553,6 +38048,307 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
38553
38048
|
|
|
38554
38049
|
/***/ }),
|
|
38555
38050
|
|
|
38051
|
+
/***/ 8370:
|
|
38052
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38053
|
+
|
|
38054
|
+
"use strict";
|
|
38055
|
+
// ESM COMPAT FLAG
|
|
38056
|
+
__webpack_require__.r(__webpack_exports__);
|
|
38057
|
+
|
|
38058
|
+
// EXPORTS
|
|
38059
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
38060
|
+
"default": function() { return /* binding */ View; }
|
|
38061
|
+
});
|
|
38062
|
+
|
|
38063
|
+
;// ./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=14bdd028&scoped=true
|
|
38064
|
+
var render = function render() {
|
|
38065
|
+
var _vm$configList$_vm$sw;
|
|
38066
|
+
var _vm = this,
|
|
38067
|
+
_c = _vm._self._c;
|
|
38068
|
+
return _c('BaseComp', _vm._b({
|
|
38069
|
+
attrs: {
|
|
38070
|
+
"data": _vm.data,
|
|
38071
|
+
"nowCompId": _vm.nowCompId,
|
|
38072
|
+
"isOpcacity": _vm.isOpcacity,
|
|
38073
|
+
"lang": _vm.lang
|
|
38074
|
+
},
|
|
38075
|
+
on: {
|
|
38076
|
+
"getConfigData": _vm.getConfigData
|
|
38077
|
+
}
|
|
38078
|
+
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
38079
|
+
staticClass: "content-swiper tt_banner"
|
|
38080
|
+
}, [_vm.configList.length > 0 ? _c('div', {
|
|
38081
|
+
staticClass: "relative position"
|
|
38082
|
+
}, [_c('div', {
|
|
38083
|
+
staticClass: "my_banner"
|
|
38084
|
+
}, [_c('div', {
|
|
38085
|
+
staticClass: "swiper-container_contentswiper",
|
|
38086
|
+
attrs: {
|
|
38087
|
+
"id": `contentSwiper${_vm.data.componentId}`
|
|
38088
|
+
}
|
|
38089
|
+
}, [_c('div', {
|
|
38090
|
+
staticClass: "swiper-wrapper"
|
|
38091
|
+
}, _vm._l(_vm.configList, function (item, inx) {
|
|
38092
|
+
return _c('div', {
|
|
38093
|
+
key: inx,
|
|
38094
|
+
staticClass: "swiper-slide"
|
|
38095
|
+
}, [item ? _c('div', {
|
|
38096
|
+
staticClass: "swiper-banner_box",
|
|
38097
|
+
on: {
|
|
38098
|
+
"click": function ($event) {
|
|
38099
|
+
return _vm.decodeJumpUrl(item.jumpUrl, _vm.$router);
|
|
38100
|
+
}
|
|
38101
|
+
}
|
|
38102
|
+
}, [_c('img', {
|
|
38103
|
+
staticClass: "swiper-banner_image layout-pc",
|
|
38104
|
+
attrs: {
|
|
38105
|
+
"src": item.uploadImagePC,
|
|
38106
|
+
"alt": "PC"
|
|
38107
|
+
}
|
|
38108
|
+
}), _c('img', {
|
|
38109
|
+
staticClass: "swiper-banner_image layout-mobile",
|
|
38110
|
+
attrs: {
|
|
38111
|
+
"src": item.uploadImageH5,
|
|
38112
|
+
"alt": "H5"
|
|
38113
|
+
}
|
|
38114
|
+
}), _c('div', {
|
|
38115
|
+
staticClass: "extra-swiper_box layout-pc"
|
|
38116
|
+
}, [item.title ? _c('div', {
|
|
38117
|
+
staticClass: "swiper-contentbtn"
|
|
38118
|
+
}, [_c('span', [_vm._v(_vm._s(item.title))])]) : _vm._e(), item.des ? _c('div', {
|
|
38119
|
+
staticClass: "swiper-labels"
|
|
38120
|
+
}, [_c('span', [_vm._v(_vm._s(item.des))])]) : _vm._e(), _c('div', {
|
|
38121
|
+
staticClass: "swiper-btn_container"
|
|
38122
|
+
}, [item.input1 != '' ? _c('a', {
|
|
38123
|
+
attrs: {
|
|
38124
|
+
"href": item.jumpUrl1,
|
|
38125
|
+
"target": "_self"
|
|
38126
|
+
}
|
|
38127
|
+
}, [_c('button', {
|
|
38128
|
+
staticClass: "swiper-opbtn have-arrow"
|
|
38129
|
+
}, [_c('span', [_vm._v(_vm._s(item.input1))])])]) : _vm._e(), item.input2 != '' ? _c('a', {
|
|
38130
|
+
attrs: {
|
|
38131
|
+
"href": item.jumpUrl2,
|
|
38132
|
+
"target": "_self"
|
|
38133
|
+
}
|
|
38134
|
+
}, [_c('button', {
|
|
38135
|
+
staticClass: "swiper-opbtn_wt"
|
|
38136
|
+
}, [_c('span', [_vm._v(_vm._s(item.input2))])])]) : _vm._e()])])]) : _vm._e()]);
|
|
38137
|
+
}), 0)])]), _vm.configList[_vm.swiperIdx].title || _vm.configList[_vm.swiperIdx].des || _vm.configList[_vm.swiperIdx].input1 || _vm.configList[_vm.swiperIdx].input2 || (_vm$configList$_vm$sw = _vm.configList[_vm.swiperIdx]) !== null && _vm$configList$_vm$sw !== void 0 && _vm$configList$_vm$sw.input3 ? _c('div', {
|
|
38138
|
+
staticClass: "mb-swiper_box layout-mobile"
|
|
38139
|
+
}, [_vm.configList[_vm.swiperIdx].title ? _c('div', {
|
|
38140
|
+
staticClass: "swiper-contentbtn"
|
|
38141
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].title))])]) : _vm._e(), _vm.configList[_vm.swiperIdx].des ? _c('div', {
|
|
38142
|
+
staticClass: "swiper-label"
|
|
38143
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].des))])]) : _vm._e(), _c('div', {
|
|
38144
|
+
staticClass: "swiper-btn_container"
|
|
38145
|
+
}, [_vm.configList[_vm.swiperIdx].input1 ? _c('a', {
|
|
38146
|
+
attrs: {
|
|
38147
|
+
"href": _vm.configList[_vm.swiperIdx].jumpUrl1,
|
|
38148
|
+
"target": "_self"
|
|
38149
|
+
}
|
|
38150
|
+
}, [_c('button', {
|
|
38151
|
+
staticClass: "swiper-opbtn have-arrow"
|
|
38152
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].input1))])])]) : _vm._e(), _vm.configList[_vm.swiperIdx].input2 ? _c('a', {
|
|
38153
|
+
attrs: {
|
|
38154
|
+
"href": _vm.configList[_vm.swiperIdx].jumpUrl2,
|
|
38155
|
+
"target": "_self"
|
|
38156
|
+
}
|
|
38157
|
+
}, [_c('button', {
|
|
38158
|
+
staticClass: "swiper-opbtn_wt have-arrow"
|
|
38159
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.configList[_vm.swiperIdx].input2))])])]) : _vm._e()])]) : _vm._e(), _vm.configList.length > 1 ? _c('div', {
|
|
38160
|
+
staticClass: "cmhk-swiper-button-number"
|
|
38161
|
+
}, [_vm._l(_vm.configList, function (item, idx) {
|
|
38162
|
+
return _c('div', {
|
|
38163
|
+
key: idx,
|
|
38164
|
+
staticClass: "line-customs_wrapper",
|
|
38165
|
+
on: {
|
|
38166
|
+
"click": function ($event) {
|
|
38167
|
+
$event.stopPropagation();
|
|
38168
|
+
return _vm.jumpToSlide(idx);
|
|
38169
|
+
}
|
|
38170
|
+
}
|
|
38171
|
+
}, [_c('div', {
|
|
38172
|
+
class: ['cmhk-line-customs', idx === _vm.swiperIdx ? 'cmhk-line-customs-active' : '']
|
|
38173
|
+
}, [item && item.input1 ? _c('div', {
|
|
38174
|
+
staticClass: "swiper-popupup layout-pc"
|
|
38175
|
+
}, [_c('p', {
|
|
38176
|
+
staticClass: "swiper-popuptext"
|
|
38177
|
+
}, [_vm._v(_vm._s(item.input1))])]) : _vm._e()])]);
|
|
38178
|
+
}), _c('div', {
|
|
38179
|
+
staticClass: "swiper-button-puase",
|
|
38180
|
+
on: {
|
|
38181
|
+
"click": function ($event) {
|
|
38182
|
+
$event.stopPropagation();
|
|
38183
|
+
return _vm.swiperPlay.apply(null, arguments);
|
|
38184
|
+
}
|
|
38185
|
+
}
|
|
38186
|
+
}, [!_vm.swiperPlayVal ? _c('img', {
|
|
38187
|
+
staticClass: "playstart-image",
|
|
38188
|
+
attrs: {
|
|
38189
|
+
"src": __webpack_require__(2254)
|
|
38190
|
+
}
|
|
38191
|
+
}) : _vm._e(), _vm.swiperPlayVal ? _c('img', {
|
|
38192
|
+
staticClass: "playstop-image",
|
|
38193
|
+
attrs: {
|
|
38194
|
+
"src": __webpack_require__(2584)
|
|
38195
|
+
}
|
|
38196
|
+
}) : _vm._e()])], 2) : _vm._e()]) : _vm._e()])]);
|
|
38197
|
+
};
|
|
38198
|
+
var staticRenderFns = [];
|
|
38199
|
+
|
|
38200
|
+
;// ./package/cms-banner/View.vue?vue&type=template&id=14bdd028&scoped=true
|
|
38201
|
+
|
|
38202
|
+
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.js
|
|
38203
|
+
var swiper = __webpack_require__(828);
|
|
38204
|
+
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
38205
|
+
var swiper_esm_bundle = __webpack_require__(1532);
|
|
38206
|
+
// EXTERNAL MODULE: ./src/utils/jumpUrl.js
|
|
38207
|
+
var jumpUrl = __webpack_require__(4102);
|
|
38208
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
38209
|
+
var baseComp = __webpack_require__(9345);
|
|
38210
|
+
;// ./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
|
|
38211
|
+
|
|
38212
|
+
|
|
38213
|
+
|
|
38214
|
+
|
|
38215
|
+
|
|
38216
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
38217
|
+
name: "cms-banner",
|
|
38218
|
+
components: {
|
|
38219
|
+
BaseComp: baseComp/* default */.A
|
|
38220
|
+
},
|
|
38221
|
+
props: {
|
|
38222
|
+
data: {
|
|
38223
|
+
type: Object,
|
|
38224
|
+
default: () => {
|
|
38225
|
+
return {};
|
|
38226
|
+
}
|
|
38227
|
+
},
|
|
38228
|
+
nowCompId: {
|
|
38229
|
+
type: [String, Number],
|
|
38230
|
+
default: ""
|
|
38231
|
+
},
|
|
38232
|
+
isOpcacity: {
|
|
38233
|
+
type: Boolean,
|
|
38234
|
+
default: true
|
|
38235
|
+
},
|
|
38236
|
+
lang: {
|
|
38237
|
+
type: String,
|
|
38238
|
+
default: "zh-HK"
|
|
38239
|
+
}
|
|
38240
|
+
},
|
|
38241
|
+
data() {
|
|
38242
|
+
return {
|
|
38243
|
+
configList: [],
|
|
38244
|
+
// 轮播
|
|
38245
|
+
swiperOne: null,
|
|
38246
|
+
swiperIdx: 0,
|
|
38247
|
+
swiperPlayVal: true
|
|
38248
|
+
};
|
|
38249
|
+
},
|
|
38250
|
+
created() {},
|
|
38251
|
+
mounted() {
|
|
38252
|
+
if (this.configList.length > 0) {
|
|
38253
|
+
this.initSwiper("bannerList");
|
|
38254
|
+
}
|
|
38255
|
+
},
|
|
38256
|
+
watch: {},
|
|
38257
|
+
methods: {
|
|
38258
|
+
getConfigData(configData) {
|
|
38259
|
+
this.configList = configData.configList;
|
|
38260
|
+
},
|
|
38261
|
+
initSwiper(operationName) {
|
|
38262
|
+
const vm = this;
|
|
38263
|
+
if (operationName === "bannerList" && this.configList.length > 0) {
|
|
38264
|
+
// 当广告个数大于1的时候才开启循环
|
|
38265
|
+
const ifLoop = this.configList.length > 1 ? true : false;
|
|
38266
|
+
this.swiperOne = new swiper_esm_bundle/* default */.A(`#contentSwiper${this.data.componentId}`, {
|
|
38267
|
+
initialSlide: 0,
|
|
38268
|
+
// 初始化时slide的索引
|
|
38269
|
+
autoplay: {
|
|
38270
|
+
// 自动开始
|
|
38271
|
+
delay: 5000,
|
|
38272
|
+
// 时间间隔
|
|
38273
|
+
disableOnInteraction: false // 手动操作轮播图后不会暂停
|
|
38274
|
+
},
|
|
38275
|
+
loop: ifLoop,
|
|
38276
|
+
// 循环模式选项
|
|
38277
|
+
spaceBetween: 30,
|
|
38278
|
+
// 在slide之间设置距离
|
|
38279
|
+
observer: true,
|
|
38280
|
+
observeParents: true,
|
|
38281
|
+
on: {
|
|
38282
|
+
slideChangeTransitionEnd: function () {
|
|
38283
|
+
// swiper从一个slide过渡到另一个slide结束时执行
|
|
38284
|
+
console.log("realIndex", this.realIndex);
|
|
38285
|
+
if (this.realIndex > vm.configList.length - 1) return;
|
|
38286
|
+
vm.swiperIdx = this.realIndex;
|
|
38287
|
+
},
|
|
38288
|
+
resize: function () {
|
|
38289
|
+
this.update(true);
|
|
38290
|
+
}
|
|
38291
|
+
}
|
|
38292
|
+
});
|
|
38293
|
+
}
|
|
38294
|
+
},
|
|
38295
|
+
// 轮播
|
|
38296
|
+
swiperPlay() {
|
|
38297
|
+
this.swiperPlayVal = !this.swiperPlayVal;
|
|
38298
|
+
this.swiperPlayVal ? this.swiperClickStart() : this.swiperClickStop();
|
|
38299
|
+
},
|
|
38300
|
+
swiperClickStop() {
|
|
38301
|
+
this.swiperOne.autoplay.stop();
|
|
38302
|
+
},
|
|
38303
|
+
swiperClickStart() {
|
|
38304
|
+
this.swiperOne.autoplay.start();
|
|
38305
|
+
},
|
|
38306
|
+
jumpToSlide(idx) {
|
|
38307
|
+
// banner 轮播PC
|
|
38308
|
+
console.log("PC点击了", idx);
|
|
38309
|
+
// 在Loop模式下Swiper切换到指定slide。切换到的是slide索引是realIndex
|
|
38310
|
+
this.swiperOne.slideToLoop(idx, 1000, false);
|
|
38311
|
+
this.swiperIdx = idx;
|
|
38312
|
+
},
|
|
38313
|
+
//跳转
|
|
38314
|
+
decodeJumpUrl(path, route) {
|
|
38315
|
+
(0,jumpUrl/* decodeJumpUrl */.u)(path, route);
|
|
38316
|
+
}
|
|
38317
|
+
}
|
|
38318
|
+
});
|
|
38319
|
+
;// ./package/cms-banner/View.vue?vue&type=script&lang=js
|
|
38320
|
+
/* harmony default export */ var cms_banner_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
38321
|
+
;// ./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=14bdd028&prod&scoped=true&lang=scss
|
|
38322
|
+
// extracted by mini-css-extract-plugin
|
|
38323
|
+
|
|
38324
|
+
;// ./package/cms-banner/View.vue?vue&type=style&index=0&id=14bdd028&prod&scoped=true&lang=scss
|
|
38325
|
+
|
|
38326
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
38327
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
38328
|
+
;// ./package/cms-banner/View.vue
|
|
38329
|
+
|
|
38330
|
+
|
|
38331
|
+
|
|
38332
|
+
;
|
|
38333
|
+
|
|
38334
|
+
|
|
38335
|
+
/* normalize component */
|
|
38336
|
+
|
|
38337
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
38338
|
+
cms_banner_Viewvue_type_script_lang_js,
|
|
38339
|
+
render,
|
|
38340
|
+
staticRenderFns,
|
|
38341
|
+
false,
|
|
38342
|
+
null,
|
|
38343
|
+
"14bdd028",
|
|
38344
|
+
null
|
|
38345
|
+
|
|
38346
|
+
)
|
|
38347
|
+
|
|
38348
|
+
/* harmony default export */ var View = (component.exports);
|
|
38349
|
+
|
|
38350
|
+
/***/ }),
|
|
38351
|
+
|
|
38556
38352
|
/***/ 8425:
|
|
38557
38353
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
38558
38354
|
|
|
@@ -39407,7 +39203,7 @@ var swiper = __webpack_require__(828);
|
|
|
39407
39203
|
// EXTERNAL MODULE: ./node_modules/swiper/dist/js/swiper.esm.bundle.js + 3 modules
|
|
39408
39204
|
var swiper_esm_bundle = __webpack_require__(1532);
|
|
39409
39205
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
39410
|
-
var baseComp = __webpack_require__(
|
|
39206
|
+
var baseComp = __webpack_require__(9345);
|
|
39411
39207
|
;// ./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-threeScroll/View.vue?vue&type=script&lang=js
|
|
39412
39208
|
|
|
39413
39209
|
|
|
@@ -39795,7 +39591,7 @@ var render = function render() {
|
|
|
39795
39591
|
var staticRenderFns = [];
|
|
39796
39592
|
|
|
39797
39593
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
39798
|
-
var baseComp = __webpack_require__(
|
|
39594
|
+
var baseComp = __webpack_require__(9345);
|
|
39799
39595
|
;// ./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-cells/View.vue?vue&type=script&lang=js
|
|
39800
39596
|
|
|
39801
39597
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -40127,7 +39923,7 @@ var render = function render() {
|
|
|
40127
39923
|
var staticRenderFns = [];
|
|
40128
39924
|
|
|
40129
39925
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
40130
|
-
var baseComp = __webpack_require__(
|
|
39926
|
+
var baseComp = __webpack_require__(9345);
|
|
40131
39927
|
// EXTERNAL MODULE: ./src/utils/jumpUrl.js
|
|
40132
39928
|
var jumpUrl = __webpack_require__(4102);
|
|
40133
39929
|
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
|
|
@@ -41000,6 +40796,210 @@ $({ global: true, bind: true, enumerable: true, forced: globalThis.setImmediate
|
|
|
41000
40796
|
});
|
|
41001
40797
|
|
|
41002
40798
|
|
|
40799
|
+
/***/ }),
|
|
40800
|
+
|
|
40801
|
+
/***/ 9345:
|
|
40802
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40803
|
+
|
|
40804
|
+
"use strict";
|
|
40805
|
+
|
|
40806
|
+
// EXPORTS
|
|
40807
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
40808
|
+
A: function() { return /* binding */ baseComp; }
|
|
40809
|
+
});
|
|
40810
|
+
|
|
40811
|
+
;// ./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/baseComp.vue?vue&type=template&id=7ee2d83a
|
|
40812
|
+
var render = function render() {
|
|
40813
|
+
var _vm = this,
|
|
40814
|
+
_c = _vm._self._c;
|
|
40815
|
+
return _vm.$EventBus && _vm.isOpcacity ? _c('div', {
|
|
40816
|
+
key: _vm.data.componentId,
|
|
40817
|
+
class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.componentId ? 'highLight' : ''],
|
|
40818
|
+
style: _vm.styleConfig_mb,
|
|
40819
|
+
on: {
|
|
40820
|
+
"click": function ($event) {
|
|
40821
|
+
$event.stopPropagation();
|
|
40822
|
+
return _vm.handleNowComp.apply(null, arguments);
|
|
40823
|
+
}
|
|
40824
|
+
}
|
|
40825
|
+
}, [_c('div', {
|
|
40826
|
+
staticClass: "position",
|
|
40827
|
+
on: {
|
|
40828
|
+
"click": function ($event) {
|
|
40829
|
+
$event.stopPropagation();
|
|
40830
|
+
return _vm.handleNowComp.apply(null, arguments);
|
|
40831
|
+
}
|
|
40832
|
+
}
|
|
40833
|
+
}, [_vm._t("default"), _c('div', {
|
|
40834
|
+
class: {
|
|
40835
|
+
opcacity: _vm.isOpcacity
|
|
40836
|
+
},
|
|
40837
|
+
on: {
|
|
40838
|
+
"click": _vm.handleNowComp
|
|
40839
|
+
}
|
|
40840
|
+
})], 2), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.componentId ? _c('div', {
|
|
40841
|
+
staticClass: "com-delete"
|
|
40842
|
+
}, [_c('i', {
|
|
40843
|
+
staticClass: "el-icon-delete",
|
|
40844
|
+
on: {
|
|
40845
|
+
"click": function ($event) {
|
|
40846
|
+
$event.stopPropagation();
|
|
40847
|
+
return _vm.delComp.apply(null, arguments);
|
|
40848
|
+
}
|
|
40849
|
+
}
|
|
40850
|
+
})]) : _vm._e()]) : _vm.showSlot ? _c('div', {
|
|
40851
|
+
key: _vm.data.componentId,
|
|
40852
|
+
style: _vm.styleConfig_mb
|
|
40853
|
+
}, [_vm._t("default")], 2) : _vm._e();
|
|
40854
|
+
};
|
|
40855
|
+
var staticRenderFns = [];
|
|
40856
|
+
|
|
40857
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
40858
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
40859
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
40860
|
+
var es_iterator_reduce = __webpack_require__(8237);
|
|
40861
|
+
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
40862
|
+
var patch = __webpack_require__(7890);
|
|
40863
|
+
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
40864
|
+
var dayjs_min = __webpack_require__(8655);
|
|
40865
|
+
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
40866
|
+
;// ./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/baseComp.vue?vue&type=script&lang=js
|
|
40867
|
+
|
|
40868
|
+
|
|
40869
|
+
|
|
40870
|
+
|
|
40871
|
+
// 待办:判断移动pc端填充不同的样式
|
|
40872
|
+
|
|
40873
|
+
|
|
40874
|
+
/* harmony default export */ var baseCompvue_type_script_lang_js = ({
|
|
40875
|
+
name: "baseComp",
|
|
40876
|
+
props: {
|
|
40877
|
+
data: {
|
|
40878
|
+
type: Object,
|
|
40879
|
+
default: () => {
|
|
40880
|
+
return {};
|
|
40881
|
+
}
|
|
40882
|
+
},
|
|
40883
|
+
nowCompId: {
|
|
40884
|
+
type: [String, Number],
|
|
40885
|
+
default: ""
|
|
40886
|
+
},
|
|
40887
|
+
isOpcacity: {
|
|
40888
|
+
type: Boolean,
|
|
40889
|
+
default: true
|
|
40890
|
+
},
|
|
40891
|
+
lang: {
|
|
40892
|
+
type: String,
|
|
40893
|
+
default: "zh-HK"
|
|
40894
|
+
},
|
|
40895
|
+
timeline: {
|
|
40896
|
+
type: String,
|
|
40897
|
+
default: ""
|
|
40898
|
+
},
|
|
40899
|
+
cmhkChannel: {
|
|
40900
|
+
type: String,
|
|
40901
|
+
default: "WWW"
|
|
40902
|
+
}
|
|
40903
|
+
},
|
|
40904
|
+
data() {
|
|
40905
|
+
return {
|
|
40906
|
+
styleConfig_mb: {},
|
|
40907
|
+
styleConfig_pc: {},
|
|
40908
|
+
configData: {}
|
|
40909
|
+
};
|
|
40910
|
+
},
|
|
40911
|
+
mounted() {},
|
|
40912
|
+
watch: {
|
|
40913
|
+
data: {
|
|
40914
|
+
handler(val) {
|
|
40915
|
+
this.getStyleConfig(val, "pc");
|
|
40916
|
+
this.getStyleConfig(val, "mb");
|
|
40917
|
+
this.getValue(this.lang);
|
|
40918
|
+
},
|
|
40919
|
+
deep: true,
|
|
40920
|
+
immediate: true
|
|
40921
|
+
},
|
|
40922
|
+
lang: {
|
|
40923
|
+
handler(val) {
|
|
40924
|
+
this.getValue(val);
|
|
40925
|
+
},
|
|
40926
|
+
deep: true,
|
|
40927
|
+
immediate: true
|
|
40928
|
+
}
|
|
40929
|
+
},
|
|
40930
|
+
methods: {
|
|
40931
|
+
getValue(cur_lang) {
|
|
40932
|
+
var _this$data, _this$data$settings;
|
|
40933
|
+
const obj = {
|
|
40934
|
+
"zh-CN": "lang_sc",
|
|
40935
|
+
"zh-HK": "lang_tc",
|
|
40936
|
+
"en-US": "lang_en"
|
|
40937
|
+
};
|
|
40938
|
+
if ((_this$data = this.data) !== null && _this$data !== void 0 && (_this$data$settings = _this$data.settings) !== null && _this$data$settings !== void 0 && _this$data$settings.settings) {
|
|
40939
|
+
const baseInfo = (0,patch/* transfor */.k)(this.data);
|
|
40940
|
+
this.configData = baseInfo.contentConfig.lang_all ? baseInfo.contentConfig.lang_all : baseInfo.contentConfig[`${obj[cur_lang]}`];
|
|
40941
|
+
} else {
|
|
40942
|
+
this.configData = this.data.contentConfig.lang_all ? this.data.contentConfig.lang_all : this.data.contentConfig[`${obj[cur_lang]}`];
|
|
40943
|
+
}
|
|
40944
|
+
this.$emit("getConfigData", this.configData);
|
|
40945
|
+
},
|
|
40946
|
+
getStyleConfig(data, type) {
|
|
40947
|
+
this[`styleConfig_${type}`] = data.styleConfig[type].reduce((pre, cur) => {
|
|
40948
|
+
pre[cur.key] = cur.value + cur.unit;
|
|
40949
|
+
return pre;
|
|
40950
|
+
}, {});
|
|
40951
|
+
},
|
|
40952
|
+
handleNowComp() {
|
|
40953
|
+
if (!this.isOpcacity) return;
|
|
40954
|
+
this.$EventBus.$emit("handleNowComp", this.data);
|
|
40955
|
+
},
|
|
40956
|
+
delComp() {
|
|
40957
|
+
this.$EventBus.$emit("handleDeleteComp", this.data.componentId);
|
|
40958
|
+
}
|
|
40959
|
+
},
|
|
40960
|
+
computed: {
|
|
40961
|
+
showSlot() {
|
|
40962
|
+
const {
|
|
40963
|
+
cmhkChannelConfList = [],
|
|
40964
|
+
startTime = "",
|
|
40965
|
+
endTime = ""
|
|
40966
|
+
} = this.data.baseConfig;
|
|
40967
|
+
console.log("this.cmhkChannel", this.cmhkChannel, this.data.baseConfig);
|
|
40968
|
+
const channelVisable = cmhkChannelConfList.includes("ALL") || cmhkChannelConfList.includes(this.cmhkChannel);
|
|
40969
|
+
if (!channelVisable) return false;
|
|
40970
|
+
if (!startTime && !endTime) return true;
|
|
40971
|
+
const currentTime = this.timeline ? dayjs_min_default()(this.timeline) : dayjs_min_default()();
|
|
40972
|
+
const isStart = startTime ? dayjs_min_default()(currentTime).isAfter(dayjs_min_default()(startTime)) || dayjs_min_default()(currentTime).isSame(dayjs_min_default()(startTime)) : true;
|
|
40973
|
+
const isEnd = endTime ? dayjs_min_default()(currentTime).isBefore(dayjs_min_default()(endTime)) || dayjs_min_default()(currentTime).isSame(dayjs_min_default()(endTime)) : true;
|
|
40974
|
+
return isStart && isEnd;
|
|
40975
|
+
}
|
|
40976
|
+
}
|
|
40977
|
+
});
|
|
40978
|
+
;// ./package/baseComp.vue?vue&type=script&lang=js
|
|
40979
|
+
/* harmony default export */ var package_baseCompvue_type_script_lang_js = (baseCompvue_type_script_lang_js);
|
|
40980
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
40981
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
40982
|
+
;// ./package/baseComp.vue
|
|
40983
|
+
|
|
40984
|
+
|
|
40985
|
+
|
|
40986
|
+
|
|
40987
|
+
|
|
40988
|
+
/* normalize component */
|
|
40989
|
+
;
|
|
40990
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
40991
|
+
package_baseCompvue_type_script_lang_js,
|
|
40992
|
+
render,
|
|
40993
|
+
staticRenderFns,
|
|
40994
|
+
false,
|
|
40995
|
+
null,
|
|
40996
|
+
null,
|
|
40997
|
+
null
|
|
40998
|
+
|
|
40999
|
+
)
|
|
41000
|
+
|
|
41001
|
+
/* harmony default export */ var baseComp = (component.exports);
|
|
41002
|
+
|
|
41003
41003
|
/***/ }),
|
|
41004
41004
|
|
|
41005
41005
|
/***/ 9348:
|
|
@@ -41393,7 +41393,7 @@ var render = function render() {
|
|
|
41393
41393
|
var staticRenderFns = [];
|
|
41394
41394
|
|
|
41395
41395
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
41396
|
-
var baseComp = __webpack_require__(
|
|
41396
|
+
var baseComp = __webpack_require__(9345);
|
|
41397
41397
|
;// ./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-lineFive/View.vue?vue&type=script&lang=js
|
|
41398
41398
|
|
|
41399
41399
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
@@ -43830,7 +43830,7 @@ service.interceptors.request.use(config => {
|
|
|
43830
43830
|
if (config.url.includes("/ecosp-console")) {
|
|
43831
43831
|
document.cookie = "JSESSIONID=node017nm2falxdfe8c1parzfv9ilr29.node0";
|
|
43832
43832
|
} else if (config.url.includes("omni-channel-service-console")) {
|
|
43833
|
-
document.cookie = "JSESSIONID=
|
|
43833
|
+
document.cookie = "JSESSIONID=D0A102C1DF80210FDAEBAFEFBBC3074B";
|
|
43834
43834
|
}
|
|
43835
43835
|
} else {
|
|
43836
43836
|
if (config.url.includes("/api/") && is_cmsComp) {
|
|
@@ -43930,7 +43930,7 @@ var render = function render() {
|
|
|
43930
43930
|
var staticRenderFns = [];
|
|
43931
43931
|
|
|
43932
43932
|
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
43933
|
-
var baseComp = __webpack_require__(
|
|
43933
|
+
var baseComp = __webpack_require__(9345);
|
|
43934
43934
|
// EXTERNAL MODULE: ./src/utils/jumpUrl.js
|
|
43935
43935
|
var jumpUrl = __webpack_require__(4102);
|
|
43936
43936
|
;// ./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-titleLeft/View.vue?vue&type=script&setup=true&lang=js
|