supplierDetails.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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-stars">
  21. <text class="tit-l">满意度:</text>
  22. <view class="p-stars">
  23. <uni-stars :stars="6" :iconClass="iconClass" :iconColor="iconColor" :fontSize="44" :widthInfo="180"></uni-stars>
  24. </view>
  25. </view>
  26. <view class="sup-conte">
  27. <view class="conte-l">
  28. <text class="tit-l">经营范围:</text>
  29. </view>
  30. <view class="conte-r" v-if="shop.businessScopeArray.length>0">
  31. <text class="age" v-for="(item,idx) in shop.businessScopeArray" :key="idx">{{item}}</text>
  32. </view>
  33. <view class="conte-r" v-else>
  34. <text class="tit">暂无</text>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="sup-msg massage-t">
  39. <view class="sup-h1">
  40. <text class="line">公司介绍</text>
  41. </view>
  42. <view class="sup-p" :class="[shop.info == null ? 'center' : '']">
  43. {{shop.info == null ? '暂无内容' : shop.info}}
  44. </view>
  45. </view>
  46. <view class="sup-msg massage-t">
  47. <view class="sup-h1">
  48. <text class="line">主打系列产品说明</text>
  49. </view>
  50. <view class="sup-p" :class="[shop.productDesc == null ? 'center' : '']">
  51. {{shop.productDesc == null ? '暂无内容' : shop.productDesc}}
  52. </view>
  53. </view>
  54. <view class="sup-msg massage-t" v-if="shop.businessLicenseImage!=null">
  55. <view class="sup-h1">
  56. <text class="line">营业执照</text>
  57. </view>
  58. <view class="sup-img">
  59. <image :src="shop.businessLicenseImage" mode="aspectFill" @click="previewImg(shop.businessLicenseImage)"></image>
  60. </view>
  61. </view>
  62. <view class="sup-msg massage-t" v-if="shop.medicalPracticeLicenseImg1!=null">
  63. <view class="sup-h1">
  64. <text class="line">公司资质</text>
  65. </view>
  66. <view class="sup-imgList clearfix">
  67. <view class="img"><image :src="shop.medicalPracticeLicenseImg1" mode="" @click="previewImg(shop.medicalPracticeLicenseImg1)"></image></view>
  68. <view class="img"><image :src="shop.medicalPracticeLicenseImg2" mode="" @click="previewImg(shop.medicalPracticeLicenseImg2)"></image></view>
  69. <view class="img"><image :src="shop.medicalPracticeLicenseImg3" mode="" @click="previewImg(shop.medicalPracticeLicenseImg3)"></image></view>
  70. </view>
  71. </view>
  72. <view class="sup-msg massage-t" v-if="shop.authorizationCertificateImage!=null">
  73. <view class="sup-h1">
  74. <text class="line">授权牌照</text>
  75. </view>
  76. <view class="sup-img">
  77. <image :src="shop.authorizationCertificateImage" mode="aspectFill" @click="previewImg(shop.authorizationCertificateImage)"></image>
  78. </view>
  79. </view>
  80. </view>
  81. </template>
  82. <script>
  83. import uniStars from '@/components/uni-stars/uni-stars.vue'
  84. export default{
  85. name:'supplier',
  86. components:{
  87. uniStars
  88. },
  89. props:['shop'],
  90. data() {
  91. return{
  92. iconClass:'icon-xingxing',
  93. iconColor:'#FF9100'
  94. }
  95. },
  96. created() {
  97. },
  98. onLoad(){
  99. },
  100. methods:{
  101. previewImg(url){
  102. let mentuzArray = []
  103. mentuzArray.push(url)
  104. uni.previewImage({
  105. urls: mentuzArray,
  106. current: 0
  107. });
  108. }
  109. },
  110. onShow(){
  111. }
  112. }
  113. </script>
  114. <style lang="scss">
  115. .supplier{
  116. background: #FFFFFF;
  117. width: 100%;
  118. .sup-msg{
  119. width: 100%;
  120. padding: 24rpx 0;
  121. .sup-h1{
  122. height: 80rpx;
  123. line-height: 80rpx;
  124. font-size: $font-size-30;
  125. color: $text-color;
  126. text-align: left;
  127. border-bottom: 1px solid #EFEFEF;
  128. .line{
  129. position: relative;
  130. padding-left: 15rpx;
  131. &:after{
  132. content: '';
  133. width: 6rpx;
  134. height: 28rpx;
  135. background: #FFA347;
  136. position: absolute;
  137. left: 0;
  138. top: 6rpx;
  139. }
  140. }
  141. }
  142. }
  143. .sup-header{
  144. height: 158rpx;
  145. width: 702rpx;
  146. padding: 28rpx 24rpx 24rpx 24rpx;
  147. display: flex;
  148. background: #FFFFFF;
  149. .header-img{
  150. width: 216rpx;
  151. height: 100%;
  152. image{
  153. width: 100%;
  154. height: 100%;
  155. }
  156. }
  157. .header-txt{
  158. width:460rpx;
  159. display: flex;
  160. align-items: center;
  161. text{
  162. display: flex;
  163. flex: 1;
  164. margin-left: 26rpx;
  165. line-height: 40rpx;
  166. -o-text-overflow: ellipsis;
  167. text-overflow: ellipsis;
  168. display: -webkit-box;
  169. word-break: break-all;
  170. -webkit-box-orient: vertical;
  171. -webkit-line-clamp: 2;
  172. overflow: hidden;
  173. text-align: left;
  174. font-size: $font-size-30;
  175. color: $text-color;
  176. font-weight: bold;
  177. }
  178. }
  179. }
  180. .massage-t{
  181. width: 702rpx;
  182. padding:0 24rpx;
  183. height: auto;
  184. background: #FFFFFF;
  185. .sup-title{
  186. width: 100%;
  187. height: 40rpx;
  188. margin-top: 24rpx;
  189. text-align: left;
  190. display: inline-block;
  191. line-height: 40rpx;
  192. font-size: $font-size-28;
  193. color: $text-color;
  194. .tit-l{
  195. width: 142rpx;
  196. display: inline-block;
  197. }
  198. }
  199. .sup-stars{
  200. width: 100%;
  201. height: 40rpx;
  202. margin-top: 24rpx;
  203. text-align: left;
  204. display: inline-block;
  205. line-height: 40rpx;
  206. font-size: $font-size-28;
  207. color: $text-color;
  208. .tit-l{
  209. width: 114rpx;
  210. display: inline-block;
  211. text-align: right;
  212. float: left;
  213. }
  214. .p-stars{
  215. float: left;
  216. margin-left: 22rpx;
  217. }
  218. }
  219. .sup-conte{
  220. width: 100%;
  221. margin-top: 24rpx;
  222. display: flex;
  223. .conte-l{
  224. width: 142rpx;
  225. .tit-l{
  226. text-align: left;
  227. display: inline-block;
  228. line-height: 40rpx;
  229. font-size: $font-size-28;
  230. color: $text-color;
  231. }
  232. }
  233. .conte-r{
  234. width: 540rpx;
  235. .age{
  236. display: inline-block;
  237. padding: 0 20rpx;
  238. background: #FFF6E6;
  239. height: 42rpx;
  240. line-height: 42rpx;
  241. text-align: center;
  242. font-size: $font-size-24;
  243. color: #666666;
  244. border-radius: 6rpx;
  245. margin-right: 24rpx;
  246. margin-bottom: 24rpx;
  247. }
  248. .tit{
  249. font-size: $font-size-28;
  250. color: $text-color;
  251. line-height: 40rpx;
  252. }
  253. }
  254. }
  255. .sup-p{
  256. padding: 24rpx 0;
  257. line-height: 40rpx;
  258. text-align: left;
  259. font-size: $font-size-28;
  260. color: #666666;
  261. text-indent: 20rpx;
  262. &.center{
  263. text-align: center;
  264. }
  265. }
  266. .sup-img{
  267. width: 100%;
  268. height: 542rpx;
  269. padding: 24rpx 0;
  270. image{
  271. width: 100%;
  272. height: 100%;
  273. display: block;
  274. }
  275. }
  276. .sup-imgList{
  277. width: 100%;
  278. height: auto;
  279. padding: 24rpx 0;
  280. .img{
  281. width: 340rpx;
  282. height: 260rpx;
  283. float: left;
  284. margin-right:22rpx;
  285. margin-bottom: 22rpx;
  286. &:nth-child(even){
  287. margin-right: 0;
  288. }
  289. image{
  290. width: 100%;
  291. height: 100%;
  292. display: block;
  293. }
  294. }
  295. }
  296. }
  297. }
  298. </style>