donateDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852
  1. <template>
  2. <view class="detail">
  3. <view class="top">
  4. <image :src="proInfo.img" mode=""></image>
  5. <view class="title clamp">{{ proInfo.title }}</view>
  6. <view class="tip">
  7. <view class=""></view>
  8. 基本信息
  9. </view>
  10. <view class="base-info">
  11. <view class="item">
  12. <text>捐赠进度</text>
  13. <text class="status">{{ proInfo.project_progress*100 }}%</text>
  14. </view>
  15. <view class="item">
  16. <text>创立时间</text>
  17. {{ proInfo.add_time | time }}
  18. </view>
  19. <view class="item">
  20. <text>开始时间</text>
  21. {{ proInfo.start_time | time }}
  22. </view>
  23. <view class="item">
  24. <text>结束时间</text>
  25. {{ proInfo.end_time | time }}
  26. </view>
  27. </view>
  28. <view class="dynamic flex" v-if="newItem">
  29. <view class="left">实时动态</view>
  30. <view class="right flex">
  31. <view>捐赠时间:{{ newItem.add_time | time }}</view>
  32. <view>
  33. 捐赠人:
  34. <text>{{ newItem.name | name }}</text>
  35. </view>
  36. <view class="clamp" style="width: 500rpx;">捐赠数量:{{ newItem.item | item(typeList) }}</view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="content">
  41. <view class="content-nav flex">
  42. <view class="nav-item" v-for="(item, index) in navList" :key="index" :class="{ active: currentIndex === index }" @click="navClick(index)">{{ item }}</view>
  43. </view>
  44. </view>
  45. <view v-if="currentIndex === 0">
  46. <view class="item-detail" ref="swiperItemOne">
  47. <view class="tip">
  48. <view class=""></view>
  49. 捐赠介绍
  50. </view>
  51. <view class="item-content" v-html="proInfo.info"></view>
  52. <view class="tip">
  53. <view class=""></view>
  54. 项目需求
  55. </view>
  56. <view class="item-needs">
  57. <view class="need-item" v-for="item in proInfo.project_donation_info">
  58. <view class="">
  59. {{ item.project_donation_id | type(typeList) }}:
  60. <text>{{ item.project_donation_num }}</text>
  61. </view>
  62. <view class="">
  63. 最低需求捐赠数:
  64. <text>{{ item.project_donation_num }}</text>
  65. </view>
  66. <!-- <view class="">
  67. 物资捐赠要求:
  68. <text>全新</text>
  69. </view> -->
  70. </view>
  71. <!-- <view class="need-item">
  72. <view class="">
  73. 帐篷类(帐篷):
  74. <text>500</text>
  75. </view>
  76. <view class="">
  77. 最低需求捐赠数:
  78. <text>500</text>
  79. </view>
  80. <view class="">
  81. 物资捐赠要求:
  82. <text>全新</text>
  83. </view>
  84. </view> -->
  85. </view>
  86. </view>
  87. </view>
  88. <view v-else class="feedback">
  89. <view class="feedback-nav">
  90. <view class="nav-item" :class="{ action: navCurrentIndex === 0 }" @click="lookmore(0)">全部</view>
  91. <view class="nav-item" :class="{ action: navCurrentIndex === 1 }" @click="lookmore(1)">已成功</view>
  92. <view class="nav-item nav-item-err" :class="{ action: navCurrentIndex === 2 }" @click="lookmore(2)">已失败</view>
  93. </view>
  94. <view class="feedback-content">
  95. <view class="overall" v-if="navCurrentIndex === 0 && proInfo.status === 2">
  96. <view class="title">项目整体反馈</view>
  97. <view class="content">{{ proInfo.feedback }}</view>
  98. </view>
  99. <view class="without" v-if="backList.length === 0">
  100. 暂无捐赠
  101. </view>
  102. <template v-if="navCurrentIndex === 0">
  103. <view class="feedback-item" :key="item.id" v-for="item in backList">
  104. <view class="item-top">
  105. <image src="../../static/img/002.png" mode=""></image>
  106. <view class="item-name-time">
  107. <view class="item-name">荆州捐赠</view>
  108. <view class="item-time">{{ item.time | time }}</view>
  109. </view>
  110. </view>
  111. <view class="item-content">
  112. <text>{{ item.name }}</text>
  113. {{ item.time | time }}, {{ item.message }}
  114. </view>
  115. </view>
  116. </template>
  117. <template v-if="navCurrentIndex === 1">
  118. <view class="feedback-item" :key="item.id" v-for="item in backList" v-if="item.order_status !== -1">
  119. <view class="item-top">
  120. <image src="../../static/img/002.png" mode=""></image>
  121. <view class="item-name-time">
  122. <view class="item-name">荆州捐赠</view>
  123. <view class="item-time">{{ item.time | time }}</view>
  124. </view>
  125. </view>
  126. <view class="item-content">
  127. <text>{{ item.name }}</text>
  128. {{ item.time | time }}, {{ item.message }}
  129. </view>
  130. </view>
  131. </template>
  132. <template v-if="navCurrentIndex === 2">
  133. <view class="feedback-item" :key="item.id" v-for="item in backList" v-if="item.order_status === -1">
  134. <view class="item-top">
  135. <image src="../../static/img/002.png" mode=""></image>
  136. <view class="item-name-time">
  137. <view class="item-name">荆州捐赠</view>
  138. <view class="item-time">{{ item.time | time }}</view>
  139. </view>
  140. </view>
  141. <view class="item-content">
  142. <text>{{ item.name }}</text>
  143. {{ item.message }}
  144. </view>
  145. </view>
  146. </template>
  147. </view>
  148. </view>
  149. <view class="jg" style="height: 99rpx;"></view>
  150. <view class="btn-wrapper flex">
  151. <view class="btn1 btn" @click="navTo('/pages/donate/progress?id=' + proInfo.id)">实时进展</view>
  152. <view class="btn2 btn" @click="proInfo.status === 1 ? want() : cant()">我要捐款</view>
  153. </view>
  154. <uni-popup ref="popup" type="center">
  155. <view class="type-box">
  156. <image src="../../static/img/sele.png" mode="" class="bg"></image>
  157. <view class="box-title">捐款类型</view>
  158. <view class="box-tip">请选择您的捐赠身份类型</view>
  159. <view class="box-btn" @click="chooseType(0)">
  160. <image src="" mode=""></image>
  161. <view class="btn-title">个人捐赠</view>
  162. <view class="qq" :class="{ action: jxType === 0 }"><view class="yx"></view></view>
  163. </view>
  164. <view class="box-btn" @click="chooseType(1)">
  165. <image src="" mode=""></image>
  166. <view class="">企业(团队)捐赠</view>
  167. <view class="qq" :class="{ action: jxType === 1 }"><view class="yx"></view></view>
  168. </view>
  169. <view class="qr" @click="qr()">确认</view>
  170. </view>
  171. </uni-popup>
  172. </view>
  173. </template>
  174. <script>
  175. import { getProjectInfo, createProject, getDonationInfo, getAllOrder, getMyorder ,getBill,getOrderInfo,getUserList} from '../../api/money.js';
  176. let that;
  177. export default {
  178. data() {
  179. return {
  180. navList: ['捐赠详情', '捐赠反馈'],
  181. currentIndex: 0,
  182. swiperHeight: 0,
  183. navCurrentIndex: 0,
  184. jxType: 0,
  185. pid: 0,
  186. proInfo: {},
  187. typeList: [], //物资分类列表
  188. newItem: null, //最新动态,
  189. isBottom: false,
  190. backList: [], //反馈lis
  191. pushBoolen:false,
  192. endTime: null,
  193. timer: null,
  194. newtime: 0
  195. };
  196. },
  197. onReachBottom() {
  198. // this.isBottom = true;
  199. // let a = Math.floor( ((new Date()).getTime() - num*1000)/1000)
  200. // let c = setInterval((e) => {
  201. // a--
  202. // if(a == 0){
  203. // pushBoolen
  204. // clearInterval(c)
  205. // }
  206. // },1000)
  207. },
  208. onHide() {
  209. // clearInterval(c)
  210. },
  211. filters: {
  212. time(val) {
  213. let str = '';
  214. // console.log(val)
  215. if (val) {
  216. let date = new Date(val * 1000);
  217. let Y = date.getFullYear();
  218. let M = date.getMonth() + 1 > 9 ? (date.getMonth()+1) : '0' + (date.getMonth()+1);
  219. let D = date.getDate() > 9 ? date.getDate() : '0' + date.getDate();
  220. str = Y + '年' + M + '月' + D + '日';
  221. }
  222. return str;
  223. },
  224. type(val, typeList) {
  225. let str = '';
  226. let arr = typeList;
  227. let len = arr.length;
  228. for (let i = 0; i < len; i++) {
  229. if (arr[i].id === val) {
  230. return (str = arr[i].name);
  231. }
  232. }
  233. },
  234. name(val, typeList) {
  235. let str = '';
  236. if (val) {
  237. str = val.substr(0, 1);
  238. }
  239. return str + '**';
  240. },
  241. item(val, typeList) {
  242. let str = '';
  243. if (val) {
  244. let arr = val.map(item => {
  245. for (let i = 0; i < typeList.length; i++) {
  246. if (item.project_donation_id == typeList[i].id) {
  247. str = str + typeList[i].name + ' ' + item.project_donation_num + ' ' + '个 ';
  248. }
  249. }
  250. });
  251. }
  252. return str;
  253. }
  254. },
  255. onLoad(opt) {
  256. console.log('onLoadonLoadonLoadonLoadonLoadonLoadonLoadonLoad');
  257. that = this;
  258. this.pid = opt.id;
  259. console.log(this.pid, '5555555555555555555555');
  260. this.getNewOrder();
  261. this.loadDate(this.pid);
  262. this.getDonationInfo();
  263. // this.getBill()
  264. // this.getOrderInfo()
  265. },
  266. methods: {
  267. loadDate(id) {
  268. getProjectInfo({
  269. id: id
  270. }).then(res => {
  271. console.log(res,'00000000000000000000000000000')
  272. let data = res.data;
  273. console.log(data, 'loaddata++++++++++');
  274. data.info = data.info.replace(/<img /g, '<img style="width:100%"');
  275. this.endTime = data.end_time
  276. this.newtime = Math.floor((new Date().getTime() - this.endTime*1000)/1000)
  277. console.log(this.endTime,this.newtime,'--------------------------')
  278. this.timer = setInterval( () => {
  279. this.newtime--
  280. if(this.newtime==0){
  281. this.pushBoolen = true
  282. clearInterval(this.timer)
  283. }
  284. },1000)
  285. this.proInfo = data;
  286. console.log(this.proInfo, 'this.proInfo++++++++++++++++');
  287. let arr = this.proInfo.project_donation_info;
  288. let len = arr.length;
  289. let map = {},
  290. dest = [];
  291. for (var i = 0; i < len; i++) {
  292. var ai = arr[i];
  293. if (!map[ai.project_donation_id]) {
  294. dest.push(ai);
  295. map[ai.project_donation_id] = ai;
  296. } else {
  297. for (var j = 0; j < dest.length; j++) {
  298. var dj = dest[j];
  299. if (dj.project_donation_id == ai.project_donation_id) {
  300. dj.project_donation_num = dj.project_donation_num + ai.project_donation_num;
  301. dj.received = dj.received + ai.received;
  302. dj.send_num = dj.send_num + ai.send_num;
  303. dj.transport = dj.transport + ai.transport;
  304. break;
  305. }
  306. }
  307. }
  308. }
  309. this.proInfo.project_donation_info = dest;
  310. console.log(this.proInfo.project_donation_info, 'proInfo.item++++++++++++++++++++++++++');
  311. });
  312. },
  313. navTo(url) {
  314. uni.navigateTo({
  315. url: url
  316. });
  317. },
  318. navClick(index) {
  319. this.currentIndex = index;
  320. },
  321. lookmore(index) {
  322. this.navCurrentIndex = index;
  323. },
  324. want() {
  325. if(this.pushBoolen){
  326. return this.$api.msg('捐赠活动已结束');
  327. }
  328. this.$refs.popup.open();
  329. },
  330. chooseType(index) {
  331. this.jxType = index;
  332. },
  333. qr() {
  334. this.$refs.popup.close();
  335. let wzList = [];
  336. let list = this.proInfo.project_donation_info;
  337. list.map(item => {
  338. for (let i = 0; i < this.typeList.length; i++) {
  339. if (item.project_donation_id === this.typeList[i].id) {
  340. wzList.push(this.typeList[i]);
  341. }
  342. }
  343. });
  344. console.log(wzList, '**************************************');
  345. this.navTo('/pages/donate/idonate?type=' + this.jxType + '&id=' + this.proInfo.id + '&wzlist=' + JSON.stringify(wzList));
  346. },
  347. //获取物资分类列表
  348. getDonationInfo() {
  349. getDonationInfo().then(({ data }) => {
  350. this.typeList = data;
  351. console.log(this.typeList, '获取所有物资');
  352. });
  353. },
  354. getNewOrder() {
  355. getAllOrder({
  356. project_id: this.pid,
  357. page: 1,
  358. limit: 10000
  359. }).then(({ data }) => {
  360. if (data.count !== 0) {
  361. console.log(data, '999999999999999999999999');
  362. // this.newItem = data.list[0];
  363. if (!this.newItem) {
  364. this.$set(this, 'newItem', data.list[0]);
  365. }
  366. this.backList = data.list.map(item => {
  367. switch (item.order_status) {
  368. case 6:
  369. item.time = item.feedback_time;
  370. item.message = item.feedback || '您捐赠的物资已送至受捐者,感谢您的爱心!';
  371. break;
  372. case 4:
  373. item.time = item.out_delivery_time;
  374. item.message = item.out_delivery_remark || '捐赠物资已出库';
  375. break;
  376. case 3:
  377. item.time = item.receiving_time;
  378. item.message = item.receiving_remark || '捐赠物资已入库';
  379. break;
  380. // case: '已发货'
  381. case 1:
  382. item.time = item.verify_time;
  383. item.message = item.verify_remark || '捐赠审核已通过';
  384. break;
  385. case -1:
  386. item.time = item.verify_time;
  387. item.message = item.verify_remark || '您的申请未通过,您可重新提交申请,感谢您的爱心!';
  388. break;
  389. case 0:
  390. item.time = item.add_time;
  391. item.message = item.verify_remark || '感谢您的爱心!';
  392. break;
  393. default:
  394. item.time = item.add_time;
  395. item.message = '感谢您的爱心!';
  396. }
  397. console.log(item, '捐赠反馈444444444444444444444444');
  398. return item;
  399. });
  400. console.log(this.newItem, '88888888888888888');
  401. console.log(this.backList, 'this.backList+++++++++++++++++++++++');
  402. }
  403. });
  404. },
  405. getItem(item) {
  406. // this.getDonationInfo()
  407. let str = '';
  408. console.log(item);
  409. if (item) {
  410. item.forEach(item => {
  411. for (let i = 0; i < this.typeList.length; i++) {
  412. if (item.project_donation_id === this.typeList[i].project_donation_id) {
  413. str = str + this.typeList[i].project_donation_name + item.project_donation_num + '个';
  414. }
  415. }
  416. });
  417. }
  418. console.log(str, '222222222222222222');
  419. return str;
  420. },
  421. cant() {
  422. if(this.pushBoolen){
  423. return this.$api.msg('捐赠活动已结束');
  424. }
  425. if(this.proInfo.status === -1){
  426. this.$api.msg('捐赠活动无效');
  427. }
  428. if(this.proInfo.status === 0){
  429. this.$api.msg('捐赠活动未开始');
  430. }
  431. if(this.proInfo.status === 2){
  432. this.$api.msg('捐赠活动已结束');
  433. }
  434. },
  435. getBill() {
  436. getBill({
  437. project_id: this.pid,
  438. page:1,
  439. limit:1,
  440. type: 0
  441. }).then(res => {
  442. console.log(res,'getBill++++++++++++')
  443. })
  444. },
  445. getOrderInfo() {
  446. getOrderInfo({
  447. id: 44
  448. }).then( res => {
  449. console.log(res,'getOrderInfo+++++++++++++++')
  450. })
  451. }
  452. }
  453. };
  454. </script>
  455. <style lang="scss" scoped>
  456. page {
  457. width: 100%;
  458. }
  459. .top {
  460. // height: 863rpx;
  461. background-color: #fff;
  462. border-top: 1rpx solid #f6f6f6;
  463. padding-top: 33rpx;
  464. margin-bottom: 20rpx;
  465. image {
  466. display: block;
  467. width: 680rpx;
  468. height: 375rpx;
  469. border-radius: 20rpx;
  470. margin: 0 auto;
  471. // background-color: red;
  472. }
  473. .title {
  474. width: 580rpx;
  475. font-size: 32rpx;
  476. font-family: PingFang SC;
  477. font-weight: bold;
  478. color: #333333;
  479. line-height: 1;
  480. padding-top: 28rpx;
  481. padding-left: 42rpx;
  482. margin-bottom: 39rpx;
  483. }
  484. .base-info {
  485. font-size: 27rpx;
  486. font-family: PingFang SC;
  487. font-weight: 500;
  488. color: #999999;
  489. line-height: 1;
  490. display: flex;
  491. padding: 0 56rpx;
  492. flex-wrap: wrap;
  493. .item {
  494. width: 50%;
  495. padding-bottom: 40rpx;
  496. .status {
  497. color: red;
  498. font-weight: bold;
  499. }
  500. text {
  501. font-size: 26rpx;
  502. font-family: PingFang SC;
  503. font-weight: 500;
  504. color: #666666;
  505. display: inline-block;
  506. margin-right: 15rpx;
  507. }
  508. }
  509. }
  510. .dynamic {
  511. width: 666rpx;
  512. height: 111rpx;
  513. background: #efefef;
  514. border-radius: 10rpx;
  515. margin: 5rpx auto 0;
  516. .left {
  517. width: 115rpx;
  518. height: 111rpx;
  519. background: #5c93fc;
  520. border-radius: 10rpx 0px 0px 10rpx;
  521. font-size: 28rpx;
  522. font-family: PingFang SC;
  523. font-weight: 500;
  524. color: #ffffff;
  525. line-height: 34rpx;
  526. padding: 22rpx 29rpx;
  527. margin-right: 15rpx;
  528. }
  529. .right {
  530. font-size: 22rpx;
  531. font-family: PingFang SC;
  532. font-weight: 400;
  533. color: #333333;
  534. line-height: 1;
  535. padding: 12rpx 0;
  536. flex-direction: column;
  537. justify-content: space-between;
  538. text {
  539. color: red;
  540. font-weight: bold;
  541. }
  542. }
  543. }
  544. }
  545. .content {
  546. .content-nav {
  547. height: 82rpx;
  548. background: #ffffff;
  549. font-size: 30rpx;
  550. font-family: PingFang SC;
  551. font-weight: 500;
  552. color: #999999;
  553. line-height: 82rpx;
  554. justify-content: space-around;
  555. .active {
  556. border-bottom: 4rpx solid #fa7e67;
  557. color: #fa7e67;
  558. font-weight: bold;
  559. }
  560. }
  561. }
  562. .tip {
  563. margin-left: 42rpx;
  564. font-size: 30rpx;
  565. font-family: PingFang SC;
  566. font-weight: bold;
  567. color: #333333;
  568. line-height: 1;
  569. margin-bottom: 34rpx;
  570. view {
  571. display: inline-block;
  572. width: 4rpx;
  573. height: 30rpx;
  574. background: #fa7e67;
  575. border-radius: 2rpx;
  576. margin-right: 9rpx;
  577. position: relative;
  578. bottom: -2rpx;
  579. }
  580. }
  581. .btn-wrapper {
  582. position: fixed;
  583. bottom: 0;
  584. width: 100%;
  585. .btn {
  586. width: 50%;
  587. text-align: center;
  588. height: 99rpx;
  589. line-height: 99rpx;
  590. font-size: 34rpx;
  591. font-family: PingFang SC;
  592. font-weight: 500;
  593. color: #ffffff;
  594. }
  595. .btn1 {
  596. background-color: #f7c03e;
  597. }
  598. .btn2 {
  599. background-color: #fa7e67;
  600. }
  601. }
  602. .item-detail {
  603. height: 100%;
  604. padding-top: 42rpx;
  605. .item-content {
  606. padding: 0 78rpx 0 48rpx;
  607. font-size: 26rpx;
  608. font-family: PingFang SC;
  609. font-weight: 500;
  610. color: #666666;
  611. line-height: 44rpx;
  612. margin-bottom: 32rpx;
  613. }
  614. .item-needs {
  615. .need-item {
  616. width: 666rpx;
  617. height: 100rpx;
  618. background: #f3f3f3;
  619. border-radius: 10rpx;
  620. margin: 0 auto;
  621. font-size: 26rpx;
  622. font-family: PingFang SC;
  623. font-weight: 500;
  624. color: #333333;
  625. margin-bottom: 10rpx;
  626. padding-top: 20rpx;
  627. padding-left: 13rpx;
  628. line-height: 1;
  629. view {
  630. margin-bottom: 15rpx;
  631. text {
  632. color: #e80000;
  633. }
  634. }
  635. }
  636. }
  637. }
  638. .feedback {
  639. padding: 25rpx 41rpx 36rpx;
  640. .feedback-nav {
  641. margin-bottom: 20rpx;
  642. .nav-item {
  643. display: inline-block;
  644. width: 100rpx;
  645. height: 55rpx;
  646. background: #fdcbc2;
  647. box-shadow: 0px 0px 10rpx 0rpx rgba(0, 0, 0, 0.1);
  648. border-radius: 10rpx;
  649. margin-right: 20rpx;
  650. text-align: center;
  651. line-height: 55rpx;
  652. font-size: 24rpx;
  653. font-family: PingFang SC;
  654. font-weight: 500;
  655. color: #ffffff;
  656. }
  657. .nav-item-err {
  658. color: #999999;
  659. background: #f1f1f0;
  660. }
  661. .action {
  662. background: #fa7e67;
  663. color: #fff;
  664. }
  665. }
  666. .feedback-content {
  667. .overall {
  668. .title {
  669. width: 667rpx;
  670. height: 75rpx;
  671. background: #fa7e67;
  672. box-shadow: 0px 0px 10rpx 0rpx rgba(0, 0, 0, 0.1);
  673. border-radius: 10rpx 10rpx 0px 0px;
  674. font-size: 28rpx;
  675. font-family: PingFang SC;
  676. font-weight: bold;
  677. color: #ffffff;
  678. line-height: 75rpx;
  679. padding-left: 17rpx;
  680. }
  681. .content {
  682. padding: 33rpx 36rpx 43rpx 30rpx;
  683. width: 667rpx;
  684. background-color: #fff;
  685. box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
  686. border-radius: 0px 0px 10rpx 10rpx;
  687. font-size: 26rpx;
  688. font-family: PingFang SC;
  689. font-weight: 500;
  690. color: #999999;
  691. line-height: 42rpx;
  692. }
  693. }
  694. .feedback-item {
  695. margin: 20rpx auto;
  696. // display: flex;
  697. background-color: #fff;
  698. box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
  699. border-radius: 10rpx 10rpx 10rpx;
  700. .item-top {
  701. height: 118rpx;
  702. border-radius: 10px 10px 0 0;
  703. border-bottom: 1px solid #ececec;
  704. padding: 25rpx 0 0 17rpx;
  705. display: flex;
  706. image {
  707. width: 77rpx;
  708. height: 77rpx;
  709. border-radius: 50%;
  710. // background-color: red;
  711. margin-right: 12rpx;
  712. }
  713. .item-name-time {
  714. .item-name {
  715. font-size: 28rpx;
  716. font-family: PingFang SC;
  717. font-weight: bold;
  718. color: #333333;
  719. line-height: 35rpx;
  720. }
  721. .item-time {
  722. font-size: 24rpx;
  723. font-family: PingFang SC;
  724. font-weight: 500;
  725. color: #999999;
  726. line-height: 50rpx;
  727. }
  728. }
  729. }
  730. .item-content {
  731. padding: 25rpx 47rpx 40rpx 30rpx;
  732. border-radius: 0 0 10rpx 10rpx;
  733. font-size: 26rpx;
  734. font-family: PingFang SC;
  735. font-weight: 500;
  736. color: #999;
  737. line-height: 42rpx;
  738. text {
  739. color: #e80000;
  740. font-weight: bold;
  741. }
  742. }
  743. }
  744. }
  745. }
  746. .type-box {
  747. width: 542rpx;
  748. height: 575rpx;
  749. // background: linear-gradient(0deg, rgba(249, 98, 105, 0.06), rgba(255, 255, 255, 0.06));
  750. border-radius: 20rpx;
  751. background-color: #fff;
  752. position: relative;
  753. .bg {
  754. width: 100%;
  755. height: 138rpx;
  756. position: absolute;
  757. }
  758. .box-title {
  759. text-align: center;
  760. font-size: 36rpx;
  761. font-family: PingFang SC;
  762. font-weight: bold;
  763. color: #333333;
  764. line-height: 1;
  765. padding-top: 77rpx;
  766. }
  767. .box-tip {
  768. text-align: center;
  769. font-size: 24rpx;
  770. font-family: PingFang SC;
  771. font-weight: 500;
  772. color: #808080;
  773. line-height: 1;
  774. padding-top: 12rpx;
  775. margin-bottom: 43rpx;
  776. }
  777. .box-btn {
  778. margin: 0 auto;
  779. width: 460rpx;
  780. height: 95rpx;
  781. display: flex;
  782. align-items: center;
  783. border-bottom: 1px solid #f3efef;
  784. position: relative;
  785. image {
  786. height: 43rpx;
  787. width: 43rpx;
  788. background-color: red;
  789. margin-right: 15rpx;
  790. }
  791. .qq {
  792. width: 32rpx;
  793. height: 32rpx;
  794. border: 1px solid #808080;
  795. opacity: 0.5;
  796. border-radius: 50%;
  797. position: absolute;
  798. right: 0;
  799. }
  800. .action {
  801. border-color: #fa7e67;
  802. // position: relative;
  803. .yx {
  804. width: 20rpx;
  805. height: 20rpx;
  806. background: #fa7e67;
  807. // border: 1px solid #FA7E67;
  808. border-radius: 50%;
  809. position: absolute;
  810. top: 0;
  811. bottom: 0;
  812. left: 0;
  813. right: 0;
  814. margin: auto;
  815. }
  816. }
  817. }
  818. .qr {
  819. width: 460rpx;
  820. height: 71rpx;
  821. background: #fa7e67;
  822. box-shadow: 0px 16rpx 16rpx 0px rgba(250, 126, 103, 0.5);
  823. border-radius: 10rpx;
  824. font-size: 28rpx;
  825. font-family: PingFang SC;
  826. font-weight: 500;
  827. color: #ffffff;
  828. text-align: center;
  829. line-height: 71rpx;
  830. margin: 62rpx auto 0;
  831. }
  832. }
  833. .without {
  834. padding: 40rpx;
  835. width: 100%;
  836. height: 100%;
  837. text-align: center;
  838. }
  839. </style>