浏览代码

修改样式

wangchao 3 年之前
父节点
当前提交
08e9c1e732
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      pages/user/contractLook/inventoryCost.vue

+ 7 - 2
pages/user/contractLook/inventoryCost.vue

@@ -13,8 +13,8 @@
 					<view class="font">价值(元)</view>
 				</view>
 				<view class="goods-table-content" v-for="(item1,index1) in item.goodList">
-					<view class="font">{{item1.goodsName}}</view>
-					<view class="font">{{item1.storage}}</view>
+					<view class="font" :class="item.goodList.length>1&&index1==item.goodList.length-1?'active':''">{{item1.goodsName}}</view>
+					<view class="font" :class="item.goodList.length>1&&index1==item.goodList.length-1?'active':''">{{item1.storage}}</view>
 					<view class="font">{{item1.cost}}</view>
 				</view>
 			</view>
@@ -175,10 +175,15 @@
 </script>
 
 <style scoped lang="scss">
+	.active{
+		font-size: 32rpx;
+		font-weight: 700;
+	}
 	.modal-row {
 		display: flex;
 		justify-content: space-between;
 		padding: 10rpx 60rpx;
+		margin-top: 20rpx;
 	}
 
 	.u-radio-group {