supplierDetails.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <template name="supplier">
  2. <!-- 供应商信息 -->
  3. <view class="supplier clearfix">
  4. <view class="sup-header">
  5. <view class="header-img">
  6. <image :src="shopData.logo" mode=""></image>
  7. </view>
  8. <view class="header-txt">
  9. <text>{{shopData.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 >{{shopData.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="shopData.businessScopeArr.length>0">
  31. <text class="age" v-for="(item,idx) in shopData.businessScopeArr" :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="[shopData.info == null ? 'center' : '']">
  43. {{shopData.info ? shopData.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="[shopData.productDesc == null ? 'center' : '']">
  51. {{shopData.productDesc == null ? '暂无内容' : shopData.productDesc}}
  52. </view>
  53. </view>
  54. <view class="sup-msg massage-t" v-if="shopData.businessLicenseImage!=null">
  55. <view class="sup-h1">
  56. <text class="line">营业执照</text>
  57. </view>
  58. <view class="sup-img">
  59. <image :src="shopData.businessLicenseImage" mode="aspectFill" @click="previewImg(shopData.businessLicenseImage)"></image>
  60. </view>
  61. </view>
  62. <view class="sup-msg massage-t" v-if="shopData.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="shopData.medicalPracticeLicenseImg1" mode="" @click="previewImg(shopData.medicalPracticeLicenseImg1)"></image></view>
  68. <view class="img"><image :src="shopData.medicalPracticeLicenseImg2" mode="" @click="previewImg(shopData.medicalPracticeLicenseImg2)"></image></view>
  69. <view class="img"><image :src="shopData.medicalPracticeLicenseImg3" mode="" @click="previewImg(shopData.medicalPracticeLicenseImg3)"></image></view>
  70. </view>
  71. </view>
  72. <view class="sup-msg massage-t" v-if="shopData.authorizationCertificateImage!=null">
  73. <view class="sup-h1">
  74. <text class="line">授权牌照</text>
  75. </view>
  76. <view class="sup-img">
  77. <image :src="shopData.authorizationCertificateImage" mode="aspectFill" @click="previewImg(shopData.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:{
  90. shopId:{
  91. type:Number
  92. }
  93. },
  94. data() {
  95. return{
  96. shopData:{},
  97. iconClass:'icon-xingxing',
  98. iconColor:'#FF9100'
  99. }
  100. },
  101. created() {
  102. this.GetSupplierHomeDeatils(this.shopId)
  103. },
  104. onLoad(){
  105. },
  106. methods:{
  107. previewImg(url){
  108. let mentuzArray = []
  109. mentuzArray.push(url)
  110. uni.previewImage({
  111. urls: mentuzArray,
  112. current: 0
  113. });
  114. },
  115. GetSupplierHomeDeatils(shopId){//供应商详情
  116. this.ShopService.GetSupplierHomeDeatils({supplierId:shopId}).then(response =>{
  117. this.shopData = response.data
  118. console.log(this.shopData)
  119. }).catch(error =>{
  120. this.$util.msg(error.msg,2000)
  121. })
  122. }
  123. },
  124. onShow(){
  125. }
  126. }
  127. </script>
  128. <style lang="scss">
  129. .supplier{
  130. background: #FFFFFF;
  131. width: 100%;
  132. .sup-msg{
  133. width: 100%;
  134. padding: 24rpx 0;
  135. .sup-h1{
  136. height: 80rpx;
  137. line-height: 80rpx;
  138. font-size: $font-size-30;
  139. color: $text-color;
  140. text-align: left;
  141. border-bottom: 1px solid #EFEFEF;
  142. .line{
  143. position: relative;
  144. padding-left: 15rpx;
  145. &:after{
  146. content: '';
  147. width: 6rpx;
  148. height: 28rpx;
  149. background: #FFA347;
  150. position: absolute;
  151. left: 0;
  152. top: 6rpx;
  153. }
  154. }
  155. }
  156. }
  157. .sup-header{
  158. height: 158rpx;
  159. width: 702rpx;
  160. padding: 28rpx 24rpx 24rpx 24rpx;
  161. display: flex;
  162. background: #FFFFFF;
  163. .header-img{
  164. width: 216rpx;
  165. height: 100%;
  166. image{
  167. width: 100%;
  168. height: 100%;
  169. }
  170. }
  171. .header-txt{
  172. width:460rpx;
  173. display: flex;
  174. align-items: center;
  175. text{
  176. display: flex;
  177. flex: 1;
  178. margin-left: 26rpx;
  179. line-height: 40rpx;
  180. -o-text-overflow: ellipsis;
  181. text-overflow: ellipsis;
  182. display: -webkit-box;
  183. word-break: break-all;
  184. -webkit-box-orient: vertical;
  185. -webkit-line-clamp: 2;
  186. overflow: hidden;
  187. text-align: left;
  188. font-size: $font-size-30;
  189. color: $text-color;
  190. font-weight: bold;
  191. }
  192. }
  193. }
  194. .massage-t{
  195. width: 702rpx;
  196. padding:0 24rpx;
  197. height: auto;
  198. background: #FFFFFF;
  199. .sup-title{
  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: 142rpx;
  210. display: inline-block;
  211. }
  212. }
  213. .sup-stars{
  214. width: 100%;
  215. height: 40rpx;
  216. margin-top: 24rpx;
  217. text-align: left;
  218. display: inline-block;
  219. line-height: 40rpx;
  220. font-size: $font-size-28;
  221. color: $text-color;
  222. .tit-l{
  223. width: 114rpx;
  224. display: inline-block;
  225. text-align: right;
  226. float: left;
  227. }
  228. .p-stars{
  229. float: left;
  230. margin-left: 22rpx;
  231. }
  232. }
  233. .sup-conte{
  234. width: 100%;
  235. margin-top: 24rpx;
  236. display: flex;
  237. .conte-l{
  238. width: 142rpx;
  239. .tit-l{
  240. text-align: left;
  241. display: inline-block;
  242. line-height: 40rpx;
  243. font-size: $font-size-28;
  244. color: $text-color;
  245. }
  246. }
  247. .conte-r{
  248. width: 540rpx;
  249. .age{
  250. display: inline-block;
  251. padding: 0 20rpx;
  252. background: #FFF6E6;
  253. height: 42rpx;
  254. line-height: 42rpx;
  255. text-align: center;
  256. font-size: $font-size-24;
  257. color: #666666;
  258. border-radius: 6rpx;
  259. margin-right: 24rpx;
  260. margin-bottom: 24rpx;
  261. }
  262. .tit{
  263. font-size: $font-size-28;
  264. color: $text-color;
  265. line-height: 40rpx;
  266. }
  267. }
  268. }
  269. .sup-p{
  270. padding: 24rpx 0;
  271. line-height: 40rpx;
  272. text-align: left;
  273. font-size: $font-size-28;
  274. color: #666666;
  275. text-indent: 20rpx;
  276. &.center{
  277. text-align: center;
  278. }
  279. }
  280. .sup-img{
  281. width: 100%;
  282. height: 542rpx;
  283. padding: 24rpx 0;
  284. image{
  285. width: 100%;
  286. height: 100%;
  287. display: block;
  288. }
  289. }
  290. .sup-imgList{
  291. width: 100%;
  292. height: auto;
  293. padding: 24rpx 0;
  294. .img{
  295. width: 340rpx;
  296. height: 260rpx;
  297. float: left;
  298. margin-right:22rpx;
  299. margin-bottom: 22rpx;
  300. &:nth-child(even){
  301. margin-right: 0;
  302. }
  303. image{
  304. width: 100%;
  305. height: 100%;
  306. display: block;
  307. }
  308. }
  309. }
  310. }
  311. }
  312. </style>