// 统计数据 // 统计类型 1:首页banner;2:直播模块;3:最新活动;4:热门文章;5:新品橱窗;6:活动列表 import Vue from 'vue' const cmsMixins = { computed: { }, methods: { cmsSysStatistics(cmsSysType,productId) { this.ProductService.sYsStatisticsTypesSatisticsNumber({typeId:cmsSysType,productId:productId}) .then(response => { const map = { 1: '首页轮播', 2: '直播模块', 3: '最新活动', 4: '热门文章', 5: '新品橱窗', 6: '活动列表' } const sYsText = map[cmsSysType] console.log(`<-------${sYsText}统计数据成功------>`) }) .catch(error => { console.log(`<-------统计${sYsText}数据异常------>`) }) }, } } export default cmsMixins