src/page/user/Warehouse/data.list.vue
@@ -24,7 +24,12 @@ > <div class="title-box"> <div class="span">{{ item.stockName }}</div> <div class="states">{{ item.orderDirection }}</div> <div class="states" :class="item.orderDirection === '买跌' ? 'states-red' : ''" > {{ item.orderDirection }} </div> </div> <van-row> <van-col span="12"> @@ -308,6 +313,11 @@ flex-shrink: 0; font-weight: 900; } .states-red { background: rgba(208, 75, 100, 0.15); color: rgb(208, 75, 100); } } .sport-content-title2 {