Skip to content

Commit

Permalink
放开播放记录入口
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunlongyu committed Nov 18, 2020
1 parent 216a08b commit b051b94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions pages/history/history.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<view>
<u-cell-group>
<u-cell-item
v-for="(i, j) in starList"
v-for="(i, j) in historyList"
:key="j"
:title="i.name"
:value="i.type"
Expand All @@ -18,7 +18,7 @@ import db from "../../utils/database.js";
export default {
data() {
return {
starList: [],
historyList: [],
};
},
methods: {
Expand All @@ -28,18 +28,18 @@ export default {
const url = `/pages/detail/detail?site=${site}&id=${id}`;
this.$u.route({ url: url });
},
async getAllStar() {
const res = await db.getAll("star");
async getAllHistory() {
const res = await db.getAll("history");
if (res.flag) {
this.starList = res.data;
this.historyList = res.data;
}
},
},
onLoad() {
this.getAllStar();
this.getAllHistory();
},
onTabItemTap() {
this.getAllStar();
this.getAllHistory();
}
};
</script>
4 changes: 2 additions & 2 deletions pages/me/me.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
},
methods: {
openHistoryPage () {
this.$refs.uToast.show({ title: '播放记录努力开发中...', type: 'warning', duration: '2300' })
this.$u.route({ url: '/pages/history/history' });
},
siteEdite () {
this.$u.route({ url: '/pages/site/site' });
Expand Down Expand Up @@ -116,7 +116,7 @@ export default {
width: 100%;
}
.logo {
margin-top: 10px;
margin-top: 20px;
width: 100%;
text-align: center;
img {
Expand Down

0 comments on commit b051b94

Please sign in to comment.