list.vue 25 KB

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