agency.vue 3.8 KB

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