MrShi
2026-04-17 f39ca3c49d26abd10f76fc67506b9c603a13547c
small-program/store/index.js
@@ -20,6 +20,7 @@
      
      latitude: '',
      longitude: '',
      cityId: '',
      address:'定位中'
   },
   mutations: {
@@ -35,7 +36,7 @@
         state.token = val
         uni.setStorageSync('token', val);
      },
      // 设置token
      // 设置openid
      setOpenid(state, val) {
         state.openid = val
         uni.setStorageSync('openid', val);
@@ -47,9 +48,11 @@
      },
      // 设置经纬度
      setPosition(state, obj) {
         console.log('obj', obj)
         state.latitude = obj.latitude
         state.longitude = obj.longitude
         state.address = obj.address
         state.address = obj.address
         state.cityId = obj.cityId
         console.log("地址设置完成")
      },
      // 清除缓存数据