| | |
| | | </view> |
| | | <view style="text-align: center;" @click="startUpload"> |
| | | <img src="/static/i07.png" v-if="!form.companyImg" alt="" class="sc" /> |
| | | <image :src="config + form.companyImg" mode="widthFix" class="sc" v-else></image> |
| | | <image :src="config + form.companyImg" mode="aspectFit" class="sc border" v-else></image> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { registerCompany, checkCode, getCode } from '@/api/auth.js' |
| | | import { registerCompany, checkCode, getNewVerify } from '@/api/auth.js' |
| | | import { upload } from '@/common/upload' |
| | | import { config } from '@/common/config.js' |
| | | export default { |
| | |
| | | uni.showLoading({ |
| | | title: '正在获取验证码' |
| | | }) |
| | | getCode({phone: this.form.companyPhone }).then(val => { |
| | | getNewVerify({phone: this.form.companyPhone }).then(val => { |
| | | if(val.data.code == 200) { |
| | | this.startCountdown() |
| | | uni.hideLoading(); |
| | | this.tips = `${this.countdownTime}s后重新获取` |
| | | uni.$u.toast('验证码已发送'); |
| | | } |
| | | }) |
| | | } else { |
| | | uni.$u.toast('倒计时结束后再发送'); |
| | |
| | | height: 346rpx; |
| | | margin-bottom: 20rpx; |
| | | border-radius: 20rpx; |
| | | |
| | | } |
| | | .border{ |
| | | border: 2rpx solid #efefef; |
| | | } |
| | | </style> |