import addApi from '../../common/sdk/qqmap-wx-jssdk.min.js'; // 引入 const user = { state: { addList: [] }, mutations: { // 更新广告列表 upDateAddList(state, list) { state.addList = list }, }, actions: { // 点击广告 async addClick({commit, dispatch}, curAdd) { // await dispatch('updateStatistics') curAdd.clicks ++ if(!curAdd.adBannerDO.jumpUrl) { return false } commit('updateWebVeiwUrl', curAdd.adBannerDO.jumpUrl) uni.navigateTo({ url:'/pages/commeWebView/addWebView' }) }, } } export default user