contribution.vue 22 KB

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