cms-chenhj-ui 1.0.38 → 1.0.40

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.
@@ -7063,7 +7063,7 @@ var es_array_push = __webpack_require__(560);
7063
7063
  getCmhkChannelMx() {
7064
7064
  const host = window.location.host;
7065
7065
  const wwwHostList = ["www.hk.chinamobile.com", "www-uat.hk.chinamobile.com", "localhost:9640", "localhost:9700", "localhost:9701"];
7066
- 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") {
7066
+ 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:9704","VUE_APP_SCHEMA_UAT":"http://10.0.28.25:9704","BASE_URL":"/"}).MODE == "devlopment") {
7067
7067
  wwwHostList.push("10.0.28.161");
7068
7068
  wwwHostList.push("10.0.28.17:9602");
7069
7069
  }
@@ -8709,7 +8709,7 @@ var component = (0,componentNormalizer/* default */.Z)(
8709
8709
 
8710
8710
  /***/ }),
8711
8711
 
8712
- /***/ 459:
8712
+ /***/ 5165:
8713
8713
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8714
8714
 
8715
8715
  "use strict";
@@ -8721,7 +8721,7 @@ __webpack_require__.d(__webpack_exports__, {
8721
8721
  "default": function() { return /* binding */ View; }
8722
8722
  });
8723
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
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=c54148c0&scoped=true
8725
8725
  var render = function render() {
8726
8726
  var _vm = this,
8727
8727
  _c = _vm._self._c;
@@ -8739,22 +8739,10 @@ var render = function render() {
8739
8739
  on: {
8740
8740
  "click": _vm.handleNowComp
8741
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', {
8742
+ }, [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
8754
8743
  key: _vm.servePlanSrc,
8755
8744
  attrs: {
8756
- "fetch": _vm.wujieFetchMx,
8757
- "name": `cmsacive${_vm.data.id}`,
8745
+ "name": `cmsacive${_vm.componentId}`,
8758
8746
  "url": _vm.servePlanSrc,
8759
8747
  "props": {
8760
8748
  data: _vm.propsdata5
@@ -8783,11 +8771,11 @@ var staticRenderFns = [];
8783
8771
 
8784
8772
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
8785
8773
  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
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
8787
8775
 
8788
8776
 
8789
8777
  /* harmony default export */ var Viewvue_type_script_lang_js = ({
8790
- name: "cms-viademo",
8778
+ name: "cms-via-storedValueCard",
8791
8779
  props: {
8792
8780
  data: {
8793
8781
  type: Object,
@@ -8818,10 +8806,13 @@ var es_array_push = __webpack_require__(560);
8818
8806
  propsdata5: {},
8819
8807
  showWujie: false,
8820
8808
  servePlanSrcIframe: "",
8821
- baseUrl: ""
8809
+ baseUrl: "",
8810
+ componentUrl: "",
8811
+ componentId: "",
8812
+ viaCompInstId: ""
8822
8813
  };
8823
8814
  },
8824
- mounted() {
8815
+ async mounted() {
8825
8816
  if (this.$EventBus && this.isOpcacity) {
8826
8817
  this.$EventBus.$on("forceUpdateCom", data => {
8827
8818
  if (data.id == this.data.id) {
@@ -8833,10 +8824,8 @@ var es_array_push = __webpack_require__(560);
8833
8824
  }
8834
8825
  });
8835
8826
  window.addEventListener("message", this.handleMessage, false);
8836
- } else {
8837
- this.showWujie = true;
8838
8827
  }
8839
- let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}/viaActivity`;
8828
+ let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}`;
8840
8829
  this.baseUrl = originUrl;
8841
8830
  this.getUrl(this.lang);
8842
8831
  },
@@ -8845,7 +8834,14 @@ var es_array_push = __webpack_require__(560);
8845
8834
  handler(val) {
8846
8835
  let obj = {};
8847
8836
  val.settings.settings.forEach(item => {
8848
- this.parentShopCategoryId = item.value.argument1;
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;
8849
8845
  });
8850
8846
  this.getUrl(this.lang);
8851
8847
  val.settings.attribute.forEach(item => {
@@ -8873,29 +8869,33 @@ var es_array_push = __webpack_require__(560);
8873
8869
  });
8874
8870
  },
8875
8871
  getUrl(lang) {
8876
- const obj = {
8872
+ const obj = this.$EventBus ? {
8873
+ "zh-CN": "en",
8874
+ "zh-HK": "en",
8875
+ "en-US": "en"
8876
+ } : {
8877
8877
  "zh-CN": "sc",
8878
8878
  "zh-HK": "tc",
8879
8879
  "en-US": "en"
8880
8880
  };
8881
8881
  this.routeLang = obj[lang];
8882
- this.servePlanSrc = `${this.baseUrl}/${this.routeLang}/demo/home`;
8882
+ const currentSrc = this.componentUrl.replace("langTag", `${obj[lang]}`);
8883
+ this.servePlanSrc = `${this.baseUrl}${currentSrc}`;
8884
+ console.log("currentSrc", this.servePlanSrc);
8883
8885
  if (this.$EventBus) {
8884
8886
  this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW`;
8885
8887
  }
8886
8888
  this.propsdata5 = {
8887
8889
  cmhkChannel: this.getCmhkChannelMx(),
8888
8890
  cmhkToken: sessionStorage.getItem("cmhkToken") || "",
8889
- busiData: {
8890
- parentShopCategoryId: this.parentShopCategoryId,
8891
- onlyShowList: true
8892
- }
8891
+ componentId: this.componentId,
8892
+ viaCompInstId: this.viaCompInstId
8893
8893
  };
8894
8894
  },
8895
8895
  getCmhkChannelMx() {
8896
8896
  const host = window.location.host;
8897
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") {
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:9704","VUE_APP_SCHEMA_UAT":"http://10.0.28.25:9704","BASE_URL":"/"}).MODE == "devlopment") {
8899
8899
  wwwHostList.push("10.0.28.161");
8900
8900
  wwwHostList.push("10.0.28.17:9602");
8901
8901
  }
@@ -8925,16 +8925,16 @@ var es_array_push = __webpack_require__(560);
8925
8925
  }
8926
8926
  }
8927
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
8928
+ ;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
8929
+ /* harmony default export */ var cms_via_storedValueCard_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-via-storedValueCard/View.vue?vue&type=style&index=0&id=c54148c0&prod&lang=scss&scoped=true
8931
8931
  // extracted by mini-css-extract-plugin
8932
8932
 
8933
- ;// CONCATENATED MODULE: ./package/cms-viademo/View.vue?vue&type=style&index=0&id=54fc13fa&prod&lang=scss&scoped=true
8933
+ ;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=c54148c0&prod&lang=scss&scoped=true
8934
8934
 
8935
8935
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
8936
8936
  var componentNormalizer = __webpack_require__(1001);
8937
- ;// CONCATENATED MODULE: ./package/cms-viademo/View.vue
8937
+ ;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue
8938
8938
 
8939
8939
 
8940
8940
 
@@ -8944,12 +8944,12 @@ var componentNormalizer = __webpack_require__(1001);
8944
8944
  /* normalize component */
8945
8945
 
8946
8946
  var component = (0,componentNormalizer/* default */.Z)(
8947
- cms_viademo_Viewvue_type_script_lang_js,
8947
+ cms_via_storedValueCard_Viewvue_type_script_lang_js,
8948
8948
  render,
8949
8949
  staticRenderFns,
8950
8950
  false,
8951
8951
  null,
8952
- "54fc13fa",
8952
+ "c54148c0",
8953
8953
  null
8954
8954
 
8955
8955
  )
@@ -11007,7 +11007,7 @@ module.exports = {
11007
11007
  /* harmony export */ Rn: function() { return /* binding */ queryV1; },
11008
11008
  /* harmony export */ vO: function() { return /* binding */ queryMenuList; }
11009
11009
  /* harmony export */ });
11010
- /* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList */
11010
+ /* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList, uploadImage, uploadVideo */
11011
11011
  /* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9696);
11012
11012
 
11013
11013
 
@@ -11063,6 +11063,20 @@ function queryMenuList(data) {
11063
11063
  data
11064
11064
  });
11065
11065
  }
11066
+ function uploadImage(data) {
11067
+ return request({
11068
+ method: "post",
11069
+ url: "/omni-channel-service-console/rest/commonFile/image",
11070
+ data
11071
+ });
11072
+ }
11073
+ function uploadVideo(data) {
11074
+ return request({
11075
+ method: "post",
11076
+ url: "/omni-channel-service-console/rest/commonFile/video",
11077
+ data
11078
+ });
11079
+ }
11066
11080
 
11067
11081
  /***/ }),
11068
11082
 
@@ -13736,9 +13750,9 @@ service.interceptors.request.use(config => {
13736
13750
  if (config.url.includes("omni-channel-service-console")) {
13737
13751
  if (false) {} else {
13738
13752
  if (env_prod) {
13739
- config.url = "http://10.0.28.22:9701" + config.url;
13753
+ config.url = "http://10.0.28.22:9704" + config.url;
13740
13754
  } else {
13741
- config.url = "http://10.0.28.25:9701" + config.url;
13755
+ config.url = "http://10.0.28.25:9704" + config.url;
13742
13756
  }
13743
13757
  }
13744
13758
  }
@@ -47499,7 +47513,7 @@ var map = {
47499
47513
  "./cms-threeScroll/View.vue": 2633,
47500
47514
  "./cms-titleCenter/View.vue": 8862,
47501
47515
  "./cms-titleLeft/View.vue": 7265,
47502
- "./cms-viademo/View.vue": 459,
47516
+ "./cms-via-storedValueCard/View.vue": 5165,
47503
47517
  "./cms-view/View.vue": 8010
47504
47518
  };
47505
47519