xiaoe_mp_npm 0.3.4-t220413 → 0.3.4

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.
@@ -186,10 +186,8 @@ Component({
186
186
  } else if (this.data.activityEndType === 2) {
187
187
  this.checkIsAndroid()
188
188
  let endTime = new Date(this.data.activityEndTime)
189
- if(!isAndroid) {
190
- if(this.data.activityEndTime) {
191
- endTime = new Date(this.data.activityEndTime.parse(date.replace(/-/g, '/')))
192
- }
189
+ if(!this.data.isAndroid) {
190
+ endTime = new Date(this.data.activityEndTime.replaceAll('-', '/'))
193
191
  }
194
192
  flag = Date.now() <= endTime.getTime()
195
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "0.3.4-t220413",
3
+ "version": "0.3.4",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -186,10 +186,8 @@ Component({
186
186
  } else if (this.data.activityEndType === 2) {
187
187
  this.checkIsAndroid()
188
188
  let endTime = new Date(this.data.activityEndTime)
189
- if(!isAndroid) {
190
- if(this.data.activityEndTime) {
191
- endTime = new Date(this.data.activityEndTime.parse(date.replace(/-/g, '/')))
192
- }
189
+ if(!this.data.isAndroid) {
190
+ endTime = new Date(this.data.activityEndTime.replaceAll('-', '/'))
193
191
  }
194
192
  flag = Date.now() <= endTime.getTime()
195
193
  }