idonate.vue 19 KB

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