|
@@ -5,6 +5,15 @@
|
|
|
<div class="shelf_title"><text>书架</text></div>
|
|
|
<stack class="shelf">
|
|
|
<div class="shelf-wrap">
|
|
|
+ <div class="type-bar">
|
|
|
+ <div class="search-bar__wrap">
|
|
|
+ <text @click="toSearch">请输入书名或者作者名</text
|
|
|
+ ><image
|
|
|
+ src="https://yueduyun.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/img/search.png"
|
|
|
+ ></image>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div
|
|
|
class="shelf-total {{current === 1 ? 'shelf-total__inRecent' : ''}}"
|
|
|
if="{{mockList.length>0}}"
|
|
@@ -12,7 +21,7 @@
|
|
|
<text>共{{ booksize }}本</text>
|
|
|
<div if="modeText" @click="changeMode">
|
|
|
<text> </text>
|
|
|
- <text class="complete-btn">{{ modeText }}</text>
|
|
|
+ <text class="administration-btn">{{ modeText }}</text>
|
|
|
</div>
|
|
|
<div if="!modeText" @click="changeMode">
|
|
|
<text class="complete-btn">完成</text>
|
|
@@ -84,9 +93,6 @@
|
|
|
</div>
|
|
|
</stack>
|
|
|
</div>
|
|
|
- <div if="(($idx + 1)%3 === 0)" class="shelf_bottom">
|
|
|
- <image src="../../assets/imgs/shelfbottom.png"></image>
|
|
|
- </div>
|
|
|
</block>
|
|
|
<div
|
|
|
class="book-item__wrap book-item__add m0"
|
|
@@ -109,7 +115,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getUserShelfBooks, deleteShelfBook, getReadrecord } from '../../api'
|
|
|
-
|
|
|
+import router from '@system.router'
|
|
|
export default {
|
|
|
props: {
|
|
|
tabindex: {
|
|
@@ -186,6 +192,11 @@ export default {
|
|
|
toCategory() {
|
|
|
this.$emit('change')
|
|
|
},
|
|
|
+ toSearch() {
|
|
|
+ router.push({
|
|
|
+ uri: '/views/Search'
|
|
|
+ })
|
|
|
+ },
|
|
|
typeChange(index) {
|
|
|
this.current = index
|
|
|
}
|