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-23 16:19:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0206432060345f1a419e170c4749dcb41aca999d
02064320
1 parent
339c257f
申领物资页面新增组别切换
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
src/views/material_request.vue
src/views/material_request.vue
View file @
0206432
<!--
* @Date: 2024-07-23 12:53:15
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-23 1
4:27:11
* @LastEditTime: 2024-07-23 1
6:12:12
* @FilePath: /temple_material_request/src/views/material_request.vue
* @Description: 申领物资页面
-->
<template>
<div class="material-request-page">
<van-tabs v-model:active="active" @change="onChange" sticky :color="styleColor.baseColor">
<van-tab v-for="index in 8" :title="'标签 ' + index">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div class="list-wrapper">
<van-sticky :offset-top="44">
<van-row justify="space-between" class="select-all-item">
<van-col span="8"><van-icon name="passed" size="1.25rem" /> <span :style="{ color: styleColor.baseColor }">全选</span></van-col>
<van-col span="16" style="text-align: right; font-size: 0.85rem; color: #666666;">参考上次同类活动的领用情况</van-col>
</van-row>
</van-sticky>
<van-list
v-model:loading="loading"
:finished="finished"
...
...
@@ -31,8 +41,11 @@
</van-row>
</div>
</van-list>
<div style="height: 5
rem;"></div>
<div style="height: 3
rem;"></div>
</div>
</van-list>
</van-tab>
</van-tabs>
<div class="control-bar">
<div>
<van-button icon="plus" type="primary" :color="styleColor.baseColor" @click="addMore">添加更多</van-button>
...
...
@@ -64,6 +77,11 @@ useTitle($route.meta.title);
const num_value = ref('');
const active = ref(0);
const onChange = (index) => {
console.warn(index);
}
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
...
...
@@ -109,6 +127,8 @@ const goShoppingCart = () => { // 跳转购物车
width: 100%;
.select-all-item {
padding: 0.5rem 1rem;
border-top: 1px solid #f0f0f0;
background-color: white;
}
.list-boxer {
margin: 0; padding: 1rem; border-top: 1px solid #f0f0f0;
...
...
Please
register
or
login
to post a comment