💪 optimize: 优化代码

This commit is contained in:
wangsongsole 2023-08-09 14:17:24 +08:00
parent e9924c13a0
commit e62b472843
2 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@
ysf: JSON.parse(sessionStorage.getItem('goodsInfo')), ysf: JSON.parse(sessionStorage.getItem('goodsInfo')),
account: null, account: null,
confirmAccount: null, confirmAccount: null,
backAble: ~~sessionStorage.getItem('goodsCount') > 0, backAble: (~~sessionStorage.getItem('goodsCount')) > 1,
promptShow: false, promptShow: false,
popShow: false, popShow: false,
popText: '', popText: '',
@ -126,7 +126,7 @@
}, },
mounted () { mounted () {
document.title =localStorage.getItem('title'); document.title = localStorage.getItem('title');
/* 判断是否是微信小程序内 */ /* 判断是否是微信小程序内 */
let ua = window.navigator.userAgent.toLowerCase(); let ua = window.navigator.userAgent.toLowerCase();
this.isMini = /miniProgram/i.test(ua); this.isMini = /miniProgram/i.test(ua);

View File

@ -108,7 +108,7 @@
ysf: JSON.parse(sessionStorage.getItem('goodsInfo')), ysf: JSON.parse(sessionStorage.getItem('goodsInfo')),
account: null, account: null,
confirmAccount: null, confirmAccount: null,
backAble: ~~sessionStorage.getItem('goodsCount') > 0, backAble: ~~sessionStorage.getItem('goodsCount') > 1,
promptShow: false, promptShow: false,
popShow: false, popShow: false,
popText: '', popText: '',