donateDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  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="../../static/icon/jz1.png" 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="../../static/icon/jz2.png" 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. console.log('页面隐藏')
  210. clearInterval(this.timer)
  211. },
  212. filters: {
  213. time(val) {
  214. let str = '';
  215. // console.log(val)
  216. if (val) {
  217. let date = new Date(val * 1000);
  218. let Y = date.getFullYear();
  219. let M = date.getMonth() + 1 > 9 ? (date.getMonth()+1) : '0' + (date.getMonth()+1);
  220. let D = date.getDate() > 9 ? date.getDate() : '0' + date.getDate();
  221. str = Y + '年' + M + '月' + D + '日';
  222. }
  223. return str;
  224. },
  225. type(val, typeList) {
  226. let str = '';
  227. let arr = typeList;
  228. let len = arr.length;
  229. for (let i = 0; i < len; i++) {
  230. if (arr[i].id === val) {
  231. return (str = arr[i].name);
  232. }
  233. }
  234. },
  235. name(val, typeList) {
  236. let str = '';
  237. if (val) {
  238. str = val.substr(0, 1);
  239. }
  240. return str + '**';
  241. },
  242. item(val, typeList) {
  243. let str = '';
  244. if (val) {
  245. let arr = val.map(item => {
  246. for (let i = 0; i < typeList.length; i++) {
  247. if (item.project_donation_id == typeList[i].id) {
  248. str = str + typeList[i].name + ' ' + item.project_donation_num + ' ' + ' ';
  249. }
  250. }
  251. });
  252. }
  253. return str;
  254. }
  255. },
  256. onLoad(opt) {
  257. console.log('onLoadonLoadonLoadonLoadonLoadonLoadonLoadonLoad');
  258. that = this;
  259. this.pid = opt.id;
  260. console.log(this.pid, '5555555555555555555555');
  261. this.getNewOrder();
  262. this.loadDate(this.pid);
  263. this.getDonationInfo();
  264. // this.getBill()
  265. // this.getOrderInfo()
  266. clearInterval(this.timer)
  267. },
  268. methods: {
  269. loadDate(id) {
  270. getProjectInfo({
  271. id: id
  272. }).then(res => {
  273. console.log(res,'00000000000000000000000000000')
  274. let data = res.data;
  275. console.log(data, 'loaddata++++++++++');
  276. data.info = data.info.replace(/<img /g, '<img style="width:100%"');
  277. this.setTime(data.end_time)
  278. // this.endTime = data.end_time
  279. // this.newtime = Math.floor((new Date().getTime() - this.endTime*1000)/1000)
  280. // console.log(this.endTime,this.newtime,'--------------------------')
  281. // this.timer = setInterval( () => {
  282. // this.newtime--
  283. // if(this.newtime==0){
  284. // this.pushBoolen = true
  285. // clearInterval(this.timer)
  286. // }
  287. // },1000)
  288. this.proInfo = data;
  289. console.log(this.proInfo, 'this.proInfo++++++++++++++++');
  290. let arr = this.proInfo.project_donation_info;
  291. let len = arr.length;
  292. let map = {},
  293. dest = [];
  294. for (var i = 0; i < len; i++) {
  295. var ai = arr[i];
  296. if (!map[ai.project_donation_id]) {
  297. dest.push(ai);
  298. map[ai.project_donation_id] = ai;
  299. } else {
  300. for (var j = 0; j < dest.length; j++) {
  301. var dj = dest[j];
  302. if (dj.project_donation_id == ai.project_donation_id) {
  303. dj.project_donation_num = dj.project_donation_num + ai.project_donation_num;
  304. dj.received = dj.received + ai.received;
  305. dj.send_num = dj.send_num + ai.send_num;
  306. dj.transport = dj.transport + ai.transport;
  307. break;
  308. }
  309. }
  310. }
  311. }
  312. this.proInfo.project_donation_info = dest;
  313. console.log(this.proInfo.project_donation_info, 'proInfo.item++++++++++++++++++++++++++');
  314. });
  315. },
  316. navTo(url) {
  317. uni.navigateTo({
  318. url: url
  319. });
  320. },
  321. navClick(index) {
  322. this.currentIndex = index;
  323. },
  324. lookmore(index) {
  325. this.navCurrentIndex = index;
  326. },
  327. want() {
  328. if(this.pushBoolen){
  329. return this.$api.msg('捐赠活动已结束');
  330. }
  331. this.$refs.popup.open();
  332. },
  333. chooseType(index) {
  334. this.jxType = index;
  335. },
  336. qr() {
  337. this.$refs.popup.close();
  338. let wzList = [];
  339. let list = this.proInfo.project_donation_info;
  340. list.map(item => {
  341. for (let i = 0; i < this.typeList.length; i++) {
  342. if (item.project_donation_id === this.typeList[i].id) {
  343. wzList.push(this.typeList[i]);
  344. }
  345. }
  346. });
  347. console.log(wzList, '**************************************');
  348. this.navTo('/pages/donate/idonate?type=' + this.jxType + '&id=' + this.proInfo.id + '&wzlist=' + JSON.stringify(wzList));
  349. },
  350. //获取物资分类列表
  351. getDonationInfo() {
  352. getDonationInfo().then(({ data }) => {
  353. this.typeList = data;
  354. console.log(this.typeList, '获取所有物资');
  355. });
  356. },
  357. getNewOrder() {
  358. getAllOrder({
  359. project_id: this.pid,
  360. page: 1,
  361. limit: 10000
  362. }).then(({ data }) => {
  363. if (data.count !== 0) {
  364. console.log(data, '999999999999999999999999');
  365. // this.newItem = data.list[0];
  366. if (!this.newItem) {
  367. this.$set(this, 'newItem', data.list[0]);
  368. }
  369. this.backList = data.list.map(item => {
  370. switch (item.order_status) {
  371. case 6:
  372. item.time = item.feedback_time;
  373. item.message = item.feedback || '您捐赠的物资已送至受捐者,感谢您的爱心!';
  374. break;
  375. case 4:
  376. item.time = item.out_delivery_time;
  377. item.message = item.out_delivery_remark || '捐赠物资已出库';
  378. break;
  379. case 3:
  380. item.time = item.receiving_time;
  381. item.message = item.receiving_remark || '捐赠物资已入库';
  382. break;
  383. // case: '已发货'
  384. case 1:
  385. item.time = item.verify_time;
  386. item.message = item.verify_remark || '捐赠审核已通过';
  387. break;
  388. case -1:
  389. item.time = item.verify_time;
  390. item.message = item.verify_remark || '您的申请未通过,您可重新提交申请,感谢您的爱心!';
  391. break;
  392. case 0:
  393. item.time = item.add_time;
  394. item.message = item.verify_remark || '感谢您的爱心!';
  395. break;
  396. default:
  397. item.time = item.add_time;
  398. item.message = '感谢您的爱心!';
  399. }
  400. console.log(item, '捐赠反馈444444444444444444444444');
  401. return item;
  402. });
  403. console.log(this.newItem, '88888888888888888');
  404. console.log(this.backList, 'this.backList+++++++++++++++++++++++');
  405. }
  406. });
  407. },
  408. getItem(item) {
  409. // this.getDonationInfo()
  410. let str = '';
  411. console.log(item);
  412. if (item) {
  413. item.forEach(item => {
  414. for (let i = 0; i < this.typeList.length; i++) {
  415. if (item.project_donation_id === this.typeList[i].project_donation_id) {
  416. str = str + this.typeList[i].project_donation_name + item.project_donation_num + '';
  417. }
  418. }
  419. });
  420. }
  421. console.log(str, '222222222222222222');
  422. return str;
  423. },
  424. cant() {
  425. console.log(this.pushBoolen)
  426. if(this.pushBoolen){
  427. return this.$api.msg('捐赠活动已结束');
  428. }
  429. if(this.proInfo.status === -1){
  430. this.$api.msg('捐赠活动无效');
  431. }
  432. if(this.proInfo.status === 0){
  433. this.$api.msg('捐赠活动未开始');
  434. }
  435. if(this.proInfo.status === 2){
  436. this.$api.msg('捐赠活动已结束');
  437. }
  438. },
  439. getBill() {
  440. getBill({
  441. project_id: this.pid,
  442. page:1,
  443. limit:1,
  444. type: 0
  445. }).then(res => {
  446. console.log(res,'getBill++++++++++++')
  447. })
  448. },
  449. getOrderInfo() {
  450. getOrderInfo({
  451. id: 44
  452. }).then( res => {
  453. console.log(res,'getOrderInfo+++++++++++++++')
  454. })
  455. },
  456. setTime(endTime) {
  457. this.endTime = endTime
  458. this.newtime = Math.floor((new Date().getTime() - this.endTime*1000)/1000 )
  459. if(this.newtime<0){
  460. // this.pushBoolen = true
  461. console.log(this.newtime,'newtime+++++++++++++++')
  462. this.timer = setInterval(()=> {
  463. this.newtime++
  464. console.log(this.newtime)
  465. if(this.newtime==0){
  466. this.pushBoolen = true
  467. clearInterval(this.timer)
  468. }
  469. },1000)
  470. }else {
  471. this.pushBoolen = true
  472. }
  473. }
  474. }
  475. };
  476. </script>
  477. <style lang="scss" scoped>
  478. page {
  479. width: 100%;
  480. }
  481. .top {
  482. // height: 863rpx;
  483. background-color: #fff;
  484. border-top: 1rpx solid #f6f6f6;
  485. padding-top: 33rpx;
  486. margin-bottom: 20rpx;
  487. image {
  488. display: block;
  489. width: 680rpx;
  490. height: 375rpx;
  491. border-radius: 20rpx;
  492. margin: 0 auto;
  493. // background-color: red;
  494. }
  495. .title {
  496. width: 580rpx;
  497. font-size: 32rpx;
  498. font-family: PingFang SC;
  499. font-weight: bold;
  500. color: #333333;
  501. line-height: 1;
  502. padding-top: 28rpx;
  503. padding-left: 42rpx;
  504. margin-bottom: 39rpx;
  505. }
  506. .base-info {
  507. font-size: 27rpx;
  508. font-family: PingFang SC;
  509. font-weight: 500;
  510. color: #999999;
  511. line-height: 1;
  512. display: flex;
  513. padding: 0 56rpx;
  514. flex-wrap: wrap;
  515. .item {
  516. width: 50%;
  517. padding-bottom: 40rpx;
  518. .status {
  519. color: red;
  520. font-weight: bold;
  521. }
  522. text {
  523. font-size: 26rpx;
  524. font-family: PingFang SC;
  525. font-weight: 500;
  526. color: #666666;
  527. display: inline-block;
  528. margin-right: 15rpx;
  529. }
  530. }
  531. }
  532. .dynamic {
  533. width: 666rpx;
  534. height: 111rpx;
  535. background: #efefef;
  536. border-radius: 10rpx;
  537. margin: 5rpx auto 0;
  538. .left {
  539. width: 115rpx;
  540. height: 111rpx;
  541. background: #5c93fc;
  542. border-radius: 10rpx 0px 0px 10rpx;
  543. font-size: 28rpx;
  544. font-family: PingFang SC;
  545. font-weight: 500;
  546. color: #ffffff;
  547. line-height: 34rpx;
  548. padding: 22rpx 29rpx;
  549. margin-right: 15rpx;
  550. }
  551. .right {
  552. font-size: 22rpx;
  553. font-family: PingFang SC;
  554. font-weight: 400;
  555. color: #333333;
  556. line-height: 1;
  557. padding: 12rpx 0;
  558. flex-direction: column;
  559. justify-content: space-between;
  560. text {
  561. color: red;
  562. font-weight: bold;
  563. }
  564. }
  565. }
  566. }
  567. .content {
  568. .content-nav {
  569. height: 82rpx;
  570. background: #ffffff;
  571. font-size: 30rpx;
  572. font-family: PingFang SC;
  573. font-weight: 500;
  574. color: #999999;
  575. line-height: 82rpx;
  576. justify-content: space-around;
  577. .active {
  578. border-bottom: 4rpx solid #fa7e67;
  579. color: #fa7e67;
  580. font-weight: bold;
  581. }
  582. }
  583. }
  584. .tip {
  585. margin-left: 42rpx;
  586. font-size: 30rpx;
  587. font-family: PingFang SC;
  588. font-weight: bold;
  589. color: #333333;
  590. line-height: 1;
  591. margin-bottom: 34rpx;
  592. view {
  593. display: inline-block;
  594. width: 4rpx;
  595. height: 30rpx;
  596. background: #fa7e67;
  597. border-radius: 2rpx;
  598. margin-right: 9rpx;
  599. position: relative;
  600. bottom: -2rpx;
  601. }
  602. }
  603. .btn-wrapper {
  604. position: fixed;
  605. bottom: 0;
  606. width: 100%;
  607. .btn {
  608. width: 50%;
  609. text-align: center;
  610. height: 99rpx;
  611. line-height: 99rpx;
  612. font-size: 34rpx;
  613. font-family: PingFang SC;
  614. font-weight: 500;
  615. color: #ffffff;
  616. }
  617. .btn1 {
  618. background-color: #f7c03e;
  619. }
  620. .btn2 {
  621. background-color: #fa7e67;
  622. }
  623. }
  624. .item-detail {
  625. height: 100%;
  626. padding-top: 42rpx;
  627. .item-content {
  628. padding: 0 78rpx 0 48rpx;
  629. font-size: 26rpx;
  630. font-family: PingFang SC;
  631. font-weight: 500;
  632. color: #666666;
  633. line-height: 44rpx;
  634. margin-bottom: 32rpx;
  635. }
  636. .item-needs {
  637. .need-item {
  638. width: 666rpx;
  639. height: 100rpx;
  640. background: #f3f3f3;
  641. border-radius: 10rpx;
  642. margin: 0 auto;
  643. font-size: 26rpx;
  644. font-family: PingFang SC;
  645. font-weight: 500;
  646. color: #333333;
  647. margin-bottom: 10rpx;
  648. padding-top: 20rpx;
  649. padding-left: 13rpx;
  650. line-height: 1;
  651. view {
  652. margin-bottom: 15rpx;
  653. text {
  654. color: #e80000;
  655. }
  656. }
  657. }
  658. }
  659. }
  660. .feedback {
  661. padding: 25rpx 41rpx 36rpx;
  662. .feedback-nav {
  663. margin-bottom: 20rpx;
  664. .nav-item {
  665. display: inline-block;
  666. width: 100rpx;
  667. height: 55rpx;
  668. background: #fdcbc2;
  669. box-shadow: 0px 0px 10rpx 0rpx rgba(0, 0, 0, 0.1);
  670. border-radius: 10rpx;
  671. margin-right: 20rpx;
  672. text-align: center;
  673. line-height: 55rpx;
  674. font-size: 24rpx;
  675. font-family: PingFang SC;
  676. font-weight: 500;
  677. color: #ffffff;
  678. }
  679. .nav-item-err {
  680. color: #999999;
  681. background: #f1f1f0;
  682. }
  683. .action {
  684. background: #fa7e67;
  685. color: #fff;
  686. }
  687. }
  688. .feedback-content {
  689. .overall {
  690. .title {
  691. width: 667rpx;
  692. height: 75rpx;
  693. background: #fa7e67;
  694. box-shadow: 0px 0px 10rpx 0rpx rgba(0, 0, 0, 0.1);
  695. border-radius: 10rpx 10rpx 0px 0px;
  696. font-size: 28rpx;
  697. font-family: PingFang SC;
  698. font-weight: bold;
  699. color: #ffffff;
  700. line-height: 75rpx;
  701. padding-left: 17rpx;
  702. }
  703. .content {
  704. padding: 33rpx 36rpx 43rpx 30rpx;
  705. width: 667rpx;
  706. background-color: #fff;
  707. box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
  708. border-radius: 0px 0px 10rpx 10rpx;
  709. font-size: 26rpx;
  710. font-family: PingFang SC;
  711. font-weight: 500;
  712. color: #999999;
  713. line-height: 42rpx;
  714. }
  715. }
  716. .feedback-item {
  717. margin: 20rpx auto;
  718. // display: flex;
  719. background-color: #fff;
  720. box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
  721. border-radius: 10rpx 10rpx 10rpx;
  722. .item-top {
  723. height: 118rpx;
  724. border-radius: 10px 10px 0 0;
  725. border-bottom: 1px solid #ececec;
  726. padding: 25rpx 0 0 17rpx;
  727. display: flex;
  728. image {
  729. width: 77rpx;
  730. height: 77rpx;
  731. border-radius: 50%;
  732. // background-color: red;
  733. margin-right: 12rpx;
  734. }
  735. .item-name-time {
  736. .item-name {
  737. font-size: 28rpx;
  738. font-family: PingFang SC;
  739. font-weight: bold;
  740. color: #333333;
  741. line-height: 35rpx;
  742. }
  743. .item-time {
  744. font-size: 24rpx;
  745. font-family: PingFang SC;
  746. font-weight: 500;
  747. color: #999999;
  748. line-height: 50rpx;
  749. }
  750. }
  751. }
  752. .item-content {
  753. padding: 25rpx 47rpx 40rpx 30rpx;
  754. border-radius: 0 0 10rpx 10rpx;
  755. font-size: 26rpx;
  756. font-family: PingFang SC;
  757. font-weight: 500;
  758. color: #999;
  759. line-height: 42rpx;
  760. text {
  761. color: #e80000;
  762. font-weight: bold;
  763. }
  764. }
  765. }
  766. }
  767. }
  768. .type-box {
  769. width: 542rpx;
  770. height: 575rpx;
  771. // background: linear-gradient(0deg, rgba(249, 98, 105, 0.06), rgba(255, 255, 255, 0.06));
  772. border-radius: 20rpx;
  773. background-color: #fff;
  774. position: relative;
  775. .bg {
  776. width: 100%;
  777. height: 138rpx;
  778. position: absolute;
  779. }
  780. .box-title {
  781. text-align: center;
  782. font-size: 36rpx;
  783. font-family: PingFang SC;
  784. font-weight: bold;
  785. color: #333333;
  786. line-height: 1;
  787. padding-top: 77rpx;
  788. }
  789. .box-tip {
  790. text-align: center;
  791. font-size: 24rpx;
  792. font-family: PingFang SC;
  793. font-weight: 500;
  794. color: #808080;
  795. line-height: 1;
  796. padding-top: 12rpx;
  797. margin-bottom: 43rpx;
  798. }
  799. .box-btn {
  800. margin: 0 auto;
  801. width: 460rpx;
  802. height: 95rpx;
  803. display: flex;
  804. align-items: center;
  805. border-bottom: 1px solid #f3efef;
  806. position: relative;
  807. image {
  808. height: 43rpx;
  809. width: 43rpx;
  810. // background-color: red;
  811. margin-right: 15rpx;
  812. }
  813. .qq {
  814. width: 32rpx;
  815. height: 32rpx;
  816. border: 1px solid #808080;
  817. opacity: 0.5;
  818. border-radius: 50%;
  819. position: absolute;
  820. right: 0;
  821. }
  822. .action {
  823. border-color: #fa7e67;
  824. // position: relative;
  825. .yx {
  826. width: 20rpx;
  827. height: 20rpx;
  828. background: #fa7e67;
  829. // border: 1px solid #FA7E67;
  830. border-radius: 50%;
  831. position: absolute;
  832. top: 0;
  833. bottom: 0;
  834. left: 0;
  835. right: 0;
  836. margin: auto;
  837. }
  838. }
  839. }
  840. .qr {
  841. width: 460rpx;
  842. height: 71rpx;
  843. background: #fa7e67;
  844. box-shadow: 0px 16rpx 16rpx 0px rgba(250, 126, 103, 0.5);
  845. border-radius: 10rpx;
  846. font-size: 28rpx;
  847. font-family: PingFang SC;
  848. font-weight: 500;
  849. color: #ffffff;
  850. text-align: center;
  851. line-height: 71rpx;
  852. margin: 62rpx auto 0;
  853. }
  854. }
  855. .without {
  856. padding: 40rpx;
  857. width: 100%;
  858. height: 100%;
  859. text-align: center;
  860. }
  861. </style>