contribution.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988
  1. <template>
  2. <view class="content">
  3. <!-- <view class="top">
  4. 爱心捐款
  5. </view> -->
  6. <view class="jg" style="height: 43rpx;"></view>
  7. <view class="nav flex">
  8. <view class="nav-item" v-for="(item,indez) in navList" :class="{'action': currentIndex == indez}"
  9. @click="navClick(indez)">
  10. {{item.tit}}
  11. </view>
  12. </view>
  13. <template v-if="currentIndex == 1">
  14. <view class="tit">
  15. 捐赠意向
  16. </view>
  17. <picker :value="index" @change="PickerDire" :range="chooseDire" class="choose-yx-box">
  18. <view class="">{{ intention || '请选择捐款意向'}}</view>
  19. </picker>
  20. <view class="list-box" v-for="(item,index) in gyList" :key='index' @click="Jump(item)" v-if="item.title == intention">
  21. <view class="box-left">
  22. <image :src="item.image_input[0]" mode="" class="left-img"></image>
  23. </view>
  24. <view class="box-right">
  25. <view class="right-top word1_ellipsis">
  26. {{item.title}}
  27. </view>
  28. <view class="right-center">
  29. {{item.synopsis}}
  30. </view>
  31. <!-- <view class="right-foot">
  32. 已阅读人数:{{item.visit || 0}}
  33. </view> -->
  34. </view>
  35. </view>
  36. </template>
  37. <template v-if="currentIndex == 0">
  38. <view class="tit">
  39. 类型
  40. </view>
  41. <picker :value="index" @change="PickerHf" :range="hfList" class="choose-yx-box">
  42. <view class="">{{ hfType || '请选择会费类型'}}</view>
  43. </picker>
  44. </template>
  45. <view class="tit">
  46. {{currentIndex == 1? '捐款方式' : '缴费方式'}}
  47. </view>
  48. <picker :value="index" @change="PickerType" :range="chooseType" class="choose-yx-box">
  49. <view class="">{{ way || '请选择捐款方式'}}</view>
  50. </picker>
  51. <view class="tit">
  52. {{currentIndex == 1? '捐赠者' : '缴费者'}}
  53. </view>
  54. <template v-if="currentIndex == 1">
  55. <view class="flex" style="align-items: center;">
  56. <input type="text" placeholder="请输入姓名" v-model="donate_er" v-if="way=='个人'" class="name-ipt" />
  57. <input type="text" placeholder="请输入单位名称" v-model="donate_er" v-else class="name-ipt" />
  58. <view class="">
  59. <switch :checked="!is_public" color='#E63931' style="transform: scale(0.7,0.7)"
  60. @change="switch1Change" />匿名捐赠
  61. <switch :checked="is_receipts" color='#E63931' style="transform: scale(0.7,0.7)"
  62. @change="switch2Change" />寄发票
  63. </view>
  64. </view>
  65. </template>
  66. <template v-if="currentIndex == 0">
  67. <input type="text" placeholder="请输入姓名" v-model="donate_er" v-if="way=='个人'" class="name-ipt name-ipt-t" />
  68. <input type="text" placeholder="请输入单位名称" v-model="donate_er" v-else class="name-ipt name-ipt-t" />
  69. </template>
  70. <input type="text" placeholder="请输入手机号" v-model="mobile" class="name-ipt name-ipt-t" style="margin: 40rpx 0 40rpx 30rpx"/>
  71. <view class="tit">
  72. {{currentIndex == 1? '捐赠金额' : '缴费金额'}}
  73. </view>
  74. <input type="text" placeholder="请输入金额" v-model="money" class="name-ipt name-ipt-t money-box" />
  75. <template v-if="is_receipts">
  76. <view class="tit">
  77. 联系地址
  78. </view>
  79. <input type="text" placeholder="请输入联系地址" v-model="address" class="name-ipt name-ipt-t" />
  80. </template>
  81. <view class="submit" @click="confirm()">
  82. 立即提交
  83. </view>
  84. <template v-if="currentIndex == 1 ">
  85. <view class="tit">
  86. 爱心榜
  87. </view>
  88. <scroll-view class="love-wrap" scroll-y @scrolltolower="getLoveList()">
  89. <view class="love-item" v-for="item in loveList" >
  90. <view class="itemt clamp">
  91. {{item.donate_er}}
  92. </view>
  93. <view class="itemt clamp" style="text-align: center;">
  94. {{item.pay_time | time}}
  95. </view>
  96. <view class="itemt clamp" style="text-align: right;">
  97. ¥{{item.money}}
  98. </view>
  99. </view>
  100. <uni-load-more :status="loadingType"></uni-load-more>
  101. </scroll-view>
  102. <view class="" style="height: 20rpx;">
  103. </view>
  104. </template>
  105. <uni-popup ref="popup1" type="center">
  106. <view class="popup-box">
  107. <!-- <view class="img">
  108. <image src="../../static/img/WechatIMG662.png" mode=""></image>
  109. </view> -->
  110. <view class="mian">
  111. <view class="delivery">
  112. 支付失败
  113. <!-- {{ i18n.qrhwsdm }} -->
  114. </view>
  115. <view class="nocancel">
  116. 请退出页面,重新登录
  117. <!-- {{ i18n.wfcx }} -->
  118. </view>
  119. <view class="comfirm-box">
  120. <view class="cancel" @click="cancel1">
  121. 取消
  122. </view>
  123. <view class="comfirm" @click="comfirmExit()">
  124. 确认
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </uni-popup>
  130. </view>
  131. </template>
  132. <script>
  133. import { getArticleList } from '@/api/index.js'
  134. import {
  135. chosintention,
  136. joinDona
  137. } from '@/api/ask.js';
  138. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  139. import {
  140. computedOrderkey,
  141. balance,
  142. createOrderkey,
  143. orderPay
  144. } from '@/api/money.js';
  145. import {
  146. saveUrl,
  147. interceptor
  148. } from '@/utils/loginUtils.js';
  149. import {
  150. mapState,
  151. mapMutations
  152. } from 'vuex';
  153. import {
  154. userinfo
  155. } from '@/api/user.js';
  156. import { loveList } from '@/api/order.js'
  157. export default {
  158. filters: {
  159. time(val) {
  160. let str = ''
  161. if(val) {
  162. let date = new Date(val*1000)
  163. let y = date.getFullYear()
  164. let m = date.getMonth() + 1
  165. let d = date.getDate()
  166. return str = y + '/' + m + '/' + d
  167. }
  168. return str
  169. }
  170. },
  171. components: {
  172. uniPopup,
  173. // uniLoadMore
  174. },
  175. watch: {
  176. currentIndex(newValue,oldValue) {
  177. if(newValue == 0) {
  178. uni.setNavigationBarTitle({
  179. title: '会费缴纳'
  180. })
  181. }else if(newValue == 1) {
  182. uni.setNavigationBarTitle({
  183. title: '在线捐赠'
  184. })
  185. }else if(newValue == 2) {
  186. uni.setNavigationBarTitle({
  187. title: '我的记录'
  188. })
  189. }
  190. }
  191. },
  192. data() {
  193. return {
  194. hfType: '',
  195. hfList: [],
  196. navList: [{
  197. tit: '会费缴纳',
  198. },
  199. {
  200. tit: '在线捐赠',
  201. },
  202. // {
  203. // tit: '我的记录',
  204. // }
  205. ],
  206. currentIndex: 0,
  207. index: 0,
  208. intention: '', // 捐款意向
  209. way: '个人', // 捐款方式
  210. money: '', // 捐款金额
  211. // elsemoney: '', // 其他金额
  212. popmoney: '', // 按钮金额 弹窗金额
  213. is_show: true,
  214. moneyList: [{
  215. id: 0,
  216. money: 500
  217. },
  218. {
  219. id: 1,
  220. money: 200
  221. },
  222. {
  223. id: 2,
  224. money: 100
  225. },
  226. {
  227. id: 3,
  228. money: 50
  229. },
  230. {
  231. id: 4,
  232. money: 20
  233. },
  234. ],
  235. is_public: true, // 是否实名公开
  236. is_receipts: false, // 是否开发票
  237. donate_er: '', // 捐款人/单位
  238. mobile: '', // 手机号
  239. isshowMoney: false, // 其他金额是否展示
  240. address: '', // 联系地址
  241. // chooseDire: ['请选择捐款意向','红十字人道事业(非定向捐赠)','疫情防控','其他','红十字博爱送万家','AED救护及科普','青少年生命安全教育基地建设项目','关注重度失能老人项目','青少年白血病救护项目','地芯行动-关爱地中海贫血儿童','会费缴纳'],
  242. chooseDire: [],
  243. chooseType: ['个人', '单位'],
  244. chooseMoney: ['5元', '10元', '50元', '其他金额'],
  245. payLoding: false, //判断是否支付中
  246. froms: '', //保存h5中数据来源对象
  247. type: '', //判断是否从订单中进入
  248. payName: 'weixin',
  249. loveList: [],
  250. page: 1,
  251. limit: 20,
  252. loadingType: 'more',
  253. loaded: false,
  254. gyList: []
  255. // orderInfo: {},
  256. }
  257. },
  258. onLoad(options) {
  259. // console.log(333,options)
  260. this.getYxList()
  261. this.getLoveList()
  262. this.getGyList()
  263. this.currentIndex = 1
  264. },
  265. onShow() {
  266. // this.getYxList()
  267. saveUrl()
  268. // let token = uni.getStorageSync('token');
  269. console.log(1, this);
  270. // uni.showModal({
  271. // title: '判断hasLogin',
  272. // content: JSON.stringify(this.hasLogin),
  273. // })
  274. if (!this.hasLogin) {
  275. // 登录拦截
  276. // interceptor();
  277. uni.showModal({
  278. title: '登录',
  279. content: '您未登录,是否马上登陆?',
  280. success: e => {
  281. if (e.confirm) {
  282. interceptor();
  283. }
  284. },
  285. fail: e => {
  286. console.log(e);
  287. uni.showModal({
  288. title: 'cuowu',
  289. content: JSON.stringify(e),
  290. })
  291. }
  292. });
  293. } else {
  294. // this.loadData();
  295. }
  296. },
  297. computed: {
  298. ...mapState('user', ['userInfo', 'baseURL', 'hasLogin']),
  299. ...mapState(['weichatObj']),
  300. },
  301. methods: {
  302. // 获取公益项目
  303. getGyList() {
  304. getArticleList({
  305. page: 1,
  306. limit: 20
  307. },17).then(({data}) => {
  308. console.log(data,'17')
  309. this.gyList = data.list
  310. })
  311. },
  312. Jump(item) {
  313. console.log(item.url,'item.url')
  314. if(item.url != '') {
  315. window.location.href = item.url
  316. }else {
  317. // uni.navigateTo({
  318. // url: '/pages/article/detail?id=' + index
  319. // })
  320. }
  321. },
  322. ceshi() {
  323. window.location.href = 'weixin://dl/business/?t=gLuI4kyK2mj'
  324. },
  325. getLoveList() {
  326. let obj = this
  327. if(obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
  328. return
  329. }
  330. obj.loadingType = 'loading'
  331. loveList({
  332. page: this.page,
  333. limit: this.limit
  334. }).then(res => {
  335. console.log(res,'loveList')
  336. this.loveList = this.loveList.concat(res.data.list)
  337. this.page++
  338. if(res.data.list.length == this.limit) {
  339. this.loadingType = 'more'
  340. }else {
  341. this.loadingType = 'noMore'
  342. }
  343. obj.loaded = true
  344. })
  345. },
  346. navClick(indez) {
  347. this.currentIndex = indez
  348. },
  349. //获取捐赠意向
  350. getYxList() {
  351. chosintention({}).then(({
  352. data
  353. }) => {
  354. console.log(data)
  355. let arr = data.filter(item => {
  356. return item.title.indexOf('会费') == -1
  357. })
  358. let arr2 = data.filter(item => {
  359. return item.title.indexOf('会费') != -1
  360. })
  361. this.hfList = arr2.map(item => item.title)
  362. this.hfType = this.hfList[0]
  363. this.chooseDire = arr.map(item => item.title)
  364. this.intention = this.chooseDire[0]
  365. console.log(this.chooseDire, 'filter')
  366. }).catch()
  367. },
  368. // 点击捐赠意向
  369. addType(e) {
  370. chosintention({}).then(({
  371. data
  372. }) => {
  373. console.log(data)
  374. this.chooseDire = data.map(item => item.title)
  375. }).catch()
  376. },
  377. // 选择捐赠意向
  378. PickerDire: function(e) {
  379. // console.log(334, this.chooseDire)
  380. this.intention = this.chooseDire[e.target.value];
  381. this.index = e.target.value + 1;
  382. },
  383. PickerHf(e) {
  384. // console.log(334, this.chooseDire)
  385. this.hfType = this.hfList[e.target.value];
  386. },
  387. // 选择捐款方式
  388. PickerType: function(e) {
  389. this.way = this.chooseType[e.target.value];
  390. this.index = e.target.value + 1;
  391. console.log('选择捐款方式', this.index)
  392. if (this.index == 1) {
  393. this.is_show = true
  394. } else {
  395. this.is_show = false
  396. }
  397. // if ( )
  398. },
  399. // 选择捐款金额
  400. PickerMoney: function(e) {
  401. this.money = this.chooseMoney[e.target.value];
  402. this.index = e.target.value + 1;
  403. console.log('选择金额', this.money)
  404. if (this.money == '其他金额') {
  405. this.isshowMoney = true
  406. } else {
  407. this.isshowMoney = false
  408. this.elsemoney = ''
  409. }
  410. },
  411. // 其他金额 选择
  412. tochooseMoney: function() {
  413. this.$refs.popup.open();
  414. },
  415. addmoney(mon) {
  416. console.log('点击金额按钮', mon.money)
  417. this.popmoney = mon.money
  418. console.log(123, this.popmoney)
  419. },
  420. cancel() {
  421. this.$refs.popup.close();
  422. },
  423. cancel1() {
  424. this.$refs.popup1.close();
  425. },
  426. comfirm1: function() {
  427. let obj = this
  428. if (obj.popmoney.toString().trim() == '') {
  429. console.log('输入框为空')
  430. } else {
  431. console.log('输入框为不为空')
  432. obj.money = obj.popmoney
  433. obj.popmoney = ''
  434. this.$refs.popup.close();
  435. }
  436. },
  437. comfirmExit() {
  438. console.log('点击comfirmExit')
  439. this.$refs.popup1.close()
  440. uni.switchTab({
  441. url: '/pages/home/home'
  442. });
  443. },
  444. // 是否实名公开
  445. switch1Change(e) {
  446. this.is_public = e.detail.value
  447. console.log(this.is_public)
  448. },
  449. //是都寄发票
  450. switch2Change(e) {
  451. this.is_receipts = e.detail.value
  452. console.log('is_receipts', this.is_receipts)
  453. },
  454. // 提交
  455. confirm: async function() {
  456. let obj = this
  457. if (!obj.way) {
  458. this.$api.msg('请选择捐款方式!');
  459. return;
  460. }
  461. if (!obj.money) {
  462. this.$api.msg('请输入捐款金额!');
  463. return;
  464. }
  465. if (this.is_show) {
  466. if (!obj.donate_er) {
  467. this.$api.msg('请填写您的姓名');
  468. return;
  469. }
  470. } else {
  471. if (!obj.donate_er) {
  472. this.$api.msg('请填写您的单位');
  473. return;
  474. }
  475. }
  476. const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
  477. if (!reg.test(obj.mobile)) {
  478. obj.$api.msg('请填写正确的手机号码');
  479. return;
  480. }
  481. if (this.is_receipts == true) {
  482. // obj.address = '用户未填写联系地址'
  483. if (!obj.address) {
  484. this.$api.msg('请输入联系地址');
  485. return;
  486. }
  487. }
  488. if (!obj.address) {
  489. obj.address = '用户未填写联系地址'
  490. }
  491. createOrderkey({
  492. money: obj.money, //捐款金额
  493. intention: obj.currentIndex == 0? obj.hfType : obj.intention, //捐款意向
  494. way: obj.way, //捐款方式
  495. is_public: obj.is_public, //是否实名公开
  496. is_receipts: obj.is_receipts, //是否开发票
  497. donate_er: obj.donate_er, //捐款人/单位
  498. mobile: obj.mobile, //手机号
  499. address: obj.address, //联系地址
  500. }).then(({
  501. data
  502. }) => {
  503. console.log(345, data)
  504. console.log(666, obj)
  505. let res = data.result.jsConfig;
  506. console.log(res)
  507. // 仅作为示例,非真实参数信息。
  508. obj.weichatObj.chooseWXPay({
  509. timestamp: res.timestamp,
  510. nonceStr: res.nonceStr,
  511. package: res.package,
  512. signType: res.signType,
  513. paySign: res.paySign,
  514. success: function(res) {
  515. // obj.$api.msg('支付成功')
  516. uni.navigateTo({
  517. url: '/pages/form/donaSuccess?money=' + obj.money
  518. })
  519. },
  520. fail: function(res) {
  521. this.$refs.popup1.open()
  522. console.log(res, "失败")
  523. console.log(res.errMsg)
  524. }
  525. });
  526. })
  527. // 支付中
  528. obj.payLoding = true;
  529. }
  530. },
  531. }
  532. </script>
  533. <style lang="scss">
  534. .content {}
  535. .top {
  536. display: flex;
  537. align-items: center;
  538. justify-content: center;
  539. background-color: #E63931;
  540. color: #FFFFFF;
  541. padding: 22rpx 0;
  542. }
  543. .box {
  544. margin-top: 10rpx;
  545. .box-item2 {
  546. background-color: #FFFFFF;
  547. padding: 18rpx 24rpx;
  548. // display: flex;
  549. border-bottom: 1rpx solid #F2F2F2;
  550. .box-left {
  551. color: #E63931;
  552. }
  553. .box-info {
  554. text-indent: 68rpx;
  555. margin-top: 16rpx;
  556. color: #7b7b7b;
  557. }
  558. .box-phone {
  559. text-indent: 68rpx;
  560. margin-top: 6rpx;
  561. // text-align: center;
  562. color: #7b7b7b;
  563. }
  564. }
  565. .box-item1 {
  566. background-color: #FFFFFF;
  567. padding: 18rpx 24rpx;
  568. // display: flex;
  569. border-bottom: 1rpx solid #F2F2F2;
  570. }
  571. .box-main {
  572. display: flex;
  573. .box-left {
  574. width: 200rpx;
  575. flex-shrink: 0;
  576. // flex: 0;
  577. }
  578. .box-right {
  579. width: 100%;
  580. color: #999999;
  581. text-align: right;
  582. }
  583. }
  584. .box-bottom {
  585. color: #999999;
  586. // padding-left: 12rpx;
  587. padding-top: 12rpx;
  588. font-size: 26rpx;
  589. }
  590. .box-item {
  591. background-color: #FFFFFF;
  592. padding: 24rpx;
  593. display: flex;
  594. border-bottom: 1rpx solid #F2F2F2;
  595. }
  596. .box-left {
  597. width: 200rpx;
  598. flex-shrink: 0;
  599. // flex: 0;
  600. .imp {
  601. color: #E63931;
  602. margin-right: 2rpx;
  603. }
  604. }
  605. .box-right {
  606. width: 100%;
  607. color: #999999;
  608. text-align: right;
  609. }
  610. }
  611. .switch-box {
  612. margin-top: 24rpx;
  613. display: flex;
  614. align-items: center;
  615. padding: 16rpx 24rpx;
  616. color: #7b7b7b;
  617. background-color: #FFFFFF;
  618. border-bottom: 1rpx solid #F2F2F2;
  619. justify-content: space-between;
  620. .switch-right {
  621. // background-color: #E63931;
  622. }
  623. }
  624. .infoOptional {
  625. padding: 20rpx 24rpx;
  626. }
  627. .submit {
  628. // position: fixed;
  629. // bottom: 0;
  630. // left: 0;
  631. // right: 0;
  632. width: 675rpx;
  633. height: 95rpx;
  634. background: #ff5c5c;
  635. color: #FFFFFF;
  636. display: flex;
  637. align-items: center;
  638. justify-content: center;
  639. margin: 40rpx auto;
  640. border-radius: 10rpx;
  641. }
  642. .popup_row {
  643. height: 500rpx;
  644. width: 100%;
  645. padding: 24rpx;
  646. background-color: #FFFFFF;
  647. .title {
  648. border-bottom: 2rpx solid #F2F2F2;
  649. color: #E63931;
  650. font-size: 32rpx;
  651. padding-left: 4rpx;
  652. padding-bottom: 16rpx;
  653. display: flex;
  654. justify-content: space-between;
  655. // align-items: center;
  656. .cancel {
  657. width: 36rpx;
  658. height: 36rpx;
  659. image {
  660. width: 36rpx;
  661. height: 36rpx;
  662. }
  663. }
  664. }
  665. .money-btn {
  666. display: flex;
  667. justify-content: space-around;
  668. margin-top: 28rpx;
  669. .btn {
  670. // width: 20%;
  671. // display: flex;
  672. // button{
  673. // background-color: #FFFFFF;
  674. // }
  675. }
  676. }
  677. .pop-main {
  678. margin-top: 32rpx;
  679. font-size: 34rpx;
  680. display: flex;
  681. .money-left {
  682. // width: 100rpx;
  683. padding: 0 6rpx;
  684. flex-shrink: 0;
  685. color: #E63931;
  686. // background-color: #457DBF;
  687. }
  688. .money-iup {
  689. width: 100%;
  690. padding-left: 22rpx;
  691. input {
  692. font-size: 32rpx;
  693. // color: #1B1B1B;
  694. color: #FF9797;
  695. .input-placeholder {
  696. // height: 70rpx;
  697. font-size: 32rpx;
  698. color: #FF9797;
  699. }
  700. }
  701. // background-color: pink;
  702. }
  703. }
  704. .comfirm {
  705. display: flex;
  706. justify-content: flex-end;
  707. margin-top: 54rpx;
  708. .comfirm1 {
  709. padding: 12rpx 24rpx;
  710. border-radius: 12rpx;
  711. color: #FFFFFF;
  712. background-color: #E63931;
  713. }
  714. }
  715. }
  716. .popup-box {
  717. width: 522rpx;
  718. height: 605rpx;
  719. background-color: #FFFFFF;
  720. border-radius: 20rpx;
  721. .img {
  722. border-radius: 20rpx 20rpx 0 0;
  723. width: 522rpx;
  724. height: 307rpx;
  725. image {
  726. border-radius: 20rpx 20rpx 0 0;
  727. width: 522rpx;
  728. height: 307rpx;
  729. }
  730. }
  731. .mian {
  732. display: flex;
  733. flex-direction: column;
  734. align-items: center;
  735. padding: 32rpx 32rpx;
  736. background-color: #FFFFFF;
  737. border-radius: 0 0 20rpx 20rpx;
  738. text-align: center;
  739. .delivery {
  740. font-size: 36rpx;
  741. color: #333333;
  742. // margin-top: 46rpx;
  743. }
  744. .nocancel {
  745. font-size: 30rpx;
  746. color: #999999;
  747. margin-top: 26rpx;
  748. }
  749. .comfirm-box {
  750. margin-top: 52rpx;
  751. display: flex;
  752. // margin-bottom: 32rpx;
  753. // justify-content: space-around;
  754. .cancel {
  755. display: flex;
  756. align-items: center;
  757. justify-content: center;
  758. width: 197rpx;
  759. height: 61rpx;
  760. border: 1px solid #C90F1B;
  761. border-radius: 31rpx;
  762. font-size: 24rpx;
  763. color: #C90F1B;
  764. }
  765. .comfirm {
  766. margin-left: 32rpx;
  767. display: flex;
  768. align-items: center;
  769. justify-content: center;
  770. width: 197rpx;
  771. height: 61rpx;
  772. background: #FA7E67;
  773. border-radius: 31px;
  774. font-size: 24rpx;
  775. color: #FFFFFF;
  776. }
  777. }
  778. }
  779. }
  780. .nav {
  781. height: 84rpx;
  782. width: 660rpx;
  783. margin: auto;
  784. color: #ff5c5c;
  785. font-size: 32rpx;
  786. font-weight: bold;
  787. .nav-item {
  788. flex-grow: 1;
  789. line-height: 84rpx;
  790. text-align: center;
  791. border: 1px solid #ff5c5c;
  792. }
  793. .action {
  794. background-color: #ff5c5c;
  795. color: #fff;
  796. }
  797. }
  798. .tit {
  799. font-size: 34rpx;
  800. font-weight: bold;
  801. padding-left: 30rpx;
  802. margin: 40rpx 0;
  803. }
  804. .choose-yx-box {
  805. width: 676rpx;
  806. height: 92rpx;
  807. border: 1px solid #989898;
  808. background-color: #dddddd;
  809. margin-left: 30rpx;
  810. view {
  811. line-height: 92rpx;
  812. width: 676rpx;
  813. height: 92rpx;
  814. padding-left: 28rpx;
  815. font-size: 32rpx;
  816. }
  817. }
  818. .name-ipt {
  819. width: 470rpx;
  820. height: 120rpx;
  821. font-size: 32rpx;
  822. line-height: 120rpx;
  823. border: 1px solid #989898;
  824. padding-left: 30rpx;
  825. margin-left: 30rpx;
  826. background-color: #ffffff;
  827. }
  828. .name-ipt-t {
  829. width: 676rpx;
  830. }
  831. .money-box {
  832. position: relative;
  833. &::after {
  834. content: '元';
  835. position: absolute;
  836. top: 0;
  837. bottom: 0;
  838. right: 20rpx;
  839. margin: auto;
  840. }
  841. }
  842. .love-wrap {
  843. width: 693rpx;
  844. height: 380rpx;
  845. margin: auto;
  846. border-radius: 10rpx;
  847. background-color: #fff;
  848. .love-item {
  849. height: 60rpx;
  850. line-height: 60rpx;
  851. display: flex;
  852. justify-content: space-between;
  853. align-items: center;
  854. .itemt {
  855. width: 231rpx;
  856. height: 60rpx;
  857. font-size: 30rpx;
  858. }
  859. }
  860. }
  861. .list-box{
  862. width: 725rpx;
  863. height: 200rpx;
  864. margin: 20rpx auto 0;
  865. background: #FFFFFF;
  866. box-shadow: 0px 5rpx 5rpx 0px rgba(35, 24, 21, 0.06);
  867. border-radius: 7rpx;
  868. padding:0 20rpx;
  869. display: flex;
  870. align-items: center;
  871. .box-left{
  872. width: 230rpx;
  873. height: 145rpx;
  874. margin-right: 20rpx;
  875. .left-img{
  876. width: 230rpx;
  877. height: 145rpx;
  878. }
  879. }
  880. .box-right{
  881. width: 430rpx;
  882. height: 145rpx;
  883. position: relative;
  884. .right-top{
  885. font-size: 25rpx;
  886. font-weight: bold;
  887. color: #333333;
  888. margin-bottom: 24rpx;
  889. }
  890. .right-center{
  891. width: 362rpx;
  892. // height: 53rpx;
  893. font-size: 21rpx;
  894. font-weight: bold;
  895. color: #999999;
  896. line-height: 33rpx;
  897. overflow: hidden;
  898. text-overflow: ellipsis;
  899. display: -webkit-box;
  900. -webkit-line-clamp: 2;//在第几行显示...
  901. -webkit-box-orient: vertical;
  902. }
  903. .right-foot{
  904. font-size: 21rpx;
  905. font-weight: bold;
  906. color: #999999;
  907. line-height: 31rpx;
  908. text-align: right;
  909. // margin-top: 13rpx;
  910. position: absolute;
  911. right: 0;
  912. bottom: 0;
  913. }
  914. }
  915. }
  916. </style>