gxd-uni-library-editx 1.0.99 → 1.0.100

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxd-uni-library-editx",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -2,7 +2,7 @@
2
2
  <view class="xd-nodata" :style="{height: uiHeight}">
3
3
  <view class="xd-nodata-box">
4
4
  <view class="xd-nodata-image" v-if="icon">
5
- <image :src="iconList[type]"></image>
5
+ <image :src="iconUrl"></image>
6
6
  </view>
7
7
  <view :style="{color:color}">
8
8
  <slot>当前界面无更多数据了</slot>
@@ -40,45 +40,24 @@
40
40
  default: 'empty'
41
41
  },
42
42
  },
43
+ computed:{
44
+ iconUrl(){
45
+ if(this.type === '') return '';
46
+ return `${this.baseUrl}${this.type}.png?version=${this.version}`
47
+ }
48
+ },
43
49
 
44
50
  data(){
45
51
  return {
46
52
  uiHeight: 0,
47
-
53
+ version: 112,
48
54
  // #ifdef H5
49
- iconList:{
50
- empty:'//img3.jufubao.cn/common/empty/nodata.png?v=1',
51
- notFind:'//img3.jufubao.cn/common/empty/404.png?v=1',
52
- category:'//img3.jufubao.cn/common/empty/category.png?v=1',
53
- search: '//img3.jufubao.cn/common/empty/search.png?v=1',
54
- cinema:'//img3.jufubao.cn/common/empty/cinema.png?v=1',
55
- film:'//img3.jufubao.cn/common/empty/film.png?v=1',
56
- shop:'//img3.jufubao.cn/common/empty/shop.png?v=1',
57
- play:'//img3.jufubao.cn/common/empty/play.png?v=1',
58
- product:'//img3.jufubao.cn/common/empty/product.png?v=1',
59
- health:'//img3.jufubao.cn/common/empty/health.png?v=1',
60
- travel:'//img3.jufubao.cn/common/empty/travel.png?v=1',
61
- loadFail:'//img3.jufubao.cn/common/empty/load-fail.png?v=1'
62
- },
55
+ baseUrl: '//img3.jufubao.cn/common/empty/',
63
56
  //#endif
64
57
  //#ifdef MP-WEIXIN
65
- iconList:{
66
- empty:'https://img2.jufubao.cn/common/empty/nodata.png?v=1',
67
- notFind:'https://img2.jufubao.cn/common/empty/404.png?v=1',
68
- category:'https://img2.jufubao.cn/common/empty/category.png?v=1',
69
- search: 'https://img2.jufubao.cn/common/empty/search.png?v=1',
70
- cinema:'https://img2.jufubao.cn/common/empty/cinema.png?v=1',
71
- film:'https://img2.jufubao.cn/common/empty/film.png?v=1',
72
- shop:'https://img2.jufubao.cn/common/empty/shop.png?v=1',
73
- play:'https://img2.jufubao.cn/common/empty/play.png?v=1',
74
- product:'https://img2.jufubao.cn/common/empty/product.png?v=1',
75
- health:'https://img2.jufubao.cn/common/empty/health.png?v=1',
76
- travel: 'https://img2.jufubao.cn/common/empty/travel.png?v=1',
77
- loadFail:'https://img2.jufubao.cn/common/empty/load-fail.png?v=1'
78
- },
58
+ baseUrl: 'https://img2.jufubao.cn/common/empty/',
79
59
  //#endif
80
-
81
- type:'empty'
60
+ type:''
82
61
  }
83
62
  },
84
63
 
@@ -86,6 +65,8 @@
86
65
  if(['empty','loadFail','notFind','category','search','cinema','film','shop', 'play', 'product','health','travel'].includes(this.iconType)) {
87
66
  this.type = this.iconType
88
67
  }
68
+ else this.type = 'empty';
69
+
89
70
  if(this.height) {
90
71
  this.uiHeight = this.height;
91
72
  }else{
@@ -100,7 +81,7 @@
100
81
  display: flex;
101
82
  justify-content: center;
102
83
  align-items: center;
103
- font-size: unit(30,rpx);
84
+ font-size: unit(28,rpx);
104
85
 
105
86
  &-box {
106
87
  display: flex;
@@ -110,12 +91,11 @@
110
91
  }
111
92
 
112
93
  &-image {
113
- width: unit(172,rpx);
114
- height: unit(128,rpx);
94
+ width: unit(200,rpx);
95
+ height: unit(200,rpx);
115
96
  display: flex;
116
97
  justify-content: center;
117
98
  align-items: center;
118
- padding-bottom: unit(30,rpx);
119
99
 
120
100
  & > image {
121
101
  width: 100%;