dusenyao 3 tahun lalu
induk
melakukan
4c4f7242b1
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      src/views/course_details/index.vue

+ 3 - 3
src/views/course_details/index.vue

@@ -84,7 +84,7 @@
                   <button
                     v-if="!readonly"
                     :class="['get', is_buy ? 'acquired' : '']"
-                    @click="goBook"
+                    @click="goBook(item.book_id)"
                   >
                     {{ is_buy ? '已' : '' }}购买
                   </button>
@@ -397,9 +397,9 @@ export default {
     SelectShowEvent(num) {
       this.SelectShow = num;
     },
-    goBook() {
+    goBook(book_id) {
       if (!this.is_buy) {
-        window.location.href = `/GCLS-Book/#/EnterSys`;
+        window.location.href = `/GCLS-Book/GoodsDetail?goods_id=${book_id}&goods_type=101`;
       }
     },
     // 处理价格