loan-item.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <template>
  2. <view class="p-t20">
  3. <view class="task-body m-lr20 animate__animated animate__fadeIn" v-if="taskList.length>0">
  4. <view class="row-c page-box-bg-fff m-b20 r-30 box-shadow-197 loan-item" v-for="(item,index) in taskList"
  5. :key="index" @click="goItem(item.id)">
  6. <view class="main_string" :class="item.model_type === 1?'bga-1':'bga-2'"></view>
  7. <view class="row-c flex p-30 p-t60">
  8. <image v-if="item.model_type === 2" class="wh-80 r-circle" src="@/static/img/index/gs.png" mode=""></image>
  9. <image v-else class="wh-80 r-circle" src="@/static/img/index/gr.png" mode=""></image>
  10. <view class="flex m-l20">
  11. <view class="row-justify-sb center flex">
  12. <text class="text-color-333 sys-weight-600" v-if="item.model_type===1">住宅评估</text>
  13. <text class="text-color-333 sys-weight-600" v-else-if="item.model_type===2">公建评估</text>
  14. <text class="text-color-333 sys-weight-600" v-else-if="item.model_type===3">土地评估</text>
  15. <text class="text-color-333 sys-weight-600" v-else>工业用房评估</text>
  16. <view class="row-c line-40" @click.stop="makCall(item.phone)">
  17. <text class="size-26 text-color-333">{{item.name}}</text>
  18. <image class="wh-30 m-l16"
  19. src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task/task-phone.png"
  20. mode=""></image>
  21. </view>
  22. </view>
  23. <view class="p-tb14 p-lr30 m-tb20 r-100 row-justify-sb center size-24 text-color-12 sys-from-background-color sys-weight-600"
  24. style="line-height: 40rpx;">
  25. <view class="">
  26. <view class="fc-9 sys-size-24">
  27. 总价
  28. </view>
  29. <text class="size-28 text-color-E21">¥{{item.total_price}}</text>
  30. </view>
  31. <view class="">
  32. <view class="fc-9 sys-size-24">
  33. 建筑面
  34. </view>
  35. <text class="size-24 text-color-333">{{item.data.area}}</text>
  36. </view>
  37. <view class="">
  38. <view class="fc-9 sys-size-24">
  39. 评估单价
  40. </view>
  41. <text class="color-FF730E">¥{{item.unit_price}}</text>
  42. </view>
  43. </view>
  44. <view class="sys-size-24 fc-9">
  45. {{item.updated_at}}
  46. </view>
  47. </view>
  48. <view class="accomplish-text" >
  49. 已完成
  50. </view>
  51. </view>
  52. </view>
  53. <view class="placeholder sys-list-background-color" v-if="is_bottom && taskList.length"></view>
  54. </view>
  55. <en-blank v-else></en-blank>
  56. </view>
  57. </template>
  58. <script>
  59. import EnButton from "@/components/en-utils/en-button/en-button.vue";
  60. import tools from "@/service/tools";
  61. import EnBlank from "@/components/en-utils/en-blank/en-blank.vue";
  62. import ClientType from "@/pages/loan/components/clientType.vue";
  63. export default {
  64. components: {
  65. ClientType,
  66. EnBlank,
  67. EnButton
  68. },
  69. props: {
  70. type: {
  71. type: Number,
  72. default: 1
  73. },
  74. taskList: {
  75. type: Array,
  76. default: () => [1]
  77. },
  78. iconStatus: {
  79. type: Number,
  80. default: 1
  81. },
  82. leftImgStatus: {
  83. type: Number,
  84. default: 0
  85. },
  86. opacity: {
  87. type: Number,
  88. default: 0
  89. },
  90. back: {
  91. type: Boolean,
  92. default: false
  93. },
  94. is_bottom: {
  95. type: Boolean,
  96. default: false
  97. },
  98. },
  99. data() {
  100. return {
  101. leftImg: ['task-house', 'task-business', 'task-repayment'],
  102. iconList: ['task-audit', 'task-do', 'task-stay'],
  103. lineColor: ['#DEF4FD', '#FFEEE6', '#FFEEE6', '#FFEEE6'],
  104. isAjax: false,
  105. item: {}
  106. }
  107. },
  108. methods: {
  109. goItem(id) {
  110. uni.navigateTo({
  111. url: '/page_law/order-detail/index?id=' + id
  112. });
  113. },
  114. moveHandle() {
  115. return false
  116. },
  117. onCalculate(item, type) {
  118. this.$emit('onCalculate', {
  119. 'item': item,
  120. 'type': type
  121. })
  122. },
  123. makCall(phone) {
  124. tools.makingCall(phone)
  125. }
  126. }
  127. }
  128. </script>
  129. <style lang="scss" scoped>
  130. .en_button {
  131. border: none;
  132. }
  133. .task-body {
  134. height: 100%;
  135. }
  136. .left_button {
  137. height: 56rpx;
  138. color: #008FD6;
  139. line-height: 56rpx;
  140. background: #FFFFFF;
  141. border: 1rpx solid #008FD6;
  142. border-radius: 100rpx;
  143. }
  144. .right_button {}
  145. .placeholder {
  146. height: 40rpx;
  147. }
  148. .main_string {
  149. width: 6rpx;
  150. height: 60rpx;
  151. border-radius: 100rpx;
  152. }
  153. .loan-item {
  154. position: relative;
  155. }
  156. .accomplish-text {
  157. font-size: 24rpx;
  158. color: #00994D;
  159. background-color: #e7f7ef;
  160. padding: 6rpx 30rpx;
  161. line-height: 30rpx;
  162. border-radius: 0 30rpx 0 30rpx;
  163. position: absolute;
  164. right: 0;
  165. top: 0;
  166. }
  167. .unfinished {
  168. color: #F64646;
  169. background-color: #feeded;
  170. }
  171. button::after {
  172. border: none;
  173. }
  174. .fc-9{
  175. color: #999;
  176. }
  177. .bga-1{
  178. background: #37B9FA;
  179. }
  180. .bga-2{
  181. background: #FA5E43;
  182. }
  183. </style>