contribution.vue 21 KB

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