💪 optimize: 优化代码
This commit is contained in:
parent
e9924c13a0
commit
e62b472843
|
@ -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);
|
||||||
|
|
2
ysf.html
2
ysf.html
|
@ -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: '',
|
||||||
|
|
Loading…
Reference in New Issue