| | |
| | | @load="onLoad" |
| | | v-if="(lists && lists.length > 0) || !finished" |
| | | > |
| | | <van-cell v-for="item in lists" :key="item.id"> |
| | | <van-cell v-for="item in lists" :key="item.id" @click="toDetails(item)"> |
| | | <div class="search_item"> |
| | | <div class="search_item_left"> |
| | | <div class="search_item_left_name">{{ item.name }}</div> |
| | |
| | | // 提交搜索 |
| | | this.init(); |
| | | this.onLoad(); |
| | | } |
| | | }, |
| | | // 点击进入详情 |
| | | toDetails(item) { |
| | | const obj = { |
| | | pid: item.code || "", |
| | | type: item.stock_type || "" |
| | | }; |
| | | window.localStorage.setItem("kLine", JSON.stringify(obj)); |
| | | |
| | | this.$router.push({ |
| | | path: "/kline", |
| | | query: { |
| | | code: item.code, |
| | | type: item.stock_type |
| | | } |
| | | }); |
| | | }, |
| | | } |
| | | }; |
| | | </script> |