From 49a435043b0b1a289a24606e35253365d7ab3956 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 25 八月 2025 17:51:57 +0800 Subject: [PATCH] 首页、及教学出版样式修改 --- src/views/bookStore/textBookApply.vue | 28 +++++++++++++++++++++------- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/views/bookStore/textBookApply.vue b/src/views/bookStore/textBookApply.vue index 8a4bb49..6afd7c4 100644 --- a/src/views/bookStore/textBookApply.vue +++ b/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> -- Gitblit v1.9.1