123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <template>
- <view class="container content-all-page">
- <view class="tab-content">
- <view class="item" v-for="item in tabList" :key="item.value" @click="tabClickHandler(item)">
- {{ item.name }}
- <view class="line-active" v-if="tabActive == item.value"> </view>
- </view>
- </view>
- <view class="content-ul">
- <view class="content-li">
- <view class="type-time">
- <view class="type"> 笔 记</view>
- <view class="time"> 2023.08.24 13:13:13</view>
- </view>
- <view class="title-item"> 标题标题标题标题标题标题标题标题标题标题标题标题</view>
- <view class="btn-box">
- <view class="cancell-box"> 取消发布</view>
- <view class="reject-box"> 驳回理由</view>
- <view class="edit-box"> 修改 </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- tabList: [
- { name: "草稿箱", value: "1" },
- { name: "已发布", value: "2" },
- { name: "审核中", value: "3" },
- { name: "已驳回", value: "4" },
- ],
- tabActive: "1",
- };
- },
- methods: {
- // top标签点击事件
- tabClickHandler(item) {
- this.tabActive = item.value;
- },
- },
- };
- </script>
- <style lang="scss" scope>
- .content-all-page {
- background-color: #f3f5f9;
- .tab-content {
- margin-top: 1rpx;
- background-color: #fff;
- height: 96rpx;
- display: flex;
- view {
- flex: 1;
- text-align: center;
- line-height: 96rpx;
- border-bottom: 2rpx solid #e7e7e7;
- }
- .item {
- position: relative;
- .line-active {
- position: absolute;
- left: 50%;
- bottom: 0rpx;
- width: 32rpx;
- height: 6rpx;
- border-radius: 6rpx;
- background-color: #376cbb;
- transform: translateX(-50%);
- }
- }
- }
- .content-ul {
- padding: 30rpx;
- .content-li {
- width: 100%;
- height: 256rpx;
- padding: 20rpx;
- border-radius: 16rpx;
- border-top: 10rpx solid #e7e0cd;
- background-color: #fff;
- .type-time {
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #666666;
- .type {
- width: 110rpx;
- height: 42rpx;
- line-height: 42rpx;
- text-align: center;
- border-radius: 38rpx;
- color: #928563;
- background-color: #fff6de;
- font-weight: 500;
- }
- }
- .title-item {
- margin: 10rpx 0 20rpx;
- color: #333;
- font-size: 32rpx;
- font-weight: 500;
- line-height: 46rpx;
- }
- .btn-box {
- display: flex;
- justify-content: flex-end;
- view {
- padding: 4rpx 24rpx 4rpx 24rpx;
- border-radius: 150rpx;
- margin-left: 10rpx;
- }
- .cancell-box {
- color: #376cbb;
- border: 1rpx solid #376cbb;
- }
- .edit-box {
- color: #fff;
- background-color: #376cbb;
- }
- .reject-box {
- color: #d54941;
- border: 1rpx solid #d54941;
- }
- }
- }
- }
- }
- </style>
|