列表优化
This commit is contained in:
@@ -6,20 +6,33 @@
|
||||
:fixed="true"
|
||||
status-bar
|
||||
left-icon="left"
|
||||
:rightIcon="userInfo.authorities === 'app_vip_user' || userInfo.authorities === 'engineering_user' ? 'plusempty' : ''"
|
||||
:rightIcon="
|
||||
userInfo.authorities === 'app_vip_user' || userInfo.authorities === 'engineering_user'
|
||||
? 'plusempty'
|
||||
: ''
|
||||
"
|
||||
background-color="#fff"
|
||||
color="#111"
|
||||
title="项目管理"
|
||||
@clickLeft="back"
|
||||
@clickRight="add"
|
||||
/>
|
||||
<uni-search-bar v-model="store.params.searchValue" clearButton="none" bgColor="#fff" placeholder="请输入关键词"
|
||||
@input="store.search()"></uni-search-bar>
|
||||
<uni-search-bar
|
||||
v-model="store.params.searchValue"
|
||||
clearButton="none"
|
||||
bgColor="#fff"
|
||||
placeholder="请输入关键词"
|
||||
@input="store.search()"
|
||||
></uni-search-bar>
|
||||
<view class="message">
|
||||
<uni-card :title="item.name" @click="jump(item)"
|
||||
extra="🔍"
|
||||
v-for="(item, index) in store.data" :key="index"
|
||||
:style="{marginTop:index===0?'0':''}">
|
||||
<uni-card
|
||||
:title="item.name"
|
||||
@click="jump(item)"
|
||||
extra="🔍"
|
||||
v-for="(item, index) in store.data"
|
||||
:key="index"
|
||||
:style="{ marginTop: index === 0 ? '0' : '' }"
|
||||
>
|
||||
<view class="term-list-bottom">
|
||||
<view class="term-list-bottom-item">
|
||||
<view>设备个数</view>
|
||||
@@ -32,7 +45,10 @@
|
||||
</view>
|
||||
</uni-card>
|
||||
<Cn-empty v-if="store.empty" style="padding-top: 400rpx"></Cn-empty>
|
||||
<uni-load-more v-if="store.data && store.data.length > 0" :status="store.status"></uni-load-more>
|
||||
<uni-load-more
|
||||
v-if="store.status == 'loading' || (store.data && store.data.length > 0)"
|
||||
:status="store.status"
|
||||
></uni-load-more>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -80,13 +96,13 @@ export default {
|
||||
})
|
||||
},
|
||||
jump(project) {
|
||||
console.log(project);
|
||||
console.log(project)
|
||||
uni.navigateTo({
|
||||
url: `/pages/project/detail?project=${encodeURIComponent(JSON.stringify(project))}`,
|
||||
})
|
||||
},
|
||||
},
|
||||
onLoad({engineeringId}) {
|
||||
onLoad({ engineeringId }) {
|
||||
this.init(engineeringId)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user