storeDetail.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view class="container-body">
  3. <view class="box mb20">
  4. <view class="storeInfo title">基础信息</view>
  5. <view class="storeInfo-item x-start">
  6. <view class="label" style="width: 4rem;">公司全称</view>
  7. <view class="val">{{storeInfo.fullName|| ''}}</view>
  8. </view>
  9. <view class="storeInfo-item x-start">
  10. <view class="label" style="width: 4rem;">联系电话</view>
  11. <view class="val">{{storeInfo.sendPhone|| ''}}</view>
  12. </view>
  13. <view class="storeInfo-item x-start">
  14. <view class="label" style="width: 4rem;">详细地址</view>
  15. <view class="val">{{storeInfo.address|| ''}}{{storeInfo.enterpriseAddress||''}}</view>
  16. </view>
  17. <view class="storeInfo-item x-start">
  18. <view class="label" style="width: 4rem;">经营范围</view>
  19. <view class="val">{{storeInfo.businessScope|| ''}}</view>
  20. </view>
  21. </view>
  22. <view class="box mb20">
  23. <view class="storeInfo title">资质信息</view>
  24. <view class="storeInfo-item mb20">
  25. <view class="label mb20">营业执照</view>
  26. <view class="val x-f">
  27. <u-image
  28. v-if="storeInfo.businessLicense"
  29. shape="square"
  30. lazyLoad
  31. :src="storeInfo.businessLicense"
  32. width="600rpx"
  33. height="auto"
  34. mode="widthFix"
  35. radius="6"
  36. @click="previewImage('businessLicense')"
  37. ></u-image>
  38. <view v-else>暂未上传</view>
  39. </view>
  40. </view>
  41. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice2">
  42. <view class="label" mb20>2类器械生产备案</view>
  43. <view class="val x-f">
  44. <u-image
  45. v-if="storeInfo.medicalDevice2"
  46. shape="square"
  47. lazyLoad
  48. :src="storeInfo.medicalDevice2"
  49. width="600rpx"
  50. height="auto"
  51. mode="widthFix"
  52. radius="6"
  53. @click="previewImage('medicalDevice2')"
  54. ></u-image>
  55. <view v-else>暂未上传</view>
  56. </view>
  57. </view>
  58. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice1">
  59. <view class="label mb20">1类医疗器械备案</view>
  60. <view class="val x-start">
  61. <u-image
  62. v-if="storeInfo.medicalDevice1"
  63. shape="square"
  64. lazyLoad
  65. :src="storeInfo.medicalDevice1"
  66. width="600rpx"
  67. height="auto"
  68. mode="widthFix"
  69. radius="6"
  70. @click="previewImage('medicalDevice1')"
  71. ></u-image>
  72. <view v-else>暂未上传</view>
  73. </view>
  74. </view>
  75. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice3">
  76. <view class="label mb20">3类器械经营许可证</view>
  77. <view class="val x-f">
  78. <u-image
  79. v-if="storeInfo.medicalDevice3"
  80. shape="square"
  81. lazyLoad
  82. :src="storeInfo.medicalDevice3"
  83. width="600rpx"
  84. height="auto"
  85. mode="widthFix"
  86. radius="6"
  87. @click="previewImage('medicalDevice3')"
  88. ></u-image>
  89. <view v-else>暂未上传</view>
  90. </view>
  91. </view>
  92. <view class="storeInfo-item mb20" v-if="storeInfo.foodLicense">
  93. <view class="label mb20">食品经营许可证</view>
  94. <view class="val x-f">
  95. <u-image
  96. v-if="storeInfo.foodLicense"
  97. shape="square"
  98. lazyLoad
  99. :src="storeInfo.foodLicense"
  100. width="600rpx"
  101. height="auto"
  102. mode="widthFix"
  103. radius="6"
  104. @click="previewImage('foodLicense')"
  105. ></u-image>
  106. <view v-else>暂未上传</view>
  107. </view>
  108. </view>
  109. <view class="storeInfo-item mb20" v-if="storeInfo.medicalLicense">
  110. <view class="label mb20">医疗机构执业许可证</view>
  111. <view class="val x-f">
  112. <u-image
  113. v-if="storeInfo.medicalLicense"
  114. shape="square"
  115. lazyLoad
  116. :src="storeInfo.medicalLicense"
  117. width="600rpx"
  118. height="auto"
  119. mode="widthFix"
  120. radius="6"
  121. @click="previewImage('medicalLicense')"
  122. ></u-image>
  123. <view v-else>暂未上传</view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </template>
  129. <script>
  130. export default {
  131. props:['storeInfo'],
  132. data() {
  133. return {}
  134. },
  135. methods: {
  136. previewImage(type) {
  137. uni.previewImage({
  138. current: 0,
  139. urls: [this.storeInfo[type]]
  140. });
  141. },
  142. }
  143. }
  144. </script>
  145. <style scoped lang="scss">
  146. .mb20 {
  147. margin-bottom: 20rpx;
  148. }
  149. .box {
  150. padding: 0 32rpx 26rpx 32rpx;
  151. background-color: #fff;
  152. }
  153. .container-body {
  154. font-family: PingFang SC, PingFang SC;
  155. font-weight: 400;
  156. font-size: 28rpx;
  157. color: #939599;
  158. }
  159. .businessLicense {
  160. height: 80rpx;
  161. width: 80rpx;
  162. border-radius: 8rpx;
  163. }
  164. .storeInfo {
  165. &-item {
  166. padding: 6rpx 0;
  167. .label {
  168. flex-shrink: 0;
  169. }
  170. .val {
  171. color: #222;
  172. }
  173. }
  174. }
  175. .title {
  176. font-family: PingFang SC, PingFang SC;
  177. font-weight: 600;
  178. font-size: 30rpx;
  179. color: #222222;
  180. padding: 24rpx 0;
  181. }
  182. </style>