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.
@@ -7073,7 +7073,7 @@ var es_array_push = __webpack_require__(560);
7073
7073
  getCmhkChannelMx() {
7074
7074
  const host = window.location.host;
7075
7075
  const wwwHostList = ["www.hk.chinamobile.com", "www-uat.hk.chinamobile.com", "localhost:9640", "localhost:9700", "localhost:9701"];
7076
- 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") {
7076
+ 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") {
7077
7077
  wwwHostList.push("10.0.28.161");
7078
7078
  wwwHostList.push("10.0.28.17:9602");
7079
7079
  }
@@ -8719,7 +8719,7 @@ var component = (0,componentNormalizer/* default */.Z)(
8719
8719
 
8720
8720
  /***/ }),
8721
8721
 
8722
- /***/ 9809:
8722
+ /***/ 8665:
8723
8723
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8724
8724
 
8725
8725
  "use strict";
@@ -8731,7 +8731,7 @@ __webpack_require__.d(__webpack_exports__, {
8731
8731
  "default": function() { return /* binding */ View; }
8732
8732
  });
8733
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
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=c54148c0&scoped=true
8735
8735
  var render = function render() {
8736
8736
  var _vm = this,
8737
8737
  _c = _vm._self._c;
@@ -8749,22 +8749,10 @@ var render = function render() {
8749
8749
  on: {
8750
8750
  "click": _vm.handleNowComp
8751
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', {
8752
+ }, [!_vm.showWujie ? _c('div', [_vm._v("配置后才会展示内容")]) : _vm._e(), _vm.showWujie && _vm.servePlanSrc ? _c('WujieVue', {
8764
8753
  key: _vm.servePlanSrc,
8765
8754
  attrs: {
8766
- "fetch": _vm.wujieFetchMx,
8767
- "name": `cmsacive${_vm.data.id}`,
8755
+ "name": `cmsacive${_vm.componentId}`,
8768
8756
  "url": _vm.servePlanSrc,
8769
8757
  "props": {
8770
8758
  data: _vm.propsdata5
@@ -8793,11 +8781,11 @@ var staticRenderFns = [];
8793
8781
 
8794
8782
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
8795
8783
  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
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
8797
8785
 
8798
8786
 
8799
8787
  /* harmony default export */ var Viewvue_type_script_lang_js = ({
8800
- name: "cms-viademo",
8788
+ name: "cms-via-storedValueCard",
8801
8789
  props: {
8802
8790
  data: {
8803
8791
  type: Object,
@@ -8828,10 +8816,13 @@ var es_array_push = __webpack_require__(560);
8828
8816
  propsdata5: {},
8829
8817
  showWujie: false,
8830
8818
  servePlanSrcIframe: "",
8831
- baseUrl: ""
8819
+ baseUrl: "",
8820
+ componentUrl: "",
8821
+ componentId: "",
8822
+ viaCompInstId: ""
8832
8823
  };
8833
8824
  },
8834
- mounted() {
8825
+ async mounted() {
8835
8826
  if (this.$EventBus && this.isOpcacity) {
8836
8827
  this.$EventBus.$on("forceUpdateCom", data => {
8837
8828
  if (data.id == this.data.id) {
@@ -8843,10 +8834,8 @@ var es_array_push = __webpack_require__(560);
8843
8834
  }
8844
8835
  });
8845
8836
  window.addEventListener("message", this.handleMessage, false);
8846
- } else {
8847
- this.showWujie = true;
8848
8837
  }
8849
- let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}/viaActivity`;
8838
+ let originUrl = `${this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com"}`;
8850
8839
  this.baseUrl = originUrl;
8851
8840
  this.getUrl(this.lang);
8852
8841
  },
@@ -8855,7 +8844,14 @@ var es_array_push = __webpack_require__(560);
8855
8844
  handler(val) {
8856
8845
  let obj = {};
8857
8846
  val.settings.settings.forEach(item => {
8858
- this.parentShopCategoryId = item.value.argument1;
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;
8859
8855
  });
8860
8856
  this.getUrl(this.lang);
8861
8857
  val.settings.attribute.forEach(item => {
@@ -8883,29 +8879,33 @@ var es_array_push = __webpack_require__(560);
8883
8879
  });
8884
8880
  },
8885
8881
  getUrl(lang) {
8886
- const obj = {
8882
+ const obj = this.$EventBus ? {
8883
+ "zh-CN": "en",
8884
+ "zh-HK": "en",
8885
+ "en-US": "en"
8886
+ } : {
8887
8887
  "zh-CN": "sc",
8888
8888
  "zh-HK": "tc",
8889
8889
  "en-US": "en"
8890
8890
  };
8891
8891
  this.routeLang = obj[lang];
8892
- this.servePlanSrc = `${this.baseUrl}/${this.routeLang}/demo/home`;
8892
+ const currentSrc = this.componentUrl.replace("langTag", `${obj[lang]}`);
8893
+ this.servePlanSrc = `${this.baseUrl}${currentSrc}`;
8894
+ console.log("currentSrc", this.servePlanSrc);
8893
8895
  if (this.$EventBus) {
8894
8896
  this.servePlanSrcIframe = `${this.servePlanSrc}?cmhkChannel=WWW`;
8895
8897
  }
8896
8898
  this.propsdata5 = {
8897
8899
  cmhkChannel: this.getCmhkChannelMx(),
8898
8900
  cmhkToken: sessionStorage.getItem("cmhkToken") || "",
8899
- busiData: {
8900
- parentShopCategoryId: this.parentShopCategoryId,
8901
- onlyShowList: true
8902
- }
8901
+ componentId: this.componentId,
8902
+ viaCompInstId: this.viaCompInstId
8903
8903
  };
8904
8904
  },
8905
8905
  getCmhkChannelMx() {
8906
8906
  const host = window.location.host;
8907
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") {
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:9704","VUE_APP_SCHEMA_UAT":"http://10.0.28.25:9704","BASE_URL":"/"}).MODE == "devlopment") {
8909
8909
  wwwHostList.push("10.0.28.161");
8910
8910
  wwwHostList.push("10.0.28.17:9602");
8911
8911
  }
@@ -8935,16 +8935,16 @@ var es_array_push = __webpack_require__(560);
8935
8935
  }
8936
8936
  }
8937
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
8938
+ ;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue?vue&type=script&lang=js
8939
+ /* harmony default export */ var cms_via_storedValueCard_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-via-storedValueCard/View.vue?vue&type=style&index=0&id=c54148c0&prod&lang=scss&scoped=true
8941
8941
  // extracted by mini-css-extract-plugin
8942
8942
 
8943
- ;// CONCATENATED MODULE: ./package/cms-viademo/View.vue?vue&type=style&index=0&id=54fc13fa&prod&lang=scss&scoped=true
8943
+ ;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue?vue&type=style&index=0&id=c54148c0&prod&lang=scss&scoped=true
8944
8944
 
8945
8945
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
8946
8946
  var componentNormalizer = __webpack_require__(1001);
8947
- ;// CONCATENATED MODULE: ./package/cms-viademo/View.vue
8947
+ ;// CONCATENATED MODULE: ./package/cms-via-storedValueCard/View.vue
8948
8948
 
8949
8949
 
8950
8950
 
@@ -8954,12 +8954,12 @@ var componentNormalizer = __webpack_require__(1001);
8954
8954
  /* normalize component */
8955
8955
 
8956
8956
  var component = (0,componentNormalizer/* default */.Z)(
8957
- cms_viademo_Viewvue_type_script_lang_js,
8957
+ cms_via_storedValueCard_Viewvue_type_script_lang_js,
8958
8958
  render,
8959
8959
  staticRenderFns,
8960
8960
  false,
8961
8961
  null,
8962
- "54fc13fa",
8962
+ "c54148c0",
8963
8963
  null
8964
8964
 
8965
8965
  )
@@ -11017,7 +11017,7 @@ module.exports = {
11017
11017
  /* harmony export */ Rn: function() { return /* binding */ queryV1; },
11018
11018
  /* harmony export */ vO: function() { return /* binding */ queryMenuList; }
11019
11019
  /* harmony export */ });
11020
- /* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList */
11020
+ /* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList, uploadImage, uploadVideo */
11021
11021
  /* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5751);
11022
11022
 
11023
11023
 
@@ -11073,6 +11073,20 @@ function queryMenuList(data) {
11073
11073
  data
11074
11074
  });
11075
11075
  }
11076
+ function uploadImage(data) {
11077
+ return request({
11078
+ method: "post",
11079
+ url: "/omni-channel-service-console/rest/commonFile/image",
11080
+ data
11081
+ });
11082
+ }
11083
+ function uploadVideo(data) {
11084
+ return request({
11085
+ method: "post",
11086
+ url: "/omni-channel-service-console/rest/commonFile/video",
11087
+ data
11088
+ });
11089
+ }
11076
11090
 
11077
11091
  /***/ }),
11078
11092
 
@@ -13746,9 +13760,9 @@ service.interceptors.request.use(config => {
13746
13760
  if (config.url.includes("omni-channel-service-console")) {
13747
13761
  if (false) {} else {
13748
13762
  if (env_prod) {
13749
- config.url = "http://10.0.28.22:9701" + config.url;
13763
+ config.url = "http://10.0.28.22:9704" + config.url;
13750
13764
  } else {
13751
- config.url = "http://10.0.28.25:9701" + config.url;
13765
+ config.url = "http://10.0.28.25:9704" + config.url;
13752
13766
  }
13753
13767
  }
13754
13768
  }
@@ -47509,7 +47523,7 @@ var map = {
47509
47523
  "./cms-threeScroll/View.vue": 1359,
47510
47524
  "./cms-titleCenter/View.vue": 3583,
47511
47525
  "./cms-titleLeft/View.vue": 3900,
47512
- "./cms-viademo/View.vue": 9809,
47526
+ "./cms-via-storedValueCard/View.vue": 8665,
47513
47527
  "./cms-view/View.vue": 9984
47514
47528
  };
47515
47529