app 弹框协议等

This commit is contained in:
yeliang-king
2022-04-24 22:41:00 +08:00
parent 884d3e8c34
commit b4e2761b1f
6 changed files with 146 additions and 5 deletions

View File

@@ -18,7 +18,16 @@ export default {
getHotWords() {
return uni.getStorageSync(`hotWords`);
},
//写入 展示还是不展示
setShow(val) {
uni.setStorageSync("show", val);
},
getShow() {
if (uni.getStorageSync(`show`) === "" || uni.getStorageSync(`show`) === undefined) {
return true;
}
return uni.getStorageSync(`show`);
},
// 获取face id登录
getFaceLogin() {
return uni.getStorageSync(FACE_LOGIN);