cms-chenhj-ui 1.0.37 → 1.0.38

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.
@@ -8709,6 +8709,255 @@ var component = (0,componentNormalizer/* default */.Z)(
8709
8709
 
8710
8710
  /***/ }),
8711
8711
 
8712
+ /***/ 459:
8713
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8714
+
8715
+ "use strict";
8716
+ // ESM COMPAT FLAG
8717
+ __webpack_require__.r(__webpack_exports__);
8718
+
8719
+ // EXPORTS
8720
+ __webpack_require__.d(__webpack_exports__, {
8721
+ "default": function() { return /* binding */ View; }
8722
+ });
8723
+
8724
+ ;// CONCATENATED MODULE: ./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-viademo/View.vue?vue&type=template&id=54fc13fa&scoped=true
8725
+ var render = function render() {
8726
+ var _vm = this,
8727
+ _c = _vm._self._c;
8728
+ return _c('div', {
8729
+ staticClass: "servePlan",
8730
+ class: [_vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? 'highLight' : ''],
8731
+ on: {
8732
+ "click": function ($event) {
8733
+ $event.stopPropagation();
8734
+ return _vm.handleNowComp.apply(null, arguments);
8735
+ }
8736
+ }
8737
+ }, [_c('div', {
8738
+ staticClass: "position",
8739
+ on: {
8740
+ "click": _vm.handleNowComp
8741
+ }
8742
+ }, [!_vm.showWujie ? _c('iframe', {
8743
+ ref: "iframeRef",
8744
+ staticClass: "iframBox",
8745
+ attrs: {
8746
+ "src": _vm.servePlanSrcIframe,
8747
+ "scrolling": "no",
8748
+ "frameborder": "0"
8749
+ },
8750
+ on: {
8751
+ "click": _vm.handleNowComp
8752
+ }
8753
+ }) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
8754
+ key: _vm.servePlanSrc,
8755
+ attrs: {
8756
+ "fetch": _vm.wujieFetchMx,
8757
+ "name": `cmsacive${_vm.data.id}`,
8758
+ "url": _vm.servePlanSrc,
8759
+ "props": {
8760
+ data: _vm.propsdata5
8761
+ }
8762
+ }
8763
+ }) : _vm._e(), _c('div', {
8764
+ class: {
8765
+ opcacity: _vm.isOpcacity
8766
+ },
8767
+ on: {
8768
+ "click": _vm.handleNowComp
8769
+ }
8770
+ })], 1), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
8771
+ staticClass: "com-delete"
8772
+ }, [_c('i', {
8773
+ staticClass: "el-icon-delete",
8774
+ on: {
8775
+ "click": function ($event) {
8776
+ $event.stopPropagation();
8777
+ return _vm.deleteComponent.apply(null, arguments);
8778
+ }
8779
+ }
8780
+ })]) : _vm._e()]);
8781
+ };
8782
+ var staticRenderFns = [];
8783
+
8784
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
8785
+ var es_array_push = __webpack_require__(560);
8786
+ ;// CONCATENATED MODULE: ./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-viademo/View.vue?vue&type=script&lang=js
8787
+
8788
+
8789
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
8790
+ name: "cms-viademo",
8791
+ props: {
8792
+ data: {
8793
+ type: Object,
8794
+ default: () => {
8795
+ return {};
8796
+ }
8797
+ },
8798
+ nowCompId: {
8799
+ type: [String, Number],
8800
+ default: ""
8801
+ },
8802
+ isOpcacity: {
8803
+ type: Boolean,
8804
+ default: true
8805
+ },
8806
+ lang: {
8807
+ type: String,
8808
+ default: ""
8809
+ }
8810
+ },
8811
+ data() {
8812
+ return {
8813
+ style: {},
8814
+ // 样式
8815
+ servePlanSrc: "",
8816
+ routeLang: "tc",
8817
+ parentShopCategoryId: "",
8818
+ propsdata5: {},
8819
+ showWujie: false,
8820
+ servePlanSrcIframe: "",
8821
+ baseUrl: ""
8822
+ };
8823
+ },
8824
+ mounted() {
8825
+ if (this.$EventBus && this.isOpcacity) {
8826
+ this.$EventBus.$on("forceUpdateCom", data => {
8827
+ if (data.id == this.data.id) {
8828
+ let obj = {};
8829
+ data.settings.attribute.forEach(item => {
8830
+ obj[item.key] = item.value;
8831
+ });
8832
+ this.style = obj;
8833
+ }
8834
+ });
8835
+ window.addEventListener("message", this.handleMessage, false);
8836
+ } else {
8837
+ this.showWujie = true;
8838
+ }
8839
+ let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}/viaActivity`;
8840
+ this.baseUrl = originUrl;
8841
+ this.getUrl(this.lang);
8842
+ },
8843
+ watch: {
8844
+ data: {
8845
+ handler(val) {
8846
+ let obj = {};
8847
+ val.settings.settings.forEach(item => {
8848
+ this.parentShopCategoryId = item.value.argument1;
8849
+ });
8850
+ this.getUrl(this.lang);
8851
+ val.settings.attribute.forEach(item => {
8852
+ obj[item.key] = item.value;
8853
+ });
8854
+ this.style = obj;
8855
+ },
8856
+ deep: true,
8857
+ immediate: true
8858
+ },
8859
+ lang: {
8860
+ handler(val) {
8861
+ console.log("changelang");
8862
+ this.getUrl(val);
8863
+ },
8864
+ deep: true,
8865
+ immediate: true
8866
+ }
8867
+ },
8868
+ methods: {
8869
+ wujieFetchMx(url, options) {
8870
+ return window.fetch(url, {
8871
+ ...options,
8872
+ credentials: "include"
8873
+ });
8874
+ },
8875
+ getUrl(lang) {
8876
+ const obj = {
8877
+ "zh-CN": "sc",
8878
+ "zh-HK": "tc",
8879
+ "en-US": "en"
8880
+ };
8881
+ this.routeLang = obj[lang];
8882
+ this.servePlanSrc = `${this.baseUrl}/${this.routeLang}/demo/home`;
8883
+ if (this.$EventBus) {
8884
+ this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW`;
8885
+ }
8886
+ this.propsdata5 = {
8887
+ cmhkChannel: this.getCmhkChannelMx(),
8888
+ cmhkToken: sessionStorage.getItem("cmhkToken") || "",
8889
+ busiData: {
8890
+ parentShopCategoryId: this.parentShopCategoryId,
8891
+ onlyShowList: true
8892
+ }
8893
+ };
8894
+ },
8895
+ getCmhkChannelMx() {
8896
+ const host = window.location.host;
8897
+ const wwwHostList = ["www.hk.chinamobile.com", "www-uat.hk.chinamobile.com", "localhost:9640", "localhost:9700", "localhost:9701"];
8898
+ if (({"NODE_ENV":"production","VUE_APP_CONSOLE_PRD":"http://10.0.28.22:9700","VUE_APP_CONSOLE_UAT":"http://10.0.28.25:9700","VUE_APP_NUXT_DEV":"http://10.0.28.60:9640","VUE_APP_NUXT_PRD1":"https://www.hk.chinamobile.com","VUE_APP_NUXT_PRD2":"https://omniapi.hk.chinamobile.com","VUE_APP_NUXT_UAT1":"http://10.0.28.161","VUE_APP_NUXT_UAT2":"https://www-uat.hk.chinamobile.com","VUE_APP_NUXT_UAT3":"https://omniapi-uat.hk.chinamobile.com","VUE_APP_SCHEMA_PRD":"http://10.0.28.22:9701","VUE_APP_SCHEMA_UAT":"http://10.0.28.25:9701","BASE_URL":"/"}).MODE == "devlopment") {
8899
+ wwwHostList.push("10.0.28.161");
8900
+ wwwHostList.push("10.0.28.17:9602");
8901
+ }
8902
+ if (wwwHostList.includes(host)) {
8903
+ return "WWW";
8904
+ } else {
8905
+ return sessionStorage.getItem("cmhkChannel") || "WWW";
8906
+ }
8907
+ },
8908
+ handleNowComp() {
8909
+ if (!this.isOpcacity) return;
8910
+ this.$EventBus.$emit("handleNowComp", {
8911
+ key: this.data.id,
8912
+ settings: this.data.settings,
8913
+ nowCompName: this.data.compName
8914
+ });
8915
+ },
8916
+ deleteComponent() {
8917
+ this.$EventBus.$emit("handleDeleteComp", {
8918
+ key: this.data.id
8919
+ });
8920
+ },
8921
+ handleMessage(e) {
8922
+ console.log(e.data, "789");
8923
+ const iframe = this.$refs.iframeRef;
8924
+ iframe.style.height = e.data + "px";
8925
+ }
8926
+ }
8927
+ });
8928
+ ;// CONCATENATED MODULE: ./package/cms-viademo/View.vue?vue&type=script&lang=js
8929
+ /* harmony default export */ var cms_viademo_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
8930
+ ;// CONCATENATED MODULE: ./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-viademo/View.vue?vue&type=style&index=0&id=54fc13fa&prod&lang=scss&scoped=true
8931
+ // extracted by mini-css-extract-plugin
8932
+
8933
+ ;// CONCATENATED MODULE: ./package/cms-viademo/View.vue?vue&type=style&index=0&id=54fc13fa&prod&lang=scss&scoped=true
8934
+
8935
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
8936
+ var componentNormalizer = __webpack_require__(1001);
8937
+ ;// CONCATENATED MODULE: ./package/cms-viademo/View.vue
8938
+
8939
+
8940
+
8941
+ ;
8942
+
8943
+
8944
+ /* normalize component */
8945
+
8946
+ var component = (0,componentNormalizer/* default */.Z)(
8947
+ cms_viademo_Viewvue_type_script_lang_js,
8948
+ render,
8949
+ staticRenderFns,
8950
+ false,
8951
+ null,
8952
+ "54fc13fa",
8953
+ null
8954
+
8955
+ )
8956
+
8957
+ /* harmony default export */ var View = (component.exports);
8958
+
8959
+ /***/ }),
8960
+
8712
8961
  /***/ 8010:
8713
8962
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8714
8963
 
@@ -47250,6 +47499,7 @@ var map = {
47250
47499
  "./cms-threeScroll/View.vue": 2633,
47251
47500
  "./cms-titleCenter/View.vue": 8862,
47252
47501
  "./cms-titleLeft/View.vue": 7265,
47502
+ "./cms-viademo/View.vue": 459,
47253
47503
  "./cms-view/View.vue": 8010
47254
47504
  };
47255
47505