Handy_Cao 1 年間 前
コミット
e4ff150bf3
1 ファイル変更3 行追加2 行削除
  1. 3 2
      src/packages/mobile/views/pricing/trade/Index.vue

+ 3 - 2
src/packages/mobile/views/pricing/trade/Index.vue

@@ -162,7 +162,7 @@ import { BuyOrSell, getBuyOrSellList, BuildType, getPricemode2List, PriceMode }
 import { useComponent } from '@/hooks/component'
 import { fullloading, dialog } from '@/utils/vant'
 import Stepper from '@mobile/components/base/stepper/index.vue'
-import { formatDecimal, handleNumberValue } from '@/filters'
+import { formatDecimal, handleNumberValue, handleRequestBigNumber } from '@/filters'
 
 const { router, getQueryString, getQueryStringToNumber } = useNavigation()
 const { global: { t } } = i18n
@@ -188,9 +188,10 @@ const positionStore = usePositionStore()
 // 持仓汇总
 const position = shallowRef<Model.TradePositionRsp[]>([]) 
 
+// 点击返回
 const itemBack = (isPosition: number, buyorsell: BuyOrSell, tradeId: string) => {
-    console.log(isPosition, buyorsell, tradeId)
     formData.BuyOrSell = buyorsell
+    if (isPosition === 2) { formData.RelatedID = handleRequestBigNumber(tradeId)}
 }
 
 const { componentRef, componentId, openComponent, closeComponent } = useComponent()