gxd-uni-library-editx 1.0.96 → 1.0.97

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.97",
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,50 @@
34
34
  type: String,
35
35
  default: '#999'
36
36
  },
37
+
38
+ iconType:{
39
+ type: String,
40
+ default: 'search'
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
+ 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
+ },
46
59
  //#endif
47
60
  //#ifdef MP-WEIXIN
48
- image: 'https://img.jufubao.cn/common/nodata.png?v=1',
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
+ },
49
71
  //#endif
72
+
73
+ type:'search'
50
74
  }
51
75
  },
52
76
 
53
77
  created() {
78
+ if(['search','cinema','film','shop', 'play', 'product','health','travel'].includes(this.iconType)) {
79
+ this.type = this.iconType
80
+ }
54
81
  if(this.height) {
55
82
  this.uiHeight = this.height;
56
83
  }else{
@@ -81,8 +108,7 @@
81
108
  justify-content: center;
82
109
  align-items: center;
83
110
  padding-bottom: unit(30,rpx);
84
-
85
-
111
+
86
112
  & > image {
87
113
  width: 100%;
88
114
  height: 100%;