list.vue 22 KB

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