huangbin 4 سال پیش
والد
کامیت
61880fb00e

+ 3 - 0
src/services/socket/quota/adapter/index.ts

@@ -158,6 +158,9 @@ export function parseReceivePush(quotationData: any) {
                         const last = itemQuote.last = handleDeimalplace('last')
                         if (last < itemQuote.lowest) {
                             itemQuote.lowest = handleDeimalplace('last')
+                        } else if (itemQuote.lowest === 0) {
+                            // 处理成交的时候,最低价为的情况,需要把最新价赋值给最低价
+                            itemQuote.lowest = handleDeimalplace('last')
                         } else if (last > itemQuote.highest) {
                             itemQuote.highest = handleDeimalplace('last')
                         }

+ 2 - 2
src/views/market/spot_trade/components/designate-buy/index.vue

@@ -69,8 +69,8 @@ export default defineComponent({
     },
     components: {
         contextMenu,
-        warehouse_receipt_trade_blocs_delisting: defineAsyncComponent(() => import('../delisting/index.vue')),
-        warehouse_receipt_trade_blocs_bargain_delisting: defineAsyncComponent(() => import('../delisting/index.vue')),
+        warehouse_receipt_trade_blocs_delisting: defineAsyncComponent(() => import('../designate-delisting/index.vue')),
+        warehouse_receipt_trade_blocs_bargain_delisting: defineAsyncComponent(() => import('../designate-delisting/index.vue')),
         warehouse_receipt_trade_blocs_detail: defineAsyncComponent(() => import('@/views/market/spot_trade/components/detail/index.vue')),
     },
     setup() {

+ 3 - 11
src/views/market/spot_trade/components/designate-sell/index.vue

@@ -60,19 +60,11 @@ export default defineComponent({
     name: 'warehouse_receipt_trade_blocs_sell',
     components: {
         contextMenu,
-        warehouse_receipt_trade_blocs_delisting: defineAsyncComponent(() => import('../delisting/index.vue')),
-        warehouse_receipt_trade_blocs_bargain_delisting: defineAsyncComponent(() => import('../delisting/index.vue')),
+        warehouse_receipt_trade_blocs_delisting: defineAsyncComponent(() => import('../designate-delisting/index.vue')),
+        warehouse_receipt_trade_blocs_bargain_delisting: defineAsyncComponent(() => import('../designate-delisting/index.vue')),
         warehouse_receipt_trade_blocs_detail: defineAsyncComponent(() => import('@/views/market/spot_trade/components/detail/index.vue')),
     },
-    isWR: {
-        type: Number,
-        default: 1, // 1 => 仓单贸易; 0 => 仓单预售
-    },
-    IsSpecified: {
-        // IsSpecified = 1 为贸易圈;IsSpecified = 2 为指定挂牌
-        type: Number,
-        default: 1,
-    },
+
     setup() {
         const isBottom = getShowBottomValue();
         // 表头