You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

invoice-header.vue 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view class="box">
  3. <view class="cardbox">
  4. <view class="card" v-for="(item,i) in list" :key="i">
  5. <view class="icon-active" v-if="i==value" @click="choose(i,item)">
  6. <u-icon name="checkbox-mark" color="#fff" size="28"></u-icon>
  7. </view>
  8. <view class="icon-no-active" v-else @click="choose(i,item)">
  9. </view>
  10. <view class="content">
  11. <view class="title">
  12. 发票抬头:{{item.name}}
  13. </view>
  14. <text class="">
  15. 发票抬头:{{item.type}}
  16. </text>
  17. </view>
  18. <view class="edit" @click="toEdit(item.type)">
  19. <image :src="`${$imgUrl}applyCard/edit.png`" mode=""></image>
  20. <view>
  21. 编辑
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <button class="submit">添加抬头信息</button>
  27. <button class="submit2">确定</button>
  28. </view>
  29. </template>
  30. <script setup lang="ts">
  31. import {
  32. ref,
  33. reactive
  34. } from "vue";
  35. import {
  36. msg,
  37. navTo
  38. } from '@/utils/utils';
  39. const list = reactive([{
  40. name: '贵州某某科技有限公司',
  41. type: '公司'
  42. },
  43. {
  44. name: '贵州某某科技有限公司2',
  45. type: '个人'
  46. }
  47. ])
  48. const value = ref('')
  49. const choose = (i, item) => {
  50. value.value = i
  51. console.log(item);
  52. }
  53. const toEdit = (type) => {
  54. if (type == '公司') {
  55. navTo('/subpackage/orders/invoiceApply/edit-invoice-header-company')
  56. } else {
  57. navTo('/subpackage/orders/invoiceApply/edit-invoice-header-individual')
  58. }
  59. }
  60. </script>
  61. <style>
  62. page {
  63. width: 100%;
  64. height: 100%;
  65. }
  66. </style>
  67. <style lang="scss" scoped>
  68. .box {
  69. width: 100%;
  70. height: 100%;
  71. background-color: #EEF7F7;
  72. border-top: 1rpx solid #DFDFDF;
  73. padding: 30rpx 30rpx;
  74. .cardbox {
  75. .card {
  76. height: 141rpx;
  77. background: #FFFFFF;
  78. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  79. border-radius: 20rpx;
  80. display: flex;
  81. align-items: center;
  82. justify-content: space-between;
  83. padding: 30rpx;
  84. margin-bottom: 30rpx;
  85. .content {
  86. .title {
  87. font-size: 30rpx;
  88. font-family: Noto Sans S Chinese;
  89. font-weight: 400;
  90. color: #333333;
  91. margin-bottom: 15rpx;
  92. }
  93. text {
  94. font-size: 26rpx;
  95. font-family: Noto Sans S Chinese;
  96. font-weight: 400;
  97. color: #666666;
  98. }
  99. }
  100. .icon-active {
  101. width: 43rpx;
  102. height: 43rpx;
  103. background: #00B38B;
  104. border-radius: 50%;
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. }
  109. .icon-no-active {
  110. width: 44rpx;
  111. height: 44rpx;
  112. background: #FFFFFF;
  113. border: 1px solid #00B38B;
  114. border-radius: 50%;
  115. }
  116. .edit {
  117. display: flex;
  118. justify-content: center;
  119. align-items: center;
  120. flex-direction: column;
  121. image {
  122. width: 40rpx;
  123. height: 40rpx;
  124. }
  125. view {
  126. font-size: 26rpx;
  127. font-family: Noto Sans S Chinese;
  128. font-weight: 400;
  129. color: #999999;
  130. }
  131. }
  132. }
  133. }
  134. .submit {
  135. width: 670rpx;
  136. height: 80rpx;
  137. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  138. border-radius: 40rpx;
  139. font-size: 32rpx;
  140. font-family: Noto Sans S Chinese;
  141. font-weight: 400;
  142. color: #FFFFFF;
  143. line-height: 80rpx;
  144. margin-top: 575rpx;
  145. margin-bottom: 30rpx;
  146. }
  147. .submit2 {
  148. width: 673rpx;
  149. height: 80rpx;
  150. background: #FFFFFF;
  151. border: 3rpx solid #DCDCDC;
  152. border-radius: 40rpx;
  153. font-size: 32rpx;
  154. font-family: Noto Sans S Chinese;
  155. font-weight: 400;
  156. color: #666666;
  157. line-height: 80rpx;
  158. }
  159. }
  160. </style>