idonate.vue 20 KB

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