1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <template>
- <view class="u-page">
- <scroll-view class="scroll-list" scroll-y="true">
- <view class="uni-list">
- <view class="uni-list-cell">
- <view class="uni-media-list" @click="$tab.navigateTo('/pages/message/apply/apply')">
- <view style="margin-right: 20rpx;">
- <u-image :fade="false" src="@/static/images/message/apply.png" width="40px" height="40px"></u-image>
- </view>
- <view class="uni-media-list-body">
- <view class="uni-media-list-text-top"><span>审批</span>
- </view>
- <view class="uni-media-list-text-bottom">
- <uni-text><span>您有新流程待审批</span></uni-text>
- </view>
- </view>
- <view class="info">
- <span style="font-size: 26rpx;color: #999999;">{{acceptTime}}</span>
- <u-badge class="info-badge" type="error" count="2" :max="99"
- :value="detail"></u-badge>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
-
- <script>
- import {
- todoList
- } from "@/api/flowable/todo";
- export default {
- data() {
- return {
- todoList: [],
- detail: 0,
- acceptTime: ''
- };
- },
- created() {
- this.getTodoList();
- },
- onLoad() {
-
- },
- methods: {
-
- getTodoList() {
- todoList({
- pageNum: 1,
- pageSize: 999,
- name: null
- }).then(response => {
- console.log(response)
- this.detail = response.data.total;
- this.todoList = response.data.records;
- this.acceptTime = response.data.records[0].createTime;
- });
- }
- },
- };
- </script>
- <style lang="scss">
- @import '../common/uni.css';
- .info{
- position: relative;
- .info-badge{
- position: absolute;
- right: 0;
- top:45rpx;
- }
- }
- </style>
- <style>
- .icon {
- width: 1em;
- height: 1em;
- vertical-align: -0.15em;
- fill: currentColor;
- overflow: hidden;
- }
- </style>
|