supplierDetails.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <template name="supplier">
  2. <!-- 供应商信息 -->
  3. <view class="supplier clearfix">
  4. <view class="sup-header">
  5. <view class="header-img">
  6. <image :src="shop.logo" mode=""></image>
  7. </view>
  8. <view class="header-txt">
  9. <text>{{shop.name}}</text>
  10. </view>
  11. </view>
  12. <view class="sup-msg massage-t">
  13. <view class="sup-h1">
  14. <text class="line">基本信息</text>
  15. </view>
  16. <view class="sup-title">
  17. <text class="tit-l">公司名称:</text>
  18. <text >{{shop.name}}</text>
  19. </view>
  20. <view class="sup-conte">
  21. <view class="conte-l">
  22. <text class="tit-l">经营品项:</text>
  23. </view>
  24. <view class="conte-r" v-if="shop.businessScopeArray.length>0">
  25. <text class="age" v-for="(item,idx) in shop.businessScopeArray" :key="idx">{{item}}</text>
  26. </view>
  27. <view class="conte-r" v-else>
  28. <text class="tit">暂无</text>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="sup-msg massage-t">
  33. <view class="sup-h1">
  34. <text class="line">公司介绍</text>
  35. </view>
  36. <view class="sup-p" :class="[shop.info == null ? 'center' : '']">
  37. {{shop.info == null ? '暂无内容' : shop.info}}
  38. </view>
  39. </view>
  40. <view class="sup-msg massage-t">
  41. <view class="sup-h1">
  42. <text class="line">主打系列产品介绍</text>
  43. </view>
  44. <view class="sup-p" :class="[shop.productDesc == null ? 'center' : '']">
  45. {{shop.productDesc == null ? '暂无内容' : shop.productDesc}}
  46. </view>
  47. </view>
  48. <view class="sup-msg massage-t" v-if="shop.businessLicenseImage!=null">
  49. <view class="sup-h1">
  50. <text class="line">营业执照</text>
  51. </view>
  52. <view class="sup-img">
  53. <image :src="shop.businessLicenseImage" mode=""></image>
  54. </view>
  55. </view>
  56. <view class="sup-msg massage-t" v-if="shop.medicalPracticeLicenseImg1!=null">
  57. <view class="sup-h1">
  58. <text class="line">公司资质</text>
  59. </view>
  60. <view class="sup-imgList clearfix">
  61. <view class="img"><image :src="shop.medicalPracticeLicenseImg1" mode=""></image></view>
  62. <view class="img"><image :src="shop.medicalPracticeLicenseImg2" mode=""></image></view>
  63. <view class="img"><image :src="shop.medicalPracticeLicenseImg3" mode=""></image></view>
  64. </view>
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. export default{
  70. name:'supplier',
  71. props:['shop'],
  72. data() {
  73. return{
  74. }
  75. },
  76. created() {
  77. },
  78. onLoad(){
  79. },
  80. methods:{
  81. },
  82. onShow(){
  83. }
  84. }
  85. </script>
  86. <style lang="scss">
  87. .supplier{
  88. background: #F7F7F7;
  89. width: 100%;
  90. .sup-msg{
  91. width: 100%;
  92. padding: 24rpx 0;
  93. .sup-h1{
  94. height: 42rpx;
  95. line-height: 42rpx;
  96. font-size: $font-size-30;
  97. color: $text-color;
  98. text-align: center;
  99. font-weight: bold;
  100. .line{
  101. position: relative;
  102. &:after{
  103. content: '';
  104. width: 96rpx;
  105. height: 2rpx;
  106. background: #EAEAEA;
  107. position: absolute;
  108. left: -130rpx;
  109. top: 50%;
  110. }
  111. &:before{
  112. content: '';
  113. width: 96rpx;
  114. height: 2rpx;
  115. background: #EAEAEA;
  116. position: absolute;
  117. right: -130rpx;
  118. top: 50%;
  119. }
  120. }
  121. }
  122. }
  123. .sup-header{
  124. height: 158rpx;
  125. width: 702rpx;
  126. padding: 28rpx 24rpx 24rpx 24rpx;
  127. display: flex;
  128. margin-bottom: 24rpx;
  129. background: #FFFFFF;
  130. .header-img{
  131. width: 216rpx;
  132. height: 100%;
  133. image{
  134. width: 100%;
  135. height: 100%;
  136. }
  137. }
  138. .header-txt{
  139. width:460rpx;
  140. text{
  141. display: inline-block;
  142. padding-top: 82rpx;
  143. height: 80rpx;
  144. margin-left: 26rpx;
  145. line-height: 40rpx;
  146. -o-text-overflow: ellipsis;
  147. text-overflow: ellipsis;
  148. display: -webkit-box;
  149. word-break: break-all;
  150. -webkit-box-orient: vertical;
  151. -webkit-line-clamp: 2;
  152. overflow: hidden;
  153. text-align: left;
  154. font-size: $font-size-30;
  155. color: $text-color;
  156. font-weight: bold;
  157. }
  158. }
  159. }
  160. .massage-t{
  161. width: 702rpx;
  162. padding:24rpx;
  163. height: auto;
  164. margin-bottom: 24rpx;
  165. background: #FFFFFF;
  166. .sup-title{
  167. width: 100%;
  168. height: 40rpx;
  169. margin-top: 24rpx;
  170. text-align: left;
  171. display: inline-block;
  172. line-height: 40rpx;
  173. font-size: $font-size-28;
  174. color: $text-color;
  175. .tit-l{
  176. width: 142rpx;
  177. margin-right:20rpx;
  178. display: inline-block;
  179. }
  180. }
  181. .sup-conte{
  182. width: 100%;
  183. margin-top: 24rpx;
  184. display: flex;
  185. .conte-l{
  186. width: 142rpx;
  187. margin-right:20rpx;
  188. .tit-l{
  189. text-align: left;
  190. display: inline-block;
  191. line-height: 40rpx;
  192. font-size: $font-size-28;
  193. color: $text-color;
  194. }
  195. }
  196. .conte-r{
  197. width: 540rpx;
  198. .age{
  199. display: inline-block;
  200. padding: 0 20rpx;
  201. background: #F8C499;
  202. height: 40rpx;
  203. line-height: 40rpx;
  204. text-align: center;
  205. font-size: $font-size-24;
  206. color: $text-color;
  207. border-radius: 20rpx;
  208. margin-right: 24rpx;
  209. margin-bottom: 24rpx;
  210. }
  211. .tit{
  212. font-size: $font-size-28;
  213. color: $text-color;
  214. line-height: 40rpx;
  215. }
  216. }
  217. }
  218. .sup-p{
  219. padding: 24rpx 0;
  220. line-height: 40rpx;
  221. text-align: left;
  222. font-size: $font-size-24;
  223. color: $text-color;
  224. text-indent: 20rpx;
  225. &.center{
  226. text-align: center;
  227. }
  228. }
  229. .sup-img{
  230. width: 100%;
  231. height: 542rpx;
  232. padding: 24rpx 0;
  233. image{
  234. width: 100%;
  235. height: 100%;
  236. }
  237. }
  238. .sup-imgList{
  239. width: 100%;
  240. height: auto;
  241. padding: 24rpx 0;
  242. .img{
  243. width: 340rpx;
  244. height: 260rpx;
  245. float: left;
  246. margin-right:22rpx;
  247. margin-bottom: 22rpx;
  248. &:nth-child(even){
  249. margin-right: 0;
  250. }
  251. image{
  252. width: 100%;
  253. height: 100%;
  254. }
  255. }
  256. }
  257. }
  258. }
  259. </style>