123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <template>
- <view class="box">
- <view class="cardbox">
- <view class="card" v-for="(item,i) in list" :key="i">
- <view class="icon-active" v-if="i==value" @click="choose(i,item)">
- <u-icon name="checkbox-mark" color="#fff" size="28"></u-icon>
- </view>
- <view class="icon-no-active" v-else @click="choose(i,item)">
- </view>
- <view class="content">
- <view class="title">
- 发票抬头:{{item.name}}
- </view>
- <text class="">
- 发票抬头:{{item.type}}
- </text>
- </view>
- <view class="edit" @click="toEdit(item.type)">
- <image :src="`${$imgUrl}applyCard/edit.png`" mode=""></image>
- <view>
- 编辑
- </view>
- </view>
- </view>
- </view>
- <button class="submit">添加抬头信息</button>
- <button class="submit2">确定</button>
- </view>
-
- </template>
-
- <script setup lang="ts">
- import {
- ref,
- reactive
- } from "vue";
- import {
- msg,
- navTo
- } from '@/utils/utils';
- const list = reactive([{
- name: '贵州某某科技有限公司',
- type: '公司'
- },
- {
- name: '贵州某某科技有限公司2',
- type: '个人'
- }
- ])
-
- const value = ref('')
-
-
-
- const choose = (i, item) => {
- value.value = i
- console.log(item);
- }
- const toEdit = (type) => {
- if (type == '公司') {
- navTo('/subpackage/orders/invoiceApply/edit-invoice-header-company')
- } else {
- navTo('/subpackage/orders/invoiceApply/edit-invoice-header-individual')
- }
- }
- </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: 30rpx 30rpx;
-
- .cardbox {
- .card {
- height: 141rpx;
- background: #FFFFFF;
- box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
- border-radius: 20rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 30rpx;
- margin-bottom: 30rpx;
-
- .content {
- .title {
- font-size: 30rpx;
- font-family: Noto Sans S Chinese;
- font-weight: 400;
- color: #333333;
- margin-bottom: 15rpx;
- }
-
- text {
- font-size: 26rpx;
- font-family: Noto Sans S Chinese;
- font-weight: 400;
- color: #666666;
- }
- }
-
- .icon-active {
- width: 43rpx;
- height: 43rpx;
- background: #00B38B;
- border-radius: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
- }
-
- .icon-no-active {
- width: 44rpx;
- height: 44rpx;
- background: #FFFFFF;
- border: 1px solid #00B38B;
- border-radius: 50%;
- }
-
- .edit {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
-
-
- image {
- width: 40rpx;
- height: 40rpx;
- }
-
- view {
- font-size: 26rpx;
- font-family: Noto Sans S Chinese;
- font-weight: 400;
- color: #999999;
- }
- }
- }
- }
-
- .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;
- margin-top: 575rpx;
- margin-bottom: 30rpx;
- }
-
- .submit2 {
- width: 673rpx;
- height: 80rpx;
- background: #FFFFFF;
- border: 3rpx solid #DCDCDC;
- border-radius: 40rpx;
- font-size: 32rpx;
- font-family: Noto Sans S Chinese;
- font-weight: 400;
- color: #666666;
- line-height: 80rpx;
- }
- }
- </style>
|