Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
temple_material_request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-07-26 16:39:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b08ca0ed453e95877e67d40700b380c92af8b54a
b08ca0ed
1 parent
c5676fd9
fix 购物车显示逻辑调整,获取列表方式调整
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
src/components/chooseMaterial/index.vue
src/components/chooseMaterial/index.vue
View file @
b08ca0e
<!--
* @Date: 2024-07-23 16:24:08
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-26 1
5:12:39
* @LastEditTime: 2024-07-26 1
6:37:21
* @FilePath: /temple_material_request/src/components/chooseMaterial/index.vue
* @Description: 选择物资组件
-->
<template>
<div
v-if="showBottom"
class="choose-material-page">
<div class="choose-material-page">
<van-popup
v-model:show="showBottom"
position="bottom"
...
...
@@ -118,10 +118,7 @@ const getList = async () => {
}
onMounted(async () => {
// 获取物资列表
getList();
// 购物车数量
getCartCount();
});
const getCartCount = async () => {
...
...
@@ -138,6 +135,15 @@ watch(
(v) => {
showBottom.value = v;
if (v) {
// 重置查询条件
offset.value = 0;
limit.value = 20;
finished.value = false;
list.value = [];
// 获取物资列表
getList();
// 购物车数量
getCartCount();
}
}
);
...
...
Please
register
or
login
to post a comment