|
|
- <template>
- <view class="home">
-
- <image src="/static/image/bg/1.png"
- class="page-bg"
- mode="aspectFill"></image>
-
-
- <view class="content_now">
- <span class="font-bold">为了给您提供更个性化的服务</span>
- <span class="font-bold">请您填写以下基本信息</span>
- <view class="flex-col mt-40">
- <view class="flex-center">
- <span style="margin-right: 30rpx;">您的姓名:</span>
- <input class="inputStyle" v-model="form.username" type="text" />
- </view>
- <view class="flex-center">
- <span style="margin-right: 30rpx;">手机号码:</span>
- <input class="inputStyle" v-model="form.phone" type="number" />
- </view>
- </view>
-
- </view>
-
- <view class="an">
- <view style="margin-top: 15vh;" @click="query">
- <view class="btn2">
- 确认
- </view>
- </view>
- <view class="flex-col query" style="gap: 0rpx;">
- <text class="second-color">{{ configList.bg_title }}</text>
- </view>
- </view>
-
- </view>
- </template>
-
- <script>
- import { mapState } from 'vuex'
- export default {
- data() {
- return {
- form : {
- username:'',
- phone:''
- }
- }
- },
- computed : {
- ...mapState(['problemList', 'configList', 'queryMyLog']),
- },
- onLoad() {
- if(uni.getStorageSync('user_phone')){
- this.form = JSON.parse(uni.getStorageSync('user_phone'))
- }
- },
- methods: {
- query(){
- if(!this.form.username && !this.form.phone){
- uni.showToast({
- title:'您的姓名和手机号都不能为空哦~',
- icon: 'none'
- })
- return
- }
-
- if(!this.$utils.verificationPhone(this.form.phone)){
- uni.showToast({
- title: '请输入正确的手机号',
- icon: 'none',
- })
- return
- }
-
- uni.setStorageSync('user_phone', JSON.stringify(this.form))
- uni.navigateTo({
- url:'/pages_order/info/appoint'
- })
- }
- }
- }
- </script>
-
- <style lang="scss" scoped>
-
- .an{
- position: fixed;
- bottom: 300rpx;
- text-align: center;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- width: 100%;
- }
-
- .b-btn {
- width: 86%;
- display: flex;
- justify-content: space-between;
- padding-top: 20vh;
-
- .pre-btn {
- border: 4rpx solid #f1e0c6;
- padding: 16rpx 90rpx;
- border-radius: 66rpx;
- color: #e6bf7f;
- }
-
- .next-btn {
- // background-image: url('../../static/image/home/btn.png');
- background-size: contain;
- background-repeat: no-repeat;
- background-position: center;
- width: 40vw;
- display: flex;
- align-items: center;
- justify-content: center;
- color: white;
- }
- }
- .inputStyle{
- border: 3rpx solid #e5bf7d;
- border-radius: 40rpx;
- color: #e5bf7d;
- padding: 10rpx 10rpx;
- }
- </style>
|