|
@@ -81,7 +81,11 @@
|
|
|
<span class="price_1" v-text="changePrice('1', item.book_price)"></span>
|
|
|
<span class="price_2" v-text="changePrice('2', item.book_price)"></span>
|
|
|
</span>
|
|
|
- <button v-if="!readonly" :class="['get', is_buy ? 'acquired' : '']">
|
|
|
+ <button
|
|
|
+ v-if="!readonly"
|
|
|
+ :class="['get', is_buy ? 'acquired' : '']"
|
|
|
+ @click="goBook"
|
|
|
+ >
|
|
|
{{ is_buy ? '已' : '' }}购买
|
|
|
</button>
|
|
|
</div>
|
|
@@ -393,6 +397,11 @@ export default {
|
|
|
SelectShowEvent(num) {
|
|
|
this.SelectShow = num;
|
|
|
},
|
|
|
+ goBook() {
|
|
|
+ if (!this.is_buy) {
|
|
|
+ window.location.href = `/GCLS-Book/#/EnterSys`;
|
|
|
+ }
|
|
|
+ },
|
|
|
// 处理价格
|
|
|
changePrice(type, item) {
|
|
|
if (item) {
|