cache.js 904 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * @Author: zhuangzhou zhuangzhou@btioe.com
  3. * @Date: 2022-05-04 17:49:10
  4. * @LastEditors: zhuangzhou zhuangzhou@btioe.com
  5. * @LastEditTime: 2022-05-04 17:54:17
  6. * @FilePath: /mlmt-mini/src/utils/cache.js
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. export default {
  10. key: {
  11. TEMP_TOKEN: 'TEMP_TOKEN',
  12. COUPON: 'COUPON',
  13. AWARD_DEMO: 'AWARD_DEMO',
  14. AWARD_GOODS: 'AWARD_GOODS',
  15. STORE_CHOOSE: 'STORE_CHOOSE',
  16. STORE_SELL: 'STORE_SELL',
  17. POSTER: 'POSTER',
  18. NEW_PEOPLE: 'NEW_PEOPLE',
  19. POPULARIZE: 'POPULARIZE1'
  20. },
  21. set(key, data) {
  22. uni.setStorageSync(key, data)
  23. },
  24. get(key) {
  25. return uni.getStorageSync(key)
  26. },
  27. remove(key) {
  28. uni.removeStorageSync(key)
  29. }
  30. }