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.common.js
CHANGED
|
@@ -8709,6 +8709,254 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8709
8709
|
|
|
8710
8710
|
/***/ }),
|
|
8711
8711
|
|
|
8712
|
+
/***/ 1087:
|
|
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-via-storedValueCard/View.vue?vue&type=template&id=65e0f0a2&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('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
|
|
8743
|
+
key: _vm.servePlanSrc,
|
|
8744
|
+
attrs: {
|
|
8745
|
+
"name": `cmsacive${_vm.data.id}`,
|
|
8746
|
+
"url": _vm.servePlanSrc,
|
|
8747
|
+
"props": {
|
|
8748
|
+
data: _vm.propsdata5
|
|
8749
|
+
}
|
|
8750
|
+
}
|
|
8751
|
+
}) : _vm._e(), _c('div', {
|
|
8752
|
+
class: {
|
|
8753
|
+
opcacity: _vm.isOpcacity
|
|
8754
|
+
},
|
|
8755
|
+
on: {
|
|
8756
|
+
"click": _vm.handleNowComp
|
|
8757
|
+
}
|
|
8758
|
+
})], 1), _vm.nowCompId !== '' && _vm.nowCompId == _vm.data.id ? _c('div', {
|
|
8759
|
+
staticClass: "com-delete"
|
|
8760
|
+
}, [_c('i', {
|
|
8761
|
+
staticClass: "el-icon-delete",
|
|
8762
|
+
on: {
|
|
8763
|
+
"click": function ($event) {
|
|
8764
|
+
$event.stopPropagation();
|
|
8765
|
+
return _vm.deleteComponent.apply(null, arguments);
|
|
8766
|
+
}
|
|
8767
|
+
}
|
|
8768
|
+
})]) : _vm._e()]);
|
|
8769
|
+
};
|
|
8770
|
+
var staticRenderFns = [];
|
|
8771
|
+
|
|
8772
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
8773
|
+
var es_array_push = __webpack_require__(560);
|
|
8774
|
+
;// 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-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
8775
|
+
|
|
8776
|
+
|
|
8777
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
8778
|
+
name: "cms-via-storedValueCard",
|
|
8779
|
+
props: {
|
|
8780
|
+
data: {
|
|
8781
|
+
type: Object,
|
|
8782
|
+
default: () => {
|
|
8783
|
+
return {};
|
|
8784
|
+
}
|
|
8785
|
+
},
|
|
8786
|
+
nowCompId: {
|
|
8787
|
+
type: [String, Number],
|
|
8788
|
+
default: ""
|
|
8789
|
+
},
|
|
8790
|
+
isOpcacity: {
|
|
8791
|
+
type: Boolean,
|
|
8792
|
+
default: true
|
|
8793
|
+
},
|
|
8794
|
+
lang: {
|
|
8795
|
+
type: String,
|
|
8796
|
+
default: ""
|
|
8797
|
+
}
|
|
8798
|
+
},
|
|
8799
|
+
data() {
|
|
8800
|
+
return {
|
|
8801
|
+
style: {},
|
|
8802
|
+
// 样式
|
|
8803
|
+
servePlanSrc: "",
|
|
8804
|
+
routeLang: "tc",
|
|
8805
|
+
parentShopCategoryId: "",
|
|
8806
|
+
propsdata5: {},
|
|
8807
|
+
showWujie: false,
|
|
8808
|
+
servePlanSrcIframe: "",
|
|
8809
|
+
baseUrl: "",
|
|
8810
|
+
componentUrl: "",
|
|
8811
|
+
componentId: "",
|
|
8812
|
+
viaCompInstId: ""
|
|
8813
|
+
};
|
|
8814
|
+
},
|
|
8815
|
+
async mounted() {
|
|
8816
|
+
if (this.$EventBus && this.isOpcacity) {
|
|
8817
|
+
this.$EventBus.$on("forceUpdateCom", data => {
|
|
8818
|
+
if (data.id == this.data.id) {
|
|
8819
|
+
let obj = {};
|
|
8820
|
+
data.settings.attribute.forEach(item => {
|
|
8821
|
+
obj[item.key] = item.value;
|
|
8822
|
+
});
|
|
8823
|
+
this.style = obj;
|
|
8824
|
+
}
|
|
8825
|
+
});
|
|
8826
|
+
window.addEventListener("message", this.handleMessage, false);
|
|
8827
|
+
}
|
|
8828
|
+
let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}`;
|
|
8829
|
+
this.baseUrl = originUrl;
|
|
8830
|
+
this.getUrl(this.lang);
|
|
8831
|
+
},
|
|
8832
|
+
watch: {
|
|
8833
|
+
data: {
|
|
8834
|
+
handler(val) {
|
|
8835
|
+
let obj = {};
|
|
8836
|
+
val.settings.settings.forEach(item => {
|
|
8837
|
+
this.componentUrl = item.componentUrl;
|
|
8838
|
+
this.componentId = item.value.componentId;
|
|
8839
|
+
if (this.componentId) {
|
|
8840
|
+
setTimeout(() => {
|
|
8841
|
+
this.showWujie = true;
|
|
8842
|
+
});
|
|
8843
|
+
}
|
|
8844
|
+
this.viaCompInstId = item.value.viaCompInstId;
|
|
8845
|
+
});
|
|
8846
|
+
this.getUrl(this.lang);
|
|
8847
|
+
val.settings.attribute.forEach(item => {
|
|
8848
|
+
obj[item.key] = item.value;
|
|
8849
|
+
});
|
|
8850
|
+
this.style = obj;
|
|
8851
|
+
},
|
|
8852
|
+
deep: true,
|
|
8853
|
+
immediate: true
|
|
8854
|
+
},
|
|
8855
|
+
lang: {
|
|
8856
|
+
handler(val) {
|
|
8857
|
+
console.log("changelang");
|
|
8858
|
+
this.getUrl(val);
|
|
8859
|
+
},
|
|
8860
|
+
deep: true,
|
|
8861
|
+
immediate: true
|
|
8862
|
+
}
|
|
8863
|
+
},
|
|
8864
|
+
methods: {
|
|
8865
|
+
wujieFetchMx(url, options) {
|
|
8866
|
+
return window.fetch(url, {
|
|
8867
|
+
...options,
|
|
8868
|
+
credentials: "include"
|
|
8869
|
+
});
|
|
8870
|
+
},
|
|
8871
|
+
getUrl(lang) {
|
|
8872
|
+
const obj = this.$EventBus ? {
|
|
8873
|
+
"zh-CN": "en",
|
|
8874
|
+
"zh-HK": "en",
|
|
8875
|
+
"en-US": "en"
|
|
8876
|
+
} : {
|
|
8877
|
+
"zh-CN": "sc",
|
|
8878
|
+
"zh-HK": "tc",
|
|
8879
|
+
"en-US": "en"
|
|
8880
|
+
};
|
|
8881
|
+
this.routeLang = obj[lang];
|
|
8882
|
+
const currentSrc = this.componentUrl.replace("langTag", `${obj[lang]}`);
|
|
8883
|
+
this.servePlanSrc = `${this.baseUrl}${currentSrc}`;
|
|
8884
|
+
console.log("currentSrc", this.servePlanSrc);
|
|
8885
|
+
if (this.$EventBus) {
|
|
8886
|
+
this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW`;
|
|
8887
|
+
}
|
|
8888
|
+
this.propsdata5 = {
|
|
8889
|
+
cmhkChannel: this.getCmhkChannelMx(),
|
|
8890
|
+
cmhkToken: sessionStorage.getItem("cmhkToken") || "",
|
|
8891
|
+
componentId: this.viaCompInstId || this.componentId
|
|
8892
|
+
};
|
|
8893
|
+
},
|
|
8894
|
+
getCmhkChannelMx() {
|
|
8895
|
+
const host = window.location.host;
|
|
8896
|
+
const wwwHostList = ["www.hk.chinamobile.com", "www-uat.hk.chinamobile.com", "localhost:9640", "localhost:9700", "localhost:9701"];
|
|
8897
|
+
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") {
|
|
8898
|
+
wwwHostList.push("10.0.28.161");
|
|
8899
|
+
wwwHostList.push("10.0.28.17:9602");
|
|
8900
|
+
}
|
|
8901
|
+
if (wwwHostList.includes(host)) {
|
|
8902
|
+
return "WWW";
|
|
8903
|
+
} else {
|
|
8904
|
+
return sessionStorage.getItem("cmhkChannel") || "WWW";
|
|
8905
|
+
}
|
|
8906
|
+
},
|
|
8907
|
+
handleNowComp() {
|
|
8908
|
+
if (!this.isOpcacity) return;
|
|
8909
|
+
this.$EventBus.$emit("handleNowComp", {
|
|
8910
|
+
key: this.data.id,
|
|
8911
|
+
settings: this.data.settings,
|
|
8912
|
+
nowCompName: this.data.compName
|
|
8913
|
+
});
|
|
8914
|
+
},
|
|
8915
|
+
deleteComponent() {
|
|
8916
|
+
this.$EventBus.$emit("handleDeleteComp", {
|
|
8917
|
+
key: this.data.id
|
|
8918
|
+
});
|
|
8919
|
+
},
|
|
8920
|
+
handleMessage(e) {
|
|
8921
|
+
console.log(e.data, "789");
|
|
8922
|
+
const iframe = this.$refs.iframeRef;
|
|
8923
|
+
iframe.style.height = e.data + "px";
|
|
8924
|
+
}
|
|
8925
|
+
}
|
|
8926
|
+
});
|
|
8927
|
+
;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
|
|
8928
|
+
/* harmony default export */ var cms_via_storedValueCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
8929
|
+
;// 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-via-storedValueCard/View.vue?vue&type=style&index=0&id=65e0f0a2&prod&lang=scss&scoped=true
|
|
8930
|
+
// extracted by mini-css-extract-plugin
|
|
8931
|
+
|
|
8932
|
+
;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=65e0f0a2&prod&lang=scss&scoped=true
|
|
8933
|
+
|
|
8934
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8935
|
+
var componentNormalizer = __webpack_require__(1001);
|
|
8936
|
+
;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue
|
|
8937
|
+
|
|
8938
|
+
|
|
8939
|
+
|
|
8940
|
+
;
|
|
8941
|
+
|
|
8942
|
+
|
|
8943
|
+
/* normalize component */
|
|
8944
|
+
|
|
8945
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
8946
|
+
cms_via_storedValueCard_Viewvue_type_script_lang_js,
|
|
8947
|
+
render,
|
|
8948
|
+
staticRenderFns,
|
|
8949
|
+
false,
|
|
8950
|
+
null,
|
|
8951
|
+
"65e0f0a2",
|
|
8952
|
+
null
|
|
8953
|
+
|
|
8954
|
+
)
|
|
8955
|
+
|
|
8956
|
+
/* harmony default export */ var View = (component.exports);
|
|
8957
|
+
|
|
8958
|
+
/***/ }),
|
|
8959
|
+
|
|
8712
8960
|
/***/ 8010:
|
|
8713
8961
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8714
8962
|
|
|
@@ -10758,7 +11006,7 @@ module.exports = {
|
|
|
10758
11006
|
/* harmony export */ Rn: function() { return /* binding */ queryV1; },
|
|
10759
11007
|
/* harmony export */ vO: function() { return /* binding */ queryMenuList; }
|
|
10760
11008
|
/* harmony export */ });
|
|
10761
|
-
/* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList */
|
|
11009
|
+
/* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList, uploadImage, uploadVideo */
|
|
10762
11010
|
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9696);
|
|
10763
11011
|
|
|
10764
11012
|
|
|
@@ -10814,6 +11062,20 @@ function queryMenuList(data) {
|
|
|
10814
11062
|
data
|
|
10815
11063
|
});
|
|
10816
11064
|
}
|
|
11065
|
+
function uploadImage(data) {
|
|
11066
|
+
return request({
|
|
11067
|
+
method: "post",
|
|
11068
|
+
url: "/omni-channel-service-console/rest/commonFile/image",
|
|
11069
|
+
data
|
|
11070
|
+
});
|
|
11071
|
+
}
|
|
11072
|
+
function uploadVideo(data) {
|
|
11073
|
+
return request({
|
|
11074
|
+
method: "post",
|
|
11075
|
+
url: "/omni-channel-service-console/rest/commonFile/video",
|
|
11076
|
+
data
|
|
11077
|
+
});
|
|
11078
|
+
}
|
|
10817
11079
|
|
|
10818
11080
|
/***/ }),
|
|
10819
11081
|
|
|
@@ -47250,6 +47512,7 @@ var map = {
|
|
|
47250
47512
|
"./cms-threeScroll/View.vue": 2633,
|
|
47251
47513
|
"./cms-titleCenter/View.vue": 8862,
|
|
47252
47514
|
"./cms-titleLeft/View.vue": 7265,
|
|
47515
|
+
"./cms-via-storedValueCard/View.vue": 1087,
|
|
47253
47516
|
"./cms-view/View.vue": 8010
|
|
47254
47517
|
};
|
|
47255
47518
|
|