|
@@ -39,12 +39,12 @@ export default defineComponent({
|
|
|
subjects: [] as any,
|
|
|
actionSorts: [
|
|
|
{
|
|
|
- text: '按天数',
|
|
|
+ name: '按天数',
|
|
|
value: 'PRACTICE_DAY',
|
|
|
color: '#f67146'
|
|
|
},
|
|
|
{
|
|
|
- text: '按时长',
|
|
|
+ name: '按时长',
|
|
|
value: 'PRACTICE_TIMES',
|
|
|
color: '#333'
|
|
|
}
|
|
@@ -116,7 +116,7 @@ export default defineComponent({
|
|
|
|
|
|
const checkSort = (val: any) => {
|
|
|
forms.sortType = val.value
|
|
|
- forms.sortTypeName = val.text
|
|
|
+ forms.sortTypeName = val.name
|
|
|
state.actionSorts.forEach((element) => {
|
|
|
if (element.value == val.value) {
|
|
|
element.color = '#f67146'
|
|
@@ -124,6 +124,7 @@ export default defineComponent({
|
|
|
element.color = '#333'
|
|
|
}
|
|
|
})
|
|
|
+ state.showPopoverSort = false
|
|
|
refreshing.value = true
|
|
|
getList()
|
|
|
}
|
|
@@ -207,75 +208,42 @@ export default defineComponent({
|
|
|
getList()
|
|
|
}}
|
|
|
></OSearch>
|
|
|
- <div class={styles.chioseWrap}>
|
|
|
+ <div class={'searchGroup'}>
|
|
|
<div
|
|
|
- class={styles.searchBandWrap}
|
|
|
- style={{ padding: '12px 8px', background: '#F8F8F8' }}
|
|
|
+ class={['searchItem', state.showPopoverTime ? 'searchItem-active' : '']}
|
|
|
+ onClick={() => {
|
|
|
+ state.showPopoverTime = true
|
|
|
+ }}
|
|
|
>
|
|
|
- <div
|
|
|
- class={styles.searchBand}
|
|
|
- onClick={() => {
|
|
|
- state.showPopoverTime = true
|
|
|
- }}
|
|
|
- >
|
|
|
- <p>{forms.practiceMonthName}</p>
|
|
|
-
|
|
|
- <Icon name={state.showPopoverTime ? 'arrow-up' : 'arrow-down'} />
|
|
|
- </div>
|
|
|
+ <span>{forms.practiceMonthName}</span>
|
|
|
+ <i class="arrow"></i>
|
|
|
</div>
|
|
|
-
|
|
|
<div
|
|
|
- class={styles.searchBandWrap}
|
|
|
- style={{ padding: '12px 8px', background: '#F8F8F8' }}
|
|
|
+ class={['searchItem', state.showPopoverOrchestra ? 'searchItem-active' : '']}
|
|
|
+ onClick={() => {
|
|
|
+ state.showPopoverOrchestra = true
|
|
|
+ }}
|
|
|
>
|
|
|
- <div
|
|
|
- class={styles.searchBand}
|
|
|
- onClick={() => {
|
|
|
- state.showPopoverOrchestra = true
|
|
|
- }}
|
|
|
- >
|
|
|
- <p> {forms.orchestraName}</p>
|
|
|
-
|
|
|
- <Icon name={state.showPopoverOrchestra ? 'arrow-up' : 'arrow-down'} />
|
|
|
- </div>
|
|
|
+ <span>{forms.orchestraName}</span>
|
|
|
+ <i class="arrow"></i>
|
|
|
</div>
|
|
|
<div
|
|
|
- class={styles.searchBandWrap}
|
|
|
- style={{ padding: '12px 6px', background: '#F8F8F8' }}
|
|
|
+ class={['searchItem', state.showPopoverSubject ? 'searchItem-active' : '']}
|
|
|
+ onClick={() => {
|
|
|
+ state.showPopoverSubject = true
|
|
|
+ }}
|
|
|
>
|
|
|
- <div
|
|
|
- class={styles.searchBand}
|
|
|
- onClick={() => {
|
|
|
- state.showPopoverSubject = true
|
|
|
- }}
|
|
|
- >
|
|
|
- <p>{forms.subjectName}</p>
|
|
|
-
|
|
|
- <Icon name={state.showPopoverSubject ? 'arrow-up' : 'arrow-down'} />
|
|
|
- </div>
|
|
|
+ <span>{forms.subjectName}</span>
|
|
|
+ <i class="arrow"></i>
|
|
|
</div>
|
|
|
-
|
|
|
<div
|
|
|
- class={styles.searchBandWrap}
|
|
|
- style={{ padding: '12px 6px', background: '#F8F8F8' }}
|
|
|
+ class={['searchItem', state.showPopoverSort ? 'searchItem-active' : '']}
|
|
|
+ onClick={() => {
|
|
|
+ state.showPopoverSort = true
|
|
|
+ }}
|
|
|
>
|
|
|
- <Popover
|
|
|
- v-model:show={state.showPopoverSort}
|
|
|
- actions={state.actionSorts}
|
|
|
- showArrow={false}
|
|
|
- placement="bottom-end"
|
|
|
- offset={[0, 12]}
|
|
|
- onSelect={checkSort}
|
|
|
- >
|
|
|
- {{
|
|
|
- reference: () => (
|
|
|
- <div class={styles.searchBand}>
|
|
|
- <p> {forms.sortTypeName}</p>
|
|
|
- <Icon name={state.showPopoverSort ? 'arrow-up' : 'arrow-down'} />
|
|
|
- </div>
|
|
|
- )
|
|
|
- }}
|
|
|
- </Popover>
|
|
|
+ <span>{forms.sortTypeName}</span>
|
|
|
+ <i class="arrow"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -290,6 +258,9 @@ export default defineComponent({
|
|
|
loading-text=" "
|
|
|
// v-model:loading={loading.value}
|
|
|
finished={finished.value}
|
|
|
+ style={{
|
|
|
+ paddingTop: '12px'
|
|
|
+ }}
|
|
|
finished-text="没有更多了"
|
|
|
onLoad={getList}
|
|
|
>
|
|
@@ -321,12 +292,12 @@ export default defineComponent({
|
|
|
/>
|
|
|
</Popup>
|
|
|
|
|
|
- {/* <ActionSheet
|
|
|
- v-model:show={state.showPopoverOrchestra}
|
|
|
- title="选择乐团"
|
|
|
- actions={state.actions}
|
|
|
- onSelect={checkOrchestra}
|
|
|
- ></ActionSheet> */}
|
|
|
+ <ActionSheet
|
|
|
+ v-model:show={state.showPopoverSort}
|
|
|
+ actions={state.actionSorts}
|
|
|
+ onSelect={checkSort}
|
|
|
+ cancelText="取消"
|
|
|
+ ></ActionSheet>
|
|
|
<Popup
|
|
|
v-model:show={state.showPopoverOrchestra}
|
|
|
position="bottom"
|