| | |
| | | import{ creatUserArchive } from '../../api/index.js' |
| | | |
| | | const form = ref({ |
| | | id:JSON.parse(uni.getStorageSync('userInfo')).id, |
| | | waterCardNumber:'', |
| | | userName:'', |
| | | userPhone:'', |
| | |
| | | scanType: ['qrCode'], |
| | | success: function (res) { |
| | | console.log('条码内容:' + res.result); |
| | | form.value.waterCardNumber = res.result |
| | | let data = res.result.split('&id=') |
| | | form.value.waterCardNumber = data[1] |
| | | console.log('form.value.waterCardNumber',form.value.waterCardNumber) |
| | | } |
| | | }); |
| | | } |
| | |
| | | uni.showToast({ |
| | | title: '添加成功!', |
| | | image: '../../static/images/other/success.svg', |
| | | duration:500 |
| | | duration:2000 |
| | | }).then(() =>{ |
| | | uni.navigateBack() |
| | | }) |
| | | uni.navigateBack() |
| | | }else if(res.code == 300){ |
| | | uni.showToast({ |
| | | title: res.msg, |
| | | duration:2000, |
| | | icon:'none' |
| | | }) |
| | | }else{ |
| | | uni.showToast({ |
| | | title:'绑卡失败', |
| | | duration:2000, |
| | | icon:'none' |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | |
| | | .content{ |
| | | width:100%; |
| | | height:100vh; |
| | | .navbar{ |
| | | width:100%; |
| | | height:176rpx; |
| | | background: linear-gradient(to bottom,#5EA1FA,#8BC1FC); |
| | | display: flex; |
| | | align-items: flex-end; |
| | | padding-bottom:24rpx; |
| | | box-sizing: border-box; |
| | | image{ |
| | | width:20rpx; |
| | | height:40rpx; |
| | | margin-left:32rpx; |
| | | } |
| | | text{ |
| | | font-weight: 400; |
| | | font-size: 36rpx; |
| | | color: #000000; |
| | | margin-left: 234rpx; |
| | | |
| | | } |
| | | } |
| | | .main{ |
| | | width:100%; |
| | | height: calc(100vh - 176rpx); |