| | |
| | | <template> |
| | | <view> |
| | | <!-- 顶部 --> |
| | | <headNav idIndex="0" text="中国医学人物知识库" /> |
| | | <headNav idIndex="0" text="中国历代医学人物知识库" /> |
| | | <!-- 搜索 --> |
| | | <view class="flex flex-center Search"> |
| | | <!-- <luanqing-search class="search_bar" @onSearch="onSearch"></luanqing-search> --> |
| | |
| | | label: "时期", |
| | | name: "dynasty", |
| | | value: "" |
| | | }, |
| | | } |
| | | // { |
| | | // type: "select", |
| | | // label: "机构", |
| | |
| | | tagId: "", |
| | | official: "", |
| | | genderType: "" |
| | | } |
| | | }, |
| | | aSearchData: "" |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | }, |
| | | // 高级搜索 |
| | | async onSubmit(val) { |
| | | this.keywords = ""; |
| | | this.hotAciveIndex = ""; |
| | | this.aSearchData = val; |
| | | this.profession.index = Number(val.tagId); |
| | | this.profession.id = Number(val.tagId); |
| | | const currentDynasty = this.dynasty.list.find( |
| | |
| | | // 基础搜索 |
| | | async onSearch(val, index) { |
| | | this.keywords = val.text; |
| | | this.aSearchData = ""; |
| | | if (index !== undefined) { |
| | | this.keywords = ""; |
| | | this.hotAciveIndex = index; |
| | |
| | | CurrentChange(val) { |
| | | if (this.CurrentPage != val) { |
| | | this.CurrentPage = val; |
| | | this.onSearch(""); |
| | | if (this.isAdvancedSearch) { |
| | | this.onSubmit(this.aSearchData); |
| | | } else { |
| | | this.onSearch({ text: this.keywords }); |
| | | } |
| | | } |
| | | }, |
| | | // 上一页 |
| | | PrevClick(val) { |
| | | if (this.CurrentPage != val) { |
| | | this.CurrentPage = val; |
| | | this.onSearch(""); |
| | | this.onSearch({ text: this.keywords }); |
| | | } |
| | | }, |
| | | // 下一页 |
| | | NextClick(val) { |
| | | if (this.CurrentPage != val) { |
| | | this.CurrentPage = val; |
| | | this.onSearch(""); |
| | | this.onSearch({ text: this.keywords }); |
| | | } |
| | | } |
| | | } |