student_require.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view>
  3. <uni-swipe-action>
  4. <!-- <template v-for="(item, index) in courses" > -->
  5. <uni-swipe-action-item :threshold="0" :right-options="options" @click="bindClick()">
  6. <view class="requires">
  7. <uni-row class="demo-uni-row">
  8. <view>需求号:1231411312123131334244</view>
  9. </uni-row>
  10. <uni-row class="demo-uni-row">
  11. <view>需求科目:xxx</view>
  12. </uni-row>
  13. <uni-row class="demo-uni-row">
  14. <uni-col :span="12">
  15. <view>需求金额:xxx</view>
  16. </uni-col>
  17. <uni-col :span="4" >
  18. 已通过
  19. </uni-col>
  20. <uni-col :span="4" >
  21. 未成交
  22. </uni-col>
  23. <uni-col :span="4" >
  24. 未锁
  25. </uni-col>
  26. </uni-row>
  27. </view>
  28. </uni-swipe-action-item>
  29. <!-- </template> -->
  30. </uni-swipe-action>
  31. <uni-fab :pattern="pattern" horizontal="left" vertical="bottom"
  32. :direction="direction" @fabClick="fabClick" />
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. options: '上架',
  40. pattern: {
  41. color: '#7A7E83',
  42. backgroundColor: '#fff',
  43. selectedColor: '#C00000',
  44. buttonColor: '#C00000',
  45. iconColor: '#fff'
  46. }
  47. };
  48. },
  49. methods: {
  50. fabClick() {
  51. uni.navigateTo({
  52. url: '/subpkg/add_stu_require/add_stu_require'
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss">
  59. .requires {
  60. background-color: #FFF2CC;
  61. }
  62. </style>