江西小程序管理端
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.

30 lines
573 B

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