|
|
@@ -1,50 +1,25 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <div class="actives">
|
|
|
- <div v-for="(active, idx) in activeListCopy"
|
|
|
- :key="idx"
|
|
|
- class="actives-item"
|
|
|
- @click="goDeatil(active.id)">
|
|
|
- <div class="active-content">
|
|
|
- <div class="img-box"><img :src="active.url" alt="" /></div>
|
|
|
- <div class="right">
|
|
|
- <div class="right-title">{{ active.title }}</div>
|
|
|
- <div class="right-inf">
|
|
|
- <div class="inf-type right-item" style="width: 17%">
|
|
|
- <div
|
|
|
- :class="{ color: active.type == 1 }"
|
|
|
- class="originColor"
|
|
|
- ></div>
|
|
|
- <div>{{ active.type == 1 ? "线上" : "线下" }}</div>
|
|
|
- </div>
|
|
|
- <div class="inf-way right-item">
|
|
|
- {{ active.way }}
|
|
|
- </div>
|
|
|
- <div class="inf-date right-item">
|
|
|
- {{ active.date }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="readShare">
|
|
|
- <div v-show="active.status == '待开始'" class="active-tips-box wait-color">
|
|
|
- 活动待开始
|
|
|
- </div>
|
|
|
- <div v-show="active.status == '已开始'" class="active-tips-box ing-color">
|
|
|
- 活动进行中
|
|
|
- </div>
|
|
|
- <div v-show="active.status == '已结束'" class="active-tips-box end-color">
|
|
|
- 活动已结束
|
|
|
- </div>
|
|
|
- <div v-show="active.status == '已取消'" class="active-tips-box end-color">
|
|
|
- 活动已取消
|
|
|
- </div>
|
|
|
- <div class="read">浏览 {{ active.read }}</div>
|
|
|
- <div class="share">分享 {{ active.share }}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <image src="../../static/nodata.svg" mode="aspectFit" style="width: 100%;" v-if="activeListCopy.length === 0"></image>
|
|
|
- </div>
|
|
|
+ <view
|
|
|
+ class="fix-content-box"
|
|
|
+ v-for="(item, index) in fixList"
|
|
|
+ :key="index"
|
|
|
+ style="justify-content: start; padding: 30rpx 0 30rpx 30rpx;border-radius: 0;"
|
|
|
+ @click="goActiveDeatil(item.id)" >
|
|
|
+
|
|
|
+ <view class="notice-content">
|
|
|
+ <view class="notice-content-font">{{item.title}}</view>
|
|
|
+ <view class="display-between" style="margin-top: 20rpx">
|
|
|
+ <view class="notice-content-time">
|
|
|
+ 提交时间:{{item.time}}
|
|
|
+ </view>
|
|
|
+ <view class="display-flex-start" style="visibility: hidden;">
|
|
|
+ <view class="notice-content-time">{{item.orderStatus}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <image src="../../static/nodata.svg" mode="aspectFit" style="width: 100%;" v-if="fixList.length === 0"></image>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -53,31 +28,21 @@ import md5 from "@/common/md5.js";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- message: "我的活动",
|
|
|
+ message: "我的报修",
|
|
|
themeColor: "#007AFF",
|
|
|
mode: "selector",
|
|
|
typeActive: true,
|
|
|
indexType: 0,
|
|
|
indexState: 0,
|
|
|
- activeList: [
|
|
|
- // {
|
|
|
- // url: "/static/activity/1.png",
|
|
|
- // title: "400场讲座,200门课程,免费送上门!就等你申请",
|
|
|
- // way: "区人力资源局",
|
|
|
- // date: "2021-08-08",
|
|
|
- // read: 322,
|
|
|
- // share: 1,
|
|
|
- // type: 1, //1线上
|
|
|
- // },
|
|
|
- // {
|
|
|
- // url: "/static/activity/2.png",
|
|
|
- // title: "智能制造商标品牌培育系列培训活动",
|
|
|
- // way: "市场监督管理局",
|
|
|
- // date: "2021-08-07",
|
|
|
- // read: 322,
|
|
|
- // share: 1,
|
|
|
- // type: 2, //2线下
|
|
|
- // },
|
|
|
+ fixList: [
|
|
|
+ {
|
|
|
+ title: "暖气不热",
|
|
|
+ time: "2023-08-18",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "二楼暖气管道井漏水严重,同时发出严重的声响,请尽快处理",
|
|
|
+ time: "2023-09-05",
|
|
|
+ },
|
|
|
],
|
|
|
activeListCopy: [],
|
|
|
};
|
|
|
@@ -122,44 +87,7 @@ export default {
|
|
|
success: (res) => {
|
|
|
// console.log(res);
|
|
|
if (res.data.code === 200) {
|
|
|
- let list = res.data.data.list;
|
|
|
- this.activeList = list.map((item) => {
|
|
|
- /*
|
|
|
- url: "/static/activity/2.png",
|
|
|
- title: "智能制造商标品牌培育系列培训活动",
|
|
|
- way: "市场监督管理局",
|
|
|
- date: "2021-08-07",
|
|
|
- read: 322,
|
|
|
- share: 1,
|
|
|
- type: 0, //0线下
|
|
|
- */
|
|
|
- let ob = {
|
|
|
- url: "",
|
|
|
- title: "",
|
|
|
- way: "",
|
|
|
- date: "",
|
|
|
- read: 0,
|
|
|
- share: 0,
|
|
|
- type: "",
|
|
|
- status:'',
|
|
|
- id: "",
|
|
|
- status: 0,
|
|
|
- };
|
|
|
- ob.url = item.pic_url ? getApp().globalData.shareUrl + item.pic_url : '/static/activity/default.png';
|
|
|
- ob.title = item.name;
|
|
|
- ob.way = item.sponsor;
|
|
|
- let time = this.$options.filters["globalTime"](item.start_time);
|
|
|
- let timeSecond = this.$options.filters["globalTime"](item.end_time);
|
|
|
- ob.date = time + "至" + timeSecond;
|
|
|
- ob.read = parseInt(item.base_read_count) + parseInt(item.real_read_count);
|
|
|
- ob.share =parseInt(item.real_repost_count) +parseInt(item.base_repost_count);
|
|
|
- ob.type = item.type;
|
|
|
- ob.status = item.status;
|
|
|
- ob.id = item.id;
|
|
|
- ob.status = item.status;
|
|
|
- return ob;
|
|
|
- });
|
|
|
- this.activeListCopy = this.activeList;
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
fail: () => {
|
|
|
@@ -177,166 +105,33 @@ export default {
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
width: 100%;
|
|
|
- .choose-box {
|
|
|
- padding: 20rpx 0;
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- // position: fixed;
|
|
|
- height: 50rpx;
|
|
|
- top: 0;
|
|
|
- // margin-bottom: 50rpx;
|
|
|
- .type,
|
|
|
- .state {
|
|
|
- width: 50%;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- position: relative;
|
|
|
- .packer {
|
|
|
- width: 100%;
|
|
|
- .picker_title {
|
|
|
- z-index: 99;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .type::after,
|
|
|
- .state::after {
|
|
|
- z-index: -1;
|
|
|
- content: "";
|
|
|
- position: absolute;
|
|
|
- right: 30%;
|
|
|
- top: 20%;
|
|
|
- width: 0;
|
|
|
- height: 0;
|
|
|
- border-top: 15rpx solid rgb(173, 173, 173);
|
|
|
- border-left: 15rpx solid transparent;
|
|
|
- border-right: 15rpx solid transparent;
|
|
|
- }
|
|
|
+.fix-content-box {
|
|
|
+ width: 90%;
|
|
|
+ display: flex;
|
|
|
+ padding: 30rpx 20rpx 30rpx 20rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
|
|
|
+ border-radius: 32rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ justify-content: space-between;
|
|
|
+ .notice-content-font {
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #0d1937;
|
|
|
+ font-weight: 600;
|
|
|
}
|
|
|
- .actives {
|
|
|
- width: 90%;
|
|
|
- // margin-top: 50rpx;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- .actives-item {
|
|
|
- width: 100%;
|
|
|
- // height: 150rpx;
|
|
|
- box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
|
|
|
- border-radius: 32rpx;
|
|
|
- // margin-top: 20px;
|
|
|
- padding: 20rpx;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- margin-top: 20rpx;
|
|
|
- margin-bottom: 10rpx;
|
|
|
- .active-content {
|
|
|
- display: flex;
|
|
|
- .img-box {
|
|
|
- margin-right: 20rpx;
|
|
|
- width: 120rpx;
|
|
|
- height: 120rpx;
|
|
|
- img {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- border-radius: 10%;
|
|
|
- }
|
|
|
- }
|
|
|
- .right {
|
|
|
- width: 80%;
|
|
|
- // height: 120rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: space-between;
|
|
|
- .right-title {
|
|
|
- width: 100%;
|
|
|
- margin-bottom:10rpx;
|
|
|
- font-size: 32rpx;
|
|
|
- // font-weight: 600;
|
|
|
- letter-spacing: 3rpx;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
- .right-inf {
|
|
|
- flex-wrap: wrap;
|
|
|
- display: flex;
|
|
|
- font-size: 26rpx;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- color: $uni-text-color-grey;
|
|
|
- .right-item{
|
|
|
- margin-bottom: 10rpx;
|
|
|
- }
|
|
|
- .inf-type {
|
|
|
- margin-right: 10rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- .originColor {
|
|
|
- margin-right: 8rpx;
|
|
|
- height: 20rpx;
|
|
|
- width: 20rpx;
|
|
|
- border-radius: 50%;
|
|
|
- background-color: #ffcf86;
|
|
|
- }
|
|
|
- }
|
|
|
- .inf-way {
|
|
|
- width: 77%;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
- .inf-date {
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .readShare {
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- font-size: 26rpx;
|
|
|
- color: rgba(0, 0, 0, 0.3);
|
|
|
- margin-top: 20rpx;
|
|
|
- align-items: center;
|
|
|
- .active-tips-box {
|
|
|
- font-size: 28rpx;
|
|
|
- padding: 10rpx;
|
|
|
- border-radius: 10rpx;
|
|
|
- color: #fff;
|
|
|
- margin-right: 50rpx;
|
|
|
- }
|
|
|
- .wait-color {
|
|
|
- background-color: #aee359;
|
|
|
- }
|
|
|
- .ing-color {
|
|
|
- background-color: #00a8ea;
|
|
|
- }
|
|
|
- .end-color {
|
|
|
- background-color: #d7d7d7;
|
|
|
- }
|
|
|
- .read {
|
|
|
- width: 20%;
|
|
|
- text-align: center;
|
|
|
- // margin-right: 60rpx;
|
|
|
- }
|
|
|
- .share {
|
|
|
- width: 20%;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ .notice-content-time {
|
|
|
+ font-size: 26rpx;
|
|
|
+ letter-spacing: 0.02em;
|
|
|
+ color: #a7adba;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+}
|
|
|
.active {
|
|
|
color: $uni-color-primary;
|
|
|
}
|
|
|
.color {
|
|
|
background-color: #589cff !important;
|
|
|
}
|
|
|
+
|
|
|
</style>
|