applyBilling.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <view>
  3. <u-navbar title="申请开票" title-color="#101010" ></u-navbar>
  4. <view class="success-icon">
  5. <image class="img" src="@/assets/img/md-check_circle vRxbRvD.svg" mode=""></image>
  6. </view>
  7. <view class="success-text">
  8. 申请成功
  9. </view>
  10. <!-- 支付详情 -->
  11. <view class="payment-infos">
  12. <view class="item" v-if="false" >
  13. <view class="item-title">
  14. 发票类型
  15. </view>
  16. <view class="item-value">
  17. {{detail.type=='1'?'增值税专票':''}}{{detail.type=='2'?'增值税普票':''}}
  18. </view>
  19. </view>
  20. <view class="item">
  21. <view class="item-title">
  22. 发票抬头
  23. </view>
  24. <view class="item-value">
  25. 联通公司
  26. </view>
  27. </view>
  28. <view class="item">
  29. <view class="item-title">
  30. 发票金额
  31. </view>
  32. <view class="item-value">
  33. 1000.00元
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 按钮 -->
  38. <view class="btns">
  39. <button class="btn1">完成</button>
  40. <button class="btn2" >查看发票详情</button>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import * as API from '@/apis/pagejs/invoiceApi.js'
  46. export default {
  47. data() {
  48. return {
  49. id:'',
  50. detail:{}
  51. }
  52. },
  53. onLoad(op){
  54. this.id=op.id;
  55. this.getInvoiceDetail()
  56. },
  57. methods: {
  58. gotoInfo2(){
  59. uni.navigateBack()
  60. },
  61. gotoInfo(){
  62. uni.redirectTo({
  63. url:"/pages/invoiceManagement/invoiceDetails?id="+this.id
  64. })
  65. },
  66. getInvoiceDetail(){
  67. uni.showLoading({
  68. mask:true,title:'加载中...'
  69. })
  70. API.invoiceDetail({
  71. id:this.id
  72. }).then((response) => {
  73. uni.hideLoading();
  74. }).catch(error => {
  75. uni.hideLoading();
  76. })
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. page{
  83. background-color: #fff;
  84. }
  85. .success-icon{
  86. width: 132rpx;
  87. height: 132rpx;
  88. margin: 48rpx auto;
  89. .img{
  90. width: 100%;
  91. height: 100%;
  92. }
  93. }
  94. .success-text{
  95. color: rgba(51,51,51,1);
  96. font-size: 48rpx;
  97. text-align: center;
  98. }
  99. // 支付详情
  100. .payment-infos{
  101. margin-top: 64rpx;
  102. padding: 0 80rpx;
  103. .item{
  104. display: flex;
  105. justify-content: space-between;
  106. margin-bottom: 24rpx;
  107. .item-title{
  108. color: rgb(119,119,119);
  109. }
  110. .item-value{
  111. color: rgb(51,51,51);
  112. }
  113. }
  114. }
  115. // 按钮
  116. .btns{
  117. display: flex;
  118. padding: 0 80rpx;
  119. margin-top: 80rpx;
  120. .btn1{
  121. width: 280rpx;
  122. height: 80rpx;
  123. background-color: rgba(255,255,255,1);
  124. color: rgba(51,51,51,1);
  125. font-size: 32rpx;
  126. border-radius: 50px;
  127. border: 1px solid rgba(223,223,223,1);
  128. }
  129. .btn2{
  130. width: 280rpx;
  131. height: 80rpx;
  132. border-radius: 50px;
  133. background-color: rgba(22,119,255,1);
  134. color: rgba(255,255,255,1);
  135. font-size: 32rpx;
  136. border: 0px solid rgba(187,187,187,1);
  137. }
  138. }
  139. </style>