Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

invoice-header.vue 3.9KB

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