123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <template>
- <view class="switch-roles">
- <nav-bar title="公司信息" color="#000"></nav-bar>
- <view class="roles-content">
- <view class="content">
- <view class="title">公司信息</view>
- <u-input
- placeholder="公司信息将被审核,请确保您输入的信息真实有效"
- v-model="companyMsg"
- type="textarea"
- clearable
- class="custom-textarea"
- >
- <!-- :customStyle="{ padding: '8rpx 24rpx ',border:'none' }" -->
- <template #prefix>
- <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
- </template>
- </u-input>
- <view class="form-item">
- <view class="item-label"> 公司全称 </view>
- <u-input
- placeholder="请输入公司全称"
- v-model="companyName"
- type="textarea"
- clearable
- class="custom-textarea"
- >
- <!-- :customStyle="{ padding: '8rpx 24rpx ',border:'none' }" -->
- <template #prefix>
- <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
- </template>
- </u-input>
- </view>
- <view class="form-item">
- <view class="item-label"> 公司简称(选填) </view>
- <u-input
- placeholder="建议填写公司简称"
- v-model="address"
- clearable
- class="custom-input"
- :customStyle="{ padding: '8rpx 24rpx ' }"
- >
- <template #prefix>
- <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
- </template>
- </u-input>
- </view>
- <view class="form-item">
- <view class="item-label"> 人员规模 </view>
- <u-input
- placeholder="请选择人员规模"
- v-model="addressDetail"
- clearable
- class="custom-input"
- :customStyle="{ padding: '8rpx 24rpx ' }"
- >
- <template #prefix>
- <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
- </template>
- </u-input>
- </view>
- </view>
- </view>
- <view class="submit-btn" @click="goBack">确定</view>
- </view>
- </template>
- <script>
- import navBar from "@/components/nav-bar/index.vue";
- export default {
- data() {
- return {
- address: "",
- addressDetail: "",
- companyMsg: "",
- companyName: "",
- };
- },
- components: {
- navBar,
- },
- onLoad(options) {
- if (options.text) {
- this.text = options.text;
- }
- },
- methods: {
- onInput(e) {
- // console.log(e);
- // 如果需要额外的输入控制
- // this.text = e.detail.value;
- },
- goBack() {
- uni.navigateBack();
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .switch-roles {
- background-color: #fff;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- flex-direction: column;
- .roles-content {
- width: 100%;
- flex: 1;
- overflow: hidden;
- overflow-y: auto;
- .content {
- padding: 40rpx;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- .title {
- color: #333;
- width: 100%;
- font-family: DM Sans;
- font-size: 40rpx;
- font-weight: 600;
- }
- }
- }
- .submit-btn {
- flex-shrink: 0;
- border-radius: 999px;
- box-shadow: 0px 2px 4px 0px rgba(9, 196, 116, 0.3);
- background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
- color: rgba(255, 255, 255, 1);
- font-family: DM Sans;
- font-size: 32rpx;
- font-weight: 400;
- line-height: 48rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 16rpx 32rpx;
- box-sizing: border-box;
- margin: 60rpx 20rpx;
- }
- }
- .form-item {
- margin-bottom: 32rpx;
- width: 100%;
- }
- .item-label {
- color: rgba(18, 26, 44, 1);
- font-family: Roboto;
- font-size: 32rpx;
- font-weight: 400;
- line-height: 51.2rpx;
- letter-spacing: 0px;
- text-align: left;
- padding-bottom: 6rpx;
- padding: 10rpx 0;
- box-sizing: border-box;
- }
- .custom-input {
- box-sizing: border-box;
- border: 2rpx solid rgba(158, 161, 168, 1);
- border-radius: 100rpx;
- background: rgba(255, 255, 255, 1);
- padding: 8rpx 24rpx !important;
- }
- .custom-textarea {
- width: 100%;
- margin-top: 22rpx;
- }
- ::v-deep .u-input {
- text-align: left !important;
- }
- </style>
|