江西小程序管理端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
675 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. import addApi from '../../common/sdk/qqmap-wx-jssdk.min.js'; // 引入
  2. const user = {
  3. state: {
  4. identity: uni.getStorageSync('identity')?uni.getStorageSync('identity'):1
  5. },
  6. mutations: {
  7. // 更新用户身份
  8. upDateIdentity(state, val) {
  9. state.identity = val
  10. uni.setStorageSync('identity', val);
  11. },
  12. },
  13. actions: {
  14. // 点击广告
  15. async addClick({commit, dispatch}, curAdd) {
  16. // await dispatch('updateStatistics')
  17. curAdd.clicks ++
  18. if(!curAdd.adBannerDO.jumpUrl) {
  19. return false
  20. }
  21. commit('updateWebVeiwUrl', curAdd.adBannerDO.jumpUrl)
  22. uni.navigateTo({
  23. url:'/pages/commeWebView/addWebView'
  24. })
  25. },
  26. }
  27. }
  28. export default user