| | |
| | | productLinkPath: '', |
| | | refCode: '', |
| | | haider: false, |
| | | naData: false |
| | | naData: false, |
| | | bookRefCode: [] |
| | | }, |
| | | |
| | | /** |
| | |
| | | // productLinkPath: this.data.productLinkPath, |
| | | // refCode: this.data.refCode, |
| | | // }); |
| | | // this.getResourceCode( |
| | | // res.datas.id, |
| | | // res.datas.rootCmsItemId |
| | | // ) |
| | | this.getResourceDataList({ |
| | | productLinkPath: this.data.productLinkPath, |
| | | refCode: this.data.refCode, |
| | | }) |
| | | }); |
| | | |
| | | }, |
| | | getResourceCode(bookId, cmsId) { |
| | | let query = { |
| | | path: '*', |
| | | queryType: '*', |
| | | productId: bookId, |
| | | cmsPath: cmsId, |
| | | itemFields: { |
| | | SysType: 'Cms' |
| | | }, |
| | | pading: { |
| | | start: 99, |
| | | size: 0 |
| | | } |
| | | } |
| | | app.MG.store.getProductDetail(query).then(res => { |
| | | console.log('图书资源', res.datas.cmsDatas[0].datas); |
| | | }) |
| | | }, |
| | | // 获取已购买商品 |
| | | getShoppingCartProductGet() { |
| | |
| | | this.setData({ |
| | | resourceClassList: JSON.parse(res[0].config).option, |
| | | }); |
| | | |
| | | }); |
| | | }, |
| | | checkAll() { |