idonate.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  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" v-if="jxdz_show">
  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 clamp" :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: 226,
  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. jxdz_show: false,
  226. }
  227. },
  228. filters:{
  229. much(val) {
  230. let num = 0
  231. val.forEach(item => {
  232. if(item) {
  233. num += 1
  234. }
  235. })
  236. return num
  237. }
  238. },
  239. onLoad(ops) {
  240. if(ops.type) {
  241. this.type = ops.type*1
  242. console.log(this.type,'++++++++')
  243. }
  244. if(ops.id) {
  245. this.project_id = ops.id*1
  246. }
  247. if(ops.wzlist) {
  248. this.wzs = JSON.parse(ops.wzlist)
  249. }else {
  250. this.getDonationInfo()
  251. this.getAllArea()
  252. this.jxdz_show = true
  253. }
  254. this.getLogistics()
  255. },
  256. mounted() {
  257. // this.$set(this,'wzList',[this.wz1,this.wz2])
  258. },
  259. methods: {
  260. //下一页
  261. nextLimit() {
  262. this.limit = 2
  263. },
  264. //下一页
  265. prevLimit() {
  266. this.limit = 1
  267. },
  268. //选择捐赠是个人或团体
  269. typeChange(e) {
  270. this.type = e.detail.value*1
  271. console.log(this.type,'this.typ+++++++++++++++++++++')
  272. },
  273. //选择是否匿名
  274. anonymousChange(e) {
  275. if(e.detail.value !== '1') {
  276. this.IsAnonymous = false
  277. }else {
  278. this.IsAnonymous = true
  279. }
  280. },
  281. //选择物流方式
  282. bindLogChange(e) {
  283. this.log = this.logs[e.detail.value].name
  284. this.logistics = this.logs[e.detail.value].id
  285. },
  286. //选择捐献物资分类
  287. bindWzChange(e){
  288. if(this.hadadd.indexOf(e.detail.value) === -1) {
  289. this.hadadd.push(e.detail.value)
  290. this.wzList[this.currentWzIndex].project_donation_name = this.wzs[e.detail.value].name
  291. this.wzList[this.currentWzIndex].project_donation_id = this.wzs[e.detail.value].id
  292. }else {
  293. this.$api.msg('该分类已添加');
  294. return
  295. }
  296. console.log(this.wzList)
  297. // this.wz = this.logs[e.detail.value].name
  298. },
  299. // 选择捐赠地址
  300. bindAreaChange(e) {
  301. this.project_area = this.areas[e.detail.value].id
  302. this.area = this.areas[e.detail.value].name
  303. },
  304. openChange(e) {
  305. if(e.detail.value !== '1') {
  306. this.Isopen = false
  307. }else {
  308. this.Isopen = true
  309. }
  310. },
  311. imgsub(item,index) {
  312. console.log(index,item)
  313. upload({
  314. filename: ''
  315. }).then(data => {
  316. console.log(data,'6666666666')
  317. this.$set(item,index,data[0].url)
  318. if(index < 2) {
  319. this.$set(item,index+1,'')
  320. }
  321. });
  322. },
  323. dianji(index) {
  324. this.currentWzIndex = index
  325. },
  326. //添加更多
  327. addMore() {
  328. this.wzList.push({
  329. project_donation_id: null,
  330. project_donation_num: null,
  331. project_donation_name: null
  332. })
  333. },
  334. //提交
  335. sub() {
  336. // uni.navigateTo({
  337. // url: '/pages/joinSuc/joinsuccess'
  338. // })
  339. let obj = this;
  340. if(obj.type === 0) {
  341. if (obj.name == '') {
  342. obj.$api.msg('请输入您的姓名');
  343. return;
  344. }
  345. const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
  346. if (!reg.test(obj.phone)) {
  347. obj.$api.msg('请填写正确的手机号码');
  348. return;
  349. }
  350. }else {
  351. if(obj.unit =='') {
  352. obj.$api.msg('请输入捐赠单位');
  353. return;
  354. }
  355. if(obj.dwPeople =='') {
  356. obj.$api.msg('请输入联系人');
  357. return;
  358. }
  359. if(obj.tel == '') {
  360. obj.$api.msg('请输入单位电话');
  361. return;
  362. }
  363. }
  364. if(obj.log == '') {
  365. obj.$api.msg('请选择物流方式');
  366. return;
  367. }
  368. if(obj.jxdz_show == true) {
  369. if(obj.area == '') {
  370. obj.$api.msg('请选择捐赠地址');
  371. return;
  372. }
  373. }
  374. try{
  375. obj.wzList.forEach( item => {
  376. if(!item.project_donation_id){
  377. throw '请选择物资类别'
  378. }
  379. if(!item.project_donation_num || item.project_donation_num == 0) {
  380. throw '请填写捐赠数量'
  381. }
  382. })
  383. }catch(e) {
  384. obj.$api.msg(e);
  385. return
  386. }
  387. let matter =obj.swimg.toString().replace(/,$/,''),
  388. qc = obj.zlimg.toString().replace(/,$/,''),
  389. worth = obj.jzimg.toString().replace(/,$/,''),
  390. item = obj.wzList
  391. console.log(item,'物资参数')
  392. if(matter== ''){
  393. obj.$api.msg('请上传实物照片');
  394. return
  395. }
  396. if(qc == ''){
  397. obj.$api.msg('请上传质量合格证书');
  398. return
  399. }
  400. console.log(matter,'5555555555555555')
  401. uni.showLoading({
  402. title: '提交中...',
  403. mask: true
  404. })
  405. createUser({
  406. project_area: obj.project_area,
  407. name: obj.type === 0? obj.name: obj.unit,
  408. phone: obj.phone,
  409. tel: obj.tel,
  410. contacts: obj.contacts,
  411. user_type: obj.type,
  412. logistics: obj.logistics,
  413. anonymous: obj.IsAnonymous? 1:0,
  414. invoice: obj.Isopen? 1:0
  415. }).then( res => {
  416. console.log(JSON.parse(res.msg),'99999999999999999999999999')
  417. let info = JSON.parse(res.msg)
  418. console.log(info.name,'8888888888888')
  419. createProject({
  420. project_area: obj.project_area,
  421. name: obj.type === 0? obj.name: obj.unit,
  422. project_id: obj.project_id,
  423. project_user_id: +info.id,
  424. matter,
  425. qc,
  426. worth,
  427. logistics: obj.logistics,
  428. item,
  429. // mask
  430. }).then( res => {
  431. console.log(JSON.parse(res.msg),'77777777777777777777')
  432. uni.hideLoading()
  433. uni.navigateTo({
  434. url: '/pages/joinSuc/joinsuccess'
  435. })
  436. }).catch( err => {
  437. uni.hideLoading()
  438. console.log(err)
  439. })
  440. }).catch(err => {
  441. uni.hideLoading()
  442. console.log(err)
  443. })
  444. },
  445. //获取物资分类列表
  446. getDonationInfo() {
  447. getDonationInfo().then(({data} )=>{
  448. this.wzs = data
  449. console.log(this.wzs,'获取所有物资')
  450. })
  451. },
  452. getLogistics() {
  453. getLogistics().then( ({data}) => {
  454. console.log('88888888888888888888',data)
  455. this.logs = data
  456. })
  457. },
  458. dele() {
  459. this.$delete(this.wzList,this.wzList.length-1)
  460. },
  461. // 获取捐赠地址列表
  462. getAllArea() {
  463. getAllArea().then(({
  464. data
  465. }) => {
  466. console.log(data, '6666666666');
  467. this.areas = this.areas.concat(data);
  468. });
  469. },
  470. }
  471. }
  472. </script>
  473. <style lang="scss" scoped>
  474. page {
  475. height: 100%;
  476. background-color: #fff;
  477. }
  478. .idonate {
  479. padding: 0 30rpx;
  480. margin-top: 20rpx;
  481. background-color: #fff;
  482. }
  483. .btn {
  484. // height: 196rpx;
  485. // width: 100%;
  486. width: 690rpx;
  487. text-align: center;
  488. display: flex;
  489. justify-content: center;
  490. line-height: 75rpx;
  491. padding-bottom: 54rpx;
  492. // padding-top: 54rpx;
  493. // position: fixed;
  494. // bottom: 0;
  495. background-color: #fff;
  496. z-index: 9;
  497. .next {
  498. width: 478rpx;
  499. height: 75rpx;
  500. // margin: 0 auto;
  501. background: #FA7E67;
  502. border-radius: 35rpx;
  503. color: #fff;
  504. font-size: 32rpx;
  505. font-family: PingFang SC;
  506. font-weight: 500;
  507. color: #FFFFFF;
  508. }
  509. .prev {
  510. width: 264rpx;
  511. height: 75rpx;
  512. border: 1px solid #FA7E67;
  513. border-radius: 35rpx;
  514. font-size: 32rpx;
  515. font-family: PingFang SC;
  516. font-weight: 500;
  517. color: #FA7E67;
  518. margin-right: 60rpx;
  519. line-height: 70rpx;
  520. }
  521. .sub {
  522. width: 264rpx;
  523. height: 75rpx;
  524. background: #FA7E67;
  525. border-radius: 35rpx;
  526. font-size: 32rpx;
  527. font-family: PingFang SC;
  528. font-weight: 500;
  529. color: #FFFFFF;
  530. line-height: 70rpx;
  531. }
  532. }
  533. .item {
  534. display: flex;
  535. align-items: center;
  536. height: 102rpx;
  537. border-bottom: 1px #ECECEC solid;
  538. font-size: 30rpx;
  539. font-family: PingFang SC;
  540. font-weight: 500;
  541. color: #222222;
  542. line-height: 102rpx;
  543. .item-tit {
  544. flex-shrink: 0;
  545. display: inline-block;
  546. width: 200rpx;
  547. }
  548. text {
  549. color: #F3392C;
  550. }
  551. input {
  552. display: inline-block;
  553. width: 100%;
  554. }
  555. .log {
  556. // display: inline-block;
  557. width: 400rpx;
  558. color: #999;
  559. }
  560. .select {
  561. color: #000;
  562. }
  563. }
  564. .mask {
  565. padding-left: 202rpx;
  566. textarea {
  567. width: 396rpx;
  568. height: 166rpx;
  569. border: 1rpx solid #ccc;
  570. border-radius: 10rpx;
  571. font-size: 24rpx;
  572. font-family: PingFang SC;
  573. font-weight: 500;
  574. color: #000;
  575. line-height: 32rpx;
  576. padding: 24rpx 16rpx;
  577. }
  578. }
  579. .check-box {
  580. flex-grow: 0;
  581. display: flex;
  582. display: inline-block;
  583. }
  584. .no-border-b {
  585. border-bottom: none;
  586. }
  587. .bbtm {
  588. margin-top: 40rpx;
  589. width: 689rpx;
  590. height: 1rpx;
  591. background: #ECECEC;
  592. }
  593. .t-item {
  594. padding: 35rpx 0;
  595. border-bottom: 1px #ECECEC solid;
  596. font-size: 30rpx;
  597. font-family: PingFang SC;
  598. font-weight: 500;
  599. color: #222222;
  600. &:last-of-type {
  601. border-bottom: none;
  602. }
  603. image {
  604. display: block;
  605. width: 160rpx;
  606. height: 160rpx;
  607. // background: red;
  608. border-radius: 5rpx;
  609. // margin: 0 auto;
  610. }
  611. .t-tit {
  612. position: relative;
  613. text {
  614. display: inline-block;
  615. width: 73rpx;
  616. height: 31rpx;
  617. background: #F0433C;
  618. border-radius: 14rpx;
  619. font-size: 24rpx;
  620. font-family: PingFang SC;
  621. font-weight: 500;
  622. color: #FFFFFF;
  623. line-height: 31rpx;
  624. text-align: center;
  625. position: absolute;
  626. right: 0;
  627. // left: 0;
  628. top: 0;
  629. bottom: 0;
  630. margin: auto;
  631. }
  632. }
  633. .img-list {
  634. margin-top: 20rpx;
  635. justify-content: center;
  636. image {
  637. margin-right: 20rpx;
  638. }
  639. }
  640. }
  641. .jzwz {
  642. display: flex;
  643. .item-tit {
  644. font-size: 30rpx;
  645. font-family: PingFang SC;
  646. font-weight: 500;
  647. color: #222222;
  648. padding-top: 39rpx;
  649. line-height: 1;
  650. width: 200rpx;
  651. text {
  652. color: #F3392C;
  653. }
  654. }
  655. .choose-box {
  656. padding-top: 24rpx;
  657. .choose-item {
  658. display: flex;
  659. margin-bottom: 15rpx;
  660. position: relative;
  661. .wz {
  662. padding-left: 58rpx;
  663. width: 297rpx;
  664. height: 66rpx;
  665. background: #F3F3F3;
  666. border-radius: 5rpx;
  667. font-size: 28rpx;
  668. font-family: PingFang SC;
  669. font-weight: 500;
  670. color: #222222;
  671. line-height: 66rpx;
  672. &::after {
  673. content: '';
  674. width: 0;
  675. height: 0;
  676. border-left: 10rpx solid transparent;
  677. border-right: 10rpx solid transparent;
  678. border-top: 10rpx solid #808080;
  679. position: absolute;
  680. right: 10rpx;
  681. bottom: 26rpx;
  682. }
  683. }
  684. input {
  685. width: 189rpx;
  686. height: 66rpx;
  687. background: #F3F3F3;
  688. border-radius: 5rpx;
  689. line-height: 66rpx;
  690. margin-left: 15rpx;
  691. text-align: center;
  692. }
  693. }
  694. .act {
  695. width: 510rpx;
  696. height: 68rpx;
  697. position: relative;
  698. .more {
  699. width: 245rpx;
  700. height: 66rpx;
  701. background: #FFFFFF;
  702. border: 1px solid #FA7E67;
  703. border-radius: 5rpx;
  704. font-size: 24rpx;
  705. font-family: PingFang SC;
  706. font-weight: 500;
  707. color: #FA7E67;
  708. line-height: 66rpx;
  709. text-align: center;
  710. margin-right: 10rpx;
  711. position: absolute;
  712. left: 0;
  713. }
  714. .del {
  715. width: 245rpx;
  716. height: 66rpx;
  717. background: #FFFFFF;
  718. border: 1px solid #FA7E67;
  719. border-radius: 5rpx;
  720. font-size: 24rpx;
  721. font-family: PingFang SC;
  722. font-weight: 500;
  723. color: #FA7E67;
  724. line-height: 66rpx;
  725. text-align: center;
  726. margin-right: 10rpx;
  727. position: absolute;
  728. right: 0;
  729. }
  730. }
  731. }
  732. }
  733. .jg {
  734. height: 150rpx;
  735. background-color: #fff;
  736. }
  737. // .dele{
  738. // width: 40rpx;
  739. // height: 40rpx;
  740. // border-radius: 50%;
  741. // background-color: #F3392C;
  742. // transform: rotate(45deg);
  743. // position: absolute;
  744. // top: 0;
  745. // bottom: 0;
  746. // left: -45rpx;
  747. // margin: auto;
  748. // .lef {
  749. // width: 30rpx;
  750. // height: 5rpx;
  751. // position: absolute;
  752. // top: 0;
  753. // left: 0;
  754. // right: 0;
  755. // bottom: 0;
  756. // margin: auto;
  757. // background-color: #fff;
  758. // }
  759. // .rig {
  760. // width: 5rpx;
  761. // height: 30rpx;
  762. // background-color: #fff;
  763. // position: absolute;
  764. // top: 0;
  765. // left: 0;
  766. // right: 0;
  767. // bottom: 0;
  768. // margin: auto;
  769. // background-color: #fff;
  770. // }
  771. // }
  772. </style>