| | |
| | | ...item, |
| | | name: item.name, |
| | | id: item.id, |
| | | icon: item.icon && item.icon != 'default' ? getPublicImage(item.icon, 80) : '', |
| | | icon: item.icon && item.icon != 'default' ? getPublicImage(item.icon, 200) : '', |
| | | introduction: item.description, |
| | | reason: item.applyReturnMsg ? JSON.parse(item.applyReturnMsg).reason : '-' |
| | | } |
| | |
| | | const list = res.datas.map((item) => { |
| | | return { |
| | | ...item, |
| | | icon: item.product.icon ? getPublicImage(item.product.icon, 80) : '' |
| | | icon: item.product.icon ? getPublicImage(item.product.icon, 200) : '' |
| | | } |
| | | }) |
| | | this.setData({ |
| | |
| | | |
| | | // 单选选择课本 |
| | | onChange(e) { |
| | | const { |
| | | index |
| | | } = e.currentTarget.dataset |
| | | this.setData({ |
| | | radioVal: e.detail.value |
| | | radioVal: index |
| | | }); |
| | | }, |
| | | |
| | |
| | | .then((res) => { |
| | | if (res) { |
| | | this.setData({ |
| | | visible: false |
| | | visible: false, |
| | | selectedBook: null, |
| | | courseDesc: '', |
| | | courseName: '' |
| | | }) |
| | | this.getData() |
| | | } |