|
1 | 1 | <template>
|
2 | 2 | <div class="safe_shop">
|
3 | 3 | <head-top head-title="食品监督安全公示" go-back='true'></head-top>
|
4 |
| - <section class="shop_status_container"> |
5 |
| - <header>食品监督安全公示</header> |
6 |
| - <section class="shop_statu_detail"> |
7 |
| - <div> |
8 |
| - <svg class="shop_status" v-if="shopDetail.status == 1"> |
9 |
| - <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#res-well"></use> |
10 |
| - </svg> |
11 |
| - <svg class="res-well" v-else> |
12 |
| - <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#res-bad"></use> |
13 |
| - </svg> |
14 |
| - </div> |
15 |
| - <div class="check_date"> |
16 |
| - <p> |
17 |
| - <span>监督检查结果:</span> |
18 |
| - <span class="shop_status_well" v-if="shopDetail.status == 1">良好</span> |
19 |
| - <span class="shop_status_bad" v-else>差</span> |
20 |
| - </p> |
21 |
| - <p> |
22 |
| - <span>检查日期:</span> |
23 |
| - <span>{{shopDetail.identification.identificate_date.split('T')[0]}}</span> |
24 |
| - </p> |
25 |
| - </div> |
| 4 | + <section id="scroll_section" class="scroll_container"> |
| 5 | + <section> |
| 6 | + |
| 7 | + <section class="shop_status_container"> |
| 8 | + <header>食品监督安全公示</header> |
| 9 | + <section class="shop_statu_detail"> |
| 10 | + <div> |
| 11 | + <svg class="shop_status" v-if="shopDetail.status == 1"> |
| 12 | + <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#res-well"></use> |
| 13 | + </svg> |
| 14 | + <svg class="res-well" v-else> |
| 15 | + <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#res-bad"></use> |
| 16 | + </svg> |
| 17 | + </div> |
| 18 | + <div class="check_date"> |
| 19 | + <p> |
| 20 | + <span>监督检查结果:</span> |
| 21 | + <span class="shop_status_well" v-if="shopDetail.status == 1">良好</span> |
| 22 | + <span class="shop_status_bad" v-else>差</span> |
| 23 | + </p> |
| 24 | + <p> |
| 25 | + <span>检查日期:</span> |
| 26 | + <span>{{shopDetail.identification.identificate_date.split('T')[0]}}</span> |
| 27 | + </p> |
| 28 | + </div> |
| 29 | + </section> |
| 30 | + </section> |
| 31 | + <section class="shop_status_container"> |
| 32 | + <header> |
| 33 | + <span>工商登记信息</span> |
| 34 | + </header> |
| 35 | + <ul> |
| 36 | + <li> |
| 37 | + <p>企业名称</p> |
| 38 | + <p>{{shopDetail.identification.company_name}}</p> |
| 39 | + </li> |
| 40 | + <li> |
| 41 | + <p>工商执照注册号</p> |
| 42 | + <p>{{shopDetail.identification.identificate_agency}}</p> |
| 43 | + </li> |
| 44 | + <li> |
| 45 | + <p>注册资本</p> |
| 46 | + <p>{{shopDetail.identification.registered_number}}</p> |
| 47 | + </li> |
| 48 | + <li> |
| 49 | + <p>注册地址</p> |
| 50 | + <p>{{shopDetail.identification.registered_address}}</p> |
| 51 | + </li> |
| 52 | + <li> |
| 53 | + <p>属地监管所</p> |
| 54 | + <p>{{shopDetail.identification.registered_principal}}</p> |
| 55 | + </li> |
| 56 | + <li> |
| 57 | + <p>法定代表人</p> |
| 58 | + <p>{{shopDetail.identification.legal_person}}</p> |
| 59 | + </li> |
| 60 | + <li> |
| 61 | + <p>经营范围</p> |
| 62 | + <p>{{shopDetail.identification.operation_period}}</p> |
| 63 | + </li> |
| 64 | + </ul> |
| 65 | + </section> |
| 66 | + <section class="shop_status_container"> |
| 67 | + <header>餐饮许可证</header> |
| 68 | + <ul> |
| 69 | + <li> |
| 70 | + <p>营业范围</p> |
| 71 | + <p>{{shopDetail.identification.operation_period}}</p> |
| 72 | + </li> |
| 73 | + <li> |
| 74 | + <p>许可证有效期</p> |
| 75 | + <p>{{shopDetail.identification.licenses_date}}</p> |
| 76 | + </li> |
| 77 | + <li> |
| 78 | + <p>许可证号</p> |
| 79 | + <p>{{shopDetail.identification.licenses_number}}</p> |
| 80 | + </li> |
| 81 | + <li> |
| 82 | + <p>发证时间</p> |
| 83 | + <p>{{shopDetail.identification.licenses_scope}}</p> |
| 84 | + </li> |
| 85 | + <li> |
| 86 | + <p>发证机关</p> |
| 87 | + <p>{{shopDetail.identification.registered_principal}}</p> |
| 88 | + </li> |
| 89 | + </ul> |
| 90 | + </section> |
| 91 | + <section class="license_img shop_status_container"> |
| 92 | + <header>许可证书</header> |
| 93 | + <div class="img_container"> |
| 94 | + <img :src="getImgPath(shopDetail.license.business_license_image)"> |
| 95 | + <img :src="getImgPath(shopDetail.license.catering_service_license_image)"> |
| 96 | + </div> |
| 97 | + </section> |
26 | 98 | </section>
|
27 | 99 | </section>
|
28 |
| - <section class="shop_status_container"> |
29 |
| - <header> |
30 |
| - <span>工商登记信息</span> |
31 |
| - </header> |
32 |
| - <ul> |
33 |
| - <li> |
34 |
| - <p>企业名称</p> |
35 |
| - <p>{{shopDetail.identification.company_name}}</p> |
36 |
| - </li> |
37 |
| - <li> |
38 |
| - <p>工商执照注册号</p> |
39 |
| - <p>{{shopDetail.identification.identificate_agency}}</p> |
40 |
| - </li> |
41 |
| - <li> |
42 |
| - <p>注册资本</p> |
43 |
| - <p>{{shopDetail.identification.registered_number}}</p> |
44 |
| - </li> |
45 |
| - <li> |
46 |
| - <p>注册地址</p> |
47 |
| - <p>{{shopDetail.identification.registered_address}}</p> |
48 |
| - </li> |
49 |
| - <li> |
50 |
| - <p>属地监管所</p> |
51 |
| - <p>{{shopDetail.identification.registered_principal}}</p> |
52 |
| - </li> |
53 |
| - <li> |
54 |
| - <p>法定代表人</p> |
55 |
| - <p>{{shopDetail.identification.legal_person}}</p> |
56 |
| - </li> |
57 |
| - <li> |
58 |
| - <p>经营范围</p> |
59 |
| - <p>{{shopDetail.identification.operation_period}}</p> |
60 |
| - </li> |
61 |
| - </ul> |
62 |
| - </section> |
63 |
| - <section class="shop_status_container"> |
64 |
| - <header>餐饮许可证</header> |
65 |
| - <ul> |
66 |
| - <li> |
67 |
| - <p>营业范围</p> |
68 |
| - <p>{{shopDetail.identification.operation_period}}</p> |
69 |
| - </li> |
70 |
| - <li> |
71 |
| - <p>许可证有效期</p> |
72 |
| - <p>{{shopDetail.identification.licenses_date}}</p> |
73 |
| - </li> |
74 |
| - <li> |
75 |
| - <p>许可证号</p> |
76 |
| - <p>{{shopDetail.identification.licenses_number}}</p> |
77 |
| - </li> |
78 |
| - <li> |
79 |
| - <p>发证时间</p> |
80 |
| - <p>{{shopDetail.identification.licenses_scope}}</p> |
81 |
| - </li> |
82 |
| - <li> |
83 |
| - <p>发证机关</p> |
84 |
| - <p>{{shopDetail.identification.registered_principal}}</p> |
85 |
| - </li> |
86 |
| - </ul> |
87 |
| - </section> |
88 |
| - <section class="license_img shop_status_container"> |
89 |
| - <header>许可证书</header> |
90 |
| - <div class="img_container"> |
91 |
| - <img :src="getImgPath(shopDetail.license.business_license_image)"> |
92 |
| - <img :src="getImgPath(shopDetail.license.catering_service_license_image)"> |
93 |
| - </div> |
94 |
| - </section> |
95 | 100 | </div>
|
96 | 101 | </template>
|
97 | 102 |
|
98 | 103 | <script>
|
99 | 104 | import {mapState} from 'vuex'
|
100 | 105 | import headTop from 'src/components/header/head'
|
101 | 106 | import {getImgPath} from 'src/components/common/mixin'
|
| 107 | + import BScroll from 'better-scroll' |
| 108 | +
|
102 | 109 |
|
103 | 110 | export default {
|
104 | 111 | data(){
|
|
107 | 114 | }
|
108 | 115 | },
|
109 | 116 | mounted(){
|
110 |
| - |
| 117 | + this.$nextTick(() => { |
| 118 | + new BScroll('#scroll_section', { |
| 119 | + deceleration: 0.001, |
| 120 | + bounce: true, |
| 121 | + swipeTime: 1800, |
| 122 | + click: true, |
| 123 | + }); |
| 124 | + }) |
111 | 125 | },
|
112 | 126 | computed: {
|
113 | 127 | ...mapState([
|
|
139 | 153 | padding-top: 1.95rem;
|
140 | 154 | background-color: #ebebeb;
|
141 | 155 | z-index: 102;
|
142 |
| - overflow-y: auto; |
143 | 156 | }
|
144 |
| -
|
| 157 | + .scroll_container{ |
| 158 | + @include wh(100%, 100%); |
| 159 | + } |
145 | 160 | ul{
|
146 | 161 | margin-left: 1rem;
|
147 | 162 | padding: .4rem 0;
|
|
190 | 205 | .license_img{
|
191 | 206 | padding: .6rem;
|
192 | 207 | background-color: #fff;
|
| 208 | + padding-bottom: 8rem; |
193 | 209 | .img_container{
|
194 | 210 | background-color: #ebebeb;
|
195 | 211 | img{
|
|
0 commit comments