vote.vue 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="listbox">
  3. <!-- 列表 -->
  4. <view class="plr18">
  5. <bus-list :datalist="list" :wtdt="wtdt" :type="type" @getDetail="getDetail"></bus-list>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import config from '@/config'
  11. const baseUrl = config.baseUrl
  12. import busList from "@/work/components/business/list.vue"
  13. import {getApplicationList} from "@/api/mine/work.js"
  14. import {getDictionaryFn} from "@/api/mine/register.js"
  15. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  16. export default{
  17. components:{busList},
  18. data(){
  19. return{
  20. upimg:require('@/work/static/images/sup.png'),
  21. resetimg:require('@/work/static/images/reset.png'),
  22. list:[{tit:'1'}],
  23. pageSize: 10,
  24. pageNum: 1,
  25. reachflag: true,
  26. wtdt:'',
  27. type:"vote",
  28. userId:this.$store.state.user.userId,
  29. }
  30. },
  31. onLoad(e) {
  32. this.getDataFn()
  33. },
  34. methods:{
  35. checkPermi, checkRole,
  36. getDataFn(){
  37. // var str='2,3,4'
  38. // var params={
  39. // pageSize:this.pageSize,
  40. // pageNum: this.pageNum,
  41. // }
  42. // getApplicationList(params).then(res=>{
  43. // if(res.code==200){
  44. // if (res.rows.length < this.pageSize) {
  45. // this.reachflag = false
  46. // this.wtdt = '到底了~';
  47. // } else {
  48. // var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  49. // if (num < res.total) {
  50. // this.reachflag = true
  51. // this.wtdt = ''
  52. // } else {
  53. // this.reachflag = false
  54. // this.wtdt = '到底了~';
  55. // }
  56. // }
  57. // if (this.pageNum == 1) {
  58. // this.list = res.rows;
  59. // } else {
  60. // this.list = this.list.concat(res.rows)
  61. // }
  62. // }else{
  63. // this.$toast(res.msg)
  64. // }
  65. // })
  66. },
  67. },
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. .fixedt{position: fixed;left: 0;right: 0;top: 0;z-index: 2;}
  72. .fixedt /deep/ uni-picker{flex: 1;}
  73. .tablists{background: $com-cd3;overflow: auto;flex-wrap: nowrap;padding:4rpx 16rpx 16rpx;
  74. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;position: relative;flex: 1 0 auto;padding: 0rpx 20rpx;margin-right: 6rpx;box-sizing: border-box;text-align: center;
  75. height: 80rpx;display: flex;align-items: center;
  76. &:last-child{margin-right: 0;}
  77. &.act{font-size: 30rpx;
  78. &::after{content: '';width: 30rpx;height: 10rpx;background: #FFFFFF;border-radius: 4rpx;left: 50%;margin-left: -15rpx;bottom: 0rpx;position: absolute;}
  79. }
  80. }
  81. }
  82. .checkbox{padding: 4rpx 0 0 20rpx ;background-color: #efefef;
  83. .chekt{display: flex;align-items: center;margin-right: 12rpx;height:88rpx;
  84. view{text-align: center;
  85. font-weight: bold;font-size: 26rpx;color: #374B61;width: 136rpx;word-break: break-all;text-overflow: ellipsis;overflow: hidden;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;white-space: normal;}
  86. image{width: 16rpx;height: 12rpx;flex: 0 0 auto;margin-left: 4rpx;}
  87. }
  88. }
  89. .reset{width:56rpx; height: 88rpx;display: flex;align-items: center;justify-content: center;
  90. image{width: 26rpx;height: 30rpx;}
  91. }
  92. .listbox{padding-top: 20rpx;padding-bottom: 24rpx;}
  93. </style>