1 |
- "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(t){e.index.navigateTo({url:"/pages_doctor/doctorList?keyword="+t})},toSearchList(){this.searchKey!=""&&this.$addHisSearch(this.searchKey),e.index.navigateTo({url:"/pages_doctor/doctorList?keyword="+this.searchKey})}}};function o(t,n,d,g,s,a){return{a:s.statusBarHeight,b:e.o(r=>a.back()),c:e.o(r=>a.toSearchList(s.searchKey)),d:s.searchKey,e:e.o(r=>s.searchKey=r.detail.value),f:e.o((...r)=>a.toSearchList&&a.toSearchList(...r)),g:e.o(r=>a.clearHistory()),h:e.f(s.searchHistory,(r,c,u)=>({a:e.t(r),b:e.o(_=>a.goSearchList(r),c),c}))}}var h=e._export_sfc(i,[["render",o],["__scopeId","data-v-f6a74fa4"],["__file","D:/work/his_user_app/pages_index/search.vue"]]);wx.createPage(h);
|