Showing
3 changed files
with
44 additions
and
6 deletions
| ... | @@ -23,6 +23,7 @@ declare module '@vue/runtime-core' { | ... | @@ -23,6 +23,7 @@ declare module '@vue/runtime-core' { |
| 23 | NutInput: typeof import('@nutui/nutui-taro')['Input'] | 23 | NutInput: typeof import('@nutui/nutui-taro')['Input'] |
| 24 | NutInputNumber: typeof import('@nutui/nutui-taro')['InputNumber'] | 24 | NutInputNumber: typeof import('@nutui/nutui-taro')['InputNumber'] |
| 25 | NutNumberKeyboard: typeof import('@nutui/nutui-taro')['NumberKeyboard'] | 25 | NutNumberKeyboard: typeof import('@nutui/nutui-taro')['NumberKeyboard'] |
| 26 | + NutPopup: typeof import('@nutui/nutui-taro')['Popup'] | ||
| 26 | NutRadio: typeof import('@nutui/nutui-taro')['Radio'] | 27 | NutRadio: typeof import('@nutui/nutui-taro')['Radio'] |
| 27 | NutRadioGroup: typeof import('@nutui/nutui-taro')['RadioGroup'] | 28 | NutRadioGroup: typeof import('@nutui/nutui-taro')['RadioGroup'] |
| 28 | NutRow: typeof import('@nutui/nutui-taro')['Row'] | 29 | NutRow: typeof import('@nutui/nutui-taro')['Row'] | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-09-30 10:00:57 | 4 | + * @LastEditTime: 2023-12-18 18:00:07 |
| 5 | - * @FilePath: /swx/src/pages/demo/index.vue | 5 | + * @FilePath: /meihuaApp/src/pages/login/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | - <div class="red">{{ str }}</div> | 9 | + <view> |
| 10 | + <view style="color: #6A4925; font-size: 56rpx; text-align: center;">登 录</view> | ||
| 11 | + <view style="border: 1px solid #F1EBDF; width: 90%; margin: 0 auto; margin-top: 50rpx; border-radius: 50rpx; padding: 5rpx 0;"> | ||
| 12 | + <nut-input v-model="tel" placeholder="请输入手机号" :border="false" type="number" /> | ||
| 13 | + </view> | ||
| 14 | + <view style="border: 1px solid #F1EBDF; width: 90%; margin: 0 auto; margin-top: 20rpx; border-radius: 50rpx;"> | ||
| 15 | + <nut-input v-model="code" placeholder="请输入验证码" :border="false" type="number" > | ||
| 16 | + <template #right> <nut-button size="small" color="#6A4925">获取验证码</nut-button> </template> | ||
| 17 | + </nut-input> | ||
| 18 | + </view> | ||
| 19 | + <view style="color: #7B7B7B; font-size: 28rpx; margin: 20rpx 50rpx;">未注册手机号验证后自动创建新账号</view> | ||
| 20 | + <view style="margin: 50rpx; margin-bottom: 10rpx;"> | ||
| 21 | + <nut-button block color="#6A4925" size="large" @tap="login"><text style="font-size: 38rpx;">登 录</text></nut-button> | ||
| 22 | + </view> | ||
| 23 | + <view style="display: flex; align-items: center; margin-left: 60rpx; margin-top: 30rpx; color: #6A4925;"> | ||
| 24 | + <IconFont name="checked" color="#6A4925"></IconFont> | ||
| 25 | + <text style="margin-left: 5rpx;">登录即同意</text><text style="font-weight: bold;" @tap="tapRight">《法律条款及隐私政策》</text> | ||
| 26 | + </view> | ||
| 27 | + <nut-popup position="right" closeable :style="{ width: '100%', height: '100%' }" v-model:visible="showRight"></nut-popup> | ||
| 28 | + </view> | ||
| 10 | </template> | 29 | </template> |
| 11 | 30 | ||
| 12 | <script setup> | 31 | <script setup> |
| 13 | import Taro from '@tarojs/taro' | 32 | import Taro from '@tarojs/taro' |
| 33 | +import { IconFont } from '@nutui/icons-vue-taro'; | ||
| 14 | import { ref } from "vue"; | 34 | import { ref } from "vue"; |
| 35 | + | ||
| 36 | +const tel = ref(''); | ||
| 37 | +const code = ref(''); | ||
| 38 | + | ||
| 39 | +const showRight = ref(false); | ||
| 40 | + | ||
| 41 | +const tapRight = () => { | ||
| 42 | + showRight.value = true; | ||
| 43 | +} | ||
| 44 | + | ||
| 45 | +const login = () => { | ||
| 46 | + Taro.showToast({ | ||
| 47 | + title: '登录成功', | ||
| 48 | + icon: 'success', | ||
| 49 | + duration: 2000 | ||
| 50 | + }) | ||
| 51 | +} | ||
| 15 | </script> | 52 | </script> |
| 16 | 53 | ||
| 17 | <script> | 54 | <script> |
| 18 | import "./index.less"; | 55 | import "./index.less"; |
| 19 | export default { | 56 | export default { |
| 20 | - name: "demoPage", | 57 | + name: "loginPage", |
| 21 | }; | 58 | }; |
| 22 | </script> | 59 | </script> | ... | ... |
-
Please register or login to post a comment