jufubao-admin-library 1.1.129 → 1.1.131

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.
@@ -57,7 +57,7 @@
57
57
  :style="{background: item.file_type === 'F' ? '#f6f7f9' : '#fff',}"
58
58
  class="material-list-item-img"
59
59
  >
60
- <img style="max-height: 100%; max-width: 100%" :src="getImageUrl(item.file_url)" alt=""/>
60
+ <img style="max-height: 100%; max-width: 100%" :src="getImageUrl(item.full_file_url)" alt=""/>
61
61
  <div
62
62
  v-if="isChecked(item.file_id)"
63
63
  class="checkbox"
@@ -499,7 +499,7 @@ export default {
499
499
  return checkPermission(["PARTNER_MATERIAL_COMPANY_EDIT"]);
500
500
  // #endif
501
501
  },
502
- compImgSrc(){
502
+ compQrcodeSrc(){
503
503
  let url = this.info.file_url;
504
504
  if(this.$xdHelper.checkVarType(url) === 'array') {
505
505
  return this.getImageFullPath(url[0].url + '?ver=' + Date.now(), 'size5')
@@ -507,6 +507,18 @@ export default {
507
507
  if(this.$xdHelper.checkVarType(url) === 'object') url = url.url;
508
508
  return this.getImageFullPath(url + '?ver=' + Date.now(), 'size5');
509
509
  },
510
+ compImgSrc(){
511
+ let cdn = 'https://img-raw.jufubao.cn';
512
+ if(window.location.host.indexOf('sandbox-') === 0) {
513
+ cdn = 'https://sandbox-img.jufubao.cn';
514
+ }
515
+ let url = this.info.file_url;
516
+ if(this.$xdHelper.checkVarType(url) === 'array') {
517
+ return `${cdn}${url[0].url}?ver=${Date.now()}&x-oss-process=style/size5`;
518
+ }
519
+ if(this.$xdHelper.checkVarType(url) === 'object') url = url.url;
520
+ return `${cdn}${url}?ver=${Date.now()}&x-oss-process=style/size5`; //this.getImageFullPath(url + '?ver=' + Date.now(), 'size5');
521
+ },
510
522
  maxLen(){
511
523
  let len = 3;
512
524
  if(!(this.info.file_type === 'D'
@@ -745,7 +757,7 @@ export default {
745
757
  },
746
758
  handleCopy() {
747
759
  const input = document.createElement("input");
748
- input.value = this.getImageUrl(input.value = this.getImageUrl(this.compImgSrc.replace(/^\/\//,"https://").split('?')[0]));
760
+ input.value = this.getImageUrl(input.value = this.getImageUrl(this.compQrcodeSrc.replace(/^\/\//,"https://").split('?')[0]));
749
761
  document.body.appendChild(input);
750
762
  input.select();
751
763
  document.execCommand("copy");
@@ -1039,7 +1051,7 @@ export default {
1039
1051
  method: "GET",
1040
1052
  responseType: "blob", // 重要:设置响应类型为blob
1041
1053
  params: {
1042
- code_content: this.compImgSrc.replace(/^\/\//,"https://").split('?')[0],
1054
+ code_content: this.compQrcodeSrc.replace(/^\/\//,"https://").split('?')[0],
1043
1055
  },
1044
1056
  }).then((res) => {
1045
1057
  let blob;
@@ -60,7 +60,7 @@
60
60
  <img
61
61
  :key="item.file_uid"
62
62
  style="max-height: 100%; max-width: 100%"
63
- :src="getImageUrl(item.file_url)"
63
+ :src="getImageUrl(item.full_file_url)"
64
64
  alt=""
65
65
  />
66
66
  <div
@@ -52,7 +52,7 @@
52
52
  :class="{ active: isChecked(item.file_id),}"
53
53
  class="list-item-img"
54
54
  >
55
- <img style="max-height: 100%; max-width: 100%" :src="getImageUrl(item.file_url)" alt="" />
55
+ <img style="max-height: 100%; max-width: 100%" :src="getImageUrl(item.full_file_url)" alt="" />
56
56
  <div v-if="isChecked(item.file_id)" class="checkbox">
57
57
  <XdFontIcon class="icon" icon="iconduigou-xian"></XdFontIcon>
58
58
  </div>
@@ -44,7 +44,7 @@
44
44
  :style="{background: item.file_type === 'F' ? '#f6f7f9' : '#fff',}"
45
45
  class="material-list-item-img"
46
46
  >
47
- <img style="max-height: 100%; max-width: 100%" :src="getImageUrl(item.file_url)" alt=""/>
47
+ <img style="max-height: 100%; max-width: 100%" :src="getImageUrl(item.full_file_url)" alt=""/>
48
48
  <div v-if="isChecked(item.file_id)" class="checkbox">
49
49
  <XdFontIcon class="icon" icon="iconduigou-xian"></XdFontIcon>
50
50
  </div>
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.131",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {