|
@@ -25,6 +25,7 @@ import queryString from 'query-string';
|
|
|
import { useRect } from '@vant/use';
|
|
|
import { nextTick } from 'process';
|
|
|
import iconDefaultCo from './image/icon-default-co.png';
|
|
|
+import { browser } from '@/helpers/utils';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'baseIndex-list',
|
|
@@ -169,7 +170,11 @@ export default defineComponent({
|
|
|
};
|
|
|
|
|
|
return () => (
|
|
|
- <div class={styles.container}>
|
|
|
+ <div
|
|
|
+ class={[
|
|
|
+ styles.container,
|
|
|
+ browser().isTablet ? styles.containerTablet : ''
|
|
|
+ ]}>
|
|
|
{/* <div class={styles.head} style={{ opacity: data.showBook ? 0 : '' }}>
|
|
|
<div class={styles.back} onClick={goback}>
|
|
|
<img src={icon_back} />
|
|
@@ -179,7 +184,7 @@ export default defineComponent({
|
|
|
<img src={icon_back} />
|
|
|
</div>
|
|
|
|
|
|
- <div class={styles.centerSearch}>
|
|
|
+ <div class={[styles.centerSearch]}>
|
|
|
<div id="coai-0">
|
|
|
<MSearch
|
|
|
class={[
|
|
@@ -190,18 +195,6 @@ export default defineComponent({
|
|
|
background="transparent"
|
|
|
clearable={false}
|
|
|
placeholder="请输入关键字"
|
|
|
- // modelValue={forms.keyword}
|
|
|
- // onFocus={() => (data.searchNoticeShow = false)}
|
|
|
- // onBlur={val => {
|
|
|
- // musicForms.keyword = val?.trim() || '';
|
|
|
- // requestAnimationFrame(() => {
|
|
|
- // requestAnimationFrame(() => {
|
|
|
- // if (musicForms.keyword) {
|
|
|
- // data.searchNoticeShow = true;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // });
|
|
|
- // }}
|
|
|
onSearch={val => {
|
|
|
forms.keyword = val;
|
|
|
getList();
|
|
@@ -238,7 +231,7 @@ export default defineComponent({
|
|
|
ref={wrapRef}>
|
|
|
{data.list.map((item, index) => {
|
|
|
return (
|
|
|
- <div class={styles.wrapfirstI}>
|
|
|
+ <div class={[styles.wrapfirstI]}>
|
|
|
<div
|
|
|
ref={(el: any) => (wrapItemRef.value[index] = el)}
|
|
|
class={[
|