| | |
| | | <div class="crumbBox"> |
| | | <el-breadcrumb separator-class="el-icon-arrow-right"> |
| | | <span style="float: left">当前位置:</span> |
| | | <el-breadcrumb-item :to="{ path: '/textbooks' }">数字教材</el-breadcrumb-item> |
| | | <el-breadcrumb-item :to="{}" @click="backRouet">数字教材</el-breadcrumb-item> |
| | | <el-breadcrumb-item>申请试用</el-breadcrumb-item> |
| | | </el-breadcrumb> |
| | | </div> |
| | |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | |
| | | import { useRouter } from 'vue-router' |
| | | import router from '@/router' |
| | | const toolClass = inject('toolClass') |
| | | const userStore = useUserStore() |
| | | onMounted(() => { |
| | |
| | | teachingMaterials: [{ required: true, message: '请填写所用教材' }], |
| | | } |
| | | |
| | | const backRouet = () => { |
| | | router.push({ |
| | | path: '/bookdetail', |
| | | query: { |
| | | bookId: textBookInfo.value.id, |
| | | }, |
| | | }) |
| | | } |
| | | const getType = () => { |
| | | const data = { |
| | | refCodes: ['sampleBook'], |
| | |
| | | id: textBookInfo.value.id, |
| | | title: textBookInfo.value.name, |
| | | icon: textBookInfo.value.icon, |
| | | isbn: textBookInfo.value.tourism_ISBN, |
| | | author: textBookInfo.value.tourism_author, |
| | | isbn: textBookInfo.value.isbn, |
| | | author: textBookInfo.value.author, |
| | | price: textBookInfo.value.price, |
| | | refCode: textBookInfo.value.refCode, |
| | | } |
| | | const data = { |
| | | topicIdOrRefCode: 'applyDigitalBook', |
| | |
| | | MG.ugc.newTopicMessage(data).then((res) => { |
| | | loading.value = false |
| | | if (res) { |
| | | ElMessageBox.confirm('您的试用申请已提交,管理员审核中!', 'success', { |
| | | ElMessageBox.confirm('您的试用申请已提交,管理员审核中!', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'success', |
| | | }) |
| | | .then(() => { |
| | | this.$router.go(-1) |
| | | router.push({ |
| | | path: '/myApply', |
| | | }) |
| | | formEl.resetFields() |
| | | }) |
| | | .catch(() => { |
| | | this.$router.go(-1) |
| | | backRouet() |
| | | formEl.resetFields() |
| | | }) |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | const toSelectBook = () => {} |
| | | const toSelectBook = () => { |
| | | backRouet() |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |