列表优化
This commit is contained in:
@@ -17,15 +17,20 @@
|
||||
@clickLeft="back"
|
||||
@clickRight="add"
|
||||
/>
|
||||
<uni-search-bar v-model="store.params.name" clearButton="none" bgColor="#fff" placeholder="请输入关键词"
|
||||
@input="store.search()"></uni-search-bar>
|
||||
<uni-search-bar
|
||||
v-model="store.params.name"
|
||||
clearButton="none"
|
||||
bgColor="#fff"
|
||||
placeholder="请输入关键词"
|
||||
@input="store.search()"
|
||||
></uni-search-bar>
|
||||
<view class="message">
|
||||
<uni-card
|
||||
:title="item.name"
|
||||
extra="🔍"
|
||||
@click="jump(item)"
|
||||
v-for="(item, index) in store.data"
|
||||
:style="{marginTop:index===0?'0':''}"
|
||||
:style="{ marginTop: index === 0 ? '0' : '' }"
|
||||
:key="index"
|
||||
>
|
||||
<view class="term-list-bottom">
|
||||
@@ -40,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>
|
||||
@@ -52,7 +60,7 @@ export default {
|
||||
mixins: [list],
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
loading: true,
|
||||
userInfo: {},
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user