修正版本号对比问题
This commit is contained in:
parent
56107508f9
commit
ae033bd176
@ -73,16 +73,16 @@ export default {
|
|||||||
window.deviceInfo.app === "WX"
|
window.deviceInfo.app === "WX"
|
||||||
) {
|
) {
|
||||||
let iosV = this.getIOSVersion();
|
let iosV = this.getIOSVersion();
|
||||||
console.log(
|
// console.log(
|
||||||
!this.versionStringCompare(iosV, 14.5),
|
// !this.versionStringCompare(iosV, "14.5"),
|
||||||
this.versionStringCompare(iosV, 11)
|
// this.versionStringCompare(iosV, "11.0")
|
||||||
);
|
// );
|
||||||
if (
|
if (
|
||||||
!this.versionStringCompare(iosV, 14.5) &&
|
!this.versionStringCompare(iosV, "14.5") &&
|
||||||
this.versionStringCompare(iosV, 11)
|
this.versionStringCompare(iosV, "11.0")
|
||||||
) {
|
) {
|
||||||
gsap.to(this.$refs.unsuit, { autoAlpha: 1 });
|
gsap.to(this.$refs.unsuit, { autoAlpha: 1 });
|
||||||
} else if (!this.versionStringCompare(iosV, 11)) {
|
} else if (!this.versionStringCompare(iosV, 11.0)) {
|
||||||
gsap.to(this.$refs.unsuit2, { autoAlpha: 1 });
|
gsap.to(this.$refs.unsuit2, { autoAlpha: 1 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -103,10 +103,10 @@ export default {
|
|||||||
? lastValue.charCodeAt()
|
? lastValue.charCodeAt()
|
||||||
: Number(lastValue);
|
: Number(lastValue);
|
||||||
if (preNum < lastNum) {
|
if (preNum < lastNum) {
|
||||||
result = -1;
|
result = false;
|
||||||
break;
|
break;
|
||||||
} else if (preNum > lastNum) {
|
} else if (preNum > lastNum) {
|
||||||
result = 1;
|
result = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user