Skip to content

Commit

Permalink
feat(wordlist):fix some style problems(rpx) and change the picture in…
Browse files Browse the repository at this point in the history
… tools.
  • Loading branch information
daonan233 committed Mar 21, 2024
1 parent 7315979 commit 58b319a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions src/pages/lists/details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
</template>

<script>
import { getWordListDetails } from '@/services/lists';
import { toWordPage } from '@/routers/word';
export default {
Expand Down Expand Up @@ -127,7 +126,6 @@ export default {
toWordPage,
},
};
</script>
<style>
.word-list-detail {
Expand Down
21 changes: 0 additions & 21 deletions src/pages/lists/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@
</view>
</template>
<script>
import { getWordLists } from '@/services/lists';
const app = getApp();
export default {
filters: { // 好像没成功?写出bug来了qwq
formatDateTime(time) {
Expand Down Expand Up @@ -153,25 +150,7 @@ export default {
this.freshing = false;
}, 500);
},
/* 时间加0 */
/* padZero(value) {
return value < 10 ? `0${value}` : value;
}, */
// 加载更多词单
loadMoreLists() {
/* uni.showLoading();
const { page } = this;
const originLists = this.showLists;
getAllMails(this.page + 1).then((res) => {
this.showlists = originlists.concat(res.notifications);
this.page += 1;
setTimeout(() => {
uni.hideLoading();
}, 500);
}); */
// 打印一下当前page和showlists
},
},
};
</script>
Expand Down
1 change: 0 additions & 1 deletion src/pages/lists/upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ export default {
},
};
</script>

<style scoped>
.container {
padding: 20px;
Expand Down
3 changes: 0 additions & 3 deletions src/services/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export async function getWordLists() {
* @param id 词单id
* @returns {Promise<unknown>}
*/
export async function getWordListDetails(id) {
return request.get(`/lists/${id}`);
}

// 创建词单
export async function postWordList(wordlist) {
Expand Down

0 comments on commit 58b319a

Please sign in to comment.