|
@@ -23,11 +23,18 @@
|
|
<div class="bd1 flex-col">
|
|
<div class="bd1 flex-col">
|
|
<div class="box2 l-f l-flex-c l-flex-j-a">
|
|
<div class="box2 l-f l-flex-c l-flex-j-a">
|
|
|
|
|
|
- <div class="TextGroup flex-col">
|
|
|
|
|
|
+ <!-- <div class="TextGroup flex-col">
|
|
<div class="main6 flex-col justify-between align-center">
|
|
<div class="main6 flex-col justify-between align-center">
|
|
<span class="word5">{{ twoNumber(currentPrice) }}</span>
|
|
<span class="word5">{{ twoNumber(currentPrice) }}</span>
|
|
<span class="word6">当前股价¥</span>
|
|
<span class="word6">当前股价¥</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
|
|
+ <div class="TextGroup flex-col">
|
|
|
|
+ <div class="main6 flex-col justify-between align-center">
|
|
|
|
+ <span class="word5">{{ stockNum }}</span>
|
|
|
|
+ <span class="word6">持仓份额</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="TextGroup flex-col">
|
|
<div class="TextGroup flex-col">
|
|
@@ -158,6 +165,7 @@ const error = ref(false);
|
|
const loading = ref(false)
|
|
const loading = ref(false)
|
|
const finished = ref(false)
|
|
const finished = ref(false)
|
|
const hisLength = ref(0)
|
|
const hisLength = ref(0)
|
|
|
|
+const stockNum = ref(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -172,7 +180,7 @@ function twoNumber(val) {
|
|
|
|
|
|
// 滚动加载
|
|
// 滚动加载
|
|
const onLoad = async () => {
|
|
const onLoad = async () => {
|
|
- console.log("finished >>>", finished.value);
|
|
|
|
|
|
+ // console.log("finished >>>", finished.value);
|
|
if (!finished.value) {
|
|
if (!finished.value) {
|
|
loading.value = true
|
|
loading.value = true
|
|
searchParams.current = searchParams.current + 1;
|
|
searchParams.current = searchParams.current + 1;
|
|
@@ -236,6 +244,7 @@ const getMyStockFunc = async () => {
|
|
currentPrice.value = data.data.currentPrice
|
|
currentPrice.value = data.data.currentPrice
|
|
dailyDiff.value = data.data.dailyDiff
|
|
dailyDiff.value = data.data.dailyDiff
|
|
totalDiff.value = data.data.totalDiff
|
|
totalDiff.value = data.data.totalDiff
|
|
|
|
+ stockNum.value = data.data.stockNum
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|