contribution.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879
  1. <template>
  2. <view class="content">
  3. <!-- <view class="top">
  4. 爱心捐款
  5. </view> -->
  6. <view class="box">
  7. <view class="box-item" v-if="!isHelp">
  8. <view class="box-left">
  9. <text class="imp">*</text>捐款意向
  10. </view>
  11. <view class="box-right">
  12. <picker :value="index" @change="PickerDire" :range="chooseDire" class="box-right" @click="addType">
  13. <text class="f24">{{ intention || '请选择捐款意向'}}</text>
  14. </picker>
  15. </view>
  16. </view>
  17. <view class="box-item">
  18. <view class="box-left">
  19. <text class="imp">*</text>捐款方式
  20. </view>
  21. <picker @change="PickerType" :value="index" :range="chooseType" class="box-right">
  22. <view class="box-right">
  23. <text class="f24">{{ way || '请选择捐款方式'}}</text>
  24. </view>
  25. </picker>
  26. </view>
  27. <!-- <view class="box-item">
  28. <view class="box-left">
  29. 捐款金额
  30. </view>
  31. <view class="box-right">
  32. <picker @change="PickerMoney" :value="index" :range="chooseMoney" class="box-right">
  33. <text>{{ money || '请选择捐款金额'}}</text>
  34. </picker>
  35. </view>
  36. </view> -->
  37. <view class="box-item1" @click="tochooseMoney">
  38. <view class="box-main">
  39. <view class="box-left">
  40. <text class="imp">*</text>捐款金额
  41. </view>
  42. <view class="box-right f24" style="text-align: right;">
  43. <!-- <input type="text" placeholder="请选择金额" v-model="money" disabled /> -->
  44. {{money|| '请选择金额'}}
  45. </view>
  46. </view>
  47. <!-- <view class="box-bottom">
  48. 个人满500,单位满2000可打印纸质证书
  49. </view> -->
  50. </view>
  51. </view>
  52. <!-- <view class="infoOptional">
  53. 信息(选填)
  54. </view> -->
  55. <view class="box">
  56. <view class="box-item">
  57. <view class="box-left">
  58. <view v-if="!is_show">
  59. <text class="imp">*</text>捐赠方
  60. </view>
  61. <view v-else>
  62. <text class="imp">*</text>捐赠方
  63. </view>
  64. </view>
  65. <view class="box-right">
  66. <input type="text" class="f24" placeholder="请真实填写" v-model="donate_er" />
  67. </view>
  68. </view>
  69. <view class="box-item">
  70. <view class="box-left">
  71. <text class="imp">*</text>联系电话
  72. </view>
  73. <view class="box-right">
  74. <input type="text" class="f24" placeholder="请填写联系电话" v-model="mobile" />
  75. </view>
  76. </view>
  77. </view>
  78. <view class="switch-box">
  79. <view class="switch-left">
  80. 实名公开
  81. </view>
  82. <view class="switch-right">
  83. <switch :checked="public" color='#E63931' style="transform: scale(0.7,0.7)" @change="switch1Change" />
  84. </view>
  85. </view>
  86. <view class="box">
  87. <view class="tipss">
  88. <view class="box-item tips">
  89. <view class="box-left">
  90. 所属街道
  91. </view>
  92. <view class="box-right">
  93. <input type="text" class="f24" placeholder="请输入所属街道" v-model="address" />
  94. </view>
  95. </view>
  96. <view class="tip">
  97. 如您居住于长宁区,请填写您所属的街道与居委名称;如非长宁区居民,请统一填写‘长宁区红十字会
  98. </view>
  99. </view>
  100. <!-- <view class="box-item" v-if="intention.indexOf('千万人帮万家') != -1">
  101. <view class="box-left">
  102. <text class="imp">*</text>
  103. 所属街道
  104. </view>
  105. <view class="box-right">
  106. <input type="text" placeholder="请输入所属街道" v-model="address" />
  107. </view>
  108. </view> -->
  109. <view class="tipss">
  110. <view class="box-item tips">
  111. <view class="box-left">
  112. 身份证号码
  113. </view>
  114. <view class="box-right">
  115. <input type="idcard" class="f24" placeholder="请输入身份证号码" v-model="id_card" />
  116. </view>
  117. </view>
  118. <view class="tip">
  119. 如需为该笔捐款申请税收抵扣,请务必填写此项
  120. </view>
  121. </view>
  122. <view class="tipss">
  123. <view class="box-item tips">
  124. <view class="box-left">
  125. 企业社会信用代码
  126. </view>
  127. <view class="box-right">
  128. <input type="text" class="f24" placeholder="请输入企业社会信用代码" v-model="uscc" />
  129. </view>
  130. </view>
  131. <view class="tip">
  132. 企业捐款必须填写此项
  133. </view>
  134. </view>
  135. <view class="box-item">
  136. <view class="box-left">
  137. 电子邮箱
  138. </view>
  139. <view class="box-right">
  140. <input type="text" class="f24" placeholder="请输入电子邮箱" v-model="email" />
  141. </view>
  142. </view>
  143. </view>
  144. <view class="tipp">
  145. 电子邮箱用于接收捐赠收据。由于收据均为电子收据,如无法填写电子邮箱,请务必在捐赠当月致电区红十字会索取票据,电话:22187588
  146. </view>
  147. <view class="submit" @click="confirm()">
  148. 立即提交
  149. </view>
  150. <uni-popup ref="popup" type="bottom" @click="close">
  151. <view class="popup_row">
  152. <view class="title">
  153. <view class="title-left">
  154. 一份爱心,一份力量!
  155. </view>
  156. <view class="cancel" @click="cancel">
  157. <!-- <image src="../../static/img/取消.png" mode=""></image> -->
  158. </view>
  159. </view>
  160. <view class="money-btn">
  161. <view class="btn" v-for="item in moneyList" :key="item.id">
  162. <button type="default" class="f24" @click="addmoney(item)">{{ item.money}}</button>
  163. </view>
  164. </view>
  165. <view class="pop-main">
  166. <view class="money-left">
  167. 金额数
  168. </view>
  169. <view class="money-iup">
  170. <input type="text" value="" v-model="popmoney" placeholder="请选择金额或者自定义金额" />
  171. </view>
  172. <view class="">
  173. </view>
  174. </view>
  175. <view class="comfirm">
  176. <view class="comfirm1" @click="comfirm1()">
  177. 确认
  178. </view>
  179. </view>
  180. </view>
  181. </uni-popup>
  182. <uni-popup ref="popup1" type="center">
  183. <view class="popup-box">
  184. <!-- <view class="img">
  185. <image src="../../static/img/WechatIMG662.png" mode=""></image>
  186. </view> -->
  187. <view class="mian">
  188. <view class="delivery">
  189. 支付失败
  190. <!-- {{ i18n.qrhwsdm }} -->
  191. </view>
  192. <view class="nocancel">
  193. 请退出页面,重新登录
  194. <!-- {{ i18n.wfcx }} -->
  195. </view>
  196. <view class="comfirm-box">
  197. <view class="cancel" @click="cancel1">
  198. 取消
  199. </view>
  200. <view class="comfirm" @click="comfirmExit()">
  201. 确认
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. </uni-popup>
  207. </view>
  208. </template>
  209. <script>
  210. import {
  211. chosintention,
  212. joinDona
  213. } from '@/api/ask.js';
  214. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  215. import {
  216. computedOrderkey,
  217. balance,
  218. createOrderkey,
  219. orderPay
  220. } from '@/api/money.js';
  221. import {
  222. saveUrl,
  223. interceptor
  224. } from '@/utils/loginUtils.js';
  225. import {
  226. mapState,
  227. mapMutations
  228. } from 'vuex';
  229. import {
  230. userinfo
  231. } from '@/api/user.js';
  232. export default {
  233. components: {
  234. uniPopup,
  235. // uniLoadMore
  236. },
  237. data() {
  238. return {
  239. email: '', //邮箱
  240. id_card: '', //身份证号
  241. uscc: '', //企业代码
  242. street: '', //街道
  243. index: 0,
  244. intention: '', // 捐款意向
  245. category_id: '', // 捐款意向ID
  246. way: '', // 捐款方式
  247. way_id: '', // 捐款方式id
  248. money: '', // 捐款金额
  249. // elsemoney: '', // 其他金额
  250. popmoney: '', // 按钮金额 弹窗金额
  251. is_show: true,
  252. moneyList: [{
  253. id: 0,
  254. money: 500
  255. },
  256. {
  257. id: 1,
  258. money: 100
  259. },
  260. {
  261. id: 2,
  262. money: 10
  263. },
  264. {
  265. id: 3,
  266. money: 5
  267. },
  268. {
  269. id: 4,
  270. money: 1
  271. },
  272. ],
  273. is_public: '0', // 是否实名公开
  274. is_receipts: '1', // 是否开发票
  275. public: true, // 是否实名公开
  276. receipts: false, // 是否开发票
  277. donate_er: '', // 捐款人/单位
  278. mobile: '', // 手机号
  279. isshowMoney: false, // 其他金额是否展示
  280. address: '', // 联系地址
  281. // chooseDire: ['请选择捐款意向','红十字人道事业(非定向捐赠)','疫情防控','其他','红十字博爱送万家','AED救护及科普','青少年生命安全教育基地建设项目','关注重度失能老人项目','青少年白血病救护项目','地芯行动-关爱地中海贫血儿童','会费缴纳'],
  282. chooseDire: [],
  283. chooseList: [], //捐款意向真实列表
  284. chooseType: ['个人', '企业'],
  285. chooseMoney: ['5元', '10元', '50元', '其他金额'],
  286. payLoding: false, //判断是否支付中
  287. froms: '', //保存h5中数据来源对象
  288. type: '', //判断是否从订单中进入
  289. payName: 'weixin',
  290. // orderInfo: {},
  291. help_id: 0,
  292. isHelp: false,
  293. order_name: '',
  294. }
  295. },
  296. onLoad(options) {
  297. // console.log(333,options)
  298. if (options.helpid) {
  299. this.help_id = options.helpid
  300. this.order_name = options.order_name
  301. this.isHelp = true
  302. }
  303. },
  304. onShow() {
  305. if (!this.hasLogin) {
  306. // 登录拦截
  307. uni.showModal({
  308. title: '登录',
  309. content: '您未登录,是否马上登陆?',
  310. success: e => {
  311. if (e.confirm) {
  312. saveUrl()
  313. interceptor();
  314. }
  315. },
  316. fail: e => {
  317. console.log(e);
  318. uni.showModal({
  319. title: '错误',
  320. content: JSON.stringify(e),
  321. })
  322. }
  323. });
  324. } else {
  325. // this.loadData();
  326. }
  327. },
  328. computed: {
  329. ...mapState('user', ['userInfo', 'baseURL', 'hasLogin']),
  330. ...mapState(['weichatObj']),
  331. },
  332. methods: {
  333. // 点击捐赠意向
  334. addType(e) {
  335. chosintention({
  336. page: 1,
  337. limit: 100
  338. }).then(({
  339. data
  340. }) => {
  341. let arr = data.filter(item => item.status == 'normal')
  342. this.chooseDire = arr.map(item => item.name)
  343. this.chooseList = arr
  344. }).catch()
  345. },
  346. // 选择捐赠意向
  347. PickerDire: function(e) {
  348. console.log(334, e)
  349. this.intention = this.chooseDire[e.target.value];
  350. this.category_id = this.chooseList[e.target.value].id;
  351. },
  352. // 选择捐款方式
  353. PickerType: function(e) {
  354. this.way = this.chooseType[e.target.value];
  355. this.way_id = e.target.value;
  356. this.index = e.target.value;
  357. console.log('选择捐款方式', this.way_id)
  358. if (this.index == 1) {
  359. this.is_show = true
  360. } else {
  361. this.is_show = false
  362. }
  363. // if ( )
  364. },
  365. // 选择捐款金额
  366. PickerMoney: function(e) {
  367. this.money = this.chooseMoney[e.target.value];
  368. this.index = e.target.value + 1;
  369. console.log('选择金额', this.money)
  370. if (this.money == '其他金额') {
  371. this.isshowMoney = true
  372. } else {
  373. this.isshowMoney = false
  374. this.elsemoney = ''
  375. }
  376. },
  377. // 其他金额 选择
  378. tochooseMoney: function() {
  379. this.$refs.popup.open();
  380. },
  381. addmoney(mon) {
  382. console.log('点击金额按钮', mon.money)
  383. this.popmoney = mon.money
  384. console.log(123, this.popmoney)
  385. },
  386. cancel() {
  387. this.$refs.popup.close();
  388. },
  389. cancel1() {
  390. this.$refs.popup1.close();
  391. },
  392. comfirm1: function() {
  393. let obj = this
  394. if (obj.popmoney.toString().trim() == '') {
  395. console.log('输入框为空')
  396. } else {
  397. console.log('输入框为不为空')
  398. obj.money = obj.popmoney
  399. obj.popmoney = ''
  400. this.$refs.popup.close();
  401. }
  402. },
  403. comfirmExit() {
  404. console.log('点击comfirmExit')
  405. this.$refs.popup1.close()
  406. uni.switchTab({
  407. url: '/pages/home/home'
  408. });
  409. },
  410. // 是否实名公开
  411. switch1Change(e) {
  412. this.public = e.detail.value
  413. if (e.detail.value) {
  414. this.is_public = '0'
  415. } else {
  416. this.is_public = '1'
  417. }
  418. console.log(this.is_public)
  419. },
  420. //是都寄发票
  421. switch2Change(e) {
  422. this.is_receipts = e.detail.value
  423. console.log(e.detail.value, 'e.detail.value');
  424. if (e.detail.value) {
  425. this.is_receipts = '0'
  426. } else {
  427. this.is_receipts = '1'
  428. }
  429. console.log('is_receipts', this.is_receipts)
  430. },
  431. // 提交
  432. confirm: async function() {
  433. let obj = this
  434. if (!obj.way) {
  435. this.$api.msg('请选择捐款方式!');
  436. return;
  437. }
  438. if (!obj.money) {
  439. this.$api.msg('请输入捐款金额!');
  440. return;
  441. }
  442. // if (obj.public) {
  443. if (this.is_show) {
  444. if (!obj.donate_er) {
  445. this.$api.msg('请填写您的企业');
  446. return;
  447. }
  448. } else {
  449. if (!obj.donate_er) {
  450. this.$api.msg('请填写您的姓名');
  451. return;
  452. }
  453. }
  454. if (!obj.mobile) {
  455. obj.$api.msg('请填写联系方式');
  456. return;
  457. }
  458. const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
  459. if (!reg.test(obj.mobile)) {
  460. obj.$api.msg('请填写正确的联系方式');
  461. return;
  462. }
  463. // }
  464. // if (this.is_receipts == '0') {
  465. // // obj.address = '用户未填写联系地址'
  466. // // if (!obj.address) {
  467. // // this.$api.msg('请输入联系地址');
  468. // // return;
  469. // // }
  470. // if(this.type == 0 && !this.id_card) {
  471. // return this.$api.msg('请输入身份证号');
  472. // }
  473. // if(this.type == 1 && !this.uscc) {
  474. // return this.$api.msg('请输入企业社会信用代码');
  475. // }
  476. // }
  477. // if (!obj.address) {
  478. // // obj.address = '用户未填写联系地址'
  479. // return this.$api.msg('请输入所属街道');
  480. // }
  481. if (!obj.isHelp) {
  482. if (!obj.intention) {
  483. this.$api.msg('请选择捐款意向');
  484. return;
  485. }
  486. }
  487. let updata = {
  488. uscc: obj.uscc,
  489. id_card: obj.id_card,
  490. email: obj.email,
  491. // category_id: obj.category_id, //捐款意向id
  492. amount: obj.money, //捐款金额
  493. name: obj.donate_er, //捐款人/单位
  494. // contact: obj, //单位联系人(企业有效)
  495. tel: obj.mobile, //手机号
  496. address: obj.address, //联系地址
  497. is_open: obj.public ? 1 : 0, //是否实名公开
  498. is_ticket: obj.is_receipts == 0 ? 1 : 0, //是否开发票
  499. pay_type: 0, //支付方式0微信1支付宝
  500. type: obj.way_id,
  501. }
  502. if (obj.isHelp) {
  503. updata.help_id = obj.help_id
  504. updata.order_name = obj.order_name
  505. } else {
  506. updata.order_name = obj.intention //捐款意向
  507. updata.category_id = obj.category_id //捐款意向id
  508. }
  509. createOrderkey(updata).then(({
  510. data
  511. }) => {
  512. console.log(345, data)
  513. console.log(666, obj)
  514. let res = data.jsConfig;
  515. console.log(res)
  516. // 仅作为示例,非真实参数信息。
  517. obj.weichatObj.chooseWXPay({
  518. timestamp: res.timestamp,
  519. nonceStr: res.nonceStr,
  520. package: res.package,
  521. signType: res.signType,
  522. paySign: res.paySign,
  523. success: function(res) {
  524. // obj.$api.msg('支付成功')
  525. let date = new Date()
  526. let year = date.getFullYear()
  527. let month = date.getMonth() >= 9 ? date.getMonth() + 1 : '0' + (date
  528. .getMonth() + 1)
  529. let day = date.getDate() >= 10 ? date.getDate() : '0' + date.getDate()
  530. uni.navigateTo({
  531. url: '/pages/form/donaSuccess?money=' + obj.money +
  532. '&name=' + obj.donate_er + '&time=' + year + '年' +
  533. month + '月' + day + '日'
  534. })
  535. },
  536. fail: function(res) {
  537. this.$refs.popup1.open()
  538. console.log(res, "失败")
  539. console.log(res.errMsg)
  540. }
  541. });
  542. })
  543. // 支付中
  544. obj.payLoding = true;
  545. }
  546. },
  547. }
  548. </script>
  549. <style lang="scss">
  550. .content {}
  551. .top {
  552. display: flex;
  553. align-items: center;
  554. justify-content: center;
  555. background-color: #E63931;
  556. color: #FFFFFF;
  557. padding: 22rpx 0;
  558. }
  559. .box {
  560. margin-top: 10rpx;
  561. .box-item2 {
  562. background-color: #FFFFFF;
  563. padding: 18rpx 24rpx;
  564. // display: flex;
  565. border-bottom: 1rpx solid #F2F2F2;
  566. .box-left {
  567. color: #E63931;
  568. }
  569. .box-info {
  570. text-indent: 68rpx;
  571. margin-top: 16rpx;
  572. color: #7b7b7b;
  573. }
  574. .box-phone {
  575. text-indent: 68rpx;
  576. margin-top: 6rpx;
  577. // text-align: center;
  578. color: #7b7b7b;
  579. }
  580. }
  581. .box-item1 {
  582. background-color: #FFFFFF;
  583. padding: 18rpx 24rpx;
  584. // display: flex;
  585. border-bottom: 1rpx solid #F2F2F2;
  586. }
  587. .box-main {
  588. display: flex;
  589. .box-left {
  590. width: 250rpx;
  591. flex-shrink: 0;
  592. // flex: 0;
  593. }
  594. .box-right {
  595. width: 100%;
  596. color: #999999;
  597. text-align: right;
  598. }
  599. }
  600. .box-bottom {
  601. color: #999999;
  602. // padding-left: 12rpx;
  603. padding-top: 12rpx;
  604. font-size: 26rpx;
  605. }
  606. .box-item {
  607. background-color: #FFFFFF;
  608. padding: 24rpx;
  609. display: flex;
  610. border-bottom: 1rpx solid #F2F2F2;
  611. }
  612. .box-left {
  613. width: 250rpx;
  614. flex-shrink: 0;
  615. // flex: 0;
  616. .imp {
  617. color: #E63931;
  618. margin-right: 2rpx;
  619. }
  620. }
  621. .box-right {
  622. width: 100%;
  623. color: #999999;
  624. text-align: right;
  625. }
  626. }
  627. .switch-box {
  628. margin-top: 24rpx;
  629. display: flex;
  630. align-items: center;
  631. padding: 16rpx 24rpx;
  632. color: #7b7b7b;
  633. background-color: #FFFFFF;
  634. border-bottom: 1rpx solid #F2F2F2;
  635. justify-content: space-between;
  636. .switch-right {
  637. // background-color: #E63931;
  638. }
  639. }
  640. .infoOptional {
  641. padding: 20rpx 24rpx;
  642. }
  643. .submit {
  644. position: fixed;
  645. bottom: 0;
  646. left: 0;
  647. right: 0;
  648. width: 750rpx;
  649. height: 100rpx;
  650. background: #E63931;
  651. color: #FFFFFF;
  652. display: flex;
  653. align-items: center;
  654. justify-content: center;
  655. }
  656. .popup_row {
  657. height: 500rpx;
  658. width: 100%;
  659. padding: 24rpx;
  660. background-color: #FFFFFF;
  661. .title {
  662. border-bottom: 2rpx solid #F2F2F2;
  663. color: #E63931;
  664. font-size: 32rpx;
  665. padding-left: 4rpx;
  666. padding-bottom: 16rpx;
  667. display: flex;
  668. justify-content: space-between;
  669. // align-items: center;
  670. .cancel {
  671. width: 36rpx;
  672. height: 36rpx;
  673. image {
  674. width: 36rpx;
  675. height: 36rpx;
  676. }
  677. }
  678. }
  679. .money-btn {
  680. display: flex;
  681. justify-content: space-around;
  682. margin-top: 28rpx;
  683. .btn {
  684. // width: 20%;
  685. // display: flex;
  686. // button{
  687. // background-color: #FFFFFF;
  688. // }
  689. }
  690. }
  691. .pop-main {
  692. margin-top: 32rpx;
  693. font-size: 34rpx;
  694. display: flex;
  695. .money-left {
  696. // width: 100rpx;
  697. padding: 0 6rpx;
  698. flex-shrink: 0;
  699. color: #E63931;
  700. // background-color: #457DBF;
  701. }
  702. .money-iup {
  703. width: 100%;
  704. padding-left: 22rpx;
  705. input {
  706. font-size: 32rpx;
  707. // color: #1B1B1B;
  708. color: #FF9797;
  709. .input-placeholder {
  710. // height: 70rpx;
  711. font-size: 32rpx;
  712. color: #FF9797;
  713. }
  714. }
  715. // background-color: pink;
  716. }
  717. }
  718. .comfirm {
  719. display: flex;
  720. justify-content: flex-end;
  721. margin-top: 54rpx;
  722. .comfirm1 {
  723. padding: 12rpx 24rpx;
  724. border-radius: 12rpx;
  725. color: #FFFFFF;
  726. background-color: #E63931;
  727. }
  728. }
  729. }
  730. .popup-box {
  731. width: 522rpx;
  732. height: 605rpx;
  733. background-color: #FFFFFF;
  734. border-radius: 20rpx;
  735. .img {
  736. border-radius: 20rpx 20rpx 0 0;
  737. width: 522rpx;
  738. height: 307rpx;
  739. image {
  740. border-radius: 20rpx 20rpx 0 0;
  741. width: 522rpx;
  742. height: 307rpx;
  743. }
  744. }
  745. .mian {
  746. display: flex;
  747. flex-direction: column;
  748. align-items: center;
  749. padding: 32rpx 32rpx;
  750. background-color: #FFFFFF;
  751. border-radius: 0 0 20rpx 20rpx;
  752. text-align: center;
  753. .delivery {
  754. font-size: 36rpx;
  755. color: #333333;
  756. // margin-top: 46rpx;
  757. }
  758. .nocancel {
  759. font-size: 30rpx;
  760. color: #999999;
  761. margin-top: 26rpx;
  762. }
  763. .comfirm-box {
  764. margin-top: 52rpx;
  765. display: flex;
  766. // margin-bottom: 32rpx;
  767. // justify-content: space-around;
  768. .cancel {
  769. display: flex;
  770. align-items: center;
  771. justify-content: center;
  772. width: 197rpx;
  773. height: 61rpx;
  774. border: 1px solid #C90F1B;
  775. border-radius: 31rpx;
  776. font-size: 24rpx;
  777. color: #C90F1B;
  778. }
  779. .comfirm {
  780. margin-left: 32rpx;
  781. display: flex;
  782. align-items: center;
  783. justify-content: center;
  784. width: 197rpx;
  785. height: 61rpx;
  786. background: #FA7E67;
  787. border-radius: 31px;
  788. font-size: 24rpx;
  789. color: #FFFFFF;
  790. }
  791. }
  792. }
  793. }
  794. .f24 {
  795. font-size: 28rpx;
  796. }
  797. .tipss {
  798. background-color: #fff;
  799. border-bottom: 2rpx solid #F2F2F2;
  800. .tips {
  801. border-bottom: none !important;
  802. padding-bottom: 0;
  803. }
  804. .tip {
  805. padding: 10rpx 0 20rpx 24rpx;
  806. font-size: 24rpx;
  807. color: #999999;
  808. }
  809. }
  810. .tipp {
  811. padding: 20rpx;
  812. font-size: 24rpx;
  813. color: #999;
  814. }
  815. </style>