app_tree_planting/pages/duty/index.vue

956 lines
21 KiB
Vue
Raw Permalink Normal View History

2023-01-11 19:31:59 +08:00
<template>
2023-02-05 20:52:34 +08:00
<view class="page">
2023-02-17 18:13:06 +08:00
<view class="status-bar"></view>
<view class="content">
<scroller @init="initScroller" @down="refreshData" @up="getList" :up="optUp"
@scroll="navFloatShow(scroller)" :fixed="false">
2023-02-09 17:47:52 +08:00
<!-- 轮播图 -->
<swiper v-if="slider.length > 0" class="swiper" :indicator-dots="false" :autoplay="true"
:circular="true">
2023-03-03 19:29:04 +08:00
<swiper-item class="swiper-item" v-for="(item, index) in slider" :key="index">
<image :lazy-load="true" :src="item.imageUrl" mode="scaleToFill"></image>
2023-02-09 17:47:52 +08:00
</swiper-item>
</swiper>
2023-03-03 19:29:04 +08:00
<view :class="fixedSearch? 'fixed-box':'nofixed-box'">
<view class="func-box">
<view class="item" @click="openActivity()">
<image src="../../static/images/ic_labour_pious_icon.png" mode="scaleToFill"></image>
<text>劳动尽责</text>
</view>
<view class="item" @click="openCertificate">
<image src="../../static/images/ic_certify_search_icon.png" mode="scaleToFill"></image>
<text>证书查询</text>
</view>
<view class="item" @click="openExplain">
<image src="../../static/images/ic_duty_answer_icon.png" mode="scaleToFill"></image>
<text>尽责形式</text>
</view>
2023-02-09 17:47:52 +08:00
</view>
2023-02-05 20:52:34 +08:00
</view>
2023-02-17 18:13:06 +08:00
<view @click="openList" class="title-item">
<view class="title-item-line">
<view class="line-green"></view>
<view class="title-item-title">最新活动</view>
</view>
<view class="title-item-content">更多></view>
</view>
2023-03-03 19:29:04 +08:00
<!-- 劳动尽责内容 -->
<view class="list-box">
<view class="item" v-for="(item,index) in list" :key="index" @click="openDetail(item.activityId)">
<view class="activity-item">
<view class="activity-item-box">
<view class="activity-item-num">
{{item.joinedCount}}/{{item.joinCount}}
2023-02-09 17:47:52 +08:00
</view>
2023-03-03 19:29:04 +08:00
<image :src="imgUrl+item.img" mode="scaleToFill" class="img"></image>
</view>
<view class="activity-content">
<rich-text class="activity-name" :nodes="item.name"></rich-text>
<view class="item-type">
<view class="type-type">{{item.activityType}}</view>
<view class="type-theme">{{item.theme}}</view>
2023-02-09 17:47:52 +08:00
</view>
2023-03-03 19:29:04 +08:00
<view class="activity-time">{{item.startTime}}</view>
<!-- <rich-text class="activity-desc" :nodes="item.content"></rich-text> -->
2023-02-09 17:47:52 +08:00
</view>
2023-03-03 19:29:04 +08:00
</view>
2023-02-09 17:47:52 +08:00
</view>
2023-12-13 10:20:14 +08:00
</view>
<view class="page-foot">
<view class="name">
数据来源乌兰察布市林业和草原局
</view>
<view class="phone" @click="doCall('14747318104')">联系电话14747318104</view>
<view class="phone" @click="doCall('12345')">服务热线12345</view>
2023-03-03 19:29:04 +08:00
</view>
2023-12-13 10:20:14 +08:00
</scroller>
2023-02-17 18:13:06 +08:00
</view>
2023-02-09 17:47:52 +08:00
<pageLoading v-if="showPageLoading"></pageLoading>
2023-01-11 19:31:59 +08:00
</view>
</template>
<script>
2023-02-01 19:25:51 +08:00
import pageLoading from '@/components/loading/pageLoading.vue';
2023-12-13 10:20:14 +08:00
import sm2 from 'sm-crypto';
2023-02-01 19:25:51 +08:00
export default {
components: {
pageLoading
},
data() {
return {
2023-02-05 20:52:34 +08:00
showPageLoading: true,
slider: [{
2023-02-09 17:47:52 +08:00
imageUrl: "/static/images/ic_duty_title_bg.png"
2023-02-05 20:52:34 +08:00
}], //轮播图
2023-02-09 17:47:52 +08:00
list: [],
scroller: {},
optUp: {
auto: true,
onScroll: true,
page: {
num: 0, //当前页 默认0,回调之前会加1; 即callback(page)会从1开始
2023-03-03 19:29:04 +08:00
size: 10 //每页数据条数,默认10
2023-02-09 17:47:52 +08:00
},
empty: {
tip: '暂无数据~'
}
},
2023-02-17 18:13:06 +08:00
imgUrl: this.$api.common.imgUrl,
2023-03-03 19:29:04 +08:00
fixedSearch: false,
2023-02-09 17:47:52 +08:00
2023-02-01 19:25:51 +08:00
};
},
2023-02-09 17:47:52 +08:00
onLoad(res) {
2023-12-13 10:20:14 +08:00
// #ifdef H5
var obj = this.getParamsArg(window.location.href)
if (!obj.code) {
window.location.href = "https://app.zwfw.nmg.gov.cn/dgov-authing/auth2.0/authorize?app_id=" + this.$api
.common
.msbAppId + '&scope=base_info%2Cauth_user&redirect_uri=' + encodeURI(
'https://app.zwfw.nmg.gov.cn/rhpt/16e8a8a578025000')
} else {
this.getMsbToken(obj.code.replace('#\/', ''))
}
// #endif
2023-02-09 17:47:52 +08:00
},
2023-02-01 19:25:51 +08:00
methods: {
2023-12-13 10:20:14 +08:00
sm3SignTokenParam(code) {
var uuid = this.getUUID()
var time = new Date().getTime()
const data = "app_id=" + this.$api.common.msbAppId + "&app_secret=" + this.$api.common.msbAppSecret +
"&code=" + code + "&grant_type=authorization_code" + "&time=" + time + "&uuid=" + uuid
var params = {
uuid: uuid,
sign: sm2.sm3(data),
time: time
}
return params;
},
getParamsArg(url) {
let params = url.split('?')[1];
let paramsObj = {};
if (typeof(params) == 'undefined' || params == null) {
return paramsObj;
}
let paramsKVs = params.split('&');
for (let i = 0; i < paramsKVs.length; i++) {
let item = paramsKVs[i];
let kvs = item.split('=');
if (kvs.length === 1) {
paramsObj[kvs[0]] = null;
continue;
}
paramsObj[kvs[0]] = decodeURI(item.replace(kvs[0] + '=', ''));
}
return paramsObj;
},
sm3SignUserBaseInfo(token) {
var uuid = this.getUUID()
var time = new Date().getTime()
const data = "app_id=" + this.$api.common.msbAppId + "&app_secret=" + this.$api.common.msbAppSecret +
"&auth_token=" + token + "&time=" + time + "&uuid=" + uuid
var params = {
uuid: uuid,
sign: sm2.sm3(data),
time: time
}
return params;
},
getUUID() {
var s = [];
var hexDigits = "0123456789abcdef";
for (var i = 0; i < 36; i++) {
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
}
s[14] = "4"; // bits 12-15 of the time_hi_and_version field to 0010
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01
s[8] = s[13] = s[18] = s[23] = "-";
var uuid = s.join("");
return uuid;
},
getAuthorize() {
var _self = this;
uni.showLoading({
title: '加载中...'
})
this.$app.request({
url: this.$api.common.getMsbAuthorize,
method: 'GET',
data: {
app_id: this.$api.common.msbAppId,
scope: 'base_info%2Cauth_user',
redirect_uri: encodeURI(
'https://app.zwfw.nmg.gov.cn/rhpt/16e8a8a578025000')
},
dataType: 'json',
success: res => {
if (res.data && res.data.code) {
_self.getMsbToken(res.data.code)
}
},
fail: error => {
console.log(error)
uni.hideLoading()
},
complete: res => {}
});
},
doCall(phone){
uni.makePhoneCall({
phoneNumber:phone
})
},
getMsbToken(code) {
var _self = this;
var signParams = _self.sm3SignTokenParam(code)
this.$app.request({
url: _self.$api.common.getToken,
method: 'POST',
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: {
app_id: _self.$api.common.msbAppId,
grant_type: 'authorization_code',
code: code,
sign: signParams.sign,
time: signParams.time,
uuid: signParams.uuid
},
dataType: 'json',
success: res => {
},
fail: error => {
console.log(error)
uni.hideLoading()
},
complete: res => {
console.log(res)
uni.hideLoading()
if (res.data && res.data.code == 1000) {
_self.getMsbUserInfo(res.data.data.token)
}
}
});
},
getMsbUserInfo(token) {
var _self = this;
var params = _self.sm3SignUserBaseInfo(token)
this.$app.request({
url: this.$api.common.getMsbUserInfo,
method: 'POST',
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: {
app_id: _self.$api.common.msbAppId,
auth_token: token,
sign: params.sign,
time: params.time,
uuid: params.uuid
},
dataType: 'json',
success: res => {
},
fail: error => {
console.log(error)
uni.hideLoading()
},
complete: res => {
uni.hideLoading()
if (res.data && res.data.code == 1000) {
_self.doLogin(res.data.data)
}
}
});
},
doLogin(user) {
console.log(user)
uni.showLoading({
title: '加载中...'
})
var _self = this;
this.$app.request({
url: _self.$api.user.msbLogin,
method: 'POST',
data: {
custName: user.custName,
mobilePhone: user.mobilePhone
},
dataType: 'json',
success: res => {
uni.hideLoading()
getApp().globalData.token = res.data
},
fail: error => {
uni.hideLoading()
uni.showToast({
icon: 'error',
title: '请稍后重新进入'
})
},
complete: res => {}
});
},
2023-02-05 20:52:34 +08:00
doSearch() {
2023-02-01 19:25:51 +08:00
2023-02-05 20:52:34 +08:00
},
onSearchInput(event) {
},
openActivity() {
uni.navigateTo({
2023-02-28 11:15:48 +08:00
url: '/pages/duty/activitynewlist'
2023-02-05 20:52:34 +08:00
})
},
openExplain() {
uni.navigateTo({
url: "/pages/duty/dutyexplain"
})
},
openCertificate() {
uni.navigateTo({
url: "/pages/user/mine_certif_search"
})
2023-02-09 17:47:52 +08:00
},
2023-02-17 18:13:06 +08:00
openDetail(id) {
uni.navigateTo({
2023-03-03 19:29:04 +08:00
url: "/pages/duty/activitydetail?id=" + id + "&type=" + -1
2023-02-17 18:13:06 +08:00
})
},
openList() {
uni.navigateTo({
2023-02-28 11:15:48 +08:00
url: "/pages/duty/activitynewlist"
2023-02-17 18:13:06 +08:00
})
},
2023-02-09 17:47:52 +08:00
/*初始化滚动*/
initScroller(scroller) {
this.scroller = scroller;
this.loadData();
},
/*刷新数据*/
refreshData() {
uni.showLoading({
title: '刷新中'
});
this.scroller.resetUpScroll();
},
onSearchInput: function(event) {
this.searchContent = event.target.value
console.log(event.target.value)
if (event.target.value == "") {
this.refreshData()
}
},
/*加载数据*/
loadData() {
this.list = [];
this.scroller.resetUpScroll();
},
/*滚动时导航栏浮动*/
navFloatShow(scroller) {
2023-03-03 19:29:04 +08:00
if (scroller) {
if (scroller.scrollTop > 350) {
if (!this.fixedSearch) {
this.fixedSearch = true;
}
} else {
if (this.fixedSearch) {
this.fixedSearch = false;
}
}
}
2023-02-09 17:47:52 +08:00
},
getList() {
2023-02-17 18:13:06 +08:00
var _self = this;
_self.$app.request({
url: _self.$api.duty.getActivityList,
2023-02-09 17:47:52 +08:00
method: 'GET',
data: {
2023-03-03 19:29:04 +08:00
page: _self.scroller.num,
rows: _self.scroller.size,
2023-02-09 17:47:52 +08:00
},
dataType: 'json',
success: res => {
2023-02-17 18:13:06 +08:00
uni.hideLoading()
2023-02-09 17:47:52 +08:00
if (res.rows != undefined) {
2023-03-03 19:29:04 +08:00
if (this.scroller.num == 1) {
this.list = [];
}
2023-02-17 18:13:06 +08:00
var tempList = []
tempList = res.rows
2023-03-03 19:29:04 +08:00
if (tempList.length > 0) {
for (var i = 0; i < tempList.length; i++) {
if (tempList[i].photo) {
var index = tempList[i].photo.indexOf(",")
if (index != -1) {
tempList[i].img = tempList[i].photo.substring(0, index)
} else {
tempList[i].img = tempList[i].photo
}
2023-02-17 18:13:06 +08:00
}
}
2023-03-03 19:29:04 +08:00
this.list = this.list.concat(tempList);
2023-02-17 18:13:06 +08:00
}
2023-03-03 19:29:04 +08:00
this.scroller.endBySize(res.rows.length, res.rows.total);
this.showPageLoading = false;
2023-02-09 17:47:52 +08:00
} else {
2023-03-03 19:29:04 +08:00
this.scroller.endSuccess();
this.$alert(res.msg);
2023-02-09 17:47:52 +08:00
}
},
fail: res => {
2023-02-17 18:13:06 +08:00
uni.hideLoading()
_self.scroller.endErr();
2023-02-09 17:47:52 +08:00
},
complete: res => {
2023-02-17 18:13:06 +08:00
uni.hideLoading()
2023-02-09 17:47:52 +08:00
uni.stopPullDownRefresh();
2023-02-17 18:13:06 +08:00
_self.showPageLoading = false;
2023-02-09 17:47:52 +08:00
}
});
2023-02-05 20:52:34 +08:00
}
2023-02-01 19:25:51 +08:00
}
};
2023-01-11 19:31:59 +08:00
</script>
<style scoped lang="scss">
2023-02-05 20:52:34 +08:00
page {
height: 100%;
}
2023-02-01 19:25:51 +08:00
2023-02-05 20:52:34 +08:00
.page {
display: flex;
flex: 1;
flex-direction: column;
2023-02-17 18:13:06 +08:00
overflow: auto;
2023-02-05 20:52:34 +08:00
height: 100%;
2023-03-03 19:29:04 +08:00
background: #F5F6FA;
2023-02-01 19:25:51 +08:00
}
2023-02-05 20:52:34 +08:00
.content {
width: 100%;
2023-03-03 19:29:04 +08:00
position: relative;
2023-12-13 10:20:14 +08:00
height: 100%;
2023-03-03 19:29:04 +08:00
margin-top: 50rpx;
2023-02-05 20:52:34 +08:00
}
2023-02-28 11:15:48 +08:00
.thick-divider {
height: 10rpx;
background: #f2f2f2;
width: 100%;
}
2023-03-03 19:29:04 +08:00
.fixed-box {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding-top: 40rpx;
background: white;
z-index: 10;
padding-bottom: 10rpx;
}
.nofixed-box {
position: static;
}
2023-02-05 20:52:34 +08:00
/*幻灯片广告 */
.swiper {
2023-03-03 19:29:04 +08:00
height: 299rpx;
margin: 17rpx 21rpx 15rpx 18rpx;
2023-02-05 20:52:34 +08:00
2023-02-01 19:25:51 +08:00
2023-03-03 19:29:04 +08:00
.swiper-item {
2023-02-05 20:52:34 +08:00
position: relative;
2023-03-03 19:29:04 +08:00
height: 299rpx;
width: 100%;
2023-02-01 19:25:51 +08:00
2023-03-03 19:29:04 +08:00
image {
height: 299rpx;
2023-02-05 20:52:34 +08:00
width: 100%;
2023-03-03 19:29:04 +08:00
border-radius: 15rpx;
2023-02-01 19:25:51 +08:00
}
2023-02-05 20:52:34 +08:00
}
}
2023-02-01 19:25:51 +08:00
2023-02-05 20:52:34 +08:00
.func-box {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
padding: 20rpx 10rpx;
2023-03-03 19:29:04 +08:00
background: #ffffff;
2023-02-01 19:25:51 +08:00
2023-02-05 20:52:34 +08:00
.item {
display: flex;
flex-direction: column;
align-items: center;
2023-02-01 19:25:51 +08:00
2023-02-05 20:52:34 +08:00
image {
width: 80rpx;
height: 80rpx;
}
text {
2023-03-03 19:29:04 +08:00
color: #707070;
font-size: 27rpx;
margin-top: 20rpx;
2023-01-11 19:31:59 +08:00
}
}
}
2023-02-01 19:25:51 +08:00
2023-02-09 17:47:52 +08:00
.divider-img {
2023-02-17 18:13:06 +08:00
width: 94%;
height: 120rpx;
2023-02-05 20:52:34 +08:00
align-self: center;
2023-02-17 18:13:06 +08:00
margin: 10rpx 20rpx;
2023-02-05 20:52:34 +08:00
}
2023-02-01 19:25:51 +08:00
2023-02-05 20:52:34 +08:00
/*搜索*/
.search {
padding: 10rpx 24rpx 10rpx 24rpx;
display: flex;
justify-content: space-between;
align-items: center;
.search-content {
background: #f2f2f2;
border-radius: 15px;
padding: 10rpx 24rpx 10rpx 24rpx;
margin-right: 15rpx;
flex: 1;
display: flex;
align-items: center;
}
2023-02-01 19:25:51 +08:00
2023-02-05 20:52:34 +08:00
/deep/.input {
color: #8cc7b5;
}
2023-01-11 19:31:59 +08:00
2023-02-05 20:52:34 +08:00
.icon {
width: 30rpx;
height: 30rpx;
margin-right: 15rpx;
2023-01-11 19:31:59 +08:00
}
2023-02-01 19:25:51 +08:00
2023-02-05 20:52:34 +08:00
.btn {
color: #b3b3b3;
}
2023-02-01 19:25:51 +08:00
}
2023-02-09 17:47:52 +08:00
.duty-box {
display: flex;
flex-direction: row;
height: 100%;
width: 100%;
.duty-content {
display: flex;
2023-02-17 18:13:06 +08:00
flex-direction: column;
2023-02-09 17:47:52 +08:00
width: 100%;
.content-left {
display: flex;
flex-direction: column;
2023-12-13 10:20:14 +08:00
background-image: url('../../static/images/ic_duty_index_item_1.png');
2023-02-09 17:47:52 +08:00
width: 48%;
2023-02-17 18:13:06 +08:00
height: 120%;
min-height: 100%;
2023-02-09 17:47:52 +08:00
background-size: 100% 100%;
background-repeat: no-repeat;
margin: 10rpx;
padding: 15rpx;
.title {
display: -webkit-box;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: 32rpx;
}
.btn {
background: #169302;
border-radius: 15rpx;
padding: 10rpx 15rpx;
width: 140rpx;
color: white;
text-align: center;
font-size: 25rpx;
margin-top: 20rpx;
align-self: flex-end;
}
.time {
margin-top: 20rpx;
font-size: 25rpx;
}
}
.content-right {
display: flex;
flex-direction: column;
width: 48%;
2023-02-17 18:13:06 +08:00
height: 120%;
2023-02-09 17:47:52 +08:00
margin: 10rpx;
.right-item-top {
display: flex;
flex-direction: column;
2023-12-13 10:20:14 +08:00
background-image: url('../../static/images/ic_duty_index_item_2.png');
2023-02-09 17:47:52 +08:00
width: 100%;
height: 50%;
2023-02-17 18:13:06 +08:00
min-height: 53%;
2023-02-09 17:47:52 +08:00
background-size: 100% 100%;
background-repeat: no-repeat;
.title {
display: -webkit-box;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: 32rpx;
padding: 15rpx;
}
.btn {
background: #169302;
border-radius: 15rpx;
padding: 10rpx 15rpx;
width: 140rpx;
color: white;
text-align: center;
font-size: 25rpx;
margin-top: 20rpx;
margin-left: 10rpx;
align-self: flex-start;
}
}
.right-item-bottom {
display: flex;
flex-direction: column;
margin-top: 10rpx;
2023-12-13 10:20:14 +08:00
background-image: url('../../static/images/ic_duty_index_item_3.png');
2023-02-09 17:47:52 +08:00
width: 100%;
height: 50%;
2023-02-17 18:13:06 +08:00
min-height: 50%;
2023-02-09 17:47:52 +08:00
background-size: 100% 100%;
background-repeat: no-repeat;
.title {
display: -webkit-box;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: 32rpx;
padding: 15rpx;
}
.btn {
background: #169302;
border-radius: 15rpx;
padding: 10rpx 15rpx;
width: 140rpx;
color: white;
text-align: center;
margin-left: 10rpx;
font-size: 25rpx;
margin-top: 20rpx;
align-self: flex-start;
}
}
}
}
}
2023-02-17 18:13:06 +08:00
.title-item {
display: flex;
flex-direction: row;
justify-content: space-between;
2023-03-03 19:29:04 +08:00
background: #ffffff;
margin-top: 15rpx;
align-items: center;
2023-02-17 18:13:06 +08:00
.title-item-line {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
2023-03-03 19:29:04 +08:00
margin: 26rpx 0rpx 27rpx 41rpx;
2023-02-17 18:13:06 +08:00
}
.title-item-title {
display: flex;
flex-direction: row;
2023-03-03 19:29:04 +08:00
margin-left: 16rpx;
font-size: 27rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #3A3B3E;
line-height: 52rpx
2023-02-17 18:13:06 +08:00
}
.title-item-content {
2023-03-03 19:29:04 +08:00
font-size: 24rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
2023-02-17 18:13:06 +08:00
color: #3A3B3E;
2023-03-03 19:29:04 +08:00
line-height: 52rpx;
margin-right: 42rpx;
2023-02-17 18:13:06 +08:00
}
}
.line-green {
width: 10rpx;
background: #0DB77E;
height: 30rpx;
}
.activity-item {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
padding: 20rpx 40rpx;
.activity-img {
width: 163rpx;
height: 163rpx;
min-width: 163rpx;
min-height: 163rpx;
}
}
.activity-item-box {
2023-03-03 19:29:04 +08:00
width: 163rpx;
height: 163rpx;
2023-02-17 18:13:06 +08:00
position: relative;
.activity-item-num {
color: white;
background: #0DB77E;
width: fit-content;
max-width: fit-content;
padding: 0rpx 10rpx;
border-top-right-radius: 20rpx;
border-bottom-right-radius: 20rpx;
position: absolute;
top: 15rpx;
font-size: 18rpx;
left: 0;
z-index: 2;
}
.img {
2023-03-03 19:29:04 +08:00
width: 163rpx;
height: 163rpx;
2023-02-17 18:13:06 +08:00
position: relative;
top: 0;
2023-03-03 19:29:04 +08:00
border-radius: 10rpx;
2023-02-17 18:13:06 +08:00
}
}
.activity-content {
display: flex;
flex-direction: column;
2023-03-03 19:29:04 +08:00
justify-content: space-between;
2023-02-17 18:13:06 +08:00
align-items: flex-start;
2023-12-13 10:20:14 +08:00
margin-left: 21rpx;
2023-03-03 19:29:04 +08:00
height: 163rpx;
2023-02-17 18:13:06 +08:00
.activity-name {
display: -webkit-box;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
2023-03-03 19:29:04 +08:00
font-size: 27rpx;
font-family: Microsoft YaHei UI;
font-weight: bold;
color: #3A3B3E;
2023-02-17 18:13:06 +08:00
}
.activity-time {
2023-03-03 19:29:04 +08:00
font-size: 24rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #A8A8A8;
line-height: 52rpx;
2023-02-17 18:13:06 +08:00
}
.activity-desc {
display: -webkit-box;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
2023-03-03 19:29:04 +08:00
font-size: 24rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #707070;
line-height: 52rpx;
2023-02-17 18:13:06 +08:00
}
}
.empty-data {
align-items: center;
align-self: center;
}
.item-type {
display: flex;
flex-direction: row;
.type-theme {
display: -webkit-box;
2023-03-03 19:29:04 +08:00
background: #ECFFF9;
2023-02-17 18:13:06 +08:00
font-size: 28rpx;
padding: 0rpx 15rpx;
margin-left: 10rpx;
text-overflow: ellipsis;
word-break: break-all;
text-align: center;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
2023-03-03 19:29:04 +08:00
font-size: 20rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #12D577;
line-height: 52rpx;
2023-02-17 18:13:06 +08:00
}
.type-type {
display: -webkit-box;
2023-03-03 19:29:04 +08:00
background: #E9F7FF;
2023-02-17 18:13:06 +08:00
text-overflow: ellipsis;
word-break: break-all;
text-align: center;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
padding: 0rpx 15rpx;
2023-03-03 19:29:04 +08:00
font-size: 20rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #009FFF;
line-height: 52rpx;
2023-02-17 18:13:06 +08:00
}
2023-03-03 19:29:04 +08:00
}
.list-box {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
height: 100%;
background: #ffffff;
.item {
display: flex;
flex-direction: column;
background: white;
.item-content {
display: flex;
flex-direction: row;
align-items: center;
image {
width: 163rpx;
height: 163rpx;
}
.item-box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 100%;
margin-left: 20rpx;
.item-title {
color: #747474;
}
.item-person {
color: #747474;
}
.item-bottom {
display: flex;
flex-direction: row;
width: 95%;
justify-content: space-between;
color: #747474;
.item-status {
color: #00821E;
border: 1rpx #8cc7b5 solid;
font-size: 20rpx;
text-align: center;
padding: 0rpx 10rpx;
align-self: center;
}
}
}
}
.title {
font-size: 30rpx;
display: -webkit-box;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
padding: 10rpx;
color: #000;
}
}
2023-12-13 10:20:14 +08:00
}
.page-foot {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 24rpx;
color: #000;
width: 100%;
background-color: #ffffff;
box-shadow: 1px 2px 1px 2px #f5f5f5;
.name {
font-size: 24rpx;
}
.phone {
color: green;
}
2023-02-17 18:13:06 +08:00
}
2023-12-13 10:20:14 +08:00
</style>