hookehuyr

细节调整

...@@ -47,8 +47,8 @@ import { useRoute, useRouter } from 'vue-router' ...@@ -47,8 +47,8 @@ import { useRoute, useRouter } from 'vue-router'
47 import axios from '@/utils/axios'; 47 import axios from '@/utils/axios';
48 import $ from 'jquery' 48 import $ from 'jquery'
49 import { Toast } from 'vant'; 49 import { Toast } from 'vant';
50 -const route = useRoute(); 50 +const $route = useRoute();
51 -const router = useRouter(); 51 +const $router = useRouter();
52 // 自定义按钮颜色样式 52 // 自定义按钮颜色样式
53 const styleObject = reactive({ 53 const styleObject = reactive({
54 backgroundColor: '#F4675A', 54 backgroundColor: '#F4675A',
...@@ -57,7 +57,13 @@ const styleObject = reactive({ ...@@ -57,7 +57,13 @@ const styleObject = reactive({
57 }) 57 })
58 const items = reactive([]) 58 const items = reactive([])
59 const onClick = (item) => { 59 const onClick = (item) => {
60 - console.warn(item.id); 60 + // 调整书籍详情页
61 + $router.push({
62 + path: '/client/bookDetail',
63 + query: {
64 + id: item.id
65 + }
66 + });
61 } 67 }
62 const gotoMe = () => { 68 const gotoMe = () => {
63 console.warn('跳转我的地址'); 69 console.warn('跳转我的地址');
...@@ -128,45 +134,5 @@ export default { ...@@ -128,45 +134,5 @@ export default {
128 right: 8rem; 134 right: 8rem;
129 } 135 }
130 } 136 }
131 - .group4 {
132 - width: 160px;
133 - height: 15px;
134 - margin-left: 83px;
135 - }
136 -
137 - .layer1 {
138 - width: 15px;
139 - height: 15px;
140 - background-color: rgba(244, 103, 90, 1);
141 - border-radius: 50%;
142 - }
143 -
144 - .layer2 {
145 - width: 15px;
146 - height: 15px;
147 - background-color: rgba(244, 103, 90, 1);
148 - border-radius: 50%;
149 - }
150 - .group18 {
151 - z-index: 69;
152 - position: absolute;
153 - left: 113px;
154 - top: 129px;
155 - width: 5px;
156 - height: 44px;
157 - border-radius: 0 0 2.5px 2.5px;
158 - background-color: rgba(255, 212, 167, 1);
159 - }
160 -
161 - .group19 {
162 - z-index: 70;
163 - position: absolute;
164 - left: 258px;
165 - top: 129px;
166 - width: 5px;
167 - height: 44px;
168 - border-radius: 0 0 2.5px 2.5px;
169 - background-color: rgba(255, 212, 167, 1);
170 - }
171 } 137 }
172 </style> 138 </style>
...\ No newline at end of file ...\ No newline at end of file
......