|
@@ -97,24 +97,30 @@ service.onReady().then(() => {
|
|
|
marketRun()
|
|
marketRun()
|
|
|
|
|
|
|
|
// 获取游客商品列表
|
|
// 获取游客商品列表
|
|
|
- queryTouristGoods().then((res) => {
|
|
|
|
|
- futuresStore.goodsList = res.data
|
|
|
|
|
- subscribeData.value = res.data.map((e) => e.goodscode)
|
|
|
|
|
-
|
|
|
|
|
- // 获取游客商品盘面
|
|
|
|
|
- queryTouristQuoteDay({
|
|
|
|
|
- data: {
|
|
|
|
|
- goodsCodes: subscribeData.value.join(',')
|
|
|
|
|
- }
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- subscribeData.value.forEach((goodscode) => {
|
|
|
|
|
- const item = res.data.find((e) => e.goodscode === goodscode)
|
|
|
|
|
- futuresStore.updateQuotation(item ?? { goodscode })
|
|
|
|
|
|
|
+ queryTouristGoods({
|
|
|
|
|
+ data: {
|
|
|
|
|
+ trademodes: '52'
|
|
|
|
|
+ }
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ if (res.data.length) {
|
|
|
|
|
+ futuresStore.goodsList = res.data
|
|
|
|
|
+ subscribeData.value = res.data.map((e) => e.goodscode)
|
|
|
|
|
+
|
|
|
|
|
+ // 获取游客商品盘面
|
|
|
|
|
+ queryTouristQuoteDay({
|
|
|
|
|
+ data: {
|
|
|
|
|
+ goodsCodes: subscribeData.value.join(',')
|
|
|
|
|
+ }
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ subscribeData.value.forEach((goodscode) => {
|
|
|
|
|
+ const item = res.data.find((e) => e.goodscode === goodscode)
|
|
|
|
|
+ futuresStore.updateQuotation(item ?? { goodscode })
|
|
|
|
|
+ })
|
|
|
|
|
+ subscribe.start(...subscribeData.value)
|
|
|
|
|
+
|
|
|
|
|
+ nextTick(() => autoHeight())
|
|
|
})
|
|
})
|
|
|
- subscribe.start(...subscribeData.value)
|
|
|
|
|
-
|
|
|
|
|
- nextTick(() => autoHeight())
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
// 校验服务器时间
|
|
// 校验服务器时间
|