idonate.vue 21 KB

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