Commit 8b135853 by Lays-lzq

feat: 修复label换行问题

parent 86d8fbd2
...@@ -11,7 +11,7 @@ const axiosService = axios.create(); ...@@ -11,7 +11,7 @@ const axiosService = axios.create();
// 默认content-type // 默认content-type
axiosService.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded"; axiosService.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
// 默认baseURL // 默认baseURL
axiosService.defaults.baseURL = `//${process.env.CUSTOMER_API_DOMAIN}/v1`; axiosService.defaults.baseURL = `https://${process.env.CUSTOMER_API_DOMAIN}/v1`;
// 默认请求超时时间 // 默认请求超时时间
axiosService.defaults.timeout = 3 * 1000; axiosService.defaults.timeout = 3 * 1000;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="top-btn" @click="submit">提交</div> <div class="top-btn" @click="submit">提交</div>
</div> </div>
<div class="form" :class="{error: isError}"> <div class="form" :class="{error: isError}">
<van-field v-if="lotteryInfo.premise && lotteryInfo.premise.includes('name')" v-model="form.name" label-width="60" label="联系人" placeholder="请输入联系人" @focus="isError = false"/> <van-field v-if="lotteryInfo.premise && lotteryInfo.premise.includes('name')" v-model="form.name" label-width="65" label="联系人" placeholder="请输入联系人" @focus="isError = false"/>
<template v-if="lotteryInfo.premise && lotteryInfo.premise.includes('phone')"> <template v-if="lotteryInfo.premise && lotteryInfo.premise.includes('phone')">
<van-field v-model="form.phone" label-width="60" label="手机号" placeholder="请输入联系电话" @focus="isError = false"/> <van-field v-model="form.phone" label-width="60" label="手机号" placeholder="请输入联系电话" @focus="isError = false"/>
<van-field v-model="form.code" label-width="60" label="验证码" placeholder="请输入验证码" @focus="isError = false"> <van-field v-model="form.code" label-width="60" label="验证码" placeholder="请输入验证码" @focus="isError = false">
...@@ -245,6 +245,9 @@ export default { ...@@ -245,6 +245,9 @@ export default {
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
span {
white-space: nowrap;
}
} }
/deep/ .van-cell::after { /deep/ .van-cell::after {
border-bottom: none; border-bottom: none;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment