|
@@ -17,14 +17,14 @@
|
|
|
shape="round"
|
|
|
show-action
|
|
|
input-align="center"
|
|
|
- label="场所名称"
|
|
|
- placeholder="请输入场所名称"
|
|
|
+ label="牌位名称"
|
|
|
+ placeholder="请输入牌位名称"
|
|
|
>
|
|
|
<template #action>
|
|
|
<div @click="search">搜索</div>
|
|
|
</template>
|
|
|
</van-search>
|
|
|
- <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
|
|
+ <van-pull-refresh v-if="show==true" v-model="refreshing" @refresh="onRefresh">
|
|
|
<van-list
|
|
|
v-model:loading="loading"
|
|
|
:finished="finished"
|
|
@@ -37,10 +37,35 @@
|
|
|
<div class="item_top_left">
|
|
|
{{ item.brandName }}
|
|
|
</div>
|
|
|
- <div class="item_top_right">¥{{ item.sacrificeExpenses }}</div>
|
|
|
+ <div class="item_top_right" style="color: red">¥{{ item.sacrificeExpenses }}</div>
|
|
|
</div>
|
|
|
<div class="item_down">
|
|
|
- <div class="item_down_left">
|
|
|
+ <div class="item_down_left" style="color: #a2a2a2">
|
|
|
+ {{ item.siteName.name }}
|
|
|
+ </div>
|
|
|
+ <div class="item_down_right">场管:{{ item.siteContact }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-swipe-cell>
|
|
|
+ </van-list>
|
|
|
+ </van-pull-refresh>
|
|
|
+ <van-pull-refresh v-if="show==false" v-model="refreshing" @refresh="onRefresh">
|
|
|
+ <van-list
|
|
|
+ v-model:loading="loading"
|
|
|
+ :finished="finished"
|
|
|
+ finished-text="没有更多了"
|
|
|
+ @load="onLoad"
|
|
|
+ >
|
|
|
+ <van-swipe-cell v-for="item in searchList" :key="item">
|
|
|
+ <div class="list-item" @click="goTabletInfo(item)">
|
|
|
+ <div class="item_top">
|
|
|
+ <div class="item_top_left">
|
|
|
+ {{ item.brandName }}
|
|
|
+ </div>
|
|
|
+ <div class="item_top_right" style="color: red">¥{{ item.sacrificeExpenses }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="item_down">
|
|
|
+ <div class="item_down_left" style="color: #a2a2a2">
|
|
|
{{ item.siteName.name }}
|
|
|
</div>
|
|
|
<div class="item_down_right">场管:{{ item.siteContact }}</div>
|
|
@@ -63,25 +88,18 @@ export default {
|
|
|
const selectColor = ref(window.localStorage.getItem("MZ_COLOR"));
|
|
|
|
|
|
//搜索事件
|
|
|
- const show = ref(false)
|
|
|
+ const show = ref(true)
|
|
|
const searchName = ref("");
|
|
|
const searchList = ref([]);
|
|
|
const search = () => {
|
|
|
- if (searchName.value != "") {
|
|
|
- show.value = true;
|
|
|
- // new PlaceRegister()
|
|
|
- // .searchlist({
|
|
|
- // current: 1,
|
|
|
- // size: 10000,
|
|
|
- // name: searchName.value,
|
|
|
- // })
|
|
|
- // .then(({ records }) => {
|
|
|
- // searchList.value = records;
|
|
|
- // });
|
|
|
- } else {
|
|
|
- show.value = false;
|
|
|
- onLoad();
|
|
|
- }
|
|
|
+ show.value = false
|
|
|
+ new TabletServer().list({
|
|
|
+ current:1,
|
|
|
+ size:10000,
|
|
|
+ brandName:searchName.value
|
|
|
+ }).then((res)=>{
|
|
|
+ searchList.value = res.records
|
|
|
+ })
|
|
|
};
|
|
|
|
|
|
//页面跳转以及数据传递
|
|
@@ -190,24 +208,21 @@ html {
|
|
|
float: left;
|
|
|
width: 80%;
|
|
|
font-size: 16px;
|
|
|
+ font-weight: 700;
|
|
|
}
|
|
|
.item_top_right {
|
|
|
float: right;
|
|
|
width: 20%;
|
|
|
- font-size: 14px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: red;
|
|
|
}
|
|
|
}
|
|
|
- .item_center {
|
|
|
- width: 100%;
|
|
|
- font-size: 12px;
|
|
|
- color: #808080;
|
|
|
- text-align: left;
|
|
|
- overflow: hidden;
|
|
|
- }
|
|
|
.item_down {
|
|
|
overflow: hidden;
|
|
|
width: 100%;
|
|
|
- font-size: 12px;
|
|
|
+ font-size: 16px;
|
|
|
+ padding: 5px 0;
|
|
|
+ border-bottom: 1px solid #F5F5F5;
|
|
|
.item_down_left {
|
|
|
width: 70%;
|
|
|
float: left;
|