queenwuli
2021-01-19 a3a48da30bdea132d2bfbb47fa2ccf83f1937c45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<template>
    <!-- 项目-->
    <view>
        <view class="list">
            <view class="list-item">
                <text>商品编码</text>
                <text>{{productInfo.goodsNo}}</text>
            </view>
            <view class="list-item">
                <text>商品分类</text>
                <text>{{productInfo.goodsType}}</text>
            </view>
            <view class="list-item">
                <text>每人限购次数</text>
                <text>{{productInfo.limitBuyCnt || '-'}}</text>
            </view>
            <view class="list-item">
                <text>最大销售数量</text>
                <text>{{productInfo.maxSaleCnt || '-'}}</text>
            </view>
        </view>
        <view class="list">
            <view class="title">
                <text>配料表</text>
            </view>
            <view class="list-item" v-for="item in productInfo.assembleProj">
                <text>{{item.goodsName}}</text>
                <text>{{item.volume}}{{item.measure}}</text>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default{
        props:{
            productInfo: {
                default: {}
            }
        }
    }
</script>
 
<style>
    .list{
        background: #FFFFFF;
        padding: 0 10px;
        font-size: 14px;
    }
    .list .title{
        text-align: center;
        padding: 20px 0 8px;
        font-size: 16px;
    }
    .list-item{
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #EDEAF4;
        padding: 12px 0;
    }
</style>