agency.vue 3.6 KB

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