task_details.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view class="total-page page-env-20 page-box">
  3. <Nav :title="'任务详情'" :genre="1" :fixedHeight="135"></Nav>
  4. <view class="task-tabs task-tabs-width m-t30">
  5. <view class="m-lr20 m-b20 detail-bg">
  6. <image class="detail-img" src="/static/img/task/details-bg.png" mode=""></image>
  7. <view class="detail-content">
  8. <view class="row-c top-titke">
  9. <image class="wh-60 r-circle" src="../../static/img/logo.png" mode=""></image>
  10. <text>张三</text>
  11. <text>张三</text>
  12. <text>张三</text>
  13. </view>
  14. <view class="row-justify-sb center buttom-titke" style="">
  15. <image class="wh-60 r-circle" src="../../static/img/logo.png" mode=""></image>
  16. <text>张三</text>
  17. <text>张三</text>
  18. <text>张三</text>
  19. </view>
  20. </view>
  21. </view>
  22. <TaskTab></TaskTab>
  23. <view class="m-lr20 m-t20" style="width: 95vw;">
  24. <z-swiper v-model="list" :options="{slidesPerView : 1,centeredSlides : true}">
  25. <z-swiper-item :custom-style="{width:'90vw'}" v-for="(item,index) in list" :key="index">
  26. <image class="image" style="width: 88vw;" :src="item" mode="aspectFill">
  27. </image>
  28. </z-swiper-item>
  29. </z-swiper>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import TaskItem from "@/common/task/task-item.vue"
  36. import TaskTab from "@/page_task/module/task_tab.vue"
  37. export default {
  38. components: {
  39. TaskTab,
  40. TaskItem
  41. },
  42. data() {
  43. return {
  44. list: [
  45. 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe1.jpg',
  46. 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe2.jpg',
  47. 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe2.jpg',
  48. ],
  49. }
  50. },
  51. methods: {
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .detail-bg {
  57. position: relative;
  58. }
  59. .detail-img {
  60. width: 100%;
  61. height: 220rpx;
  62. }
  63. .detail-content {
  64. position: absolute;
  65. top: 10rpx;
  66. left: 20rpx;
  67. .top-titke {
  68. height: 75rpx;
  69. line-height: 75rpx;
  70. // background: red;
  71. }
  72. .buttom-titke {
  73. flex: 1;
  74. margin-top: 26rpx;
  75. height: 90rpx;
  76. width: 635rpx;
  77. line-height: 90rpx;
  78. background: #FFFFFF;
  79. border-radius: 20rpx;
  80. padding: 0 20rpx;
  81. }
  82. }
  83. </style>