gxd-uni-library-editx 1.0.97 → 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.97",
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>
@@ -37,47 +37,36 @@
37
37
 
38
38
  iconType:{
39
39
  type: String,
40
- default: 'search'
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
- search: '//img3.jufubao.cn/common/nodata.png?v=1',
51
- cinema:'//img3.jufubao.cn/common/cinema.png?v=1',
52
- film:'//img3.jufubao.cn/common/film.png?v=1',
53
- shop:'//img3.jufubao.cn/common/shop.png?v=1',
54
- play:'//img3.jufubao.cn/common/play.png?v=1',
55
- product:'//img3.jufubao.cn/common/product.png?v=1',
56
- health:'//img3.jufubao.cn/common/health.png?v=1',
57
- travel:'//img3.jufubao.cn/common/travel.png?v=1',
58
- },
55
+ baseUrl: '//img3.jufubao.cn/common/empty/',
59
56
  //#endif
60
57
  //#ifdef MP-WEIXIN
61
- iconList:{
62
- search: 'https://img2.jufubao.cn/common/nodata.png?v=1',
63
- cinema:'https://img2.jufubao.cn/common/cinema.png?v=1',
64
- film:'https://img2.jufubao.cn/common/film.png?v=1',
65
- shop:'https://img2.jufubao.cn/common/shop.png?v=1',
66
- play:'https://img2.jufubao.cn/common/play.png?v=1',
67
- product:'https://img2.jufubao.cn/common/product.png?v=1',
68
- health:'https://img2.jufubao.cn/common/health.png?v=1',
69
- travel: 'https://img2.jufubao.cn/common/travel.png?v=1',
70
- },
58
+ baseUrl: 'https://img2.jufubao.cn/common/empty/',
71
59
  //#endif
72
-
73
- type:'search'
60
+ type:''
74
61
  }
75
62
  },
76
63
 
77
64
  created() {
78
- if(['search','cinema','film','shop', 'play', 'product','health','travel'].includes(this.iconType)) {
65
+ if(['empty','loadFail','notFind','category','search','cinema','film','shop', 'play', 'product','health','travel'].includes(this.iconType)) {
79
66
  this.type = this.iconType
80
67
  }
68
+ else this.type = 'empty';
69
+
81
70
  if(this.height) {
82
71
  this.uiHeight = this.height;
83
72
  }else{
@@ -92,7 +81,7 @@
92
81
  display: flex;
93
82
  justify-content: center;
94
83
  align-items: center;
95
- font-size: unit(30,rpx);
84
+ font-size: unit(28,rpx);
96
85
 
97
86
  &-box {
98
87
  display: flex;
@@ -102,13 +91,12 @@
102
91
  }
103
92
 
104
93
  &-image {
105
- width: unit(172,rpx);
106
- height: unit(128,rpx);
94
+ width: unit(200,rpx);
95
+ height: unit(200,rpx);
107
96
  display: flex;
108
97
  justify-content: center;
109
98
  align-items: center;
110
- padding-bottom: unit(30,rpx);
111
-
99
+
112
100
  & > image {
113
101
  width: 100%;
114
102
  height: 100%;