Showing
3 changed files
with
12 additions
and
6 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-06-13 13:26:46 | 2 | * @Date: 2023-06-13 13:26:46 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-08-25 16:04:15 | 4 | + * @LastEditTime: 2023-08-25 17:33:44 |
| 5 | * @FilePath: /bieyuan/src/App.vue | 5 | * @FilePath: /bieyuan/src/App.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -57,7 +57,7 @@ onMounted(async () => { | ... | @@ -57,7 +57,7 @@ onMounted(async () => { |
| 57 | console.warn(err); | 57 | console.warn(err); |
| 58 | });*/ | 58 | });*/ |
| 59 | // 进入后先查询有没有订单,有订单直接跳转最终页面 | 59 | // 进入后先查询有没有订单,有订单直接跳转最终页面 |
| 60 | - const { data } = await orderInfoAPI() | 60 | + const { data } = await orderInfoAPI(); |
| 61 | if (data?.id) { | 61 | if (data?.id) { |
| 62 | $router.push({ | 62 | $router.push({ |
| 63 | path: '/result', | 63 | path: '/result', | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-08-22 14:13:07 | 2 | * @Date: 2023-08-22 14:13:07 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-08-25 17:07:08 | 4 | + * @LastEditTime: 2023-08-25 19:20:46 |
| 5 | * @FilePath: /bieyuan/src/views/next.vue | 5 | * @FilePath: /bieyuan/src/views/next.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -9,10 +9,10 @@ | ... | @@ -9,10 +9,10 @@ |
| 9 | <div class="next-page"> | 9 | <div class="next-page"> |
| 10 | <van-form @submit="onSubmit"> | 10 | <van-form @submit="onSubmit"> |
| 11 | <div v-for="(item, index) in userInfo" :key="index" class="input-box"> | 11 | <div v-for="(item, index) in userInfo" :key="index" class="input-box"> |
| 12 | - <p class="title">{{ index + 1 }}.{{ index === 0 ? '我的信息' : '同行人' }}</p> | 12 | + <p class="title">{{ index + 1 }}. {{ index === 0 ? '我的信息' : '同行人' }}</p> |
| 13 | <van-field :id="'name' + index" v-model="item.name" label="姓名:" type="text" placeholder="请输入姓名" :border="false" | 13 | <van-field :id="'name' + index" v-model="item.name" label="姓名:" type="text" placeholder="请输入姓名" :border="false" |
| 14 | :rules="[{ required: true, message: '请填写姓名' }]" label-width="4em" class="input-text" @focus="onFocus" @keydown="handleKeyDown" /> | 14 | :rules="[{ required: true, message: '请填写姓名' }]" label-width="4em" class="input-text" @focus="onFocus" @keydown="handleKeyDown" /> |
| 15 | - <van-field :id="'phone' + index" v-model="item.phone" label="手机号:" type="digit" placeholder="请输入手机号" :border="false" | 15 | + <van-field :id="'phone' + index" v-model="item.phone" maxlength="11" label="手机号:" type="digit" placeholder="请输入手机号" :border="false" |
| 16 | :rules="[{ validator: validatorPhone, message: '请输入正确手机号' }]" label-width="4em" class="input-text" @focus="onFocus" @keydown="handleKeyDown" /> | 16 | :rules="[{ validator: validatorPhone, message: '请输入正确手机号' }]" label-width="4em" class="input-text" @focus="onFocus" @keydown="handleKeyDown" /> |
| 17 | <van-field label="证件类型:" :border="false" label-width="4.5em"> | 17 | <van-field label="证件类型:" :border="false" label-width="4.5em"> |
| 18 | <template #input> | 18 | <template #input> |
| ... | @@ -61,7 +61,8 @@ const { appUserInfo } = storeToRefs(store); | ... | @@ -61,7 +61,8 @@ const { appUserInfo } = storeToRefs(store); |
| 61 | 61 | ||
| 62 | const userInfo = ref([]); // 用户预约信息 | 62 | const userInfo = ref([]); // 用户预约信息 |
| 63 | const num = ref(1); | 63 | const num = ref(1); |
| 64 | -const keyDownList = ref([]) | 64 | +const keyDownList = ref([]); |
| 65 | +const isApply = ref(false); | ||
| 65 | 66 | ||
| 66 | onMounted(async () => { | 67 | onMounted(async () => { |
| 67 | num.value = $route.query.count ? +$route.query.count : 1; | 68 | num.value = $route.query.count ? +$route.query.count : 1; |
| ... | @@ -95,6 +96,7 @@ onMounted(async () => { | ... | @@ -95,6 +96,7 @@ onMounted(async () => { |
| 95 | const { data } = await orderDetailMyLastAPI(); | 96 | const { data } = await orderDetailMyLastAPI(); |
| 96 | if (data) { | 97 | if (data) { |
| 97 | userInfo.value[0] = data; | 98 | userInfo.value[0] = data; |
| 99 | + isApply.value = true; | ||
| 98 | } | 100 | } |
| 99 | } | 101 | } |
| 100 | // | 102 | // | ... | ... |
| ... | @@ -37,6 +37,10 @@ | ... | @@ -37,6 +37,10 @@ |
| 37 | </div> | 37 | </div> |
| 38 | </van-row> | 38 | </van-row> |
| 39 | </div> | 39 | </div> |
| 40 | + <div style="text-align: center; margin-top: 1rem; color: red;"> | ||
| 41 | + <p>刷码进别院</p> | ||
| 42 | + <p>请妥善保存</p> | ||
| 43 | + </div> | ||
| 40 | </div> | 44 | </div> |
| 41 | 45 | ||
| 42 | <van-dialog v-model:show="show" title="温馨提示" @confirm="onConfirm" show-cancel-button confirm-button-color="#93663D"> | 46 | <van-dialog v-model:show="show" title="温馨提示" @confirm="onConfirm" show-cancel-button confirm-button-color="#93663D"> | ... | ... |
-
Please register or login to post a comment