| | |
| | | v-for="(item, index) in dataList" |
| | | :key="index" |
| | | > |
| | | <div class="title-box"> |
| | | <div class="span">{{ item.stockName }}</div> |
| | | <div |
| | | class="states" |
| | | :class="item.orderDirection === '买跌' ? 'states-red' : ''" |
| | | > |
| | | {{ $t(item.orderDirection) }} |
| | | <div @click="pushRouter(item)"> |
| | | <div class="title-box"> |
| | | <div class="span">{{ item.stockName }}</div> |
| | | <div |
| | | class="states" |
| | | :class="item.orderDirection === '买跌' ? 'states-red' : ''" |
| | | > |
| | | {{ $t(item.orderDirection) }} |
| | | </div> |
| | | </div> |
| | | {{ item.stockCode }} |
| | | </div> |
| | | <van-row> |
| | | <van-col span="8"> |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | pushRouter(item) { |
| | | const obj = { |
| | | pid: item.stockCode || "", |
| | | type: item.stockGid || "", |
| | | }; |
| | | window.localStorage.setItem("kLine", JSON.stringify(obj)); |
| | | // return; |
| | | var codes = item.stockCode; |
| | | var names = item.stockName; |
| | | |
| | | this.$router.push({ |
| | | path: "/kline", |
| | | query: { |
| | | name: names, |
| | | code: codes, |
| | | if_us: "", |
| | | if_zhishu: 0, |
| | | sok: "", |
| | | type: item.stockGid, |
| | | }, |
| | | }); |
| | | }, |
| | | onLoad() { |
| | | this.pageNum++; |
| | | this.loading = true; |
| | |
| | | this.loading = false; |
| | | if (res.status === 0) { |
| | | this.dataList = res.data.list; |
| | | if (res.data.total <= this.dataList.length) { |
| | | this.finished = true; |
| | | } |
| | | // if (res.data.total <= this.dataList.length) { |
| | | this.finished = true; |
| | | // } |
| | | } else { |
| | | this.loading = false; |
| | | this.finished = true; |