| | |
| | | import { |
| | | getContentShareImg |
| | | getContentShareImg, |
| | | actionDo |
| | | } from '../../api/index' |
| | | Component({ |
| | | /** |
| | |
| | | '/pages/consult/detail',//资讯详情 |
| | | ] |
| | | const { info, path} = this.data |
| | | actionDo({ |
| | | actionType: 'share', |
| | | id: info.id |
| | | }) |
| | | wx.navigateToMiniProgram({ |
| | | appId: 'wxcd2b89fd2ff065f8', |
| | | path: `${map[path]}?origin=b&id=${info.id}&userId=${wx.getStorageSync('member').id}`, |
| | |
| | | info, |
| | | path |
| | | } = this.data |
| | | let that = this |
| | | |
| | | getContentShareImg({ |
| | | articleId: `${info.id}_${path}`, |
| | | type: '0', |
| | |
| | | wx.setStorageSync('downloadConfig', { |
| | | path: this.data.path,id: this.data.info.id |
| | | }) |
| | | actionDo({ |
| | | actionType: 'download', |
| | | id: this.data.info.id |
| | | }) |
| | | wx.navigateTo({ |
| | | url: '/pages/download/index', |
| | | }, 1000) |