123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <template>
- <view class="box">
- <view class="from">
- <u-form :model="form" ref="uForm">
- <u-form-item>
- <view class="from_item">
- <text><text style="color: red;">*</text>抬头名称:</text>
- <view style="display: flex;" @click="showPicker">
- <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入抬头名称" />
- <!-- <u-icon name="arrow-right" style="margin-left: 10px;"></u-icon> -->
- </view>
- </view>
- </u-form-item>
- <view class="from_item">
- <text>设置默认抬头</text>
- <u-switch v-model="checked" active-color="#00B38B" inactive-color="#DCDCDC" @change='change'></u-switch>
- </view>
- </u-form>
- </view>
-
- <button class="submit">保存</button>
- </view>
-
- </template>
-
- <script setup lang="ts">
- import {
- ref,
- reactive
- } from "vue";
-
- const form = reactive({
- 'InvoiceHeader': '',
- 'cardid': '111'
- })
- const checked=ref(false)
- const change=(status)=>{
- console.log(status);
- }
- </script>
-
-
- <style>
- page {
- width: 100%;
- height: 100%;
- }
- </style>
-
- <style lang="scss" scoped>
- .box {
- width: 100%;
- height: 100%;
- background-color: #EEF7F7;
- border-top: 1rpx solid #DFDFDF;
- // padding: 0 0rpx;
-
-
- .from {
- background-color: #fff;
- margin-top: 30rpx;
- padding: 0 30rpx;
- box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
-
- ::v-deep .u-form-item {
- padding: 0;
- line-height: normal;
-
- .u-form-item__message {
- margin-bottom: 12rpx
- }
- }
-
- .from_item {
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-between;
- // padding: 0 30rpx;
- border-bottom: #DCDCDC 1px solid;
- align-items: center;
- height: 80rpx;
-
- text {
- font-size: 28rpx;
- font-family: Noto Sans S Chinese;
- font-weight: 400;
- color: #999999;
- }
-
- ::v-deep .input {
- text-align: right;
- flex: 1;
- background: transparent;
- input {
- text-align: right;
- }
- }
- }
-
- .from_item1 {
- display: flex;
- flex-wrap: nowrap;
- flex-direction: column;
- justify-content: space-between;
- padding: 30rpx;
- border-bottom: #DCDCDC 1px solid;
-
- input {
- text-align: right;
- }
-
- .textarea {
- background-color: #F1F1F1;
- width: 100%;
- border-radius: 20rpx;
- margin-top: 10rpx;
- text-indent: 1rem;
- height: 180rpx;
- padding: 20rpx;
- box-sizing: border-box;
- }
- }
- }
-
- .submit {
- width: 670rpx;
- height: 80rpx;
- background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
- border-radius: 40rpx;
- font-size: 32rpx;
- font-family: Noto Sans S Chinese;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 80rpx;
- position: fixed;
- left: 50%;
- transform: translate(-50%);
- bottom: 100rpx;
- }
- }
- </style>
|