personalTitle.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view>
  3. <u-navbar title="编辑发票抬头" title-color="#101010">
  4. <view class="slot" slot="right" @click="show=true">
  5. 删除
  6. </view>
  7. </u-navbar>
  8. <!-- 删除弹出框 -->
  9. <u-popup v-model="show" mode="bottom" border-radius="12" >
  10. <view class="popup">
  11. <view class="headline">
  12. 确认删除
  13. </view>
  14. <view class="hint">
  15. 是否删除此发票抬头?
  16. </view>
  17. <view class="btn-box">
  18. <view class="think">
  19. 我再想想
  20. </view>
  21. <view class="confirm">
  22. 确认删除
  23. </view>
  24. </view>
  25. </view>
  26. </u-popup>
  27. <!-- 类型 -->
  28. <view class="main">
  29. <u-cell-group>
  30. <u-cell-item title="抬头类型" required :arrow="false">
  31. <u-radio-group v-model="value" @change="radioGroupChange">
  32. <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name"
  33. :disabled="item.disabled">
  34. {{item.name}}
  35. </u-radio>
  36. </u-radio-group>
  37. </u-cell-item>
  38. </u-cell-group>
  39. </view>
  40. <!-- 其他信息 -->
  41. <view class="main">
  42. <u-cell-group>
  43. <u-cell-item title="发票抬头" required value="" :arrow="false">
  44. <u-input value="李广宵"></u-input>
  45. </u-cell-item>
  46. <u-cell-item title="身份证号" required value="" :arrow="false">
  47. <u-input value="420400200001011010"></u-input>
  48. </u-cell-item>
  49. </u-cell-group>
  50. </view>
  51. <view class="main">
  52. <u-cell-item title="联系电话" value="" required :arrow="false">
  53. <u-input value="15100001111
  54. "></u-input>
  55. </u-cell-item>
  56. </view>
  57. <!-- 默认 -->
  58. <view class="main ">
  59. <u-cell-item title="设为默认" :arrow="false">
  60. <u-switch size="40" v-model="checked" active-color="#00e266"></u-switch>
  61. </u-cell-item>
  62. </view>
  63. <button class="save">保存</button>
  64. </view>
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. checked: false,
  71. show:false,
  72. list: [{
  73. name: '企业单位',
  74. disabled: false
  75. },
  76. {
  77. name: '个人/非企业单位',
  78. disabled: false
  79. }
  80. ],
  81. value: '个人/非企业单位',
  82. };
  83. },
  84. methods: {
  85. // 选中某个单选框时,由radio时触发
  86. radioChange(e) {
  87. // console.log(e);
  88. },
  89. // 选中任一radio时,由radio-group触发
  90. radioGroupChange(e) {
  91. // console.log(e);
  92. }
  93. }
  94. };
  95. </script>
  96. <style lang="scss" scoped>
  97. .slot {
  98. color: #ee3138;
  99. }
  100. .popup{
  101. padding: 32rpx;
  102. text-align: center;
  103. .headline{
  104. color: rgba(16,16,16,1);
  105. font-size: 36rpx;
  106. font-weight: bold;
  107. }
  108. .hint{
  109. color: rgba(16,16,16,1);
  110. font-size: 32rpx;
  111. margin-top: 40rpx;
  112. }
  113. .btn-box{
  114. margin-top: 82rpx;
  115. display: flex;
  116. justify-content: space-between;
  117. .think{
  118. width: 328rpx;
  119. line-height: 80rpx;
  120. border-radius: 4px;
  121. background-color: rgba(222,225,228,1);
  122. color: rgba(51,51,51,1);
  123. font-size: 32rpx;
  124. }
  125. .confirm{
  126. width: 328rpx;
  127. line-height: 80rpx;
  128. border-radius: 4px;
  129. background-color: rgba(255,68,68,1);
  130. color: rgba(255,255,255,1);
  131. font-size: 32rpx;
  132. }
  133. }
  134. }
  135. .main {
  136. background-color: #fff;
  137. margin-bottom: 24rpx;
  138. }
  139. /deep/.u-cell {
  140. height: 96rpx;
  141. }
  142. /deep/.u-cell__value {
  143. text-align: left;
  144. margin-left: 8%;
  145. font-size: 32rpx;
  146. }
  147. /deep/.u-switch {
  148. margin: auto 0;
  149. float: left;
  150. ;
  151. }
  152. /deep/.uni-textarea-textarea {
  153. line-height: 54rpx;
  154. }
  155. .save {
  156. margin: 24rpx 32rpx;
  157. line-height: 88rpx;
  158. border-radius: 50px;
  159. background: linear-gradient(-88.46deg, rgba(34, 109, 198, 1) 2.59%, rgba(9, 158, 237, 1) 97.02%);
  160. color: rgba(255, 255, 255, 1);
  161. font-size: 36rpx;
  162. }
  163. </style>