From 9cad6a832c786989be620573b09badccfe7e3b51 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期一, 25 八月 2025 15:11:37 +0800
Subject: [PATCH] 首页头部,样式调整

---
 src/views/bookStore/textBookApply.vue |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/src/views/bookStore/textBookApply.vue b/src/views/bookStore/textBookApply.vue
index 8a4bb49..80adb91 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'],
@@ -125,17 +134,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 +154,9 @@
     }
   })
 }
-const toSelectBook = () => {}
+const toSelectBook = () => {
+  backRouet()
+}
 </script>
 
 <style scoped>

--
Gitblit v1.9.1