xyvcard-wechat-auth 0.0.37 → 0.0.39

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.
@@ -13,6 +13,11 @@ Component({
13
13
  limit: {
14
14
  type: Number,
15
15
  value: 6
16
+ },
17
+ // 删除按钮图片路径
18
+ delIconUrl: {
19
+ type: String,
20
+ value: "/icon_image/close_circle2x.png"
16
21
  }
17
22
  },
18
23
  /**
@@ -72,7 +77,7 @@ Component({
72
77
  name: "file",
73
78
  success(response) {
74
79
  if (response.statusCode === 200) {
75
- const src = JSON.parse(response.data).fileSrc;
80
+ const src = JSON.parse(response.data);
76
81
  that.data.imageArray.push(src);
77
82
  that.setData({
78
83
  imageArray: that.data.imageArray
@@ -1,7 +1,7 @@
1
1
  <view class="upload-box">
2
2
  <view class="upload-image" wx:for="{{ imageArray }}" wx:key="index">
3
- <image src="{{ baseUrl + item }}" class="plus-image"></image>
4
- <image src="{{ resourceUrl }}/icon_image/close_circle2x.png" class="delete-image" data-index="{{ index }}" bind:tap="handleDel"></image>
3
+ <image src="{{ baseUrl + item.fileSrc }}" class="plus-image"></image>
4
+ <image src="{{ resourceUrl + delIconUrl }}" class="delete-image" data-index="{{ index }}" bind:tap="handleDel"></image>
5
5
  </view>
6
6
  <view class="upload-cover" bind:tap="handleUploadImage">
7
7
  <image src="{{ resourceUrl + coverUpload }}" class="plus-image"></image>
@@ -42,6 +42,9 @@ const formatDateTime = (dateTimeString, format) => {
42
42
  if (format === "YYYY-MM-DD") {
43
43
  return year + "-" + month + "-" + day;
44
44
  }
45
+ if (format === "HH:mm:ss") {
46
+ return hours + ":" + minutes + ":" + seconds;
47
+ }
45
48
  return "";
46
49
  };
47
50
  const kbToMb = (kb, decimalPlaces = 2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-wechat-auth",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",