agency.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <view>
  3. <u-swiper :list="bannerList" mode="rect" name="banners" height="380" border-radius="0"></u-swiper>
  4. <view class="card">
  5. <view class="flex flex-direction justify-center padding-left-20">
  6. <text class="text-bold text-lg" style="padding-bottom: 12rpx;">{{detail.agencyName}}</text>
  7. </view>
  8. </view>
  9. <view class="bg-white text-black">
  10. <view class="flex" style="padding:20rpx 30rpx 0;">
  11. <image style="width: 35rpx;height: 35rpx;display: block;padding-top: 6rpx;padding-right: 10rpx;" src="../../../static/icon/tag1.png" mode=""></image>
  12. <text class="text-lg padding-left-10" >其他信息</text>
  13. </view>
  14. <view class="cu-list menu text-df padding-top-20">
  15. <view class="cu-item">
  16. <view class="content">
  17. <text class="cuIcon-profilefill base-color" style="font-size: 32rpx;"></text>
  18. <text class="">法定代表人</text>
  19. </view>
  20. <view class="action">
  21. <text>{{detail.personName}}</text>
  22. </view>
  23. </view>
  24. <view class="cu-item">
  25. <view class="content">
  26. <text class="cuIcon-mobilefill text-bold base-color" style="font-size: 32rpx;"></text>
  27. <text class="">联系方式</text>
  28. </view>
  29. <view class="action">
  30. <text>{{detail.personPhone}}</text>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="" style="padding: 20rpx 40rpx;">
  35. <view class="">
  36. <text class="cuIcon-locationfill base-color " style="margin-right: 20rpx;"></text>
  37. 公司地址:
  38. </view>
  39. <view class="text-cut-2 " style="padding: 20rpx 10rpx">
  40. <text>{{detail.address}}</text>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. id:this.$cache.get('agency'),
  51. detail:{},
  52. bannerList: [
  53. {
  54. 'banners': "http://139.9.103.171:1888/miniofile/xlyq/banner.jpg"
  55. },
  56. ],
  57. }
  58. },
  59. onLoad() {
  60. this.fetchDeatil()
  61. // this.fetchBanner()
  62. },
  63. methods: {
  64. fetchBanner(){
  65. let params={
  66. // tenantId:this.$cache.get('agencyTenantId')
  67. }
  68. this.$api.banner.page(params).then(res=>{
  69. if (!this.$isEmpty(res.data.records)) {
  70. this.bannerList=res.data.records
  71. }
  72. })
  73. },
  74. fetchDeatil(){
  75. this.$api.agency.page({id:this.id}).then(res=>{
  76. this.detail=res.data.records[0]
  77. })
  78. },
  79. }
  80. }
  81. </script>
  82. <style lang="scss">
  83. page{
  84. background-color: #FFFFFF;
  85. }
  86. .card{
  87. padding: 20rpx;
  88. background-color: #FFFFFF;
  89. margin: 10rpx;
  90. border-radius: 10rpx;
  91. display: flex;
  92. box-shadow: 0 10rpx rgba(248, 248, 248,.9) , -10rpx 0rpx rgba(248, 248, 248,.9) ,10rpx 0rpx rgba(248, 248, 248,.9);
  93. image{
  94. border: 1rpx solid #f1f1f1;
  95. width:100rpx;
  96. height: 100rpx;
  97. border-radius: 50%;
  98. }
  99. }
  100. .desc{
  101. background-color: #FFFFFF;
  102. padding:40rpx 30rpx;
  103. .sub-title{
  104. padding-top: 40rpx;
  105. font-size: 28rpx;
  106. line-height: 50rpx;
  107. }
  108. }
  109. .history{
  110. background-color: #FFFFFF;
  111. margin-top: 20rpx;
  112. padding: 40rpx 20rpx 20rpx 50rpx;
  113. }
  114. .top{
  115. padding-bottom: 30rpx;
  116. display: flex;
  117. justify-content: space-between;
  118. }
  119. .address{
  120. margin-top: 20rpx;
  121. background-color: #FFFFFF;
  122. padding: 30rpx;
  123. .item{
  124. padding-top: 40rpx;
  125. .sub-address{
  126. padding-left: 70rpx;font-size: 26rpx;color: #bababa;
  127. }
  128. }
  129. }
  130. .u-node {
  131. width: 44rpx;
  132. height: 44rpx;
  133. border-radius: 100rpx;
  134. display: flex;
  135. justify-content: center;
  136. align-items: center;
  137. background: #d0d0d0;
  138. }
  139. .u-order-title {
  140. color: #333333;
  141. font-weight: bold;
  142. font-size: 32rpx;
  143. }
  144. .u-order-desc {
  145. padding-top: 20rpx;
  146. color: #8d8d8d;
  147. font-size: 26rpx;
  148. line-height: 48rpx;
  149. margin-bottom: 6rpx;
  150. }
  151. .u-order-time {
  152. color: rgb(200, 200, 200);
  153. font-size: 26rpx;
  154. }
  155. </style>