list.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <template>
  2. <view class="content">
  3. <!-- <view>
  4. </view> -->
  5. <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#1c9bdc"></uni-segmented-control>
  6. <view v-show="current == 0">
  7. <view class="active-title-box">
  8. <view class="header-title">{{activeDesc.name}}</view>
  9. <view style="color: gray;margin-left: 3%;">{{activeDesc.start_time}}</view>
  10. </view>
  11. <view class="active-box" v-for="(item,index) in activiList" :key="index" style="flex-direction: column;" :class="index===activiList.length-1?'marginB40':''">
  12. <view class="active-header">
  13. <!-- <view class="active-type">
  14. <text style="margin: 0 auto;">头像</text>
  15. </view> -->
  16. <view class="active-content-box">
  17. <view class="active-content margin-top-3">
  18. <view class="active-name">{{item.author}}</view>
  19. <!-- <view class="active-date">{{item.addtime}}</view> -->
  20. </view>
  21. <view class="active-content">
  22. <view class="active-date">{{item.addtime}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="active-content-box">
  27. <view class="active-content">
  28. <view class="active-title">{{item.content}}</view>
  29. </view>
  30. </view>
  31. <view class="active-content-box-img margin-top-3">
  32. <view v-for="(img,indexImg) in item.pic_list" :key="indexImg" class="marginR5">
  33. <image :src="img.pic_url_resize" mode="aspectFill" @click="showLarge(item.pic_list,indexImg)"></image>
  34. </view>
  35. </view>
  36. <view class="margin-top-3" style="color: #007AFF;word-break: break-all;" @click="tonewurl(item.web_url)" v-if="item.web_url">
  37. {{item.web_url}}
  38. </view>
  39. <view v-if="item.web_url" style="font-size: 24rpx;color: #ccc;">
  40. 点击链接可进行复制,前往浏览器查看。
  41. </view>
  42. <view class="edit-icon-box">
  43. <image src="/static/edit-icon.png" mode="aspectFit" v-if="item.edit_auth" @click="goEditPage(item.id,'record')"></image>
  44. <image src="/static/del-icon.png" mode="aspectFit" v-if="item.del_auth" @click="delProcess(item.id,'record')"></image>
  45. </view>
  46. </view>
  47. <button class="footer-box-record" @click="goRecord()">上传记录</button>
  48. </view>
  49. <view v-if="current == 1">
  50. <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':''">
  51. <view class="active-header-comment">
  52. <view class="active-content">
  53. <view class="active-type-comment">
  54. <image :src="item.avatar_url || '/static/auth-icon.png'" mode="aspectFit"></image>
  55. </view>
  56. <view class="active-name">{{item.author}}</view>
  57. </view>
  58. <view class="active-date-comment">{{item.addtime}}</view>
  59. </view>
  60. <view class="active-content-files margin-top-1">
  61. </view>
  62. <view class="edit-icon-box-comment">
  63. <image src="/static/edit-icon.png" mode="aspectFit" v-if="item.edit_auth" @click="goEditPage(item.id,'comment')"></image>
  64. <image class="margin-right-0" src="/static/del-icon.png" mode="aspectFit" v-if="item.del_auth" @click="delProcess(item.id,'files')"></image>
  65. </view>
  66. </view>
  67. <button class="footer-box-record" @click="goFiles()">上传文件</button>
  68. </view>
  69. <view v-if="current == 2">
  70. <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':''">
  71. <view class="active-header-comment">
  72. <view class="active-content">
  73. <view class="active-type-comment">
  74. <image :src="item.avatar_url" mode="aspectFit"></image>
  75. </view>
  76. <view class="active-name">{{item.author}}</view>
  77. </view>
  78. <view class="active-date-comment">{{item.addtime}}</view>
  79. </view>
  80. <view class="active-content-comment margin-top-1">{{item.content}}</view>
  81. <view class="edit-icon-box-comment">
  82. <!-- <image src="/static/edit-icon.png" mode="aspectFit" v-if="item.edit_auth" @click="goEditPage(item.id,'comment')"></image> -->
  83. <image class="margin-right-0" src="/static/del-icon.png" mode="aspectFit" v-if="item.del_auth" @click="delProcess(item.id,'comment')"></image>
  84. </view>
  85. </view>
  86. <button class="footer-box-record" @click="goComment()">上传评论</button>
  87. </view>
  88. <share-modal @closeShare="closeShare" :isShowShare="isShowShareModal" :class="{ shareParent: isShowShareModal}"></share-modal>
  89. </view>
  90. </template>
  91. <script>
  92. import md5 from "@/common/md5.js";
  93. import shareModal from '@/components/share-modal/share-modal.vue'
  94. export default {
  95. components: {
  96. "share-modal": shareModal,
  97. },
  98. data() {
  99. return {
  100. isAuth:getApp().globalData.globalAuth,
  101. userHeadImg: getApp().globalData.user_headUrl,
  102. userNickName:getApp().globalData.user_name,
  103. globalUrl:getApp().globalData.shareUrl,
  104. activeId:'',
  105. branchId:'',
  106. recordId:'',
  107. activeDesc:{},
  108. activiList:[],
  109. commentList:[],
  110. fileList:[],
  111. fileObj:{},
  112. isShowShareModal:false,
  113. items:['记录','文件','评论'],
  114. current:0,
  115. };
  116. },
  117. onLoad(option) {
  118. this.recordId = option.id;
  119. this.readDesc(this.recordId);
  120. this.readActive(this.recordId);
  121. },
  122. onShow() {
  123. // this.readActive(this.recordId);
  124. //this.getFileList(this.recordId);
  125. },
  126. onShareAppMessage() {
  127. return {
  128. title: '农工笔记',
  129. path:'/pages/index/activity/activity'
  130. }
  131. },
  132. methods: {
  133. goEditPage(id,type){
  134. switch (type){
  135. case 'record':
  136. uni.navigateTo({
  137. url:'./record?id='+ id + '&bId=' + this.branchId + '&aId=' + this.activeId + '&types=edit'
  138. })
  139. break;
  140. case 'files':
  141. uni.navigateTo({
  142. url:'./files?id='+ id + '&bId=' + this.branchId + '&aId=' + this.activeId + '&types=edit'
  143. })
  144. break;
  145. case 'comment':
  146. uni.navigateTo({
  147. url:'./comment?id='+ id + '&bId=' + this.branchId + '&aId=' + this.activeId + '&types=edit'
  148. })
  149. break;
  150. }
  151. },
  152. pageShowShare(obj,tabs){
  153. switch (tabs){
  154. case 'record':
  155. this.readActive(this.recordId)
  156. break;
  157. case 'files':
  158. this.getFileList(this.recordId)
  159. break;
  160. case 'comment':
  161. this.getCommentList(this.recordId)
  162. break;
  163. }
  164. this.isShowShareModal = true;
  165. },
  166. closeShare(e){
  167. this.isShowShareModal = false;
  168. },
  169. onClickItem(e){
  170. this.current = e.currentIndex;
  171. if(e.currentIndex == '0'){
  172. this.readActive(this.recordId)
  173. }
  174. if(e.currentIndex == '1'){
  175. this.getFileList(this.recordId)
  176. }
  177. if(e.currentIndex == '2'){
  178. this.getCommentList(this.recordId)
  179. }
  180. },
  181. //打开文件
  182. openFile(files){
  183. console.log(files)
  184. uni.downloadFile({
  185. url: files,
  186. success: function(res) {
  187. var filePath = res.tempFilePath;
  188. //打开文件有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
  189. uni.openDocument({
  190. filePath:filePath,
  191. success: function(res) {
  192. console.log(res)
  193. //that.downloadFile_onoff = true;
  194. },
  195. fail(res) {
  196. console.log(res)
  197. uni.showToast({
  198. title: '暂不支持此类型',
  199. icon:'none',
  200. duration: 2000
  201. });
  202. //uni.hideLoading();
  203. //that.downloadFile_onoff = true;
  204. }
  205. });
  206. }
  207. });
  208. },
  209. showLarge(urlList,index) {
  210. let imgList = urlList,imgArr = [];
  211. imgList.forEach((item,index)=>{
  212. imgArr.push(item.pic_url)
  213. })
  214. uni.previewImage({
  215. urls:imgArr,
  216. current:imgArr[index],
  217. longPressActions: {
  218. itemList: ["发送给朋友", "保存图片"],
  219. success: function (data) {},
  220. fail: function (err) {
  221. console.log(err.errMsg);
  222. },
  223. },
  224. });
  225. },
  226. delProcessRequeset(delId){
  227. let md5Sign = md5(
  228. "method=" +"activity" + "&timestamp=" + getApp().globalData.globalTimestamp +
  229. "&secret=" + getApp().globalData.secret
  230. );
  231. let url = getApp().globalData.shareUrl +"api/api.php" +
  232. "?method=activity&action=process_del&timestamp=" +
  233. getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
  234. uni.request({
  235. url: url,
  236. method: "POST",
  237. header: {
  238. "content-type": "application/x-www-form-urlencoded",
  239. },
  240. data: {
  241. openid: getApp().globalData.open_id,
  242. id:delId
  243. },
  244. success: (res) => {
  245. if (res.data.code === 200) {
  246. uni.showToast({
  247. title: "删除成功",
  248. icon: "none",
  249. duration: 2500,
  250. success:()=>{
  251. this.readActive(this.activeId)
  252. }
  253. });
  254. }
  255. },
  256. fail: () => {
  257. console.log("连接失败");
  258. },
  259. });
  260. },
  261. delCommentRequeset(delId){
  262. let md5Sign = md5(
  263. "method=" +"activity" + "&timestamp=" + getApp().globalData.globalTimestamp +
  264. "&secret=" + getApp().globalData.secret
  265. );
  266. let url = getApp().globalData.shareUrl +"api/api.php" +
  267. "?method=activity&action=comment_del&timestamp=" +
  268. getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
  269. uni.request({
  270. url: url,
  271. method: "POST",
  272. header: {
  273. "content-type": "application/x-www-form-urlencoded",
  274. },
  275. data: {
  276. openid: getApp().globalData.open_id,
  277. id:delId
  278. },
  279. success: (res) => {
  280. if (res.data.code === 200) {
  281. uni.showToast({
  282. title: "删除成功",
  283. icon: "none",
  284. duration: 2500,
  285. success:()=>{
  286. this.getCommentList(this.activeId)
  287. }
  288. });
  289. }
  290. },
  291. fail: () => {
  292. console.log("连接失败");
  293. },
  294. });
  295. },
  296. delProcess(id,type){
  297. let that = this;
  298. let typeTitle;
  299. switch (type){
  300. case 'record':
  301. typeTitle = '确定删除此记录吗'
  302. break;
  303. case 'comment':
  304. typeTitle = '确定删除此评论吗'
  305. break;
  306. case 'comment':
  307. typeTitle = '确定删除此文件吗'
  308. break;
  309. }
  310. uni.showModal({
  311. title: typeTitle,
  312. success(res) {
  313. if (res.confirm) {
  314. if(type === 'record') {
  315. that.delProcessRequeset(id);
  316. }
  317. else if (type === 'comment') {
  318. that.delCommentRequeset(id);
  319. }
  320. } else if (res.cancel) {
  321. console.log("用户点击取消");
  322. }
  323. },
  324. });
  325. },
  326. readDesc(id){
  327. let md5Sign = md5(
  328. "method=" +"activity" + "&timestamp=" + getApp().globalData.globalTimestamp +
  329. "&secret=" + getApp().globalData.secret
  330. );
  331. let url = getApp().globalData.shareUrl +"api/api.php" +
  332. "?method=activity&action=info_by_id&timestamp=" +
  333. getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
  334. uni.request({
  335. url: url,
  336. method: "POST",
  337. header: {
  338. "content-type": "application/x-www-form-urlencoded",
  339. },
  340. data: {
  341. openid:getApp().globalData.open_id,
  342. id:id
  343. },
  344. success: (res) => {
  345. if (res.data.code === 200) {
  346. this.activeDesc = res.data.data;
  347. this.branchId = res.data.data.branch_id;
  348. this.activeId = res.data.data.id;
  349. }
  350. },
  351. fail: () => {
  352. console.log("连接失败");
  353. },
  354. });
  355. },
  356. getCommentList(id){
  357. let md5Sign = md5(
  358. "method=" +"activity" + "&timestamp=" + getApp().globalData.globalTimestamp +
  359. "&secret=" + getApp().globalData.secret
  360. );
  361. let url = getApp().globalData.shareUrl +"api/api.php" +
  362. "?method=activity&action=comment_list&timestamp=" +
  363. getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
  364. uni.request({
  365. url: url,
  366. method: "POST",
  367. header: {
  368. "content-type": "application/x-www-form-urlencoded",
  369. },
  370. data: {
  371. openid:getApp().globalData.open_id,
  372. activity_id : id
  373. },
  374. success: (res) => {
  375. if (res.data.code === 200) {
  376. console.log(res.data.data)
  377. this.commentList = res.data.data.list;
  378. }
  379. },
  380. fail: () => {
  381. console.log("连接失败");
  382. },
  383. });
  384. },
  385. getFileList(id){
  386. let md5Sign = md5(
  387. "method=" +"activity" + "&timestamp=" + getApp().globalData.globalTimestamp +
  388. "&secret=" + getApp().globalData.secret
  389. );
  390. let url = getApp().globalData.shareUrl +"api/api.php" +
  391. "?method=activity&action=files_list&timestamp=" +
  392. getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
  393. uni.request({
  394. url: url,
  395. method: "POST",
  396. header: {
  397. "content-type": "application/x-www-form-urlencoded",
  398. },
  399. data: {
  400. openid:getApp().globalData.open_id,
  401. activity_id : id
  402. },
  403. success: (res) => {
  404. if (res.data.code === 200) {
  405. console.log(res.data.data)
  406. this.fileList = res.data.data.list;
  407. }
  408. },
  409. fail: () => {
  410. console.log("连接失败");
  411. },
  412. });
  413. },
  414. readActive(id){
  415. let md5Sign = md5(
  416. "method=" +"activity" + "&timestamp=" + getApp().globalData.globalTimestamp +
  417. "&secret=" + getApp().globalData.secret
  418. );
  419. let url = getApp().globalData.shareUrl +"api/api.php" +
  420. "?method=activity&action=process_list&timestamp=" +
  421. getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
  422. uni.request({
  423. url: url,
  424. method: "POST",
  425. header: {
  426. "content-type": "application/x-www-form-urlencoded",
  427. },
  428. data: {
  429. openid:getApp().globalData.open_id,
  430. activity_id:id
  431. },
  432. success: (res) => {
  433. if (res.data.code === 200) {
  434. let listArr = res.data.data.list;
  435. listArr.forEach((item)=>{
  436. item.pic_list.forEach((child)=>{
  437. child.pic_url = this.globalUrl + child.pic_url;
  438. child.pic_url_resize = this.globalUrl + child.pic_url_resize;
  439. })
  440. })
  441. this.activiList = listArr;
  442. }
  443. },
  444. fail: () => {
  445. console.log("连接失败");
  446. },
  447. });
  448. },
  449. tonewurl(urls) {
  450. uni.setClipboardData({
  451. data: urls,
  452. success: function (res) {
  453. uni.showToast({
  454. title: '复制成功,请在手机浏览器中打开',
  455. icon:"none"
  456. });
  457. }
  458. })
  459. // uni.navigateTo({
  460. // url:'/pages/index/webview/web-view?url=' + urls
  461. // });
  462. },
  463. goRecord(){
  464. uni.navigateTo({
  465. url:'./record?bId=' + this.branchId + '&aId=' + this.activeId + '&types=add'
  466. })
  467. },
  468. goFiles(){
  469. uni.navigateTo({
  470. url:'./files?bId=' + this.branchId + '&aId=' + this.activeId + '&types=add'
  471. })
  472. },
  473. goComment(){
  474. uni.navigateTo({
  475. url:'./comment?bId=' + this.branchId + '&aId=' + this.activeId + '&types=add'
  476. })
  477. },
  478. },
  479. };
  480. </script>
  481. <style lang="scss" scoped>
  482. .content {
  483. display: flex;
  484. flex-direction: column;
  485. .self-inf {
  486. // border-radius: 0rpx 0rpx 100% 100%;
  487. .img-name-box {
  488. height: 150rpx;
  489. margin-top: 20rpx;
  490. margin-bottom: 20rpx;
  491. display: flex;
  492. align-items: center;
  493. width: 85%;
  494. .auth-btn {
  495. margin-left: 30rpx;
  496. margin-top: 20rpx;
  497. font-size: 28rpx;
  498. background-color: #02a7f0;
  499. color: #fff;
  500. }
  501. .heade-img {
  502. z-index: 1;
  503. width: 100rpx;
  504. height: 100rpx;
  505. border-radius: 50%;
  506. // margin-left: 80rpx;
  507. }
  508. }
  509. .nickname {
  510. font-weight: 600;
  511. font-size: 28rpx;
  512. margin-left: 30rpx;
  513. margin-top: 20rpx;
  514. color: #555;
  515. letter-spacing: 1rpx;
  516. }
  517. }
  518. }
  519. .org-info-box {
  520. display: flex;
  521. justify-content: space-evenly;
  522. height: 80rpx;
  523. align-items: center;
  524. width: 100%;
  525. border-top: 1px solid #d4d4d4;
  526. color: #555;
  527. font-size: 28rpx;
  528. background: #fff;
  529. }
  530. .org-line {
  531. width: 1px;
  532. height: 82rpx;
  533. background: #d4d4d4;
  534. }
  535. .header-title {
  536. font-size: 32rpx;
  537. font-weight: bold;
  538. margin: 3% 0 1% 3%;
  539. }
  540. .active-title-box {
  541. font-size: 26rpx;
  542. height: 100rpx;
  543. border-bottom: 4px solid #eeeeee;
  544. .time-select-box {
  545. width: 32%;
  546. margin-left: 5%;
  547. }
  548. picker {
  549. width: 25%;
  550. border: 1px solid #d7d7d7;
  551. height: 60rpx;
  552. line-height: 60rpx;
  553. border-radius: 10rpx;
  554. margin-left: 20rpx;
  555. padding: 0 10rpx;
  556. position: relative;
  557. image {
  558. width: 20rpx;
  559. height: 20rpx;
  560. position: absolute;
  561. top: 11px;
  562. right: 5px;
  563. }
  564. }
  565. button {
  566. width: 24%;
  567. font-size: 25rpx;
  568. background: #4988fd;
  569. color: #fff;
  570. margin-left: 25rpx;
  571. }
  572. }
  573. .margin-top-3 {
  574. margin-top: 3%;
  575. }
  576. .active-box {
  577. display: flex;
  578. position: relative;
  579. font-size: 28rpx;
  580. padding: 20rpx;
  581. width: 92%;
  582. margin-left: 1.5%;
  583. margin-bottom: 1%;
  584. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  585. .active-header {
  586. display: flex;
  587. width: 100%;
  588. }
  589. .active-header-comment {
  590. display: flex;
  591. justify-content: space-between;
  592. width: 100%;
  593. align-items: center;
  594. }
  595. .active-type {
  596. width: 100rpx;
  597. height: 100rpx;
  598. border-radius: 50%;
  599. background-color: #ccc;
  600. text-align: center;
  601. display: flex;
  602. align-items: center;
  603. font-size: 26rpx;
  604. color: #fff;
  605. }
  606. .active-type-comment {
  607. width: 60rpx;
  608. height: 60rpx;
  609. border-radius: 10rpx;
  610. display: flex;
  611. align-items: center;
  612. margin-right: 15rpx;
  613. image {
  614. width: 100%;
  615. height: 100%;
  616. border-radius: 10rpx;
  617. }
  618. }
  619. .active-content-box{
  620. display: flex;
  621. flex-direction: column;
  622. // margin-left: 20rpx;
  623. }
  624. .active-content-box-img {
  625. display: flex;
  626. justify-content: flex-start;
  627. flex-wrap: wrap;
  628. image {
  629. width: 220rpx;
  630. height: 300rpx;
  631. }
  632. }
  633. .active-content {
  634. display: flex;
  635. align-items: center;
  636. // height: 45rpx;
  637. font-size: 26rpx;
  638. .active-title {
  639. font-size: 28rpx;
  640. margin-right: 10rpx;
  641. font-weight: bold;
  642. word-break: break-all;
  643. }
  644. .active-name {
  645. font-size: 26rpx;
  646. margin-right: 10rpx;
  647. }
  648. .active-date {
  649. color: #ccc;
  650. }
  651. }
  652. .active-date-comment {
  653. font-size: 26rpx;
  654. color: #8590a6;
  655. }
  656. .edit-icon-box {
  657. position: absolute;
  658. right: 10px;
  659. top: 10px;
  660. image {
  661. width: 35rpx;
  662. height: 35rpx;
  663. margin-right: 10rpx;
  664. }
  665. }
  666. .bg-yellow {
  667. background-color: #ffdd40;
  668. }
  669. .bg-red {
  670. background-color: #ec808d;
  671. }
  672. .bg-blue {
  673. background-color: #81d3f8;
  674. }
  675. }
  676. .marginB40 {
  677. margin-bottom: 80rpx;
  678. }
  679. .marginR5{
  680. margin-right: 5rpx;
  681. }
  682. .footer-box-record{
  683. position: fixed;
  684. bottom: 0;
  685. background-color:#f59a23;
  686. width: 100%;
  687. border-radius: 0;
  688. color: #fff;
  689. font-size: 32rpx;
  690. }
  691. .img-container{
  692. display: flex;
  693. flex-direction: column;
  694. width: 90%;
  695. margin: 3% auto;
  696. font-size: 26rpx;
  697. label {
  698. width: 20%;
  699. margin-left: 2%;
  700. margin-bottom: 2%;
  701. }
  702. .note-image-box{
  703. width: 75%;
  704. display: flex;
  705. flex-wrap: wrap;
  706. .note-image-item{
  707. position: relative;
  708. //这两个百分比很关键
  709. width: 33.33%;
  710. height: 0;
  711. padding-top: 33.33%;
  712. box-sizing: border-box;
  713. .close-icon{
  714. display: flex;
  715. justify-content: center;
  716. align-items: center;
  717. position: absolute;
  718. right: 0;
  719. top: 0;
  720. width: 22px;
  721. height: 22px;
  722. border-radius: 50%;
  723. background-color: #d5d5d5;
  724. z-index: 2;
  725. }
  726. .image-box{
  727. display: flex;
  728. justify-content: center;
  729. align-items: center;
  730. position: absolute;
  731. top: 5px;
  732. right: 5px;
  733. bottom: 5px;
  734. left: 5px;
  735. border: 1px #eee solid;
  736. border-radius: 5px;
  737. overflow: hidden;
  738. image{
  739. width: 100%;
  740. height: 100%;
  741. }
  742. }
  743. }
  744. }
  745. }
  746. .active-box-comment {
  747. border-bottom: 1px solid #d7d7d7;
  748. box-shadow: none;
  749. }
  750. .active-content-comment {
  751. font-size: 28rpx;
  752. margin-right: 10rpx;
  753. // font-weight: bold;
  754. word-break: break-all;
  755. margin-left: 70rpx;
  756. width: 85%;
  757. }
  758. .edit-icon-box-comment {
  759. position: absolute;
  760. right: 10px;
  761. bottom: 5px;
  762. image {
  763. width: 30rpx;
  764. height: 30rpx;
  765. margin-right: 10rpx;
  766. }
  767. }
  768. .active-content-files {
  769. font-size: 28rpx;
  770. margin-right: 10rpx;
  771. // font-weight: bold;
  772. word-break: break-all;
  773. margin-left: 70rpx;
  774. width: 85%;
  775. height: 150rpx;
  776. }
  777. .edit-icon-box-file {
  778. position: absolute;
  779. right: 10px;
  780. bottom: 5px;
  781. image {
  782. width: 35rpx;
  783. height: 35rpx;
  784. margin-right: 10rpx;
  785. }
  786. }
  787. </style>