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
573 B
31 lines
573 B
|
|
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
|