QYF-GitLab1
20 小时以前 cf7e71c6d0fb64eeb6b5deac540da843b4bb465c
src/views/bookStore/textBookApply.vue
@@ -4,7 +4,7 @@
      <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>
@@ -63,6 +63,7 @@
import { ElMessage, ElMessageBox } from 'element-plus'
import { useRouter } from 'vue-router'
import router from '@/router'
const toolClass = inject('toolClass')
const userStore = useUserStore()
onMounted(() => {
@@ -90,6 +91,14 @@
  teachingMaterials: [{ required: true, message: '请填写所用教材' }],
}
const backRouet = () => {
  router.push({
    path: '/bookdetail',
    query: {
      bookId: textBookInfo.value.id,
    },
  })
}
const getType = () => {
  const data = {
    refCodes: ['sampleBook'],
@@ -109,9 +118,10 @@
        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',
@@ -125,17 +135,19 @@
      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()
            })
        }
@@ -143,7 +155,9 @@
    }
  })
}
const toSelectBook = () => {}
const toSelectBook = () => {
  backRouet()
}
</script>
<style scoped>