|
@@ -15,21 +15,21 @@
|
|
|
<PullRefresh class="home-main__container" v-model="refreshing" @refresh="onRefresh">
|
|
<PullRefresh class="home-main__container" v-model="refreshing" @refresh="onRefresh">
|
|
|
<app-block class="home-main__iconbar bg">
|
|
<app-block class="home-main__iconbar bg">
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li @click="routerTo('home-presale')">
|
|
|
|
|
|
|
+ <li @click="switchTab(1)">
|
|
|
<img src="@mobile/assets/icons/cpjs.svg" />
|
|
<img src="@mobile/assets/icons/cpjs.svg" />
|
|
|
<span>预售竞拍</span>
|
|
<span>预售竞拍</span>
|
|
|
</li>
|
|
</li>
|
|
|
- <li @click="routerTo('home-transfer')">
|
|
|
|
|
|
|
+ <li @click="switchTab(2)">
|
|
|
<img src="@mobile/assets/icons/cpjg.svg" />
|
|
<img src="@mobile/assets/icons/cpjg.svg" />
|
|
|
<span>订单转让</span>
|
|
<span>订单转让</span>
|
|
|
</li>
|
|
</li>
|
|
|
- <li @click="routerTo('home-swap')">
|
|
|
|
|
|
|
+ <li @click="switchTab(3)">
|
|
|
<img src="@mobile/assets/icons/ptgz.svg" />
|
|
<img src="@mobile/assets/icons/ptgz.svg" />
|
|
|
<span>掉期贸易</span>
|
|
<span>掉期贸易</span>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li @click="routerTo('credit-signin')">
|
|
|
|
|
|
|
+ <li>
|
|
|
<img src="@mobile/assets/icons/wdrw.svg" />
|
|
<img src="@mobile/assets/icons/wdrw.svg" />
|
|
|
<span>订单挂牌</span>
|
|
<span>订单挂牌</span>
|
|
|
</li>
|
|
</li>
|
|
@@ -37,7 +37,7 @@
|
|
|
<img src="@mobile/assets/icons/htzr.svg" />
|
|
<img src="@mobile/assets/icons/htzr.svg" />
|
|
|
<span>现货贸易</span>
|
|
<span>现货贸易</span>
|
|
|
</li>
|
|
</li>
|
|
|
- <li @click="routerTo('rules-ccwl')">
|
|
|
|
|
|
|
+ <li @click="routerTo('market-list')">
|
|
|
<img src="@mobile/assets/icons/ccwl.svg" />
|
|
<img src="@mobile/assets/icons/ccwl.svg" />
|
|
|
<span>参考行情</span>
|
|
<span>参考行情</span>
|
|
|
</li>
|
|
</li>
|
|
@@ -133,7 +133,7 @@ import { useFuturesList } from "@/business/market";
|
|
|
import { queryMarketRun } from "@/services/api/goods";
|
|
import { queryMarketRun } from "@/services/api/goods";
|
|
|
import { queryThjSpotQuoteConfig } from "@/services/api/market";
|
|
import { queryThjSpotQuoteConfig } from "@/services/api/market";
|
|
|
|
|
|
|
|
-const { router, routerTo } = useNavigation();
|
|
|
|
|
|
|
+const { router, routerTo, setGlobalUrlParams } = useNavigation();
|
|
|
const { dataList } = useFuturesList();
|
|
const { dataList } = useFuturesList();
|
|
|
const refreshing = shallowRef(false); // 是否处于加载中状态
|
|
const refreshing = shallowRef(false); // 是否处于加载中状态
|
|
|
const topBanners = shallowRef<Model.ImageConfigsRsp[]>([]); // 轮播图列表
|
|
const topBanners = shallowRef<Model.ImageConfigsRsp[]>([]); // 轮播图列表
|
|
@@ -146,6 +146,22 @@ const marketRun = shallowRef<Partial<Model.MarketRunRsp>>({}); // 市场
|
|
|
// 当前现货行情
|
|
// 当前现货行情
|
|
|
const currentSpotQuote = computed(() => spotQuoteList.value[spotQuoteIndex.value])
|
|
const currentSpotQuote = computed(() => spotQuoteList.value[spotQuoteIndex.value])
|
|
|
|
|
|
|
|
|
|
+// 跳转导航页面
|
|
|
|
|
+const switchTab = (tabIndex: number) => {
|
|
|
|
|
+ setGlobalUrlParams({ tabIndex })
|
|
|
|
|
+ switch (tabIndex) {
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ routerTo('home-presale', true)
|
|
|
|
|
+ break
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ routerTo('home-transfer', true)
|
|
|
|
|
+ break
|
|
|
|
|
+ case 3:
|
|
|
|
|
+ routerTo('home-swap', true)
|
|
|
|
|
+ break
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 打开新闻详情
|
|
// 打开新闻详情
|
|
|
const openNewsDetails = (id: number) => {
|
|
const openNewsDetails = (id: number) => {
|
|
|
if (id) {
|
|
if (id) {
|