12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <template>
- <view class="listbox">
- <!-- 列表 -->
- <view class="plr18">
- <bus-list :datalist="list" :wtdt="wtdt" :type="type" @getDetail="getDetail"></bus-list>
- </view>
- </view>
- </template>
- <script>
- import config from '@/config'
- const baseUrl = config.baseUrl
- import busList from "@/work/components/business/list.vue"
- import {getApplicationList} from "@/api/mine/work.js"
- import {getDictionaryFn} from "@/api/mine/register.js"
- import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
- export default{
- components:{busList},
- data(){
- return{
- upimg:require('@/work/static/images/sup.png'),
- resetimg:require('@/work/static/images/reset.png'),
- list:[{tit:'1'}],
- pageSize: 10,
- pageNum: 1,
- reachflag: true,
- wtdt:'',
- type:"vote",
- userId:this.$store.state.user.userId,
- }
- },
- onLoad(e) {
- this.getDataFn()
- },
- methods:{
- checkPermi, checkRole,
- getDataFn(){
- // var str='2,3,4'
- // var params={
- // pageSize:this.pageSize,
- // pageNum: this.pageNum,
- // }
- // getApplicationList(params).then(res=>{
- // if(res.code==200){
- // if (res.rows.length < this.pageSize) {
- // this.reachflag = false
- // this.wtdt = '到底了~';
- // } else {
- // var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
- // if (num < res.total) {
- // this.reachflag = true
- // this.wtdt = ''
- // } else {
- // this.reachflag = false
- // this.wtdt = '到底了~';
- // }
- // }
- // if (this.pageNum == 1) {
- // this.list = res.rows;
- // } else {
- // this.list = this.list.concat(res.rows)
- // }
- // }else{
- // this.$toast(res.msg)
- // }
- // })
- },
- },
-
- }
- </script>
- <style lang="scss" scoped>
- .fixedt{position: fixed;left: 0;right: 0;top: 0;z-index: 2;}
- .fixedt /deep/ uni-picker{flex: 1;}
- .tablists{background: $com-cd3;overflow: auto;flex-wrap: nowrap;padding:4rpx 16rpx 16rpx;
- 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;
- height: 80rpx;display: flex;align-items: center;
- &:last-child{margin-right: 0;}
- &.act{font-size: 30rpx;
- &::after{content: '';width: 30rpx;height: 10rpx;background: #FFFFFF;border-radius: 4rpx;left: 50%;margin-left: -15rpx;bottom: 0rpx;position: absolute;}
- }
- }
- }
- .checkbox{padding: 4rpx 0 0 20rpx ;background-color: #efefef;
- .chekt{display: flex;align-items: center;margin-right: 12rpx;height:88rpx;
- view{text-align: center;
- 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;}
- image{width: 16rpx;height: 12rpx;flex: 0 0 auto;margin-left: 4rpx;}
- }
- }
- .reset{width:56rpx; height: 88rpx;display: flex;align-items: center;justify-content: center;
- image{width: 26rpx;height: 30rpx;}
- }
- .listbox{padding-top: 20rpx;padding-bottom: 24rpx;}
- </style>
|