| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <template>
- <view>
- <view class="task-body m-20">
- <view class="row-c page-box-bg-fff m-b20 r-30 p-30 box-shadow-197" v-for="(item,index) in 10" :key="index"
- @click="onTaskDetails(item)">
- <image class="wh-80" :src="getLeftImg(leftImg)" mode=""></image>
- <view class="flex m-l20">
- <view class="row-justify-sb center flex">
- <text class="text-color-333 sys-weight-600">垫资还款</text>
- <view class="row-c line-40">
- <text class="size-26 text-color-333">刘芳芳{{index}}</text>
- <image class="wh-30 m-l16" src="/static/img/task/task-phone.png" mode=""></image>
- </view>
- </view>
- <view
- class="p-tb14 p-lr30 m-tb20 r-100 row-justify-sb center size-24 text-color-12 sys-from-background-color"
- style="line-height: 40rpx;">
- <text class="size-28 text-color-E21 sys-weight-600">120万</text>
- <text>初审</text>
- <text>2024/12/24用款</text>
- </view>
- <view class="row-justify-sb center" style="line-height: 40rpx;">
- <text class="size-24 text-color-999 flex">2024.10.11 12:45</text>
- <image style="width: 65rpx;height: 32rpx;" :src="getIconStatus(iconStatus)" v-if="type == 1">
- </image>
- <button class="button-background en_button sys-weight-500 text-color-fff size-28 r-100"
- style="width: 200rpx;height: 70rpx;line-height: 70rpx;" type="default"
- hover-class="is-hover" v-if="type == 2">领取任务</button>
- <view class="row-c" v-if="type == 3">
- <button
- class="button-backgroun en_buttond left_button sys-weight-500 button_color-008FD6 size-26 r-100 m-r20"
- type="default" hover-class="is-hover">核算</button>
- <button
- class="button-background en_button left_button right_button sys-weight-500 button_color-008FD6 size-26 r-100"
- type="default" hover-class="is-hover">客户分类</button>
- </view>
- </view>
- </view>
- </view>
- <view class="placeholder sys-list-background-color" v-if="is_bottom"></view>
- </view>
- </view>
- </template>
- <script>
- import EnButton from "@/components/en-utils/en-button/en-button.vue";
- export default {
- components: {
- EnButton
- },
- props: {
- type: {
- type: Number,
- default: 1
- },
- taskList: {
- type: Array,
- default: () => []
- },
- iconStatus: {
- type: Number,
- default: 0
- },
- leftImgStatus: {
- type: Number,
- default: 0
- },
- opacity: {
- type: Number,
- default: 0
- },
- back: {
- type: Boolean,
- default: false
- },
- is_bottom: {
- type: Boolean,
- default: false
- },
- },
- data() {
- return {
- leftImg: ['task-house', 'task-business', 'task-repayment'],
- iconList: ['task-audit', 'task-do', 'task-stay']
- }
- },
- methods: {
- getIconStatus() {
- return `/static/img/task/${this.iconList[this.iconStatus]}.png`
- },
- getLeftImg() {
- return `/static/img/task/${this.leftImg[this.leftImgStatus]}.png`
- },
- onTaskDetails(item) {
- uni.navigateTo({
- url: '/page_task/task_details/task_details'
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .en_button {
- border: none;
- }
- .task-body {
- height: 100%;
- }
- .left_button {
- width: 122rpx;
- height: 56rpx;
- color: #008FD6;
- line-height: 56rpx;
- background: #FFFFFF;
- border: 1rpx solid #008FD6;
- border-radius: 100rpx;
- }
- .right_button {
- width: 160rpx;
- }
- .placeholder {
- height: 40rpx;
- }
- button::after {
- border: none;
- }
- </style>
|