add_quality_testing.vue 20 KB

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