storeDetail.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view class="container-body">
  3. <view class="box storebox x-bc mb20">
  4. <view class="x-f">
  5. <image class="logo" :src="storeInfo.logoUrl" mode="aspectFill"></image>
  6. <view class="storebox-r" @click="goStoreDetail">
  7. <view class="storename ellipsis2">{{storeInfo.storeName}}</view>
  8. <!-- <view class="storedesc">24小时营业 销售{{storeInfo.salesCount|| 0}}</view> -->
  9. </view>
  10. </view>
  11. </view>
  12. <view class="box mb20">
  13. <view class="storeInfo title">基础信息</view>
  14. <view class="storeInfo-item x-start">
  15. <view class="label" style="width: 4rem;">公司全称</view>
  16. <view class="val">{{storeInfo.fullName|| ''}}</view>
  17. </view>
  18. <view class="storeInfo-item x-start">
  19. <view class="label" style="width: 4rem;">联系电话</view>
  20. <view class="val">{{storeInfo.sendPhone|| ''}}</view>
  21. </view>
  22. <view class="storeInfo-item x-start">
  23. <view class="label" style="width: 4rem;">详细地址</view>
  24. <view class="val">{{storeInfo.address|| ''}}{{storeInfo.enterpriseAddress||''}}</view>
  25. </view>
  26. <view class="storeInfo-item x-start">
  27. <view class="label" style="width: 4rem;">经营范围</view>
  28. <view class="val">{{storeInfo.businessScope|| ''}}</view>
  29. </view>
  30. </view>
  31. <view class="box mb20">
  32. <view class="storeInfo title">资质信息</view>
  33. <view class="storeInfo-item mb20">
  34. <view class="label mb20">营业执照</view>
  35. <view class="val x-f">
  36. <u-image
  37. v-if="storeInfo.businessLicense"
  38. shape="square"
  39. lazyLoad
  40. :src="storeInfo.businessLicense"
  41. width="600rpx"
  42. height="auto"
  43. mode="widthFix"
  44. radius="6"
  45. @click="previewImage('businessLicense')"
  46. ></u-image>
  47. <view v-else>暂未上传</view>
  48. </view>
  49. </view>
  50. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice2">
  51. <view class="label" mb20>2类器械生产备案</view>
  52. <view class="val x-f">
  53. <u-image
  54. v-if="storeInfo.medicalDevice2"
  55. shape="square"
  56. lazyLoad
  57. :src="storeInfo.medicalDevice2"
  58. width="600rpx"
  59. height="auto"
  60. mode="widthFix"
  61. radius="6"
  62. @click="previewImage('medicalDevice2')"
  63. ></u-image>
  64. <view v-else>暂未上传</view>
  65. </view>
  66. </view>
  67. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice1">
  68. <view class="label mb20">1类医疗器械备案</view>
  69. <view class="val x-start">
  70. <u-image
  71. v-if="storeInfo.medicalDevice1"
  72. shape="square"
  73. lazyLoad
  74. :src="storeInfo.medicalDevice1"
  75. width="600rpx"
  76. height="auto"
  77. mode="widthFix"
  78. radius="6"
  79. @click="previewImage('medicalDevice1')"
  80. ></u-image>
  81. <view v-else>暂未上传</view>
  82. </view>
  83. </view>
  84. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice3">
  85. <view class="label mb20">3类器械经营许可证</view>
  86. <view class="val x-f">
  87. <u-image
  88. v-if="storeInfo.medicalDevice3"
  89. shape="square"
  90. lazyLoad
  91. :src="storeInfo.medicalDevice3"
  92. width="600rpx"
  93. height="auto"
  94. mode="widthFix"
  95. radius="6"
  96. @click="previewImage('medicalDevice3')"
  97. ></u-image>
  98. <view v-else>暂未上传</view>
  99. </view>
  100. </view>
  101. <view class="storeInfo-item mb20" v-if="storeInfo.foodLicense">
  102. <view class="label mb20">食品经营许可证</view>
  103. <view class="val x-f">
  104. <u-image
  105. v-if="storeInfo.foodLicense"
  106. shape="square"
  107. lazyLoad
  108. :src="storeInfo.foodLicense"
  109. width="600rpx"
  110. height="auto"
  111. mode="widthFix"
  112. radius="6"
  113. @click="previewImage('foodLicense')"
  114. ></u-image>
  115. <view v-else>暂未上传</view>
  116. </view>
  117. </view>
  118. <view class="storeInfo-item mb20" v-if="storeInfo.medicalLicense">
  119. <view class="label mb20">医疗机构执业许可证</view>
  120. <view class="val x-f">
  121. <u-image
  122. v-if="storeInfo.medicalLicense"
  123. shape="square"
  124. lazyLoad
  125. :src="storeInfo.medicalLicense"
  126. width="600rpx"
  127. height="auto"
  128. mode="widthFix"
  129. radius="6"
  130. @click="previewImage('medicalLicense')"
  131. ></u-image>
  132. <view v-else>暂未上传</view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </template>
  138. <script>
  139. import {storeDetail} from '@/api/index.js'
  140. export default {
  141. data() {
  142. return {
  143. storeId:'',
  144. storeInfo: {},
  145. }
  146. },
  147. onLoad(option) {
  148. this.storeId = option.storeId
  149. this.getStoreInfo()
  150. },
  151. methods: {
  152. getStoreInfo() {
  153. storeDetail(this.storeId).then(res=>{
  154. if(res.code==200) {
  155. this.storeInfo =res.data || {}
  156. }
  157. })
  158. },
  159. previewImage(type) {
  160. uni.previewImage({
  161. current: 0,
  162. urls: [this.storeInfo[type]]
  163. });
  164. },
  165. }
  166. }
  167. </script>
  168. <style scoped lang="scss">
  169. .mb20 {
  170. margin-bottom: 20rpx;
  171. }
  172. .box {
  173. padding: 0 32rpx 26rpx 32rpx;
  174. background-color: #fff;
  175. }
  176. .container-body {
  177. font-family: PingFang SC, PingFang SC;
  178. font-weight: 400;
  179. font-size: 28rpx;
  180. color: #939599;
  181. }
  182. .businessLicense {
  183. height: 80rpx;
  184. width: 80rpx;
  185. border-radius: 8rpx;
  186. }
  187. .storeInfo {
  188. &-item {
  189. padding: 6rpx 0;
  190. .label {
  191. flex-shrink: 0;
  192. }
  193. .val {
  194. color: #222;
  195. }
  196. }
  197. }
  198. .title {
  199. font-family: PingFang SC, PingFang SC;
  200. font-weight: 600;
  201. font-size: 30rpx;
  202. color: #222222;
  203. padding: 24rpx 0;
  204. }
  205. .storebox {
  206. padding: 26rpx 32rpx;
  207. font-family: PingFang SC, PingFang SC;
  208. color: #222;
  209. background-color: #fff;
  210. .logo {
  211. width: 150rpx;
  212. height: 150rpx;
  213. border-radius: 16rpx 16rpx 16rpx 16rpx;
  214. margin-right: 26rpx;
  215. }
  216. .storename {
  217. font-weight: 500;
  218. font-size: 32rpx;
  219. }
  220. .storedesc {
  221. margin-top: 12rpx;
  222. font-weight: 400;
  223. font-size: 22rpx;
  224. }
  225. .storebox-r {
  226. flex: 1;
  227. overflow: hidden;
  228. }
  229. }
  230. </style>