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