"use strict";var e=require("../common/vendor.js");require("../api/common.js");require("../common/request.js");const i={data(){return{searchHistory:[],searchKey:"",statusBarHeight:e.index.getStorageSync("menuInfo").statusBarHeight}},onLoad(){this.searchHistory=this.$getHisSearch()},methods:{clearHistory(){this.$clearHisSearch(),this.searchHistory=this.$getHisSearch()},back(){e.index.navigateBack({delta:1})},goSearchList(s){e.index.navigateTo({url:"/pages_doctor/doctorList?keyword="+s})},toSearchList(){this.searchKey!=""&&this.$addHisSearch(this.searchKey),e.index.navigateTo({url:"/pages_doctor/doctorList?keyword="+this.searchKey})}}};function o(s,n,d,g,a,t){return{a:a.statusBarHeight,b:e.o(r=>t.back()),c:e.o(r=>t.toSearchList(a.searchKey)),d:a.searchKey,e:e.o(r=>a.searchKey=r.detail.value),f:e.o((...r)=>t.toSearchList&&t.toSearchList(...r)),g:e.o(r=>t.clearHistory()),h:e.f(a.searchHistory,(r,c,u)=>({a:e.t(r),b:e.o(_=>t.goSearchList(r),c),c}))}}var h=e._export_sfc(i,[["render",o],["__scopeId","data-v-f6a74fa4"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_index/search.vue"]]);wx.createPage(h);