123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <template>
- <view class="content">
- <view class="list-item hflex acenter jbetween" v-for="(item,index) in list" :key="index">
- <view class="left">
- <view class="hflex aend left-top">
- <text>租赁成功</text>
- <text>{{item.time}}</text>
- </view>
- <view class="left-bottom">恭喜!你已成功的提交了设备租赁</view>
- </view>
- <view class="right">
- <view class="btn1" v-if="item.status == 1">添加客服</view>
- <view class="btn2" v-if="item.status == 2">已完成</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import $api from '@/static/js/api.js'
- export default {
- data() {
- return {
- list: []
- }
- },
- onLoad() {
- this.getlist()
- },
- onShow() {
-
- },
- onPullDownRefresh() {
-
- },
- onReachBottom() {
-
- },
- methods: {
- getlist() {
- this.list = [
- {
- time: '2023-10-30 周三',
- status: 1
- },
- {
- time: '2023-10-30 周三',
- status: 2
- },
- ]
- }
- }
- }
- </script>
- <style lang="scss">
- .content {
- padding: 20rpx 28rpx;
- .list-item {
- background: #FFFFFF;
- border-radius: 20rpx;
- margin: 0 0 20rpx;
- padding: 32rpx 20rpx;
- .right {
- .btn1 {
- width: 160rpx;
- height: 64rpx;
- background: #00B0B0;
- border-radius: 40rpx;
- font-size: 26rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 64rpx;
- text-align: center;
- }
- .btn2 {
- width: 160rpx;
- height: 64rpx;
- background: #D5D5D5;
- border-radius: 40rpx;
- font-size: 26rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 64rpx;
- text-align: center;
- }
- }
- .left {
- .left-top {
- text:first-child {
- font-size: 32rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 600;
- color: #333333;
- }
- text:last-child {
- font-size: 24rpx;
- font-family: SFPro, SFPro;
- font-weight: 400;
- color: #444444;
- padding-left: 24rpx;
- }
- }
- .left-bottom {
- padding: 20rpx 0 0;
- font-size: 24rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- color: #999999;
- }
- }
- }
- }
- </style>
|