queenwuli
2020-12-27 cc499362b6eba119792e113796e4da029a70fc6d
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<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.isCourse | formatType}}</text>
            </view>
            <view class="list-item">
                <text>最大使用次数</text>
                <text>{{productInfo.maxUseCnt || '-'}}</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.assembleTaocanProj">
                <text>{{item.goodsName}}</text>
                <text>{{item.volume}}次</text>
            </view>
        </view>
        <view class="list">
            <view class="title">
                <text>套餐产品权益</text>
            </view>
            <view class="list-item" v-for="item in productInfo.assembleTaocanProduct">
                <text>{{item.goodsName}}</text>
                <text>{{item.volume}}次</text>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default{
        props:{
            productInfo: {
                default: {}
            }
        },
        filters:{
            formatType(val){
                if(val === 'Y'){
                    return '任选套餐'
                } else {
                    return '固定套餐'
                }
            }
        }
    }
</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>