donateDetail.vue 20 KB

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