idonate.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. <template>
  2. <view class="idonate">
  3. <view class="one" v-show="limit === 1">
  4. <view class="item">
  5. <view class="item-tit">捐赠个体<text>*</text></view>
  6. <radio-group @change="typeChange" class="check-box">
  7. <label v-for="(item, index) in items" :key="item.value">
  8. <radio :value="item.iid" :checked="index === type" color="#f3392c" style="transform:scale(0.7)" />
  9. <text style="color: #000000;">{{ item.value }}</text>
  10. </label>
  11. </radio-group>
  12. </view>
  13. <template v-if="type === 1">
  14. <view class="item">
  15. <view class="item-tit">捐赠单位<text>*</text></view>
  16. <input type="text" v-model="unit" placeholder="请填写捐赠单位"/>
  17. </view>
  18. <view class="item">
  19. <view class="item-tit">单位联系人<text>*</text></view>
  20. <input type="text" v-model="contacts" placeholder="请填写捐赠方联系人"/>
  21. </view>
  22. <view class="item">
  23. <view class="item-tit">单位电话<text>*</text></view>
  24. <input type="text" v-model="tel" placeholder="请填写单位联系方式"/>
  25. </view>
  26. <view class="item">
  27. <view class="item-tit">企业信用代码</view>
  28. <input type="text" v-model="qyxydm" placeholder="请填写单位的企业信用代码"/>
  29. </view>
  30. </template>
  31. <template v-if="type === 0">
  32. <view class="item">
  33. <view class="item-tit">姓名<text>*</text></view>
  34. <input type="text" v-model="name" placeholder="请填写您的姓名"/>
  35. </view>
  36. <view class="item">
  37. <view class="item-tit">联系方式<text>*</text></view>
  38. <input type="text" v-model="phone" placeholder="请填写您的联系方式"/>
  39. </view>
  40. <view class="item">
  41. <view class="item-tit">身份证号</view>
  42. <input type="text" v-model="identityNumber" placeholder="请填写您的身份证号"/>
  43. </view>
  44. </template>
  45. <view class="item">
  46. <view class="item-tit">是否匿名</view>
  47. <radio-group @change="anonymousChange" class="check-box">
  48. <label>
  49. <radio value="1" :checked="IsAnonymous" color="#f3392c" style="transform:scale(0.7)" />
  50. <text style="color: #000000;">是</text>
  51. </label>
  52. <label>
  53. <radio value="0" :checked="!IsAnonymous" color="#f3392c" style="transform:scale(0.7)" />
  54. <text style="color: #000000;">否</text>
  55. </label>
  56. </radio-group>
  57. </view>
  58. <view class="item">
  59. <view class="item-tit">物流方式<text>*</text></view>
  60. <picker @change="bindLogChange" :range="logs" range-key="name">
  61. <view class="log " :class="{'select': log }">{{ log || '请选择物流方式' }}</view>
  62. </picker>
  63. </view>
  64. <view class="item">
  65. <view class="item-tit">捐赠地址<text>*</text></view>
  66. <picker @change="bindAreaChange" :range="areas" range-key="name">
  67. <view class="log " :class="{'select': area }">{{ area || '请选择捐赠地址' }}</view>
  68. </picker>
  69. </view>
  70. <view class="item no-border-b">
  71. <view class="item-tit">开具发票<text>*</text></view>
  72. <radio-group @change="openChange" class="check-box">
  73. <label>
  74. <radio value="1" :checked="Isopen" color="#f3392c" style="transform:scale(0.7)" />
  75. <text style="color: #000000;">是</text>
  76. </label>
  77. <label>
  78. <radio value="0" :checked="!Isopen" color="#f3392c" style="transform:scale(0.7)" />
  79. <text style="color: #000000;">否</text>
  80. </label>
  81. </radio-group>
  82. </view>
  83. <view class="mask">
  84. <textarea :value="mask" placeholder="如果有备注请填写"/>
  85. </view>
  86. <view class="bbtm"></view>
  87. <view class="jzwz">
  88. <view class="item-tit">捐赠物资<text>*</text></view>
  89. <view class="choose-box">
  90. <view class="choose-item" v-for="(item,index) in wzList" :key="index" @click="dianji(index)">
  91. <picker @change="bindWzChange" :range="wzs" range-key="name">
  92. <view class="wz select" :class="{'action': item.project_donation_name }">{{ item.project_donation_name || '请选择物资分类' }}</view>
  93. </picker>
  94. <input type="number" v-model="item.project_donation_num" placeholder="填写数量"/>
  95. <!-- <view class="dele" v-if="index != 0">
  96. <view class="lef"></view>
  97. <view class="rig"></view>
  98. </view> -->
  99. </view>
  100. <view class="flex act">
  101. <view class="more" @click="addMore" v-show="wzs.length > wzList.length">
  102. +添加更多
  103. </view>
  104. <view class=" del" @click="dele" v-show=" wzList.length > 1">
  105. 删除
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <view class="tow" v-show="limit === 2">
  112. <view class="t-item">
  113. <view class="t-tit">
  114. 实物照片(必填)<text>{{swimg | much}}/3</text>
  115. </view>
  116. <view class="img-list flex">
  117. <template v-for="(item,index) in swimg">
  118. <image src="../../static/images/upload.png" mode="" v-if="!item" @click.stop="imgsub(swimg,index)" :key="index"></image>
  119. <image :src="item" mode="" v-if="item" @click.stop="imgsub(item)" :key="index"></image>
  120. </template>
  121. </view>
  122. </view>
  123. <!-- <view class="t-item" v-if="type === 1">
  124. <view class="t-tit">
  125. 营业执照(必填)<text>{{yyimg | much}}/3</text>
  126. </view>
  127. <view class="img-list flex">
  128. <template v-for="(item,index) in yyimg">
  129. <image src="../../static/images/upload.png" mode="" v-if="!item" @click.stop="imgsub(yyimg,index)" :key="index"></image>
  130. <image :src="item" mode="" v-if="item" @click.stop="imgsub(yyimg,index)" :key="index"></image>
  131. </template>
  132. </view>
  133. </view> -->
  134. <view class="t-item">
  135. <view class="t-tit">
  136. 质量合格书(必填)<text>{{zlimg | much}}/3</text>
  137. </view>
  138. <view class="img-list flex">
  139. <template v-for="(item,index) in zlimg">
  140. <image src="../../static/images/upload.png" mode="" v-if="!item" @click.stop="imgsub(zlimg,index)" :key="index"></image>
  141. <image :src="item" mode="" v-if="item" @click.stop="imgsub(zlimg,index)" :key="index"></image>
  142. </template>
  143. </view>
  144. </view>
  145. <view class="t-item">
  146. <view class="t-tit">
  147. 价值凭证<text>{{jzimg | much}}/3</text>
  148. </view>
  149. <view class="img-list flex">
  150. <template v-for="(item,index) in jzimg">
  151. <image src="../../static/images/upload.png" mode="" v-if="!item" @click.stop="imgsub(jzimg,index)" :key="index"></image>
  152. <image :src="item" mode="" v-if="item" @click.stop="imgsub(jzimg,index)" :key="index"></image>
  153. </template>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="jg">
  158. </view>
  159. <view class="btn">
  160. <view class="next" v-show="limit === 1" @click="nextLimit()">
  161. 下一页
  162. </view>
  163. <view class="prev" v-show="limit === 2" @click="prevLimit()">
  164. 上一步
  165. </view>
  166. <view class="sub" v-show="limit === 2" @click="sub">
  167. 提交
  168. </view>
  169. </view>
  170. </view>
  171. </template>
  172. <script>
  173. import { upload } from '@/api/ask.js';
  174. import { getProjectInfo, createProject, getLogistics, getDonationInfo, createUser,getAllArea } from '../../api/money.js';
  175. export default {
  176. data() {
  177. return {
  178. project_area: 0,
  179. areas: [{
  180. id: 0,
  181. name: '市本级'
  182. }],
  183. area: '',
  184. items: [
  185. {
  186. value: '个人',
  187. iid: '0'
  188. },
  189. {
  190. value: '企业(团体)',
  191. iid: '1'
  192. }
  193. ],
  194. IsAnonymous: false,
  195. limit: 1,
  196. type: 0,//捐赠个体0位个人 1为团体(企业)
  197. unit: '',//捐赠单位
  198. contacts: '',//捐赠方联系人
  199. tel: '',//单位电话
  200. log: '',//物流方式
  201. logistics: '',//物流编号
  202. // Logistics: '',//物流方式id
  203. logs: ['顺丰','邮政'],
  204. Isopen: false,//是否开具发票
  205. mask: '',//备注
  206. qyxydm: '',//企业信用代码
  207. name: '',// 捐赠人姓名
  208. phone: '',//捐赠人联系方式
  209. identityNumber: '',//身份证号
  210. wzs: [],//物资分类列表
  211. wzList: [
  212. {
  213. project_donation_id: null,
  214. project_donation_num: null,
  215. project_donation_name: null
  216. }
  217. ],
  218. swimg: [''],//实物照片
  219. yyimg: [''],//营业执照
  220. zlimg: [''],//质量合格证书
  221. jzimg: [''],//价值凭证
  222. true_wzList: [],//最终捐赠的物资列表
  223. hadadd: [],//已添加分类
  224. project_id: 0,//项目ID
  225. }
  226. },
  227. filters:{
  228. much(val) {
  229. let num = 0
  230. val.forEach(item => {
  231. if(item) {
  232. num += 1
  233. }
  234. })
  235. return num
  236. }
  237. },
  238. onLoad(ops) {
  239. if(ops.type) {
  240. this.type = ops.type*1
  241. console.log(this.type,'++++++++')
  242. }
  243. if(ops.id) {
  244. this.project_id = ops.id*1
  245. }
  246. if(ops.wzlist) {
  247. this.wzs = JSON.parse(ops.wzlist)
  248. }else {
  249. this.getDonationInfo()
  250. this.getAllArea()
  251. }
  252. this.getLogistics()
  253. },
  254. mounted() {
  255. // this.$set(this,'wzList',[this.wz1,this.wz2])
  256. },
  257. methods: {
  258. //下一页
  259. nextLimit() {
  260. this.limit = 2
  261. },
  262. //下一页
  263. prevLimit() {
  264. this.limit = 1
  265. },
  266. //选择捐赠是个人或团体
  267. typeChange(e) {
  268. this.type = e.detail.value*1
  269. console.log(this.type,'this.typ+++++++++++++++++++++')
  270. },
  271. //选择是否匿名
  272. anonymousChange(e) {
  273. if(e.detail.value !== '1') {
  274. this.IsAnonymous = false
  275. }else {
  276. this.IsAnonymous = true
  277. }
  278. },
  279. //选择物流方式
  280. bindLogChange(e) {
  281. this.log = this.logs[e.detail.value].name
  282. this.logistics = this.logs[e.detail.value].id
  283. },
  284. //选择捐献物资分类
  285. bindWzChange(e){
  286. if(this.hadadd.indexOf(e.detail.value) === -1) {
  287. this.hadadd.push(e.detail.value)
  288. this.wzList[this.currentWzIndex].project_donation_name = this.wzs[e.detail.value].name
  289. this.wzList[this.currentWzIndex].project_donation_id = this.wzs[e.detail.value].id
  290. }else {
  291. this.$api.msg('该分类已添加');
  292. return
  293. }
  294. console.log(this.wzList)
  295. // this.wz = this.logs[e.detail.value].name
  296. },
  297. // 选择捐赠地址
  298. bindAreaChange(e) {
  299. this.project_area = this.areas[e.detail.value].id
  300. this.area = this.areas[e.detail.value].name
  301. },
  302. openChange(e) {
  303. if(e.detail.value !== '1') {
  304. this.Isopen = false
  305. }else {
  306. this.Isopen = true
  307. }
  308. },
  309. imgsub(item,index) {
  310. console.log(index,item)
  311. upload({
  312. filename: ''
  313. }).then(data => {
  314. console.log(data,'6666666666')
  315. this.$set(item,index,data[0].url)
  316. if(index < 2) {
  317. this.$set(item,index+1,'')
  318. }
  319. });
  320. },
  321. dianji(index) {
  322. this.currentWzIndex = index
  323. },
  324. //添加更多
  325. addMore() {
  326. this.wzList.push({
  327. project_donation_id: null,
  328. project_donation_num: null,
  329. project_donation_name: null
  330. })
  331. },
  332. //提交
  333. sub() {
  334. // uni.navigateTo({
  335. // url: '/pages/joinSuc/joinsuccess'
  336. // })
  337. let obj = this;
  338. if(obj.type === 0) {
  339. if (obj.name == '') {
  340. obj.$api.msg('请输入您的姓名');
  341. return;
  342. }
  343. const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
  344. if (!reg.test(obj.phone)) {
  345. obj.$api.msg('请填写正确的手机号码');
  346. return;
  347. }
  348. }else {
  349. if(obj.unit =='') {
  350. obj.$api.msg('请输入捐赠单位');
  351. return;
  352. }
  353. if(obj.dwPeople =='') {
  354. obj.$api.msg('请输入联系人');
  355. return;
  356. }
  357. if(obj.tel == '') {
  358. obj.$api.msg('请输入单位电话');
  359. return;
  360. }
  361. }
  362. if(obj.log == '') {
  363. obj.$api.msg('请选择物流方式');
  364. return;
  365. }
  366. if(obj.area == '') {
  367. obj.$api.msg('请选择捐赠地址');
  368. return;
  369. }
  370. try{
  371. obj.wzList.forEach( item => {
  372. if(!item.project_donation_id){
  373. throw '请选择物资类别'
  374. }
  375. if(!item.project_donation_num || item.project_donation_num == 0) {
  376. throw '请填写捐赠数量'
  377. }
  378. })
  379. }catch(e) {
  380. obj.$api.msg(e);
  381. return
  382. }
  383. let matter =obj.swimg.toString().replace(/,$/,''),
  384. qc = obj.zlimg.toString().replace(/,$/,''),
  385. worth = obj.jzimg.toString().replace(/,$/,''),
  386. item = obj.wzList
  387. console.log(item,'物资参数')
  388. if(matter== ''){
  389. obj.$api.msg('请上传实物照片');
  390. return
  391. }
  392. if(qc == ''){
  393. obj.$api.msg('请上传质量合格证书');
  394. return
  395. }
  396. console.log(matter,'5555555555555555')
  397. uni.showLoading({
  398. title: '提交中...',
  399. mask: true
  400. })
  401. createUser({
  402. project_area: obj.project_area,
  403. name: obj.type === 0? obj.name: obj.unit,
  404. phone: obj.phone,
  405. tel: obj.tel,
  406. contacts: obj.contacts,
  407. user_type: obj.type,
  408. logistics: obj.logistics,
  409. anonymous: obj.IsAnonymous? 1:0,
  410. invoice: obj.Isopen? 1:0
  411. }).then( res => {
  412. console.log(JSON.parse(res.msg),'99999999999999999999999999')
  413. let info = JSON.parse(res.msg)
  414. console.log(info.name,'8888888888888')
  415. createProject({
  416. project_area: obj.project_area,
  417. name: obj.type === 0? obj.name: obj.unit,
  418. project_id: obj.project_id,
  419. project_user_id: +info.id,
  420. matter,
  421. qc,
  422. worth,
  423. logistics: obj.logistics,
  424. item,
  425. // mask
  426. }).then( res => {
  427. console.log(JSON.parse(res.msg),'77777777777777777777')
  428. uni.hideLoading()
  429. uni.navigateTo({
  430. url: '/pages/joinSuc/joinsuccess'
  431. })
  432. }).catch( err => {
  433. uni.hideLoading()
  434. console.log(err)
  435. })
  436. }).catch(err => {
  437. uni.hideLoading()
  438. console.log(err)
  439. })
  440. },
  441. //获取物资分类列表
  442. getDonationInfo() {
  443. getDonationInfo().then(({data} )=>{
  444. this.wzs = data
  445. console.log(this.wzs,'获取所有物资')
  446. })
  447. },
  448. getLogistics() {
  449. getLogistics().then( ({data}) => {
  450. console.log('88888888888888888888',data)
  451. this.logs = data
  452. })
  453. },
  454. dele() {
  455. this.$delete(this.wzList,this.wzList.length-1)
  456. },
  457. // 获取捐赠地址列表
  458. getAllArea() {
  459. getAllArea().then(({
  460. data
  461. }) => {
  462. console.log(data, '6666666666');
  463. this.areas = this.areas.concat(data);
  464. });
  465. },
  466. }
  467. }
  468. </script>
  469. <style lang="scss" scoped>
  470. page {
  471. height: 100%;
  472. background-color: #fff;
  473. }
  474. .idonate {
  475. padding: 0 30rpx;
  476. margin-top: 20rpx;
  477. background-color: #fff;
  478. }
  479. .btn {
  480. // height: 196rpx;
  481. // width: 100%;
  482. width: 690rpx;
  483. text-align: center;
  484. display: flex;
  485. justify-content: center;
  486. line-height: 75rpx;
  487. padding-bottom: 54rpx;
  488. // padding-top: 54rpx;
  489. // position: fixed;
  490. // bottom: 0;
  491. background-color: #fff;
  492. z-index: 9;
  493. .next {
  494. width: 478rpx;
  495. height: 75rpx;
  496. // margin: 0 auto;
  497. background: #FA7E67;
  498. border-radius: 35rpx;
  499. color: #fff;
  500. font-size: 32rpx;
  501. font-family: PingFang SC;
  502. font-weight: 500;
  503. color: #FFFFFF;
  504. }
  505. .prev {
  506. width: 264rpx;
  507. height: 75rpx;
  508. border: 1px solid #FA7E67;
  509. border-radius: 35rpx;
  510. font-size: 32rpx;
  511. font-family: PingFang SC;
  512. font-weight: 500;
  513. color: #FA7E67;
  514. margin-right: 60rpx;
  515. line-height: 70rpx;
  516. }
  517. .sub {
  518. width: 264rpx;
  519. height: 75rpx;
  520. background: #FA7E67;
  521. border-radius: 35rpx;
  522. font-size: 32rpx;
  523. font-family: PingFang SC;
  524. font-weight: 500;
  525. color: #FFFFFF;
  526. line-height: 70rpx;
  527. }
  528. }
  529. .item {
  530. display: flex;
  531. align-items: center;
  532. height: 102rpx;
  533. border-bottom: 1px #ECECEC solid;
  534. font-size: 30rpx;
  535. font-family: PingFang SC;
  536. font-weight: 500;
  537. color: #222222;
  538. line-height: 102rpx;
  539. .item-tit {
  540. flex-shrink: 0;
  541. display: inline-block;
  542. width: 200rpx;
  543. }
  544. text {
  545. color: #F3392C;
  546. }
  547. input {
  548. display: inline-block;
  549. width: 100%;
  550. }
  551. .log {
  552. // display: inline-block;
  553. width: 400rpx;
  554. color: #999;
  555. }
  556. .select {
  557. color: #000;
  558. }
  559. }
  560. .mask {
  561. padding-left: 202rpx;
  562. textarea {
  563. width: 396rpx;
  564. height: 166rpx;
  565. border: 1rpx solid #ccc;
  566. border-radius: 10rpx;
  567. font-size: 24rpx;
  568. font-family: PingFang SC;
  569. font-weight: 500;
  570. color: #000;
  571. line-height: 32rpx;
  572. padding: 24rpx 16rpx;
  573. }
  574. }
  575. .check-box {
  576. flex-grow: 0;
  577. display: flex;
  578. display: inline-block;
  579. }
  580. .no-border-b {
  581. border-bottom: none;
  582. }
  583. .bbtm {
  584. margin-top: 40rpx;
  585. width: 689rpx;
  586. height: 1rpx;
  587. background: #ECECEC;
  588. }
  589. .t-item {
  590. padding: 35rpx 0;
  591. border-bottom: 1px #ECECEC solid;
  592. font-size: 30rpx;
  593. font-family: PingFang SC;
  594. font-weight: 500;
  595. color: #222222;
  596. &:last-of-type {
  597. border-bottom: none;
  598. }
  599. image {
  600. display: block;
  601. width: 160rpx;
  602. height: 160rpx;
  603. // background: red;
  604. border-radius: 5rpx;
  605. // margin: 0 auto;
  606. }
  607. .t-tit {
  608. position: relative;
  609. text {
  610. display: inline-block;
  611. width: 73rpx;
  612. height: 31rpx;
  613. background: #F0433C;
  614. border-radius: 14rpx;
  615. font-size: 24rpx;
  616. font-family: PingFang SC;
  617. font-weight: 500;
  618. color: #FFFFFF;
  619. line-height: 31rpx;
  620. text-align: center;
  621. position: absolute;
  622. right: 0;
  623. // left: 0;
  624. top: 0;
  625. bottom: 0;
  626. margin: auto;
  627. }
  628. }
  629. .img-list {
  630. margin-top: 20rpx;
  631. justify-content: center;
  632. image {
  633. margin-right: 20rpx;
  634. }
  635. }
  636. }
  637. .jzwz {
  638. display: flex;
  639. .item-tit {
  640. font-size: 30rpx;
  641. font-family: PingFang SC;
  642. font-weight: 500;
  643. color: #222222;
  644. padding-top: 39rpx;
  645. line-height: 1;
  646. width: 200rpx;
  647. text {
  648. color: #F3392C;
  649. }
  650. }
  651. .choose-box {
  652. padding-top: 24rpx;
  653. .choose-item {
  654. display: flex;
  655. margin-bottom: 15rpx;
  656. position: relative;
  657. .wz {
  658. padding-left: 58rpx;
  659. width: 297rpx;
  660. height: 66rpx;
  661. background: #F3F3F3;
  662. border-radius: 5rpx;
  663. font-size: 28rpx;
  664. font-family: PingFang SC;
  665. font-weight: 500;
  666. color: #222222;
  667. line-height: 66rpx;
  668. &::after {
  669. content: '';
  670. width: 0;
  671. height: 0;
  672. border-left: 10rpx solid transparent;
  673. border-right: 10rpx solid transparent;
  674. border-top: 10rpx solid #808080;
  675. position: absolute;
  676. right: 10rpx;
  677. bottom: 26rpx;
  678. }
  679. }
  680. input {
  681. width: 189rpx;
  682. height: 66rpx;
  683. background: #F3F3F3;
  684. border-radius: 5rpx;
  685. line-height: 66rpx;
  686. margin-left: 15rpx;
  687. text-align: center;
  688. }
  689. }
  690. .act {
  691. width: 510rpx;
  692. height: 68rpx;
  693. position: relative;
  694. .more {
  695. width: 245rpx;
  696. height: 66rpx;
  697. background: #FFFFFF;
  698. border: 1px solid #FA7E67;
  699. border-radius: 5rpx;
  700. font-size: 24rpx;
  701. font-family: PingFang SC;
  702. font-weight: 500;
  703. color: #FA7E67;
  704. line-height: 66rpx;
  705. text-align: center;
  706. margin-right: 10rpx;
  707. position: absolute;
  708. left: 0;
  709. }
  710. .del {
  711. width: 245rpx;
  712. height: 66rpx;
  713. background: #FFFFFF;
  714. border: 1px solid #FA7E67;
  715. border-radius: 5rpx;
  716. font-size: 24rpx;
  717. font-family: PingFang SC;
  718. font-weight: 500;
  719. color: #FA7E67;
  720. line-height: 66rpx;
  721. text-align: center;
  722. margin-right: 10rpx;
  723. position: absolute;
  724. right: 0;
  725. }
  726. }
  727. }
  728. }
  729. .jg {
  730. height: 150rpx;
  731. background-color: #fff;
  732. }
  733. // .dele{
  734. // width: 40rpx;
  735. // height: 40rpx;
  736. // border-radius: 50%;
  737. // background-color: #F3392C;
  738. // transform: rotate(45deg);
  739. // position: absolute;
  740. // top: 0;
  741. // bottom: 0;
  742. // left: -45rpx;
  743. // margin: auto;
  744. // .lef {
  745. // width: 30rpx;
  746. // height: 5rpx;
  747. // position: absolute;
  748. // top: 0;
  749. // left: 0;
  750. // right: 0;
  751. // bottom: 0;
  752. // margin: auto;
  753. // background-color: #fff;
  754. // }
  755. // .rig {
  756. // width: 5rpx;
  757. // height: 30rpx;
  758. // background-color: #fff;
  759. // position: absolute;
  760. // top: 0;
  761. // left: 0;
  762. // right: 0;
  763. // bottom: 0;
  764. // margin: auto;
  765. // background-color: #fff;
  766. // }
  767. // }
  768. </style>