Handy_Cao 1 سال پیش
والد
کامیت
6992fdaf8d

+ 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) => {