| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970 |
- <template>
- <view class="content">
- <!-- <view>
- </view> -->
- <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#1c9bdc" style="position: relative;">
- </uni-segmented-control>
- <text class="active-length-text">({{activiList.length || ''}})</text>
- <text class="file-length-text">({{activeDesc.files_count || ''}})</text>
- <text class="comment-length-text">({{activeDesc.comment_count || ''}})</text>
- <view v-show="current == 0">
- <view class="active-title-box">
- <view class="header-title">{{activeDesc.name}}</view>
- <view class="display-between" style="margin-left: 3%;">
- <view style="color: gray;">{{activeDesc.start_time}}</view>
- <view class="display-around items-center" style="margin-right: 3%;">
- <image :src="activeDesc.like_member === '1' ? isLikes : isLikesEmpty" mode="aspectFit" @click.stop="likesFn(activeDesc.id,activeDesc.like_member)" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;"></image>
- <text>{{activeDesc.like_count}}</text>
- </view>
- </view>
- </view>
- <view class="active-box" v-for="(item,index) in activiList" :key="index" style="flex-direction: column;" :class="index===activiList.length-1?'marginB40':''">
- <view class="active-header">
- <view class="active-content-box">
- <view class="active-content margin-top-3">
- <view class="active-content">
- <view class="active-type-comment">
- <image :src="item.avatar_url || '/static/auth-icon.png'" mode="aspectFit"></image>
- </view>
- <view class="active-name">{{item.author}}</view>
- </view>
- <!-- <view class="active-date">{{item.addtime}}</view> -->
- </view>
- <view class="active-content" style="margin-top: 10rpx;">
- <view class="active-date">{{item.addtime}}</view>
- </view>
- </view>
- </view>
- <view class="active-content-box margin-top-3">
- <view class="active-content">
- <view class="active-title">{{item.content}}</view>
- </view>
- </view>
- <view class="active-content-box-img margin-top-3">
- <view v-for="(img,indexImg) in item.pic_list" :key="indexImg" class="marginR5">
- <image :src="img.pic_url_resize" mode="aspectFill" @click="showLarge(item.pic_list,indexImg)"></image>
- </view>
- </view>
-
- <view class="margin-top-3" style="color: #007AFF;word-break: break-all;" @click="tonewurl(item.web_url)" v-if="item.web_url">
- {{item.web_url}}
- </view>
- <view v-if="item.web_url" style="font-size: 24rpx;color: #ccc;">
- 点击链接可进行复制,前往浏览器查看。
- </view>
-
- <view class="edit-icon-box">
- <image src="/static/edit-icon.png" mode="aspectFit" v-if="item.edit_auth" @click="goEditPage(item.id,'record')"></image>
- <image src="/static/del-icon.png" mode="aspectFit" v-if="item.del_auth" @click="delProcess(item.id,'record')"></image>
- </view>
- </view>
-
- <button class="footer-box-record" @click="goRecord()">上传记录</button>
- </view>
- <view v-if="current == 1">
- <view class="active-box active-box-comment" v-for="(item,index) in fileList" :key="index" style="flex-direction: column;" :class="index===fileList.length-1?'marginB40':''">
- <view class="active-header-comment">
- <view class="active-content-box">
- <view class="active-content margin-top-3">
- <view class="active-content">
- <view class="active-type-comment">
- <image :src="item.avatar_url || '/static/auth-icon.png'" mode="aspectFit"></image>
- </view>
- <view class="active-name">{{item.author}}</view>
- </view>
- <!-- <view class="active-date">{{item.addtime}}</view> -->
- </view>
- <view class="active-content" style="margin-top: 10rpx;">
- <view class="active-date">{{item.addtime}}</view>
- </view>
- </view>
- </view>
- <view class="active-content-files files-class-box">
- <view class="show-file-box display-evenly-column .items-center" v-for="(file,index) in item.file_list" :key="file.id" @click="()=>openFileFn(file.url)">
- <image :src="fileType[file.type] || '../../../static/file.png'" mode="aspectFill" style="width: 70rpx;height: 70rpx;"></image>
- <view class="margin-top-3 file-font-box">{{file.name}}</view>
- </view>
- </view>
- <view class="files-desc-box">
- <view style="width:70rpx;">备注:</view><view>{{item.content}}</view>
- </view>
- <view class="edit-icon-box-comment">
- <image src="/static/edit-icon.png" mode="aspectFit" v-if="item.edit_auth" @click="goEditPage(item.id,'files')"></image>
- <image class="margin-right-0" src="/static/del-icon.png" mode="aspectFit" v-if="item.del_auth" @click="delProcess(item.id,'files')"></image>
- </view>
- </view>
- <button class="footer-box-record" @click="goFiles()">上传文件</button>
- </view>
- <view v-if="current == 2">
- <view class="active-box active-box-comment" v-for="(item,index) in commentList" :key="index" style="flex-direction: column;" :class="index===commentList.length-1?'marginB40':''">
- <view class="active-header-comment">
- <view class="active-content-box">
- <view class="active-content margin-top-3">
- <view class="active-content">
- <view class="active-type-comment">
- <image :src="item.avatar_url || '/static/auth-icon.png'" mode="aspectFit"></image>
- </view>
- <view class="active-name">{{item.author}}</view>
- </view>
- <!-- <view class="active-date">{{item.addtime}}</view> -->
- </view>
- <view class="active-content" style="margin-top: 10rpx;">
- <view class="active-date">{{item.addtime}}</view>
- </view>
- </view>
- </view>
- <view class="active-content-comment margin-top-3">{{item.content}}</view>
- <view class="edit-icon-box-comment">
- <!-- <image src="/static/edit-icon.png" mode="aspectFit" v-if="item.edit_auth" @click="goEditPage(item.id,'comment')"></image> -->
- <image class="margin-right-0" src="/static/del-icon.png" mode="aspectFit" v-if="item.del_auth" @click="delProcess(item.id,'comment')"></image>
- </view>
- </view>
- <button class="footer-box-record" @click="goComment()">添加评论</button>
- </view>
- <share-modal @closeShare="closeShare" :isShowShare="isShowShareModal" :class="{ shareParent: isShowShareModal}"></share-modal>
-
- </view>
- </template>
- <script>
- import md5 from "@/common/md5.js";
- import shareModal from '@/components/share-modal/share-modal.vue'
- export default {
- components: {
- "share-modal": shareModal,
- },
- data() {
- return {
- isAuth:getApp().globalData.globalAuth,
- userHeadImg: getApp().globalData.user_headUrl,
- userNickName:getApp().globalData.user_name,
- globalUrl:getApp().globalData.shareUrl,
- activeId:'',
- branchId:'',
- recordId:'',
- activeDesc:{},
- isLikesEmpty:'../../../static/files-icon/likes-empty.png',
- isLikes:'../../../static/files-icon/likes.png',
- activiList:[],
- commentList:[],
- fileList:[],
- fileObj:{},
- isShowShareModal:false,
- items:['记录','文件','评论'],
- current:0,
- fileType:{
- 'docx':'../../../static/files-icon/word.png',
- 'doc':'../../../static/files-icon/word.png',
- 'pdf':'../../../static/files-icon/pdf.png',
- 'xlsx':'../../../static/files-icon/excel.png',
- 'xls':'../../../static/files-icon/excel.png',
- 'pptx':'../../../static/files-icon/ppt.png',
- }
- };
- },
- onLoad(option) {
- this.recordId = option.id;
- this.readActive(this.recordId);
- },
- onShow() {
- this.readDesc(this.recordId);
- // this.readActive(this.recordId);
- //this.getFileList(this.recordId);
- },
- onShareAppMessage() {
- return {
- title: '农工笔记',
- path:'/pages/index/activity/activity'
- }
- },
- methods: {
- goEditPage(id,type){
- switch (type){
- case 'record':
- uni.navigateTo({
- url:'./record?id='+ id + '&bId=' + this.branchId + '&aId=' + this.activeId + '&types=edit'
- })
- break;
- case 'files':
- uni.navigateTo({
- url:'./files?id='+ id + '&bId=' + this.branchId + '&aId=' + this.activeId + '&types=edit'
- })
- break;
- case 'comment':
- uni.navigateTo({
- url:'./comment?id='+ id + '&bId=' + this.branchId + '&aId=' + this.activeId + '&types=edit'
- })
- break;
- }
- },
- pageShowShare(obj,tabs){
- console.log(obj,tabs)
- switch (tabs){
- case 'record':
- this.readActive(this.recordId)
- break;
- case 'files':
- this.getFileList(this.recordId)
- break;
- case 'comment':
- this.getCommentList(this.recordId)
- break;
- }
- this.isShowShareModal = true;
- },
- closeShare(e){
- this.isShowShareModal = false;
- },
- onClickItem(e){
- this.current = e.currentIndex;
- if(e.currentIndex == '0'){
- this.readActive(this.recordId)
- }
- if(e.currentIndex == '1'){
- this.getFileList(this.recordId)
- }
- if(e.currentIndex == '2'){
- this.getCommentList(this.recordId)
- }
- },
- //打开文件
- openFileFn(files){
- uni.showLoading({
- mask:true,
- title:'加载中...',
- icon:'none'
- })
- uni.downloadFile({
- url: getApp().globalData.shareUrl + files,
- success: function(res) {
- var filePath = res.tempFilePath;
- //打开文件有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
- uni.openDocument({
- filePath:filePath,
- success: function(res) {
- //that.downloadFile_onoff = true;
- uni.hideLoading();
- },
- fail(res) {
- uni.showToast({
- title: '暂不支持此类型',
- icon:'none',
- duration: 2000
- });
- uni.hideLoading();
- //that.downloadFile_onoff = true;
- }
- });
- }
- });
- },
- showLarge(urlList,index) {
- let imgList = urlList,imgArr = [];
- imgList.forEach((item,index)=>{
- imgArr.push(item.pic_url)
- })
- uni.previewImage({
- urls:imgArr,
- current:imgArr[index],
- longPressActions: {
- itemList: ["发送给朋友", "保存图片"],
- success: function (data) {},
- fail: function (err) {
- console.log(err.errMsg);
- },
- },
- });
- },
- delProcessRequeset(delId){
- let md5Sign = md5(
- "method=" +"activity" + "×tamp=" + getApp().globalData.globalTimestamp +
- "&secret=" + getApp().globalData.secret
- );
- let url = getApp().globalData.shareUrl +"api/api.php" +
- "?method=activity&action=process_del×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openid: getApp().globalData.open_id,
- id:delId
- },
- success: (res) => {
- if (res.data.code === 200) {
- uni.showToast({
- title: "删除成功",
- icon: "none",
- duration: 2500,
- success:()=>{
- this.readActive(this.activeId)
- this.readDesc(this.recordId);
- }
- });
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- delCommentRequeset(delId){
- let md5Sign = md5(
- "method=" +"activity" + "×tamp=" + getApp().globalData.globalTimestamp +
- "&secret=" + getApp().globalData.secret
- );
- let url = getApp().globalData.shareUrl +"api/api.php" +
- "?method=activity&action=comment_del×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openid: getApp().globalData.open_id,
- id:delId
- },
- success: (res) => {
- if (res.data.code === 200) {
- uni.showToast({
- title: "删除成功",
- icon: "none",
- duration: 2500,
- success:()=>{
- this.getCommentList(this.activeId)
- this.readDesc(this.recordId);
- }
- });
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- delFilesRequeset(delId){
- let md5Sign = md5(
- "method=" +"activity" + "×tamp=" + getApp().globalData.globalTimestamp +
- "&secret=" + getApp().globalData.secret
- );
- let url = getApp().globalData.shareUrl +"api/api.php" +
- "?method=activity&action=files_del×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openid: getApp().globalData.open_id,
- id:delId
- },
- success: (res) => {
- if (res.data.code === 200) {
- uni.showToast({
- title: "删除成功",
- icon: "none",
- duration: 2500,
- success:()=>{
- this.getFileList(this.activeId)
- this.readDesc(this.recordId);
- }
- });
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- delProcess(id,type){
- let that = this;
- let typeTitle;
- switch (type){
- case 'record':
- typeTitle = '确定删除此记录吗'
- break;
- case 'comment':
- typeTitle = '确定删除此评论吗'
- break;
- case 'files':
- typeTitle = '确定删除此文件吗'
- break;
- }
- uni.showModal({
- title: typeTitle,
- success(res) {
- if (res.confirm) {
- if(type === 'record') {
- that.delProcessRequeset(id);
- }
- else if (type === 'comment') {
- that.delCommentRequeset(id);
- }
- else if (type === 'files') {
- that.delFilesRequeset(id);
- }
- } else if (res.cancel) {
- console.log("用户点击取消");
- }
- },
- });
- },
- likesFn(id,type){
- if(type === '1'){
- uni.showToast({
- title:'已经点过赞了',
- icon:'none'
- })
- return
- }
- let md5Sign = md5(
- "method=" +"activity" + "×tamp=" + getApp().globalData.globalTimestamp +
- "&secret=" + getApp().globalData.secret
- );
- let url = getApp().globalData.shareUrl +"api/api.php" +
- "?method=activity&action=like×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openid:getApp().globalData.open_id,
- id:id
- },
- success: (res) => {
- if (res.data.code === 201) {
- this.readDesc(this.recordId);
- uni.showToast({
- title:'点赞成功',
- icon:'none'
- })
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- readDesc(id){
- let md5Sign = md5(
- "method=" +"activity" + "×tamp=" + getApp().globalData.globalTimestamp +
- "&secret=" + getApp().globalData.secret
- );
- let url = getApp().globalData.shareUrl +"api/api.php" +
- "?method=activity&action=info_by_id×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openid:getApp().globalData.open_id,
- id:id
- },
- success: (res) => {
- if (res.data.code === 200) {
- this.activeDesc = res.data.data;
- this.branchId = res.data.data.branch_id;
- this.activeId = res.data.data.id;
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- getCommentList(id){
- let md5Sign = md5(
- "method=" +"activity" + "×tamp=" + getApp().globalData.globalTimestamp +
- "&secret=" + getApp().globalData.secret
- );
- let url = getApp().globalData.shareUrl +"api/api.php" +
- "?method=activity&action=comment_list×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openid:getApp().globalData.open_id,
- activity_id : id
- },
- success: (res) => {
- if (res.data.code === 200) {
- console.log(res.data.data)
- this.commentList = res.data.data.list;
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- splitFileName(fileList){
- let arr = fileList;
- arr.forEach((item,index)=>{
- item.file_list.forEach((child,childIndex)=>{
- child.type = child.name.split('.').pop().toLowerCase();
- })
- })
- return arr;
- },
- getFileList(id){
- let md5Sign = md5(
- "method=" +"activity" + "×tamp=" + getApp().globalData.globalTimestamp +
- "&secret=" + getApp().globalData.secret
- );
- let url = getApp().globalData.shareUrl +"api/api.php" +
- "?method=activity&action=files_list×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openid:getApp().globalData.open_id,
- activity_id : id
- },
- success: (res) => {
- if (res.data.code === 200) {
- let fileArr = res.data.data.list;
- this.fileList = this.splitFileName(fileArr);
- console.log(this.fileList)
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- readActive(id){
- let md5Sign = md5(
- "method=" +"activity" + "×tamp=" + getApp().globalData.globalTimestamp +
- "&secret=" + getApp().globalData.secret
- );
- let url = getApp().globalData.shareUrl +"api/api.php" +
- "?method=activity&action=process_list×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openid:getApp().globalData.open_id,
- activity_id:id
- },
- success: (res) => {
- if (res.data.code === 200) {
- let listArr = res.data.data.list;
- listArr.forEach((item)=>{
- item.pic_list.forEach((child)=>{
- child.pic_url = this.globalUrl + child.pic_url;
- child.pic_url_resize = this.globalUrl + child.pic_url_resize;
- })
- })
- this.activiList = listArr;
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- tonewurl(urls) {
- uni.setClipboardData({
- data: urls,
- success: function (res) {
- uni.showToast({
- title: '复制成功,请在手机浏览器中打开',
- icon:"none"
- });
- }
- })
- // uni.navigateTo({
- // url:'/pages/index/webview/web-view?url=' + urls
- // });
- },
- goRecord(){
- uni.navigateTo({
- url:'./record?bId=' + this.branchId + '&aId=' + this.activeId + '&types=add'
- })
- },
- goFiles(){
- uni.navigateTo({
- url:'./files?bId=' + this.branchId + '&aId=' + this.activeId + '&types=add'
- })
- },
- goComment(){
- uni.navigateTo({
- url:'./comment?bId=' + this.branchId + '&aId=' + this.activeId + '&types=add'
- })
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .content {
- display: flex;
- flex-direction: column;
- .self-inf {
- // border-radius: 0rpx 0rpx 100% 100%;
- .img-name-box {
- height: 150rpx;
- margin-top: 20rpx;
- margin-bottom: 20rpx;
- display: flex;
- align-items: center;
- width: 85%;
- .auth-btn {
- margin-left: 30rpx;
- margin-top: 20rpx;
- font-size: 28rpx;
- background-color: #02a7f0;
- color: #fff;
- }
- .heade-img {
- z-index: 1;
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
- // margin-left: 80rpx;
- }
- }
- .nickname {
- font-weight: 600;
- font-size: 28rpx;
- margin-left: 30rpx;
- margin-top: 20rpx;
- color: #555;
- letter-spacing: 1rpx;
- }
- }
- }
- .org-info-box {
- display: flex;
- justify-content: space-evenly;
- height: 80rpx;
- align-items: center;
- width: 100%;
- border-top: 1px solid #d4d4d4;
- color: #555;
- font-size: 28rpx;
- background: #fff;
- }
- .org-line {
- width: 1px;
- height: 82rpx;
- background: #d4d4d4;
- }
- .header-title {
- font-size: 32rpx;
- font-weight: bold;
- margin: 3% 0 1% 3%;
- }
- .active-title-box {
- font-size: 26rpx;
- height: 100rpx;
- border-bottom: 4px solid #eeeeee;
- .time-select-box {
- width: 32%;
- margin-left: 5%;
- }
- picker {
- width: 25%;
- border: 1px solid #d7d7d7;
- height: 60rpx;
- line-height: 60rpx;
- border-radius: 10rpx;
- margin-left: 20rpx;
- padding: 0 10rpx;
- position: relative;
- image {
- width: 20rpx;
- height: 20rpx;
- position: absolute;
- top: 11px;
- right: 5px;
- }
- }
- button {
- width: 24%;
- font-size: 25rpx;
- background: #4988fd;
- color: #fff;
- margin-left: 25rpx;
- }
- }
- .margin-top-3 {
- margin-top: 3%;
- }
- .active-box {
- display: flex;
- position: relative;
- font-size: 28rpx;
- padding: 20rpx;
- width: 92%;
- margin-left: 1.5%;
- margin-bottom: 1%;
- box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
- .active-header {
- display: flex;
- width: 100%;
- }
- .active-header-comment {
- display: flex;
- justify-content: space-between;
- width: 100%;
- align-items: center;
- }
- .active-type {
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
- background-color: #ccc;
- text-align: center;
- display: flex;
- align-items: center;
- font-size: 26rpx;
- color: #fff;
- }
- .active-type-comment {
- width: 60rpx;
- height: 60rpx;
- border-radius: 10rpx;
- display: flex;
- align-items: center;
- margin-right: 15rpx;
- image {
- width: 100%;
- height: 100%;
- border-radius: 10rpx;
- }
- }
- .active-content-box{
- display: flex;
- flex-direction: column;
- // margin-left: 20rpx;
- }
- .active-content-box-img {
- display: flex;
- justify-content: flex-start;
- flex-wrap: wrap;
- image {
- width: 220rpx;
- height: 300rpx;
- }
- }
- .active-content {
- display: flex;
- align-items: center;
- // height: 45rpx;
- font-size: 26rpx;
- .active-title {
- font-size: 28rpx;
- margin-right: 10rpx;
- font-weight: bold;
- word-break: break-all;
- }
- .active-name {
- font-size: 26rpx;
- margin-right: 10rpx;
- }
- .active-date {
- color: #ccc;
- }
- }
- .active-date-comment {
- font-size: 26rpx;
- color: #8590a6;
- }
- .edit-icon-box {
- position: absolute;
- right: 10px;
- top: 10px;
- image {
- width: 35rpx;
- height: 35rpx;
- margin-right: 10rpx;
- }
- }
- .bg-yellow {
- background-color: #ffdd40;
- }
- .bg-red {
- background-color: #ec808d;
- }
- .bg-blue {
- background-color: #81d3f8;
- }
- }
- .marginB40 {
- margin-bottom: 80rpx;
- }
- .marginR5{
- margin-right: 5rpx;
- }
- .footer-box-record{
- position: fixed;
- bottom: 0;
- background-color:#f59a23;
- width: 100%;
- border-radius: 0;
- color: #fff;
- font-size: 32rpx;
- }
- .img-container{
- display: flex;
- flex-direction: column;
- width: 90%;
- margin: 3% auto;
- font-size: 26rpx;
- label {
- width: 20%;
- margin-left: 2%;
- margin-bottom: 2%;
- }
- .note-image-box{
- width: 75%;
- display: flex;
- flex-wrap: wrap;
- .note-image-item{
- position: relative;
- //这两个百分比很关键
- width: 33.33%;
- height: 0;
- padding-top: 33.33%;
- box-sizing: border-box;
- .close-icon{
- display: flex;
- justify-content: center;
- align-items: center;
- position: absolute;
- right: 0;
- top: 0;
- width: 22px;
- height: 22px;
- border-radius: 50%;
- background-color: #d5d5d5;
- z-index: 2;
- }
- .image-box{
- display: flex;
- justify-content: center;
- align-items: center;
- position: absolute;
- top: 5px;
- right: 5px;
- bottom: 5px;
- left: 5px;
- border: 1px #eee solid;
- border-radius: 5px;
- overflow: hidden;
- image{
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- }
- .active-box-comment {
- border-bottom: 1px solid #d7d7d7;
- box-shadow: none;
- }
- .active-content-comment {
- font-size: 28rpx;
- margin-right: 10rpx;
- // font-weight: bold;
- word-break: break-all;
- margin-left: 70rpx;
- width: 85%;
- }
- .edit-icon-box-comment {
- position: absolute;
- right: 10px;
- top: 15px;
- image {
- width: 30rpx;
- height: 30rpx;
- margin-right: 10rpx;
- }
- }
- .active-content-files {
- font-size: 28rpx;
- margin-right: 10rpx;
- // font-weight: bold;
- word-break: break-all;
- margin-left: 70rpx;
- width: 85%;
- height: 150rpx;
- }
- .edit-icon-box-file {
- position: absolute;
- right: 10px;
- top: 10px;
- image {
- width: 35rpx;
- height: 35rpx;
- margin-right: 10rpx;
- }
- }
- .files-class-box {
- display: flex;
- justify-content: flex-start;
- margin-top: 10px;
- width: 80%;
- }
- .files-desc-box {
- // text-align: center;
- display: flex;
- margin-top: 10px;
- }
- .show-file-box {
- width: 30%;
- margin-right: 20rpx;
- }
- .file-font-box {
- width: 60%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 24rpx;
- }
- .active-length-text {
- position: absolute;
- top: 10px;
- font-size: 26rpx;
- left: 21%;
- }
- .file-length-text {
- position: absolute;
- top: 10px;
- font-size: 26rpx;
- left: 54%;
- }
- .comment-length-text {
- position: absolute;
- top: 10px;
- font-size: 26rpx;
- right: 8.5%;
- }
- </style>
|