cms-chenhj-ui 1.0.37 → 1.0.39
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,254 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8719
8719
|
|
|
8720
8720
|
/***/ }),
|
|
8721
8721
|
|
|
8722
|
+
/***/ 5486:
|
|
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-via-storedValueCard/View.vue?vue&type=template&id=65e0f0a2&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('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
|
|
8753
|
+
key: _vm.servePlanSrc,
|
|
8754
|
+
attrs: {
|
|
8755
|
+
"name": `cmsacive${_vm.data.id}`,
|
|
8756
|
+
"url": _vm.servePlanSrc,
|
|
8757
|
+
"props": {
|
|
8758
|
+
data: _vm.propsdata5
|
|
8759
|
+
}
|
|
8760
|
+
}
|
|
8761
|
+
}) : _vm._e(), _c('div', {
|
|
8762
|
+
class: {
|
|
8763
|
+
opcacity: _vm.isOpcacity
|
|
8764
|
+
},
|
|
8765
|
+
on: {
|
|
8766
|
+
"click": _vm.handleNowComp
|
|
8767
|
+
}
|
|
8768
|
+
})], 1), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
|
|
8769
|
+
staticClass: "com-delete"
|
|
8770
|
+
}, [_c('i', {
|
|
8771
|
+
staticClass: "el-icon-delete",
|
|
8772
|
+
on: {
|
|
8773
|
+
"click": function ($event) {
|
|
8774
|
+
$event.stopPropagation();
|
|
8775
|
+
return _vm.deleteComponent.apply(null, arguments);
|
|
8776
|
+
}
|
|
8777
|
+
}
|
|
8778
|
+
})]) : _vm._e()]);
|
|
8779
|
+
};
|
|
8780
|
+
var staticRenderFns = [];
|
|
8781
|
+
|
|
8782
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
8783
|
+
var es_array_push = __webpack_require__(560);
|
|
8784
|
+
;// 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-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
8785
|
+
|
|
8786
|
+
|
|
8787
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
8788
|
+
name: "cms-via-storedValueCard",
|
|
8789
|
+
props: {
|
|
8790
|
+
data: {
|
|
8791
|
+
type: Object,
|
|
8792
|
+
default: () => {
|
|
8793
|
+
return {};
|
|
8794
|
+
}
|
|
8795
|
+
},
|
|
8796
|
+
nowCompId: {
|
|
8797
|
+
type: [String, Number],
|
|
8798
|
+
default: ""
|
|
8799
|
+
},
|
|
8800
|
+
isOpcacity: {
|
|
8801
|
+
type: Boolean,
|
|
8802
|
+
default: true
|
|
8803
|
+
},
|
|
8804
|
+
lang: {
|
|
8805
|
+
type: String,
|
|
8806
|
+
default: ""
|
|
8807
|
+
}
|
|
8808
|
+
},
|
|
8809
|
+
data() {
|
|
8810
|
+
return {
|
|
8811
|
+
style: {},
|
|
8812
|
+
// 样式
|
|
8813
|
+
servePlanSrc: "",
|
|
8814
|
+
routeLang: "tc",
|
|
8815
|
+
parentShopCategoryId: "",
|
|
8816
|
+
propsdata5: {},
|
|
8817
|
+
showWujie: false,
|
|
8818
|
+
servePlanSrcIframe: "",
|
|
8819
|
+
baseUrl: "",
|
|
8820
|
+
componentUrl: "",
|
|
8821
|
+
componentId: "",
|
|
8822
|
+
viaCompInstId: ""
|
|
8823
|
+
};
|
|
8824
|
+
},
|
|
8825
|
+
async mounted() {
|
|
8826
|
+
if (this.$EventBus && this.isOpcacity) {
|
|
8827
|
+
this.$EventBus.$on("forceUpdateCom", data => {
|
|
8828
|
+
if (data.id == this.data.id) {
|
|
8829
|
+
let obj = {};
|
|
8830
|
+
data.settings.attribute.forEach(item => {
|
|
8831
|
+
obj[item.key] = item.value;
|
|
8832
|
+
});
|
|
8833
|
+
this.style = obj;
|
|
8834
|
+
}
|
|
8835
|
+
});
|
|
8836
|
+
window.addEventListener("message", this.handleMessage, false);
|
|
8837
|
+
}
|
|
8838
|
+
let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}`;
|
|
8839
|
+
this.baseUrl = originUrl;
|
|
8840
|
+
this.getUrl(this.lang);
|
|
8841
|
+
},
|
|
8842
|
+
watch: {
|
|
8843
|
+
data: {
|
|
8844
|
+
handler(val) {
|
|
8845
|
+
let obj = {};
|
|
8846
|
+
val.settings.settings.forEach(item => {
|
|
8847
|
+
this.componentUrl = item.componentUrl;
|
|
8848
|
+
this.componentId = item.value.componentId;
|
|
8849
|
+
if (this.componentId) {
|
|
8850
|
+
setTimeout(() => {
|
|
8851
|
+
this.showWujie = true;
|
|
8852
|
+
});
|
|
8853
|
+
}
|
|
8854
|
+
this.viaCompInstId = item.value.viaCompInstId;
|
|
8855
|
+
});
|
|
8856
|
+
this.getUrl(this.lang);
|
|
8857
|
+
val.settings.attribute.forEach(item => {
|
|
8858
|
+
obj[item.key] = item.value;
|
|
8859
|
+
});
|
|
8860
|
+
this.style = obj;
|
|
8861
|
+
},
|
|
8862
|
+
deep: true,
|
|
8863
|
+
immediate: true
|
|
8864
|
+
},
|
|
8865
|
+
lang: {
|
|
8866
|
+
handler(val) {
|
|
8867
|
+
console.log("changelang");
|
|
8868
|
+
this.getUrl(val);
|
|
8869
|
+
},
|
|
8870
|
+
deep: true,
|
|
8871
|
+
immediate: true
|
|
8872
|
+
}
|
|
8873
|
+
},
|
|
8874
|
+
methods: {
|
|
8875
|
+
wujieFetchMx(url, options) {
|
|
8876
|
+
return window.fetch(url, {
|
|
8877
|
+
...options,
|
|
8878
|
+
credentials: "include"
|
|
8879
|
+
});
|
|
8880
|
+
},
|
|
8881
|
+
getUrl(lang) {
|
|
8882
|
+
const obj = this.$EventBus ? {
|
|
8883
|
+
"zh-CN": "en",
|
|
8884
|
+
"zh-HK": "en",
|
|
8885
|
+
"en-US": "en"
|
|
8886
|
+
} : {
|
|
8887
|
+
"zh-CN": "sc",
|
|
8888
|
+
"zh-HK": "tc",
|
|
8889
|
+
"en-US": "en"
|
|
8890
|
+
};
|
|
8891
|
+
this.routeLang = obj[lang];
|
|
8892
|
+
const currentSrc = this.componentUrl.replace("langTag", `${obj[lang]}`);
|
|
8893
|
+
this.servePlanSrc = `${this.baseUrl}${currentSrc}`;
|
|
8894
|
+
console.log("currentSrc", this.servePlanSrc);
|
|
8895
|
+
if (this.$EventBus) {
|
|
8896
|
+
this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW`;
|
|
8897
|
+
}
|
|
8898
|
+
this.propsdata5 = {
|
|
8899
|
+
cmhkChannel: this.getCmhkChannelMx(),
|
|
8900
|
+
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
8901
|
+
componentId: this.viaCompInstId || this.componentId
|
|
8902
|
+
};
|
|
8903
|
+
},
|
|
8904
|
+
getCmhkChannelMx() {
|
|
8905
|
+
const host = window.location.host;
|
|
8906
|
+
const wwwHostList = ["www.hk.chinamobile.com", "www-uat.hk.chinamobile.com", "localhost:9640", "localhost:9700", "localhost:9701"];
|
|
8907
|
+
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") {
|
|
8908
|
+
wwwHostList.push("10.0.28.161");
|
|
8909
|
+
wwwHostList.push("10.0.28.17:9602");
|
|
8910
|
+
}
|
|
8911
|
+
if (wwwHostList.includes(host)) {
|
|
8912
|
+
return "WWW";
|
|
8913
|
+
} else {
|
|
8914
|
+
return sessionStorage.getItem("cmhkChannel") || "WWW";
|
|
8915
|
+
}
|
|
8916
|
+
},
|
|
8917
|
+
handleNowComp() {
|
|
8918
|
+
if (!this.isOpcacity) return;
|
|
8919
|
+
this.$EventBus.$emit("handleNowComp", {
|
|
8920
|
+
key: this.data.id,
|
|
8921
|
+
settings: this.data.settings,
|
|
8922
|
+
nowCompName: this.data.compName
|
|
8923
|
+
});
|
|
8924
|
+
},
|
|
8925
|
+
deleteComponent() {
|
|
8926
|
+
this.$EventBus.$emit("handleDeleteComp", {
|
|
8927
|
+
key: this.data.id
|
|
8928
|
+
});
|
|
8929
|
+
},
|
|
8930
|
+
handleMessage(e) {
|
|
8931
|
+
console.log(e.data, "789");
|
|
8932
|
+
const iframe = this.$refs.iframeRef;
|
|
8933
|
+
iframe.style.height = e.data + "px";
|
|
8934
|
+
}
|
|
8935
|
+
}
|
|
8936
|
+
});
|
|
8937
|
+
;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
8938
|
+
/* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
8939
|
+
;// 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-via-storedValueCard/View.vue?vue&type=style&index=0&id=65e0f0a2&prod&lang=scss&scoped=true
|
|
8940
|
+
// extracted by mini-css-extract-plugin
|
|
8941
|
+
|
|
8942
|
+
;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=65e0f0a2&prod&lang=scss&scoped=true
|
|
8943
|
+
|
|
8944
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8945
|
+
var componentNormalizer = __webpack_require__(1001);
|
|
8946
|
+
;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue
|
|
8947
|
+
|
|
8948
|
+
|
|
8949
|
+
|
|
8950
|
+
;
|
|
8951
|
+
|
|
8952
|
+
|
|
8953
|
+
/* normalize component */
|
|
8954
|
+
|
|
8955
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
8956
|
+
cms_via_storedValueCard_Viewvue_type_script_lang_js,
|
|
8957
|
+
render,
|
|
8958
|
+
staticRenderFns,
|
|
8959
|
+
false,
|
|
8960
|
+
null,
|
|
8961
|
+
"65e0f0a2",
|
|
8962
|
+
null
|
|
8963
|
+
|
|
8964
|
+
)
|
|
8965
|
+
|
|
8966
|
+
/* harmony default export */ var View = (component.exports);
|
|
8967
|
+
|
|
8968
|
+
/***/ }),
|
|
8969
|
+
|
|
8722
8970
|
/***/ 9984:
|
|
8723
8971
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8724
8972
|
|
|
@@ -10768,7 +11016,7 @@ module.exports = {
|
|
|
10768
11016
|
/* harmony export */ Rn: function() { return /* binding */ queryV1; },
|
|
10769
11017
|
/* harmony export */ vO: function() { return /* binding */ queryMenuList; }
|
|
10770
11018
|
/* harmony export */ });
|
|
10771
|
-
/* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList */
|
|
11019
|
+
/* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList, uploadImage, uploadVideo */
|
|
10772
11020
|
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5751);
|
|
10773
11021
|
|
|
10774
11022
|
|
|
@@ -10824,6 +11072,20 @@ function queryMenuList(data) {
|
|
|
10824
11072
|
data
|
|
10825
11073
|
});
|
|
10826
11074
|
}
|
|
11075
|
+
function uploadImage(data) {
|
|
11076
|
+
return request({
|
|
11077
|
+
method: "post",
|
|
11078
|
+
url: "/omni-channel-service-console/rest/commonFile/image",
|
|
11079
|
+
data
|
|
11080
|
+
});
|
|
11081
|
+
}
|
|
11082
|
+
function uploadVideo(data) {
|
|
11083
|
+
return request({
|
|
11084
|
+
method: "post",
|
|
11085
|
+
url: "/omni-channel-service-console/rest/commonFile/video",
|
|
11086
|
+
data
|
|
11087
|
+
});
|
|
11088
|
+
}
|
|
10827
11089
|
|
|
10828
11090
|
/***/ }),
|
|
10829
11091
|
|
|
@@ -47260,6 +47522,7 @@ var map = {
|
|
|
47260
47522
|
"./cms-threeScroll/View.vue": 1359,
|
|
47261
47523
|
"./cms-titleCenter/View.vue": 3583,
|
|
47262
47524
|
"./cms-titleLeft/View.vue": 3900,
|
|
47525
|
+
"./cms-via-storedValueCard/View.vue": 5486,
|
|
47263
47526
|
"./cms-view/View.vue": 9984
|
|
47264
47527
|
};
|
|
47265
47528
|
|