优化热门搜索方案,如果更新了后端最新代码,请pull下更新

This commit is contained in:
lemon橪
2021-07-30 16:29:05 +08:00
parent 436dd56e54
commit d19b02a97d
4 changed files with 44 additions and 14 deletions

View File

@@ -9,6 +9,14 @@ const FACE_LOGIN = isDev ? "face_login_dev" : "face_login";
const FINGER_LOGIN = isDev ? "finger_login_dev" : "finger_login";
const CART_BACKBTN = isDev ? "cart_backbtn_dev" : "cart_backbtn";
export default {
// 写入热门搜索时间戳
setHotWords(val) {
uni.setStorageSync("hotWords", val);
},
// 获取热门搜索时间戳
getHotWords() {
return uni.getStorageSync(`hotWords`);
},
// 获取face id登录
getFaceLogin() {