gxd-uni-library-editx 1.0.96 → 1.0.99

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.96",
3
+ "version": "1.0.99",
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="image"></image>
5
+ <image :src="iconList[type]"></image>
6
6
  </view>
7
7
  <view :style="{color:color}">
8
8
  <slot>当前界面无更多数据了</slot>
@@ -34,23 +34,58 @@
34
34
  type: String,
35
35
  default: '#999'
36
36
  },
37
+
38
+ iconType:{
39
+ type: String,
40
+ default: 'empty'
41
+ },
37
42
  },
38
43
 
39
44
  data(){
40
45
  return {
41
- paddingBottom: 0,
42
46
  uiHeight: 0,
43
47
 
44
48
  // #ifdef H5
45
- image: '//img.jufubao.cn/common/nodata.png?v=1',
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
+ },
46
63
  //#endif
47
64
  //#ifdef MP-WEIXIN
48
- image: 'https://img.jufubao.cn/common/nodata.png?v=1',
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
+ },
49
79
  //#endif
80
+
81
+ type:'empty'
50
82
  }
51
83
  },
52
84
 
53
85
  created() {
86
+ if(['empty','loadFail','notFind','category','search','cinema','film','shop', 'play', 'product','health','travel'].includes(this.iconType)) {
87
+ this.type = this.iconType
88
+ }
54
89
  if(this.height) {
55
90
  this.uiHeight = this.height;
56
91
  }else{
@@ -82,7 +117,6 @@
82
117
  align-items: center;
83
118
  padding-bottom: unit(30,rpx);
84
119
 
85
-
86
120
  & > image {
87
121
  width: 100%;
88
122
  height: 100%;