cms-chenhj-ui 2.0.4 → 2.0.5
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 +367 -364
- package/cms-chenhj-ui.common.js.map +1 -1
- package/cms-chenhj-ui.css +1 -1
- package/cms-chenhj-ui.umd.js +452 -449
- 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.common.js
CHANGED
|
@@ -5206,7 +5206,7 @@ service.interceptors.request.use(config => {
|
|
|
5206
5206
|
if (config.url.includes("/ecosp-console")) {
|
|
5207
5207
|
document.cookie = "JSESSIONID=node017nm2falxdfe8c1parzfv9ilr29.node0";
|
|
5208
5208
|
} else if (config.url.includes("omni-channel-service-console")) {
|
|
5209
|
-
document.cookie = "JSESSIONID=
|
|
5209
|
+
document.cookie = "JSESSIONID=78E8137DAEC4660E6E4A6310CAB2B300";
|
|
5210
5210
|
}
|
|
5211
5211
|
} else {
|
|
5212
5212
|
if (config.url.includes("/api/") && is_cmsComp) {
|
|
@@ -28070,13 +28070,13 @@ var map = {
|
|
|
28070
28070
|
"./cms-productDetails/View.vue": 7984,
|
|
28071
28071
|
"./cms-question/View.vue": 9764,
|
|
28072
28072
|
"./cms-richText/View.vue": 3411,
|
|
28073
|
-
"./cms-servePlan-tab/View.vue":
|
|
28073
|
+
"./cms-servePlan-tab/View.vue": 6942,
|
|
28074
28074
|
"./cms-servePlan-text/View.vue": 9487,
|
|
28075
28075
|
"./cms-termsAndConditions/View.vue": 8073,
|
|
28076
28076
|
"./cms-threeScroll/View.vue": 8045,
|
|
28077
28077
|
"./cms-titleCenter/View.vue": 8106,
|
|
28078
28078
|
"./cms-titleLeft/View.vue": 9004,
|
|
28079
|
-
"./cms-via-storedValueCard/View.vue":
|
|
28079
|
+
"./cms-via-storedValueCard/View.vue": 7243,
|
|
28080
28080
|
"./cms-view/View.vue": 1380
|
|
28081
28081
|
};
|
|
28082
28082
|
|
|
@@ -28489,7 +28489,7 @@ var utils = __webpack_require__(1996);
|
|
|
28489
28489
|
|
|
28490
28490
|
|
|
28491
28491
|
const baseConfig = {
|
|
28492
|
-
cmhkChannelConfList: ["
|
|
28492
|
+
cmhkChannelConfList: ["ALL"],
|
|
28493
28493
|
//从接口获取全部的渠道,避免硬编码需要手动新增渠道
|
|
28494
28494
|
startTime: "",
|
|
28495
28495
|
endTime: ""
|
|
@@ -29127,166 +29127,6 @@ module.exports = !DESCRIPTORS && !fails(function () {
|
|
|
29127
29127
|
});
|
|
29128
29128
|
|
|
29129
29129
|
|
|
29130
|
-
/***/ }),
|
|
29131
|
-
|
|
29132
|
-
/***/ 5953:
|
|
29133
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
29134
|
-
|
|
29135
|
-
"use strict";
|
|
29136
|
-
// ESM COMPAT FLAG
|
|
29137
|
-
__webpack_require__.r(__webpack_exports__);
|
|
29138
|
-
|
|
29139
|
-
// EXPORTS
|
|
29140
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
29141
|
-
"default": function() { return /* binding */ View; }
|
|
29142
|
-
});
|
|
29143
|
-
|
|
29144
|
-
;// ./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=183f20d8&scoped=true
|
|
29145
|
-
var render = function render() {
|
|
29146
|
-
var _vm = this,
|
|
29147
|
-
_c = _vm._self._c;
|
|
29148
|
-
return _c('BaseComp', _vm._b({
|
|
29149
|
-
attrs: {
|
|
29150
|
-
"data": _vm.data,
|
|
29151
|
-
"nowCompId": _vm.nowCompId,
|
|
29152
|
-
"isOpcacity": _vm.isOpcacity,
|
|
29153
|
-
"lang": _vm.lang
|
|
29154
|
-
},
|
|
29155
|
-
on: {
|
|
29156
|
-
"getConfigData": _vm.getConfigData
|
|
29157
|
-
}
|
|
29158
|
-
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
|
|
29159
|
-
key: _vm.data.componentId,
|
|
29160
|
-
attrs: {
|
|
29161
|
-
"name": `cmsacive${_vm.data.componentId}`,
|
|
29162
|
-
"url": _vm.wujieCompUrl,
|
|
29163
|
-
"props": {
|
|
29164
|
-
data: _vm.propsdata5
|
|
29165
|
-
}
|
|
29166
|
-
}
|
|
29167
|
-
}) : _vm._e()], 1);
|
|
29168
|
-
};
|
|
29169
|
-
var staticRenderFns = [];
|
|
29170
|
-
|
|
29171
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
29172
|
-
var baseComp = __webpack_require__(7291);
|
|
29173
|
-
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
29174
|
-
var patch = __webpack_require__(5512);
|
|
29175
|
-
;// ./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
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
29179
|
-
name: "cms-via-storedValueCard",
|
|
29180
|
-
components: {
|
|
29181
|
-
BaseComp: baseComp/* default */.A
|
|
29182
|
-
},
|
|
29183
|
-
props: {
|
|
29184
|
-
data: {
|
|
29185
|
-
type: Object,
|
|
29186
|
-
default: () => {
|
|
29187
|
-
return {};
|
|
29188
|
-
}
|
|
29189
|
-
},
|
|
29190
|
-
nowCompId: {
|
|
29191
|
-
type: [String, Number],
|
|
29192
|
-
default: ""
|
|
29193
|
-
},
|
|
29194
|
-
isOpcacity: {
|
|
29195
|
-
type: Boolean,
|
|
29196
|
-
default: true
|
|
29197
|
-
},
|
|
29198
|
-
lang: {
|
|
29199
|
-
type: String,
|
|
29200
|
-
default: ""
|
|
29201
|
-
}
|
|
29202
|
-
},
|
|
29203
|
-
data() {
|
|
29204
|
-
return {
|
|
29205
|
-
wujieCompUrl: "",
|
|
29206
|
-
propsdata5: {},
|
|
29207
|
-
showWujie: false,
|
|
29208
|
-
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
29209
|
-
componentUrl: "",
|
|
29210
|
-
componentId: "",
|
|
29211
|
-
viaCompInstId: ""
|
|
29212
|
-
};
|
|
29213
|
-
},
|
|
29214
|
-
async mounted() {
|
|
29215
|
-
if (!this.$EventBus) {
|
|
29216
|
-
if (window.location.origin.includes("-uat")) {
|
|
29217
|
-
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
29218
|
-
} else {
|
|
29219
|
-
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
29220
|
-
}
|
|
29221
|
-
}
|
|
29222
|
-
this.getUrl(this.lang);
|
|
29223
|
-
},
|
|
29224
|
-
created() {},
|
|
29225
|
-
methods: {
|
|
29226
|
-
getConfigData() {
|
|
29227
|
-
const wujieConfig = this.data.wujieConfig;
|
|
29228
|
-
this.componentUrl = wujieConfig.componentUrl;
|
|
29229
|
-
this.componentId = wujieConfig.componentId;
|
|
29230
|
-
this.viaCompInstId = wujieConfig.viaCompInstId;
|
|
29231
|
-
this.getUrl(this.lang);
|
|
29232
|
-
if (this.componentId) {
|
|
29233
|
-
setTimeout(() => {
|
|
29234
|
-
this.showWujie = true;
|
|
29235
|
-
});
|
|
29236
|
-
}
|
|
29237
|
-
},
|
|
29238
|
-
wujieFetchMx(url, options) {
|
|
29239
|
-
return window.fetch(url, {
|
|
29240
|
-
...options,
|
|
29241
|
-
credentials: "include"
|
|
29242
|
-
});
|
|
29243
|
-
},
|
|
29244
|
-
getUrl(lang) {
|
|
29245
|
-
const langMap = {
|
|
29246
|
-
"zh-CN": "sc",
|
|
29247
|
-
"zh-HK": "tc",
|
|
29248
|
-
"en-US": "en"
|
|
29249
|
-
};
|
|
29250
|
-
const langTag = this.$EventBus ? "tc" : langMap[lang];
|
|
29251
|
-
const curCompUrl = this.componentUrl.replace("langTag", langTag);
|
|
29252
|
-
this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
|
|
29253
|
-
console.log("wujieCompUrl", this.wujieCompUrl);
|
|
29254
|
-
this.propsdata5 = {
|
|
29255
|
-
orgId: sessionStorage.getItem("orgId") || "",
|
|
29256
|
-
staffId: sessionStorage.getItem("staffId") || "",
|
|
29257
|
-
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
29258
|
-
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
29259
|
-
componentId: this.componentId,
|
|
29260
|
-
viaCompInstId: this.viaCompInstId
|
|
29261
|
-
};
|
|
29262
|
-
}
|
|
29263
|
-
}
|
|
29264
|
-
});
|
|
29265
|
-
;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
29266
|
-
/* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
29267
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
29268
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
29269
|
-
;// ./package/cms-via-storedValueCard/View.vue
|
|
29270
|
-
|
|
29271
|
-
|
|
29272
|
-
|
|
29273
|
-
|
|
29274
|
-
|
|
29275
|
-
/* normalize component */
|
|
29276
|
-
;
|
|
29277
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
29278
|
-
cms_via_storedValueCard_Viewvue_type_script_lang_js,
|
|
29279
|
-
render,
|
|
29280
|
-
staticRenderFns,
|
|
29281
|
-
false,
|
|
29282
|
-
null,
|
|
29283
|
-
"183f20d8",
|
|
29284
|
-
null
|
|
29285
|
-
|
|
29286
|
-
)
|
|
29287
|
-
|
|
29288
|
-
/* harmony default export */ var View = (component.exports);
|
|
29289
|
-
|
|
29290
29130
|
/***/ }),
|
|
29291
29131
|
|
|
29292
29132
|
/***/ 5966:
|
|
@@ -29461,206 +29301,6 @@ module.exports = function (iterator, fn, value, ENTRIES) {
|
|
|
29461
29301
|
};
|
|
29462
29302
|
|
|
29463
29303
|
|
|
29464
|
-
/***/ }),
|
|
29465
|
-
|
|
29466
|
-
/***/ 6332:
|
|
29467
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
29468
|
-
|
|
29469
|
-
"use strict";
|
|
29470
|
-
// ESM COMPAT FLAG
|
|
29471
|
-
__webpack_require__.r(__webpack_exports__);
|
|
29472
|
-
|
|
29473
|
-
// EXPORTS
|
|
29474
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
29475
|
-
"default": function() { return /* binding */ View; }
|
|
29476
|
-
});
|
|
29477
|
-
|
|
29478
|
-
;// ./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-servePlan-tab/View.vue?vue&type=template&id=6f279e8a&scoped=true
|
|
29479
|
-
var render = function render() {
|
|
29480
|
-
var _vm = this,
|
|
29481
|
-
_c = _vm._self._c;
|
|
29482
|
-
return _c('BaseComp', _vm._b({
|
|
29483
|
-
attrs: {
|
|
29484
|
-
"data": _vm.data,
|
|
29485
|
-
"nowCompId": _vm.nowCompId,
|
|
29486
|
-
"isOpcacity": _vm.isOpcacity,
|
|
29487
|
-
"lang": _vm.lang
|
|
29488
|
-
},
|
|
29489
|
-
on: {
|
|
29490
|
-
"getConfigData": _vm.getConfigData
|
|
29491
|
-
}
|
|
29492
|
-
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
|
|
29493
|
-
ref: "iframeRef",
|
|
29494
|
-
staticClass: "iframBox",
|
|
29495
|
-
attrs: {
|
|
29496
|
-
"src": _vm.servePlanSrcIframe,
|
|
29497
|
-
"scrolling": "no",
|
|
29498
|
-
"frameborder": "0"
|
|
29499
|
-
}
|
|
29500
|
-
}) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
|
|
29501
|
-
key: _vm.servePlanSrc,
|
|
29502
|
-
attrs: {
|
|
29503
|
-
"fetch": _vm.wujieFetchMx,
|
|
29504
|
-
"name": `cmsacive${_vm.data.componentId}`,
|
|
29505
|
-
"url": _vm.servePlanSrc,
|
|
29506
|
-
"props": {
|
|
29507
|
-
data: _vm.propsdata5
|
|
29508
|
-
}
|
|
29509
|
-
}
|
|
29510
|
-
}) : _vm._e()], 1);
|
|
29511
|
-
};
|
|
29512
|
-
var staticRenderFns = [];
|
|
29513
|
-
|
|
29514
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
29515
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
29516
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
29517
|
-
var es_iterator_reduce = __webpack_require__(8237);
|
|
29518
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
29519
|
-
var baseComp = __webpack_require__(7291);
|
|
29520
|
-
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
29521
|
-
var patch = __webpack_require__(5512);
|
|
29522
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
|
|
29523
|
-
|
|
29524
|
-
|
|
29525
|
-
|
|
29526
|
-
|
|
29527
|
-
|
|
29528
|
-
|
|
29529
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
29530
|
-
name: "cms-servePlan-tab",
|
|
29531
|
-
components: {
|
|
29532
|
-
BaseComp: baseComp/* default */.A
|
|
29533
|
-
},
|
|
29534
|
-
props: {
|
|
29535
|
-
data: {
|
|
29536
|
-
type: Object,
|
|
29537
|
-
default: () => {
|
|
29538
|
-
return {};
|
|
29539
|
-
}
|
|
29540
|
-
},
|
|
29541
|
-
nowCompId: {
|
|
29542
|
-
type: [String, Number],
|
|
29543
|
-
default: ""
|
|
29544
|
-
},
|
|
29545
|
-
isOpcacity: {
|
|
29546
|
-
type: Boolean,
|
|
29547
|
-
default: true
|
|
29548
|
-
},
|
|
29549
|
-
lang: {
|
|
29550
|
-
type: String,
|
|
29551
|
-
default: ""
|
|
29552
|
-
}
|
|
29553
|
-
},
|
|
29554
|
-
data() {
|
|
29555
|
-
return {
|
|
29556
|
-
servePlanSrc: "",
|
|
29557
|
-
routeLang: "tc",
|
|
29558
|
-
configData: {},
|
|
29559
|
-
parentShopCategoryId: "",
|
|
29560
|
-
propsdata5: {},
|
|
29561
|
-
showWujie: false,
|
|
29562
|
-
servePlanSrcIframe: "",
|
|
29563
|
-
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
|
|
29564
|
-
};
|
|
29565
|
-
},
|
|
29566
|
-
mounted() {
|
|
29567
|
-
if (this.$EventBus && this.isOpcacity) {
|
|
29568
|
-
window.addEventListener("message", this.handleMessage, false);
|
|
29569
|
-
} else {
|
|
29570
|
-
if (window.location.origin.includes("-uat")) {
|
|
29571
|
-
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
29572
|
-
} else {
|
|
29573
|
-
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
29574
|
-
}
|
|
29575
|
-
this.showWujie = true;
|
|
29576
|
-
const vm = this;
|
|
29577
|
-
const _window = window;
|
|
29578
|
-
this.$wujieBus.$on("jumpToServicePlanDetail", val => {
|
|
29579
|
-
let url = `${_window.location.origin}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
|
|
29580
|
-
_window.location.href = url;
|
|
29581
|
-
});
|
|
29582
|
-
}
|
|
29583
|
-
this.getUrl(this.lang);
|
|
29584
|
-
},
|
|
29585
|
-
watch: {},
|
|
29586
|
-
methods: {
|
|
29587
|
-
getConfigData(configData) {
|
|
29588
|
-
this.configData = configData;
|
|
29589
|
-
this.parentShopCategoryId = configData.argument1;
|
|
29590
|
-
this.getUrl(this.lang);
|
|
29591
|
-
},
|
|
29592
|
-
wujieFetchMx(url, options) {
|
|
29593
|
-
return window.fetch(url, {
|
|
29594
|
-
...options,
|
|
29595
|
-
credentials: "include"
|
|
29596
|
-
});
|
|
29597
|
-
},
|
|
29598
|
-
getUrl(lang) {
|
|
29599
|
-
const langMap = {
|
|
29600
|
-
"zh-CN": "sc",
|
|
29601
|
-
"zh-HK": "tc",
|
|
29602
|
-
"en-US": "en"
|
|
29603
|
-
};
|
|
29604
|
-
this.routeLang = langMap[lang];
|
|
29605
|
-
this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
|
|
29606
|
-
const busiData = {
|
|
29607
|
-
parentShopCategoryId: this.parentShopCategoryId,
|
|
29608
|
-
onlyShowList: true
|
|
29609
|
-
};
|
|
29610
|
-
if (this.$EventBus) {
|
|
29611
|
-
const queryStr = Object.keys(busiData).reduce((pre, cur) => {
|
|
29612
|
-
if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
|
|
29613
|
-
return pre;
|
|
29614
|
-
}, "");
|
|
29615
|
-
this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
|
|
29616
|
-
}
|
|
29617
|
-
this.propsdata5 = {
|
|
29618
|
-
orgId: sessionStorage.getItem("orgId") || "",
|
|
29619
|
-
staffId: sessionStorage.getItem("staffId") || "",
|
|
29620
|
-
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
29621
|
-
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
29622
|
-
busiData: busiData
|
|
29623
|
-
};
|
|
29624
|
-
},
|
|
29625
|
-
handleMessage(e) {
|
|
29626
|
-
console.log(e.data, "789");
|
|
29627
|
-
const iframe = this.$refs.iframeRef;
|
|
29628
|
-
if (!iframe) return;
|
|
29629
|
-
iframe.style && (iframe.style.height = e.data + "px");
|
|
29630
|
-
}
|
|
29631
|
-
}
|
|
29632
|
-
});
|
|
29633
|
-
;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
|
|
29634
|
-
/* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
29635
|
-
;// ./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-servePlan-tab/View.vue?vue&type=style&index=0&id=6f279e8a&prod&lang=scss&scoped=true
|
|
29636
|
-
// extracted by mini-css-extract-plugin
|
|
29637
|
-
|
|
29638
|
-
;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=6f279e8a&prod&lang=scss&scoped=true
|
|
29639
|
-
|
|
29640
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
29641
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
29642
|
-
;// ./package/cms-servePlan-tab/View.vue
|
|
29643
|
-
|
|
29644
|
-
|
|
29645
|
-
|
|
29646
|
-
;
|
|
29647
|
-
|
|
29648
|
-
|
|
29649
|
-
/* normalize component */
|
|
29650
|
-
|
|
29651
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
29652
|
-
cms_servePlan_tab_Viewvue_type_script_lang_js,
|
|
29653
|
-
render,
|
|
29654
|
-
staticRenderFns,
|
|
29655
|
-
false,
|
|
29656
|
-
null,
|
|
29657
|
-
"6f279e8a",
|
|
29658
|
-
null
|
|
29659
|
-
|
|
29660
|
-
)
|
|
29661
|
-
|
|
29662
|
-
/* harmony default export */ var View = (component.exports);
|
|
29663
|
-
|
|
29664
29304
|
/***/ }),
|
|
29665
29305
|
|
|
29666
29306
|
/***/ 6368:
|
|
@@ -38195,6 +37835,209 @@ module.exports = Math.min;
|
|
|
38195
37835
|
|
|
38196
37836
|
/***/ }),
|
|
38197
37837
|
|
|
37838
|
+
/***/ 6942:
|
|
37839
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
37840
|
+
|
|
37841
|
+
"use strict";
|
|
37842
|
+
// ESM COMPAT FLAG
|
|
37843
|
+
__webpack_require__.r(__webpack_exports__);
|
|
37844
|
+
|
|
37845
|
+
// EXPORTS
|
|
37846
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
37847
|
+
"default": function() { return /* binding */ View; }
|
|
37848
|
+
});
|
|
37849
|
+
|
|
37850
|
+
;// ./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-servePlan-tab/View.vue?vue&type=template&id=43da1b27&scoped=true
|
|
37851
|
+
var render = function render() {
|
|
37852
|
+
var _vm = this,
|
|
37853
|
+
_c = _vm._self._c;
|
|
37854
|
+
return _c('BaseComp', _vm._b({
|
|
37855
|
+
attrs: {
|
|
37856
|
+
"data": _vm.data,
|
|
37857
|
+
"nowCompId": _vm.nowCompId,
|
|
37858
|
+
"isOpcacity": _vm.isOpcacity,
|
|
37859
|
+
"lang": _vm.lang
|
|
37860
|
+
},
|
|
37861
|
+
on: {
|
|
37862
|
+
"getConfigData": _vm.getConfigData
|
|
37863
|
+
}
|
|
37864
|
+
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('iframe', {
|
|
37865
|
+
ref: "iframeRef",
|
|
37866
|
+
staticClass: "iframBox",
|
|
37867
|
+
attrs: {
|
|
37868
|
+
"src": _vm.servePlanSrcIframe,
|
|
37869
|
+
"scrolling": "no",
|
|
37870
|
+
"frameborder": "0"
|
|
37871
|
+
}
|
|
37872
|
+
}) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
|
|
37873
|
+
key: _vm.servePlanSrc,
|
|
37874
|
+
attrs: {
|
|
37875
|
+
"fetch": _vm.wujieFetchMx,
|
|
37876
|
+
"name": `cmsacive${_vm.data.componentId}`,
|
|
37877
|
+
"url": _vm.servePlanSrc,
|
|
37878
|
+
"props": {
|
|
37879
|
+
data: _vm.propsdata5
|
|
37880
|
+
}
|
|
37881
|
+
}
|
|
37882
|
+
}) : _vm._e()], 1);
|
|
37883
|
+
};
|
|
37884
|
+
var staticRenderFns = [];
|
|
37885
|
+
|
|
37886
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
37887
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
37888
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
37889
|
+
var es_iterator_reduce = __webpack_require__(8237);
|
|
37890
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
37891
|
+
var baseComp = __webpack_require__(7291);
|
|
37892
|
+
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
37893
|
+
var patch = __webpack_require__(5512);
|
|
37894
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
|
|
37895
|
+
|
|
37896
|
+
|
|
37897
|
+
|
|
37898
|
+
|
|
37899
|
+
|
|
37900
|
+
|
|
37901
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
37902
|
+
name: "cms-servePlan-tab",
|
|
37903
|
+
components: {
|
|
37904
|
+
BaseComp: baseComp/* default */.A
|
|
37905
|
+
},
|
|
37906
|
+
props: {
|
|
37907
|
+
data: {
|
|
37908
|
+
type: Object,
|
|
37909
|
+
default: () => {
|
|
37910
|
+
return {};
|
|
37911
|
+
}
|
|
37912
|
+
},
|
|
37913
|
+
nowCompId: {
|
|
37914
|
+
type: [String, Number],
|
|
37915
|
+
default: ""
|
|
37916
|
+
},
|
|
37917
|
+
isOpcacity: {
|
|
37918
|
+
type: Boolean,
|
|
37919
|
+
default: true
|
|
37920
|
+
},
|
|
37921
|
+
lang: {
|
|
37922
|
+
type: String,
|
|
37923
|
+
default: ""
|
|
37924
|
+
}
|
|
37925
|
+
},
|
|
37926
|
+
data() {
|
|
37927
|
+
return {
|
|
37928
|
+
servePlanSrc: "",
|
|
37929
|
+
routeLang: "tc",
|
|
37930
|
+
configData: {},
|
|
37931
|
+
parentShopCategoryId: "",
|
|
37932
|
+
propsdata5: {},
|
|
37933
|
+
showWujie: false,
|
|
37934
|
+
servePlanSrcIframe: "",
|
|
37935
|
+
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"
|
|
37936
|
+
};
|
|
37937
|
+
},
|
|
37938
|
+
mounted() {
|
|
37939
|
+
if (this.$EventBus && this.isOpcacity) {
|
|
37940
|
+
window.addEventListener("message", this.handleMessage, false);
|
|
37941
|
+
} else {
|
|
37942
|
+
if (!this.$EventBus) {
|
|
37943
|
+
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
37944
|
+
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
37945
|
+
} else {
|
|
37946
|
+
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
37947
|
+
}
|
|
37948
|
+
}
|
|
37949
|
+
this.showWujie = true;
|
|
37950
|
+
const vm = this;
|
|
37951
|
+
const _window = window;
|
|
37952
|
+
const jumpOriginUrl = this.$EventBus ? this.compBaseUrl : window.location.origin;
|
|
37953
|
+
this.$wujieBus.$on("jumpToServicePlanDetail", val => {
|
|
37954
|
+
let url = `${jumpOriginUrl}/${vm.routeLang}/home/plan/detail?commodityId=${val.commodityId}&isBr=${val.isBr}&cmhkChannel=${(0,patch/* getCmhkChannelMx */.u)()}`;
|
|
37955
|
+
_window.location.href = url;
|
|
37956
|
+
});
|
|
37957
|
+
}
|
|
37958
|
+
this.getUrl(this.lang);
|
|
37959
|
+
},
|
|
37960
|
+
watch: {},
|
|
37961
|
+
methods: {
|
|
37962
|
+
getConfigData(configData) {
|
|
37963
|
+
this.configData = configData;
|
|
37964
|
+
this.parentShopCategoryId = configData.argument1;
|
|
37965
|
+
this.getUrl(this.lang);
|
|
37966
|
+
},
|
|
37967
|
+
wujieFetchMx(url, options) {
|
|
37968
|
+
return window.fetch(url, {
|
|
37969
|
+
...options,
|
|
37970
|
+
credentials: "include"
|
|
37971
|
+
});
|
|
37972
|
+
},
|
|
37973
|
+
getUrl(lang) {
|
|
37974
|
+
const langMap = {
|
|
37975
|
+
"zh-CN": "sc",
|
|
37976
|
+
"zh-HK": "tc",
|
|
37977
|
+
"en-US": "en"
|
|
37978
|
+
};
|
|
37979
|
+
this.routeLang = langMap[lang];
|
|
37980
|
+
this.servePlanSrc = `${this.compBaseUrl}/${this.routeLang}/home/plan`;
|
|
37981
|
+
const busiData = {
|
|
37982
|
+
parentShopCategoryId: this.parentShopCategoryId,
|
|
37983
|
+
onlyShowList: true
|
|
37984
|
+
};
|
|
37985
|
+
if (this.$EventBus) {
|
|
37986
|
+
const queryStr = Object.keys(busiData).reduce((pre, cur) => {
|
|
37987
|
+
if (busiData[cur]) return `${pre}&${cur}=${busiData[cur]}`;
|
|
37988
|
+
return pre;
|
|
37989
|
+
}, "");
|
|
37990
|
+
this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW${queryStr}`;
|
|
37991
|
+
}
|
|
37992
|
+
this.propsdata5 = {
|
|
37993
|
+
orgId: sessionStorage.getItem("orgId") || "",
|
|
37994
|
+
staffId: sessionStorage.getItem("staffId") || "",
|
|
37995
|
+
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
37996
|
+
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
37997
|
+
busiData: busiData
|
|
37998
|
+
};
|
|
37999
|
+
},
|
|
38000
|
+
handleMessage(e) {
|
|
38001
|
+
console.log(e.data, "789");
|
|
38002
|
+
const iframe = this.$refs.iframeRef;
|
|
38003
|
+
if (!iframe) return;
|
|
38004
|
+
iframe.style && (iframe.style.height = e.data + "px");
|
|
38005
|
+
}
|
|
38006
|
+
}
|
|
38007
|
+
});
|
|
38008
|
+
;// ./package/cms-servePlan-tab/View.vue?vue&type=script&lang=js
|
|
38009
|
+
/* harmony default export */ var cms_servePlan_tab_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
38010
|
+
;// ./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-servePlan-tab/View.vue?vue&type=style&index=0&id=43da1b27&prod&lang=scss&scoped=true
|
|
38011
|
+
// extracted by mini-css-extract-plugin
|
|
38012
|
+
|
|
38013
|
+
;// ./package/cms-servePlan-tab/View.vue?vue&type=style&index=0&id=43da1b27&prod&lang=scss&scoped=true
|
|
38014
|
+
|
|
38015
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
38016
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
38017
|
+
;// ./package/cms-servePlan-tab/View.vue
|
|
38018
|
+
|
|
38019
|
+
|
|
38020
|
+
|
|
38021
|
+
;
|
|
38022
|
+
|
|
38023
|
+
|
|
38024
|
+
/* normalize component */
|
|
38025
|
+
|
|
38026
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
38027
|
+
cms_servePlan_tab_Viewvue_type_script_lang_js,
|
|
38028
|
+
render,
|
|
38029
|
+
staticRenderFns,
|
|
38030
|
+
false,
|
|
38031
|
+
null,
|
|
38032
|
+
"43da1b27",
|
|
38033
|
+
null
|
|
38034
|
+
|
|
38035
|
+
)
|
|
38036
|
+
|
|
38037
|
+
/* harmony default export */ var View = (component.exports);
|
|
38038
|
+
|
|
38039
|
+
/***/ }),
|
|
38040
|
+
|
|
38198
38041
|
/***/ 6955:
|
|
38199
38042
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
38200
38043
|
|
|
@@ -38430,6 +38273,166 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38430
38273
|
|
|
38431
38274
|
/***/ }),
|
|
38432
38275
|
|
|
38276
|
+
/***/ 7243:
|
|
38277
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38278
|
+
|
|
38279
|
+
"use strict";
|
|
38280
|
+
// ESM COMPAT FLAG
|
|
38281
|
+
__webpack_require__.r(__webpack_exports__);
|
|
38282
|
+
|
|
38283
|
+
// EXPORTS
|
|
38284
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
38285
|
+
"default": function() { return /* binding */ View; }
|
|
38286
|
+
});
|
|
38287
|
+
|
|
38288
|
+
;// ./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=6f691fe1&scoped=true
|
|
38289
|
+
var render = function render() {
|
|
38290
|
+
var _vm = this,
|
|
38291
|
+
_c = _vm._self._c;
|
|
38292
|
+
return _c('BaseComp', _vm._b({
|
|
38293
|
+
attrs: {
|
|
38294
|
+
"data": _vm.data,
|
|
38295
|
+
"nowCompId": _vm.nowCompId,
|
|
38296
|
+
"isOpcacity": _vm.isOpcacity,
|
|
38297
|
+
"lang": _vm.lang
|
|
38298
|
+
},
|
|
38299
|
+
on: {
|
|
38300
|
+
"getConfigData": _vm.getConfigData
|
|
38301
|
+
}
|
|
38302
|
+
}, 'BaseComp', _vm.$attrs, false), [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.wujieCompUrl ? _c('WujieVue', {
|
|
38303
|
+
key: _vm.data.componentId,
|
|
38304
|
+
attrs: {
|
|
38305
|
+
"name": `cmsacive${_vm.data.componentId}`,
|
|
38306
|
+
"url": _vm.wujieCompUrl,
|
|
38307
|
+
"props": {
|
|
38308
|
+
data: _vm.propsdata5
|
|
38309
|
+
}
|
|
38310
|
+
}
|
|
38311
|
+
}) : _vm._e()], 1);
|
|
38312
|
+
};
|
|
38313
|
+
var staticRenderFns = [];
|
|
38314
|
+
|
|
38315
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 3 modules
|
|
38316
|
+
var baseComp = __webpack_require__(7291);
|
|
38317
|
+
// EXTERNAL MODULE: ./package/patch.js + 1 modules
|
|
38318
|
+
var patch = __webpack_require__(5512);
|
|
38319
|
+
;// ./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
|
|
38320
|
+
|
|
38321
|
+
|
|
38322
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
38323
|
+
name: "cms-via-storedValueCard",
|
|
38324
|
+
components: {
|
|
38325
|
+
BaseComp: baseComp/* default */.A
|
|
38326
|
+
},
|
|
38327
|
+
props: {
|
|
38328
|
+
data: {
|
|
38329
|
+
type: Object,
|
|
38330
|
+
default: () => {
|
|
38331
|
+
return {};
|
|
38332
|
+
}
|
|
38333
|
+
},
|
|
38334
|
+
nowCompId: {
|
|
38335
|
+
type: [String, Number],
|
|
38336
|
+
default: ""
|
|
38337
|
+
},
|
|
38338
|
+
isOpcacity: {
|
|
38339
|
+
type: Boolean,
|
|
38340
|
+
default: true
|
|
38341
|
+
},
|
|
38342
|
+
lang: {
|
|
38343
|
+
type: String,
|
|
38344
|
+
default: ""
|
|
38345
|
+
}
|
|
38346
|
+
},
|
|
38347
|
+
data() {
|
|
38348
|
+
return {
|
|
38349
|
+
wujieCompUrl: "",
|
|
38350
|
+
propsdata5: {},
|
|
38351
|
+
showWujie: false,
|
|
38352
|
+
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
38353
|
+
componentUrl: "",
|
|
38354
|
+
componentId: "",
|
|
38355
|
+
viaCompInstId: ""
|
|
38356
|
+
};
|
|
38357
|
+
},
|
|
38358
|
+
async mounted() {
|
|
38359
|
+
if (!this.$EventBus) {
|
|
38360
|
+
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
38361
|
+
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
38362
|
+
} else {
|
|
38363
|
+
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
38364
|
+
}
|
|
38365
|
+
}
|
|
38366
|
+
this.getUrl(this.lang);
|
|
38367
|
+
},
|
|
38368
|
+
created() {},
|
|
38369
|
+
methods: {
|
|
38370
|
+
getConfigData() {
|
|
38371
|
+
const wujieConfig = this.data.wujieConfig;
|
|
38372
|
+
this.componentUrl = wujieConfig.componentUrl;
|
|
38373
|
+
this.componentId = wujieConfig.componentId;
|
|
38374
|
+
this.viaCompInstId = wujieConfig.viaCompInstId;
|
|
38375
|
+
this.getUrl(this.lang);
|
|
38376
|
+
if (this.componentId) {
|
|
38377
|
+
setTimeout(() => {
|
|
38378
|
+
this.showWujie = true;
|
|
38379
|
+
});
|
|
38380
|
+
}
|
|
38381
|
+
},
|
|
38382
|
+
wujieFetchMx(url, options) {
|
|
38383
|
+
return window.fetch(url, {
|
|
38384
|
+
...options,
|
|
38385
|
+
credentials: "include"
|
|
38386
|
+
});
|
|
38387
|
+
},
|
|
38388
|
+
getUrl(lang) {
|
|
38389
|
+
const langMap = {
|
|
38390
|
+
"zh-CN": "sc",
|
|
38391
|
+
"zh-HK": "tc",
|
|
38392
|
+
"en-US": "en"
|
|
38393
|
+
};
|
|
38394
|
+
const langTag = this.$EventBus ? "tc" : langMap[lang];
|
|
38395
|
+
const curCompUrl = this.componentUrl.replace("langTag", langTag);
|
|
38396
|
+
this.wujieCompUrl = `${this.compBaseUrl}${curCompUrl}`;
|
|
38397
|
+
console.log("wujieCompUrl", this.wujieCompUrl);
|
|
38398
|
+
this.propsdata5 = {
|
|
38399
|
+
orgId: sessionStorage.getItem("orgId") || "",
|
|
38400
|
+
staffId: sessionStorage.getItem("staffId") || "",
|
|
38401
|
+
cmhkChannel: (0,patch/* getCmhkChannelMx */.u)(),
|
|
38402
|
+
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
38403
|
+
componentId: this.componentId,
|
|
38404
|
+
viaCompInstId: this.viaCompInstId
|
|
38405
|
+
};
|
|
38406
|
+
}
|
|
38407
|
+
}
|
|
38408
|
+
});
|
|
38409
|
+
;// ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
38410
|
+
/* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
38411
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
38412
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
38413
|
+
;// ./package/cms-via-storedValueCard/View.vue
|
|
38414
|
+
|
|
38415
|
+
|
|
38416
|
+
|
|
38417
|
+
|
|
38418
|
+
|
|
38419
|
+
/* normalize component */
|
|
38420
|
+
;
|
|
38421
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
38422
|
+
cms_via_storedValueCard_Viewvue_type_script_lang_js,
|
|
38423
|
+
render,
|
|
38424
|
+
staticRenderFns,
|
|
38425
|
+
false,
|
|
38426
|
+
null,
|
|
38427
|
+
"6f691fe1",
|
|
38428
|
+
null
|
|
38429
|
+
|
|
38430
|
+
)
|
|
38431
|
+
|
|
38432
|
+
/* harmony default export */ var View = (component.exports);
|
|
38433
|
+
|
|
38434
|
+
/***/ }),
|
|
38435
|
+
|
|
38433
38436
|
/***/ 7291:
|
|
38434
38437
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38435
38438
|
|