add_quality_testing.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. <template>
  2. <view>
  3. <view class='wrap'>
  4. <view class='title_b'>基本信息</view>
  5. <view class="c-row ">
  6. <view class="title">仓库</view>
  7. <view class="con-list">
  8. {{gridList.warehouseName}}
  9. </view>
  10. </view>
  11. <view class="c-row ">
  12. <view class="title">编号</view>
  13. <view class="con-list">
  14. {{gridList.qualityNo}}
  15. </view>
  16. </view>
  17. <view class="c-row ">
  18. <view class="title">客户</view>
  19. <view class="con-list">
  20. <view @click='gocustomer' v-if='gridList.customerName'>
  21. {{gridList.customerName}}({{gridList.customerPhone}})
  22. </view>
  23. <view @click='gocustomer' v-else>
  24. 选择客户
  25. </view>
  26. </view>
  27. </view>
  28. <view class="c-row ">
  29. <view class="title">车牌号</view>
  30. <view class="con-list">
  31. <input v-model='gridList.carNumber' placeholder="请输入车牌号"
  32. name="input"></input>
  33. </view>
  34. </view>
  35. <view v-if="gridList.paramType != '1'" class="c-row ">
  36. <view class="title">扣重比</view>
  37. <view class="con-list">
  38. <input v-model='gridList.buckleWeightRatio' placeholder="请输入扣重比"
  39. name="input"></input>
  40. </view>
  41. </view>
  42. <view v-else class="c-row ">
  43. <view class="title">扣杂</view>
  44. <view class="con-list">
  45. <input v-model='gridList.buckleMiscellaneous' placeholder="请输入扣杂" @input="waterContentChange"
  46. name="input"></input>
  47. </view>
  48. </view>
  49. <view class="c-row ">
  50. <view class="title">购粮性质</view>
  51. <view class="con-list">
  52. <input v-model='gridList.natureOfGrainPurchase' placeholder="请输入购粮性质"
  53. name="input"></input>
  54. </view>
  55. </view>
  56. <view class="c-row ">
  57. <view class="title">仓位号</view>
  58. <view class="con-list">
  59. <view @click='show=true'>{{gridList.binNumber?gridList.binNumber:'请选择仓位号'}}</view>
  60. <u-picker :range="warehouseList" range-key="binNumber" @confirm='binNumberpicker($event)' v-model="show" mode="selector" >
  61. </u-picker>
  62. </view>
  63. </view>
  64. <view class="c-row ">
  65. <view class="title">囤位号</view>
  66. <view class="con-list">
  67. <input type='number' v-model='gridList.storageTagNo' placeholder="请输入囤位号"
  68. name="input"></input>
  69. </view>
  70. </view>
  71. <view class="c-row ">
  72. <view class="title">货名</view>
  73. <view class="con-list">
  74. <view @click='show2=true'>{{gridList.goodsName}}</view>
  75. <u-picker :range="goodsList" range-key="goodsName" @confirm='goodspicker($event)' v-model="show2" mode="selector" >
  76. </u-picker>
  77. </view>
  78. </view>
  79. <view class="c-row ">
  80. <view class="title">类型</view>
  81. <view class="con-list">
  82. <view @click='show3=true'>{{gridList.type}}</view>
  83. <u-picker :range="typeList" @confirm='typepicker($event)' v-model="show3" mode="selector" >
  84. </u-picker>
  85. </view>
  86. </view>
  87. <view v-if="gridList.type == '潮粮'" class="c-row">
  88. <view class="title">净重单价(元/公斤)</view>
  89. <view class="con-list">
  90. <input v-model='gridList.tidalGrainPrice' disabled placeholder="自动获取,不可编辑"
  91. name="input"></input>
  92. </view>
  93. </view>
  94. <view v-if="gridList.type == '干粮'" class="c-row">
  95. <view class="title">干粮单价(元/公斤)</view>
  96. <view class="con-list">
  97. <input v-model='gridList.dryGrainPrice' placeholder="请输入干粮单价"
  98. name="input"></input>
  99. </view>
  100. </view>
  101. </view>
  102. <view style='margin-bottom:300rpx;' class='wrap'>
  103. <view class='title_b'>化验信息</view>
  104. <view class="c-row ">
  105. <view class="title">等级</view>
  106. <view class="con-list">
  107. <view @click='show1=true'>{{gridList.grade?gridList.grade:'请选择等级'}}</view>
  108. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker($event)' v-model="show1" mode="selector" >
  109. </u-picker>
  110. </view>
  111. </view>
  112. <view class="c-row ">
  113. <view class="title">水分(%)</view>
  114. <view class="con-list">
  115. <input v-model='gridList.waterContent' placeholder="请输入水分占比" @input="waterContentChange"
  116. name="input"></input>
  117. </view>
  118. </view>
  119. <view class="c-row ">
  120. <view class="title">容重(克/升)</view>
  121. <view class="con-list">
  122. <input v-model='gridList.bulkDensity' placeholder="请输入容重"
  123. name="input"></input>
  124. </view>
  125. </view>
  126. <view class="c-row ">
  127. <view class="title">不完善粒(%)</view>
  128. <view class="con-list">
  129. <input v-model='gridList.imperfectGrain' placeholder="请输入不完整粒占比"
  130. name="input"></input>
  131. </view>
  132. </view>
  133. <view class="c-row ">
  134. <view class="title">杂质(%)</view>
  135. <view class="con-list">
  136. <input v-model='gridList.impurity' placeholder="请输入杂质占比"
  137. name="input"></input>
  138. </view>
  139. </view>
  140. <view class="c-row ">
  141. <view class="title">霉变粒(%)</view>
  142. <view class="con-list">
  143. <input v-model='gridList.mildewGrain' placeholder="请输入霉变粒占比"
  144. name="input"></input>
  145. </view>
  146. </view>
  147. <view class="c-row">
  148. <view class="title">热损伤(%)</view>
  149. <view class="con-list">
  150. <input v-model='gridList.jiaorenli' placeholder="请输入热损伤占比"
  151. name="input"></input>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="footer">
  156. <view @click='submit' class="button">提交</view>
  157. </view>
  158. </view>
  159. </template>
  160. <script>
  161. import dragButton from "@/components/drag-button/drag-button.vue";
  162. import {
  163. mapState
  164. } from 'vuex';
  165. let startY = 0,
  166. moveY = 0,
  167. pageAtTop = true;
  168. export default {
  169. components: {
  170. dragButton
  171. },
  172. data() {
  173. return {
  174. inputShow: false,
  175. modalName: '',
  176. mycarStyle: '',
  177. feild: undefined,
  178. id:0,
  179. show:false,
  180. selector:[],
  181. show1:false,
  182. inputContent: '',
  183. coverTransform: 'translateY(0px)',
  184. coverTransition: '0s',
  185. moving: false,
  186. footprintList: [],
  187. searchKeyWord:'',
  188. isVip: false,
  189. userInfoTmp: [],
  190. inputStatus: 'none',
  191. carInfo: [],
  192. gridCol: 4,
  193. pageSize:10,
  194. show3:false,
  195. show2:false,
  196. goodsList:[],
  197. currentPage:1,
  198. gridBorder: false,
  199. headUrl:"../../static/img/myimg/YongHu@3x.png",
  200. userphone:"",
  201. username:"请更改昵称",
  202. gridList: {
  203. natureOfGrainPurchase:'贸易粮',
  204. type:'潮粮',
  205. tidalGrainPrice:'',
  206. dryGrainPrice:'',
  207. buckleMiscellaneous:0
  208. },
  209. typeList:['潮粮','干粮'],
  210. managementType:'',
  211. warehouseName: '',
  212. warehouseList:[],
  213. warehouseCount:'',
  214. commonWarehouseNo:'',
  215. showTran: true,
  216. companyId: 1,
  217. current: 4,
  218. gradeList:[
  219. {key:1,value:'一等品'},
  220. {key:2,value:'二等品'},
  221. {key:3,value:'三等品'},
  222. {key:4,value:'等外'},
  223. ],
  224. cangid:''
  225. }
  226. },
  227. // #ifndef MP
  228. onNavigationBarButtonTap(e) {
  229. const index = e.index;
  230. if (index === 0) {
  231. this.navTo('/pages/set/set');
  232. } else if (index === 1) {
  233. // #ifdef APP-PLUS
  234. const pages = getCurrentPages();
  235. const page = pages[pages.length - 1];
  236. const currentWebview = page.$getAppWebview();
  237. currentWebview.hideTitleNViewButtonRedDot({
  238. index
  239. });
  240. // #endif
  241. uni.navigateTo({
  242. url: '/pages/notice/notice'
  243. })
  244. }
  245. },
  246. // #endif
  247. computed: {
  248. ...mapState(['hasLogin', 'userInfo']),
  249. // 手机号中间4位加*
  250. starUserphone(){
  251. let reg = /^(\d{3})\d{4}(\d{4})$/;
  252. if(this.userphone){
  253. return this.userphone.replace(reg, "$1****$2");
  254. }
  255. }
  256. },
  257. onLoad(options){
  258. this.commonWarehouseNo=options.commonWarehouseNo
  259. this.warehouseCount=Number(options.warehouseCount) + 1
  260. let number = '000' + this.warehouseCount
  261. number = number.substring(number.length - 4, number.length)
  262. this.gridList.warehouseName=options.warehouseName
  263. this.gridList.qualityNo='SGRK' + this.getdate() + this.commonWarehouseNo + number
  264. this.cangid=options.cangid
  265. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName',{
  266. warehouseId:this.cangid
  267. }).then(res => {
  268. if(res.data.data){
  269. }
  270. })
  271. this.managementType=options.managementType
  272. },
  273. onShow() {
  274. this.purchasePriceList=uni.getStorageSync('purchasePriceList')
  275. if(uni.getStorageSync('checkcustomer')){
  276. this.gridList.customerName=uni.getStorageSync('checkcustomer').customerName
  277. this.gridList.customerPhone=uni.getStorageSync('checkcustomer').customerPhone
  278. }
  279. this.gridList.grade=this.gradeList[0].value
  280. this.gridList.gradeKey=this.gradeList[0].key
  281. var that = this
  282. this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer',{
  283. compId:'',
  284. authenticationStatusKey:7
  285. }).then(res => {
  286. if(res.data.data){
  287. // let data = res.data.data
  288. // that.gridList =data
  289. that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse',{
  290. id:this.cangid
  291. }).then(res => {
  292. that.warehouseList=res.data.data.warehousePositionInfoList
  293. })
  294. }
  295. })
  296. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName',{
  297. warehouseId:this.cangid
  298. }).then(res => {
  299. if(res.data.data){
  300. that.goodsList = res.data.data
  301. if(that.goodsList.length > 0){
  302. that.gridList.goodsName=that.goodsList[0].goodsName
  303. uni.setStorageSync('purchasePriceList',that.goodsList)
  304. that.purchasePriceList=uni.getStorageSync('purchasePriceList')
  305. that.waterContentChange()
  306. }
  307. // for (let i = 0; i < res.data.data.length; i++) {
  308. // this.goodsList.push(res.data.data[i].goodsName)
  309. // }
  310. // if(this.goodsList.some(item=>{return item.goodsName=='玉米'})){
  311. // this.gridList.goodsName='玉米'
  312. // uni.setStorageSync('goodsName',this.gridList.goodsName)
  313. // }else{
  314. // this.gridList.goodsName=this.goodsList[0].goodsName
  315. // uni.setStorageSync('goodsName',this.gridList.goodsName)
  316. // }
  317. }
  318. })
  319. },
  320. methods: {
  321. waterContentChange() {
  322. var that = this
  323. if (this.gridList.goodsName) {
  324. for (var i = 0; i < this.purchasePriceList.length; i++) {
  325. if (this.purchasePriceList[i].goodsName == this.gridList.goodsName) {
  326. this.gridList.buckleWeightRatio = this.purchasePriceList[i].deductWeight
  327. this.gridList.paramType = this.purchasePriceList[i].paramType
  328. }
  329. }
  330. }
  331. var numReg = /^[0-9]*$/
  332. var numRe = new RegExp(numReg)
  333. //潮粮单价改变事件
  334. if (
  335. this.gridList.goodsName &&
  336. this.gridList.waterContent &&
  337. this.gridList.grade&&
  338. numRe.test(this.gridList.waterContent)
  339. ) {
  340. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice',{
  341. warehouseId:this.cangid,
  342. goodsName:this.gridList.goodsName,
  343. waterContent: this.gridList.waterContent,
  344. grade: this.gridList.grade,
  345. }).then(res => {
  346. if(that.gridList.paramType == '1'){
  347. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that.gridList.buckleMiscellaneous)/100*parseFloat(that.gridList.dryGrainPrice)).toFixed(4)
  348. }else{
  349. that.gridList.tidalGrainPrice = res.data.data
  350. }
  351. })
  352. }
  353. },
  354. gocustomer(){
  355. uni.navigateTo({
  356. url:'/pages/erpbusiness/customer?cangid='+this.cangid
  357. })
  358. },
  359. getdate() {
  360. var date = new Date()
  361. var year = date.getFullYear() //获取完整的年份(4位)
  362. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  363. var datetime = date.getDate() //获取当前日(1-31)
  364. if (mouth < 10) {
  365. mouth = '0' + mouth
  366. }
  367. if (datetime < 10) {
  368. datetime = '0' + datetime
  369. }
  370. return year +'' + mouth + '' + datetime
  371. },
  372. submit(){
  373. var that = this
  374. if (!this.gridList.qualityNo) {
  375. this.$api.msg('编号不能为空')
  376. return
  377. }
  378. if (!this.gridList.binNumber) {
  379. this.$api.msg('仓位不能为空')
  380. return
  381. }
  382. if (!this.gridList.customerName) {
  383. this.$api.msg('客户不能为空')
  384. return
  385. }
  386. if (!this.gridList.storageTagNo) {
  387. this.$api.msg('囤位号不能为空')
  388. return
  389. }
  390. if (this.gridList.storageTagNo.length > 10) {
  391. this.$api.msg('囤位号不能为空')
  392. return
  393. }
  394. if (!this.gridList.carNumber) {
  395. this.$api.msg('车牌号不能为空')
  396. return
  397. }
  398. if (this.gridList.carNumber.length != 7) {
  399. this.$api.msg('车牌号输入错误')
  400. return
  401. }
  402. if (!this.gridList.goodsName) {
  403. this.$api.msg('货名不能为空')
  404. return
  405. }
  406. if (this.gridList.buckleWeightRatio < 0 ||this.gridList.buckleWeightRatio > 2) {
  407. this.$api.msg('扣重比输入错误')
  408. return
  409. }
  410. if (
  411. String(this.gridList.buckleWeightRatio).indexOf('.') != -1 &&
  412. String(this.gridList.buckleWeightRatio).length -
  413. (String(this.gridList.buckleWeightRatio).indexOf('.') + 1) > 2)
  414. {
  415. this.$api.msg('扣重比输入错误')
  416. return
  417. }
  418. if (!this.gridList.type) {
  419. this.$api.msg('类型不能为空')
  420. return
  421. }
  422. if (!this.gridList.natureOfGrainPurchase) {
  423. this.$api.msg('购粮性质不能为空')
  424. return
  425. }
  426. if (!this.gridList.grade) {
  427. this.$api.msg('等级不能为空')
  428. return
  429. }
  430. if (!this.gridList.impurity) {
  431. this.$api.msg('杂质不能为空')
  432. return
  433. }
  434. if (!this.gridList.waterContent) {
  435. this.$api.msg('水分不能为空')
  436. return
  437. }
  438. if (!this.gridList.mildewGrain) {
  439. this.$api.msg('霉变粒不能为空')
  440. return
  441. }
  442. if (!this.gridList.bulkDensity) {
  443. this.$api.msg('容重不能为空')
  444. return
  445. }
  446. if (!this.gridList.jiaorenli) {
  447. this.$api.msg('热损伤不能为空')
  448. return
  449. }
  450. if (!this.gridList.imperfectGrain) {
  451. this.$api.msg('不完整粒不能为空')
  452. return
  453. }
  454. uni.showModal({
  455. content: "确定提交质检信息?",
  456. showCancel: true,
  457. confirmText: '提交',
  458. success: function(res) {
  459. if (res.confirm) {
  460. that.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection',that.gridList).then(res => {
  461. if(res.data.code==200){
  462. that.$api.msg('提交成功')
  463. uni.navigateBack({
  464. })
  465. }else{
  466. hat.$api.msg('提交失败')
  467. }
  468. })
  469. }
  470. }
  471. })
  472. },
  473. gradepicker(e){
  474. console.log(e)
  475. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  476. this.gridList.grade=this.gradeList[e[0]].value
  477. this.gridList.gradeKey=this.gradeList[e[0]].key
  478. this.waterContentChange()
  479. },
  480. goodspicker(e){
  481. console.log(e)
  482. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  483. this.gridList.goodsName=this.goodsList[e[0]].goodsName
  484. uni.setStorageSync('goodsName',this.gridList.goodsName)
  485. if(this.gridList.type == "干粮" && this.gridList.goodsName){
  486. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice',{
  487. warehouseId:this.cangid,
  488. goodsName:this.gridList.goodsName
  489. }).then(res => {
  490. that.gridList.dryGrainPrice = res.data.data
  491. })
  492. }
  493. this.waterContentChange()
  494. },
  495. typepicker(e){
  496. var that = this
  497. this.gridList.type=this.typeList[e[0]]
  498. if(this.gridList.type == "干粮" &&this.gridList.goodsName){
  499. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice',{
  500. warehouseId:this.cangid,
  501. goodsName:this.gridList.goodsName
  502. }).then(res => {
  503. that.gridList.dryGrainPrice = res.data.data
  504. })
  505. }
  506. },
  507. binNumberpicker(e){
  508. this.gridList.binNumber=this.warehouseList[e[0]].binNumber
  509. },
  510. del(item){
  511. this.$api.doRequest('get', '/qualityInspectionManagement/api/deleteQualityInspection',{
  512. id:item.id
  513. }).then(res => {
  514. if(res.data.code==200){
  515. this.$api.msg('删除成功')
  516. }else{
  517. this.$api.msg('系统异常,请联系管理员')
  518. }
  519. })
  520. },
  521. contactUs() {
  522. const that = this
  523. uni.makePhoneCall({
  524. // 手机号
  525. phoneNumber: '18241771147',
  526. // 成功回调
  527. success: (res) => {},
  528. // 失败回调
  529. fail: (res) => {}
  530. });
  531. },
  532. loadData() {
  533. // const that = this
  534. // if(uni.getStorageSync("PageCur")){
  535. // that.PageCur = uni.getStorageSync("PageCur");
  536. // }
  537. // that.userInfoTmp = uni.getStorageSync("userInfo")
  538. // uni.showLoading({
  539. // title: '正在加载',
  540. // mask:true
  541. // })
  542. // that.$api.request('integral', 'getIndexData', failres => {
  543. // that.$api.msg(failres.errmsg)
  544. // uni.hideLoading()
  545. // }).then(res => {
  546. // let data = res.data
  547. // uni.setStorageSync("message", data.message);
  548. // uni.setStorageSync("task", data.task);
  549. // uni.setStorageSync("contract", data.contract);
  550. // uni.setStorageSync('showTran', data.showTran);
  551. // that.showTran = data.showTran
  552. // that.gridList[4].tips = data.task
  553. // that.gridList[2].tips = data.contract
  554. // that.companyId = data.companyId
  555. // uni.hideLoading()
  556. // })
  557. },
  558. confirm() {
  559. const that = this
  560. if (!that.inputContent) {
  561. that.$api.msg('输入不能为空')
  562. return
  563. }
  564. let obj = {}
  565. obj[that.feild] = that.inputContent
  566. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  567. that.userInfo.nickname = that.inputContent
  568. that.inputContent = ''
  569. that.$store.commit('login', that.userInfo)
  570. })
  571. },
  572. cancel() {
  573. this.inputShow = false
  574. this.inputStatus = 'none'
  575. this.genderShow = false
  576. },
  577. myAccount() {
  578. uni.navigateTo({
  579. url: `/pageA/pages/contract`
  580. })
  581. },
  582. /**
  583. * 统一跳转接口,拦截未登录路由
  584. * navigator标签现在默认没有转场动画,所以用view
  585. */
  586. navTo(url) {
  587. if (!this.hasLogin) {
  588. url = '/pages/public/login';
  589. }
  590. uni.navigateTo({
  591. url
  592. })
  593. },
  594. mycarClick(carNo) {
  595. this.modalName = null
  596. uni.navigateTo({
  597. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  598. })
  599. },
  600. scanCode() {
  601. uni.scanCode({
  602. success: function(res) {
  603. uni.navigateTo({
  604. url: res.result
  605. })
  606. }
  607. })
  608. },
  609. hideModal(e) {
  610. this.modalName = null
  611. },
  612. }
  613. }
  614. </script>
  615. <style lang='scss' scoped>
  616. page{
  617. background:#F5F6FA;
  618. }
  619. .title_b {
  620. margin: 20rpx 20rpx 0rpx 20rpx;
  621. padding: 20rpx 10rpx 20rpx 10rpx;
  622. font-size: 18px;
  623. font-weight: 550;
  624. }
  625. .c-row {
  626. display: -webkit-box;
  627. display: -webkit-flex;
  628. display: flex;
  629. -webkit-box-align: center;
  630. -webkit-align-items: center;
  631. align-items: center;
  632. padding: 20rpx 30rpx;
  633. position: relative;
  634. }
  635. .con-list {
  636. -webkit-box-flex: 1;
  637. -webkit-flex: 1;
  638. flex: 1;
  639. display: -webkit-box;
  640. display: -webkit-flex;
  641. display: flex;
  642. -webkit-box-orient: vertical;
  643. -webkit-box-direction: normal;
  644. -webkit-flex-direction: column;
  645. flex-direction: column;
  646. color: #303133;
  647. line-height: 40rpx;
  648. text-align: right;
  649. padding-right: 20rpx;
  650. }
  651. .wrap{
  652. padding-bottom:10px;
  653. font-size:14px;
  654. background:#fff;margin:10px;border-radius:10px;
  655. input{
  656. font-size:14px;
  657. }
  658. >.title{
  659. padding:10px 16px;
  660. }
  661. }
  662. .footer{
  663. background:#fff;
  664. position:fixed;
  665. bottom:0;
  666. width:100%;
  667. padding:20px 10px;
  668. z-index:10;
  669. .button{
  670. background:#22C572;
  671. width:90%;
  672. margin:0 auto;
  673. padding:10px;
  674. color:#fff;
  675. text-align:center;
  676. border-radius: 30px;
  677. }
  678. }
  679. </style>