问题反馈修改

This commit is contained in:
仲么了
2023-08-29 16:14:09 +08:00
parent 7c79eddc05
commit 38b827af46
23 changed files with 330 additions and 144 deletions

View File

@@ -17,6 +17,7 @@
@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':''}">
<view class="term-list-bottom">
@@ -30,7 +31,7 @@
</view>
</view>
</uni-card>
<Cn-empty v-if="store.empty" style="padding-top: 200px"></Cn-empty>
<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>
</view>
</view>
@@ -48,10 +49,11 @@ export default {
}
},
methods: {
init() {
init(engineeringId) {
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
this.store = this.DataSource('/cs-device-boot/project/queryProject')
this.store.params.searchValue = ''
this.store.params.engineeringId = engineeringId || ''
this.store.reload()
},
back() {
@@ -84,8 +86,8 @@ export default {
})
},
},
onLoad() {
this.init()
onLoad({engineeringId}) {
this.init(engineeringId)
},
}
</script>