userDefaults.js 780 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
function saveGuideOfTZ(path){
wx.setStorageSync('guideoftz', path)
}

function saveGuideOfXT(path) {
wx.setStorageSync('guideofxt', path)
}

function saveGuideOfXY(path) {
wx.setStorageSync('guideofxy', path)
}

function celarnAllCache(){
wx.setStorageSync('jingzhunzhidaogaowei', '')
wx.setStorageSync('jingzhunzhidao', '')
wx.setStorageSync('jingzhunzhidaogaoweiUrl', '')
wx.setStorageSync('jingzhunzhidaoUrl', '')
wx.setStorageSync('currentLoadImage', '')
wx.setStorageSync('lastLoadImage', '')
wx.setStorageSync('guideofxy', '')
wx.setStorageSync('guideofxt', '')
wx.setStorageSync('guideoftz', '')
}

module.exports = {
saveGuideOfTZ: saveGuideOfTZ,
saveGuideOfXT: saveGuideOfXT,
saveGuideOfXY: saveGuideOfXY,
celarnAllCache: celarnAllCache
}