mali-applet-ui 0.1.66 → 0.1.68

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.
@@ -121,7 +121,6 @@ export default {
121
121
  background: $uni-color-success;
122
122
  }
123
123
  &.ss-info {
124
- color: #ffffff;
125
124
  background: #909399;
126
125
  }
127
126
  &.ss-warning {
@@ -133,7 +132,6 @@ export default {
133
132
  background: $uni-color-error;
134
133
  }
135
134
  &.ss-gray {
136
- color: #ffffff;
137
135
  background: $ml-gray-color;
138
136
  }
139
137
  &.ss-blue {
@@ -279,7 +279,7 @@ export default {
279
279
  this.previewStatus = true
280
280
  Promise.all(
281
281
  this.value.map(item => {
282
- return new Promise((resolve, reject) => {
282
+ return new Promise((resolve) => {
283
283
  uni.downloadFile({
284
284
  url: this.getUrl(item),
285
285
  success: (downRes) => {
@@ -296,12 +296,10 @@ export default {
296
296
  })
297
297
  })
298
298
  ).then(res => {
299
- if (typeof wx === 'object') {
300
- wx.previewMedia({
301
- current: index,
302
- sources: res
303
- })
304
- }
299
+ uni.previewImage({
300
+ current: index,
301
+ urls: res.map(item => item.url)
302
+ })
305
303
  this.previewStatus = false
306
304
  })
307
305
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",