hetongCard.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="shouye-card-box kecheng-card-box">
  3. <!-- card title -->
  4. <view class="card-head-box">
  5. <view class="card-line-title">合同</view>
  6. </view>
  7. <!-- kaoshi title -->
  8. <view class="card-name-box">
  9. <view class="card-name" v-if="data.realName"><icon></icon>{{data.realName}}</view>
  10. <!-- <text class="card-level">{{data.zyLevelName}}</text> -->
  11. </view>
  12. <!-- 内容区域 -->
  13. <view class="card-content-box kaoshi-content-box">
  14. <view class="card-content-item">
  15. <icon :style="{ backgroundImage: 'url(' + data.iconsArr.timeIcon + ')' }"></icon>
  16. <view class="content-text-box">
  17. <text>时间</text>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 底部 -->
  22. <view class="card-bottom-box">
  23. <button type="default" class="index-card-btn" @click="handleStudy(data)">查看</button>
  24. </view>
  25. </view>
  26. </template>
  27. <script setup>
  28. defineProps({
  29. data: {
  30. type: Object,
  31. }
  32. })
  33. function checkMore() {
  34. uni.navigateTo({
  35. url:"/pages/client/Kecheng/list?from=shouye"
  36. })
  37. }
  38. function handleStudy(item) {
  39. uni.navigateTo({
  40. url: `/pages/client/hetong/hetongInfo?id=${item.id}`
  41. })
  42. }
  43. </script>
  44. <style>
  45. </style>