继续完善文件结构
This commit is contained in:
@@ -182,6 +182,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getStatusLabel(val : number) : string {
|
||||
const item = this.statusOptions.find((opt: any) => opt.value === val)
|
||||
return item ? item.label : '全部'
|
||||
},
|
||||
getStatusText(status : number) : string {
|
||||
switch(status) {
|
||||
case 0: return '未发货';
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<text class="label">时间选择:</text>
|
||||
<view class="date-range-mock">
|
||||
<text class="date-text">全部</text>
|
||||
<uni-icons type="calendar" size="16" color="#c0c4cc"></uni-icons>
|
||||
<text class="iconfont icon-calendar" style="font-size: 16px; color: #c0c4cc;"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter-item">
|
||||
@@ -15,7 +15,7 @@
|
||||
<picker mode="selector" :range="typeOptions" range-key="label" @change="typeChange">
|
||||
<view class="admin-input-picker">
|
||||
<text>{{ typeLabel }}</text>
|
||||
<uni-icons type="arrowdown" size="14" color="#c0c4cc"></uni-icons>
|
||||
<text class="iconfont icon-arrow-down" style="font-size: 14px; color: #c0c4cc;"></text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
@@ -60,7 +60,11 @@
|
||||
<!-- 分页 -->
|
||||
<view class="table-pagination">
|
||||
<text class="total-text">共 {{ total }} 条</text>
|
||||
<uni-pagination :total="total" :pageSize="10" :current="1"></uni-pagination>
|
||||
<view class="page-ops">
|
||||
<button class="page-btn" disabled>上一页</button>
|
||||
<text class="current-page">1</text>
|
||||
<button class="page-btn">下一页</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -272,6 +276,27 @@ export default {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.total-text { font-size: 14px; color: #515a6e; margin-right: 15px; }
|
||||
|
||||
.page-ops {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.page-btn {
|
||||
height: 32px;
|
||||
padding: 0 12px;
|
||||
font-size: 14px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #d9d9d9;
|
||||
background: #fff;
|
||||
margin: 0;
|
||||
}
|
||||
.current-page {
|
||||
padding: 0 12px;
|
||||
font-size: 14px;
|
||||
color: #2d8cf0;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user