123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <view style="width: 100%;">
- <xt-verify-code v-model="verifyCode" inputType='text' size="17" @confirm="confirm"></xt-verify-code>
- <view class="confirm-button">
- <u-button @click="ok" type="primary" shape="circle">确认输入</u-button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- verifyCode: ''
- }
- },
- methods: {
- confirm(code){
- console.log(code)
- this.verifyCode = code
- },
- ok(){
- if(this.verifyCode==''){
- uni.showToast({
- title: "请输入VIN码",
- icon:"none"
- })
- }else{
- uni.redirectTo({
- url: "/pages/vinInput/confirmVin"
- })
- }
- }
- }
- }
- </script>
- <style lang="less">
- .confirm-button{
- padding: 50rpx;
- }
- </style>
|