/* packageD/mycomponent/add-goods/add-goods.wxss */ view { box-sizing: border-box; } .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-member_right::before { content: "\e881"; } .add-goods-module { margin-top: 20rpx; padding: 0 28rpx 24rpx; background: #fff; font-size: 12px; } .add-goods-module .cell-title { height: 80rpx; display: flex; align-items: center; justify-content: space-between; } .add-goods-module .cell-title .cell-title-left { display: flex; } .add-goods-module .cell-title .cell-title-left .cube { display: block; padding: 0 8rpx; height: 36rpx; background-color: #f15053; border-radius: 4rpx; color: #fff; margin-right: 8rpx; } .add-goods-module .cell-title .cell-title-right { color: #f15053; } .add-goods-module .add-good-list { background-color: #fafafa; border-radius: 12rpx; display: grid; height: 180rpx; grid-template-columns: repeat(4, 1fr); justify-items: center; align-items: center; } .add-goods-module .add-good-list .good-child { width: 152rpx; height: 152rpx; background-color: #c1c1c1; border-radius: 8rpx; position: relative; overflow: hidden; } .add-goods-module .add-good-list .good-child .add-good-img { display: block; width: 100%; height: 100%; } .add-goods-module .add-good-list .good-child .add-good-price { position: absolute; height: 40rpx; line-height: 40rpx; bottom: 0; left: 0; right: 0; background-color: #000; opacity: 0.6; color: #fff; font-size: 10px; text-align: center; }