首页搜索,暂无数据时显示的页面
This commit is contained in:
@@ -28,17 +28,23 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
<view style="display: flex;flex-direction: column;align-items: center;" v-if="!datas.isSearch&&datas.keywordList.length==0">
|
||||||
|
<image src="/static/index/none.png" style="width: 341rpx;height: 341rpx;" mode=""></image>
|
||||||
|
<text style=";">暂无数据</text>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { selectCourseTitles } from '@/api/index/index.js'
|
import {
|
||||||
|
selectCourseTitles
|
||||||
|
} from '@/api/index/index.js'
|
||||||
import videoList from './videoList.vue'
|
import videoList from './videoList.vue'
|
||||||
import {
|
import {
|
||||||
reactive
|
reactive
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
onShow, onReachBottom
|
onShow,
|
||||||
|
onReachBottom
|
||||||
} from '@dcloudio/uni-app'
|
} from '@dcloudio/uni-app'
|
||||||
let datas = reactive({
|
let datas = reactive({
|
||||||
hotKeywordList: [], //热搜
|
hotKeywordList: [], //热搜
|
||||||
@@ -54,6 +60,7 @@ onShow(() => {
|
|||||||
function posterSuccess() {
|
function posterSuccess() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getList() {
|
function getList() {
|
||||||
if (uni.getStorageSync('moreSearch')) {
|
if (uni.getStorageSync('moreSearch')) {
|
||||||
datas.hotKeywordList = (uni.getStorageSync('moreSearch')).split(',')
|
datas.hotKeywordList = (uni.getStorageSync('moreSearch')).split(',')
|
||||||
@@ -65,6 +72,7 @@ onReachBottom(() => {
|
|||||||
++datas.page
|
++datas.page
|
||||||
doSearch()
|
doSearch()
|
||||||
})
|
})
|
||||||
|
|
||||||
function doSearchs(keyWord) {
|
function doSearchs(keyWord) {
|
||||||
datas.keyword = keyWord
|
datas.keyword = keyWord
|
||||||
doSearch()
|
doSearch()
|
||||||
|
|||||||
BIN
static/index/none.png
Normal file
BIN
static/index/none.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
Reference in New Issue
Block a user