Handy_Cao 1 năm trước cách đây
mục cha
commit
ee881a283a

+ 1 - 1
src/packages/mobile/views/order/position/components/pricing/detail2/Index.vue

@@ -56,7 +56,7 @@
                                 </li>
                                 <li>
                                     <span>{{ $t('position.goods.holddetail.riskRate') }}</span>
-                                    <span :class="item.tHDetailEx.depositRate <= item.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">
+                                    <span :class="item.tHDetailEx.depositRate >= item.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">
                                         {{ parsePercent(item.tHDetailEx.riskRate) }}
                                     </span>
                                 </li>

+ 20 - 4
src/packages/mobile/views/pricing/trade/Index.vue

@@ -160,6 +160,7 @@ import { BuyOrSell, getBuyOrSellList, BuildType, getPricemode2List, PriceMode }
 import { useComponent } from '@/hooks/component'
 import { fullloading, dialog } from '@/utils/vant'
 import { formatDecimal, handleNumberValue, handleRequestBigNumber } from '@/filters'
+import service from '@/services'
 import Stepper from '@mobile/components/base/stepper/index.vue'
 import eventBus from '@/services/bus'
 
@@ -189,6 +190,7 @@ const fromTrade = true
 const positionStore = usePositionStore()
 // 持仓汇总
 const position = shallowRef<Model.TradePositionRsp[]>([]) 
+const oem = service.getConfig('oem')
 
 // 点击返回
 const itemBack = (isPosition: number, buyorsell: BuyOrSell, tradeId: string) => {
@@ -200,8 +202,23 @@ const { componentRef, componentId, openComponent, closeComponent } = useComponen
 
 const active = shallowRef('position')
 
-const components = [
+const components = oem === "TCE" ? 
+    [{
+        name: 'cancel',
+        title: t('quote.pricing.ordercancel'),
+        component: defineAsyncComponent(() => import('../trade/components/cancel/Index.vue')),
+    },
+    {
+        name: 'position',
+        title: t('quote.pricing.position'),
+        component: defineAsyncComponent(() => import('@mobile/views/order/position/components/pricing/list/Index.vue')),
+    },
     {
+        name: 'holdlb2',
+        title: t('pcroute.bottom.bottom_pricing_detail2'),
+        component: defineAsyncComponent(() => import('../trade/holdlb2/Index.vue')),
+    }] : 
+    [{
         name: 'cancel',
         title: t('quote.pricing.ordercancel'),
         component: defineAsyncComponent(() => import('../trade/components/cancel/Index.vue')),
@@ -220,9 +237,8 @@ const components = [
         name: 'holdlb2',
         title: t('pcroute.bottom.bottom_pricing_detail2'),
         component: defineAsyncComponent(() => import('../trade/holdlb2/Index.vue')),
-    }
-]
-
+    }]
+    
 const componentMap = new Map<string, unknown>([
     ['detail', defineAsyncComponent(() => import('./components/detail/Index.vue'))],
 ])

+ 1 - 1
src/packages/mobile/views/pricing/trade/holdlb2/Index.vue

@@ -51,7 +51,7 @@
                         </li>
                         <li>
                             <span>{{ $t('position.goods.holddetail.riskRate') }}</span>
-                            <span :class="item.tHDetailEx.depositRate <= item.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">
+                            <span :class="item.tHDetailEx.depositRate >= item.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">
                                 {{ parsePercent(item.tHDetailEx.riskRate) }}
                             </span>
                         </li>

+ 1 - 1
src/packages/pc/views/footer/pricing/detail2/index.vue

@@ -35,7 +35,7 @@
         </template>
          <!-- 风险率 -->
          <template #riskRate="{ row }">
-            <span :class="row.tHDetailEx.depositRate <= row.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">
+            <span :class="row.tHDetailEx.depositRate >= row.tHDetailEx.promptDepositRate ? 'g-price-up' : ''">
                 {{ parsePercent(row.tHDetailEx.riskRate) }}
             </span>
         </template>