project.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="cu-list menu card-menu shadowType" >
  3. <view class="cu-item " style="background-color: #C6E6FF;">
  4. <view class="flex justify-start" style="display: flex;align-items: center;">
  5. <image class="login-img margin-right-sm" src="/static/index/currentProject.png" style="width: 54rpx;height: 54rpx"></image>
  6. <text class="text-lg margin-top-ssm" style="font-size: 30rpx;color:#0A8CD5;font-weight: bold;">当前项目</text>
  7. </view>
  8. <view @click="navToProject()">
  9. <image class="login-img" src="/static/index/switch.png" style="width: 32rpx;height: 32rpx;"></image>
  10. </view>
  11. </view>
  12. <view style="background-color: #C6E6FF;padding: 28rpx 22rpx;">
  13. <view class="content" v-if="projectList!=''">
  14. <view style="font-size: 34rpx;color:#101010;font-weight: bold;padding-bottom: 8rpx;">
  15. {{projectList.project_name}}
  16. </view>
  17. <view style="font-size: 30rpx;color:#101010;">
  18. {{projectList.contractName}}
  19. </view>
  20. </view>
  21. <view v-else class="content">
  22. <view style="font-size: 34rpx;color:#101010;font-weight: bold;padding-bottom: 8rpx;">
  23. 暂无项目
  24. </view>
  25. <view style="font-size: 30rpx;color:#101010;">暂无合同段</view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. props:{
  33. projectList:"",
  34. },
  35. data () {
  36. return{}
  37. },
  38. methods:{
  39. navToProject(){
  40. uni.navigateTo({
  41. url:"/pages/user/project/project?type=1"
  42. })
  43. },
  44. }
  45. }
  46. </script>
  47. <style>
  48. .login-img{
  49. width: 60rpx;
  50. height: 60rpx;
  51. }
  52. </style>