jufubao-admin-library 1.1.129 → 1.1.130

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.
@@ -490,6 +490,8 @@ export default {
490
490
  uploadKey: "uploadKey",
491
491
  qrCode: "",
492
492
  move_parent_id: "", //移动父级id
493
+
494
+ cdnHost:'https://sandbox-img.jufubao.cn'
493
495
  };
494
496
  },
495
497
  computed: {
@@ -499,7 +501,7 @@ export default {
499
501
  return checkPermission(["PARTNER_MATERIAL_COMPANY_EDIT"]);
500
502
  // #endif
501
503
  },
502
- compImgSrc(){
504
+ compQrcodeSrc(){
503
505
  let url = this.info.file_url;
504
506
  if(this.$xdHelper.checkVarType(url) === 'array') {
505
507
  return this.getImageFullPath(url[0].url + '?ver=' + Date.now(), 'size5')
@@ -507,6 +509,18 @@ export default {
507
509
  if(this.$xdHelper.checkVarType(url) === 'object') url = url.url;
508
510
  return this.getImageFullPath(url + '?ver=' + Date.now(), 'size5');
509
511
  },
512
+ compImgSrc(){
513
+ let cdn = 'https://img-raw.jufubao.cn';
514
+ if(window.location.host.indexOf('sandbox-') === 0) {
515
+ cdn = 'https://sandbox-img.jufubao.cn';
516
+ }
517
+ let url = this.info.file_url;
518
+ if(this.$xdHelper.checkVarType(url) === 'array') {
519
+ return `${cdn}${url[0].url}?ver=${Date.now()}&x-oss-process=style/size5`;
520
+ }
521
+ if(this.$xdHelper.checkVarType(url) === 'object') url = url.url;
522
+ return `${cdn}${url}?ver=${Date.now()}&x-oss-process=style/size5`; //this.getImageFullPath(url + '?ver=' + Date.now(), 'size5');
523
+ },
510
524
  maxLen(){
511
525
  let len = 3;
512
526
  if(!(this.info.file_type === 'D'
@@ -745,7 +759,7 @@ export default {
745
759
  },
746
760
  handleCopy() {
747
761
  const input = document.createElement("input");
748
- input.value = this.getImageUrl(input.value = this.getImageUrl(this.compImgSrc.replace(/^\/\//,"https://").split('?')[0]));
762
+ input.value = this.getImageUrl(input.value = this.getImageUrl(this.compQrcodeSrc.replace(/^\/\//,"https://").split('?')[0]));
749
763
  document.body.appendChild(input);
750
764
  input.select();
751
765
  document.execCommand("copy");
@@ -1039,7 +1053,7 @@ export default {
1039
1053
  method: "GET",
1040
1054
  responseType: "blob", // 重要:设置响应类型为blob
1041
1055
  params: {
1042
- code_content: this.compImgSrc.replace(/^\/\//,"https://").split('?')[0],
1056
+ code_content: this.compQrcodeSrc.replace(/^\/\//,"https://").split('?')[0],
1043
1057
  },
1044
1058
  }).then((res) => {
1045
1059
  let blob;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.129",
3
+ "version": "1.1.130",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {