123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <template>
- <!-- 商品信息 -->
- <view class="product_card">
- <view class="item_product" v-for="(item,index) in list" :key="index">
- <view>
- <view class="names_goods">{{item.physic_name}}</view>
- <view class="tag_goods_card">
- <u-tag size="mini" :text="item.physic_type_desc" plain plainFill shape="circle"></u-tag>
- </view>
- <view class="title_goods">包装规格:{{item.pkg_spec_crit}}</view>
- <view class="title_goods">生产厂家:<span>{{item.ent_name}}</span></view>
- </view>
- <!-- <image class="goods_image" :src="item.medicinePicture" mode=""></image> -->
- <view style="position: absolute;top: 0;right: 0;">
- <view class="card_allot" v-if="item.isAssignment"></view>
- <view class="card_title_allot">已分配</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: 'x-productList',
- props: {
- list: {
- type: Array,
- default () {
- return []
- }
- },
- },
- data() {
- return {
- }
- }
- }
- </script>
- <style lang="scss">
- .product_card {
- border-radius: 10rpx;
- overflow: hidden;
- background-color: #fff;
- }
- .item_product {
- position: relative;
- display: flex;
- overflow: hidden;
- padding: 30rpx 20rpx 20rpx 20rpx;
- border-bottom: 1px solid #f4f4f5;
- // border-top: 1px solid #f4f4f5;
- }
- .card_allot {
- position: absolute;
- top: 0;
- right: 0;
- border-top: 90rpx solid #67C23A;
- border-left: 90rpx solid transparent;
- }
- .card_title_allot {
- color: #fff;
- width: 80rpx;
- text-align: center;
- transform: rotate(45deg);
- position: absolute;
- right: -10rpx;
- top: 16rpx;
- font-size: 22rpx;
- }
- // .item_product:last-child {
- // border-bottom: unset;
- // }
- .goods_image {
- flex: none;
- width: 180rpx;
- height: 150rpx;
- border-radius: 10rpx;
- }
- .names_goods {
- font-size: 34rpx;
- font-weight: bold;
- }
- .tag_goods_card {
- display: flex;
- padding-top: 10rpx;
- }
- .title_goods {
- color: #606266;
- font-size: 30rpx;
- padding-top: 10rpx;
- }
- </style>
|