Handy_Cao 1 년 전
부모
커밋
6992fdaf8d
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 2
      src/packages/pc/views/market/trade/pricing/list/listing/index.vue
  2. 2 1
      src/packages/pc/views/market/trade/pricing/v2/index.vue

+ 3 - 2
src/packages/pc/views/market/trade/pricing/list/listing/index.vue

@@ -352,13 +352,14 @@ const getOrderPrice = () => {
     }
 }
 
-watch([selectedGoodsId, buyOrSell, orderPriceType], () => {
+watch([selectedGoodsId, orderPriceType], () => {
+    console.log(buyOrSell)
     // 商城模式只有买方向
     if (selectedGoods.value?.trademode === 53) {
         formData.BuyOrSell = BuyOrSell.Buy
         formData.PriceMode = PriceMode.Market
     }
-    formData.BuyOrSell = buyOrSell
+    // formData.BuyOrSell = buyOrSell
     formData.OrderPrice = getOrderPrice()
 })
 

+ 2 - 1
src/packages/pc/views/market/trade/pricing/v2/index.vue

@@ -62,7 +62,8 @@ const onRowClick = (row: Model.GoodsQuote) => {
 }
 
 const onBuyOrSellClick = (buyOrSell: number) => {
-    futuresStore.buyOrSell = buyOrSell
+    console.log(buyOrSell)
+    // futuresStore.buyOrSell = buyOrSell
 }
 
 const openImageViewer = (url?: string) => {