推广小程序前端代码
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.

99 lines
2.6 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view class='invoiceRecords'>
  3. <view class="head-box"></view>
  4. <Navbar title="开票记录" :autoBack="true" :bgColor="bgColor" leftIconSize="18px" height="100rpx" :leftIconColor="leftIconColor" :titleStyle="{color:fontColor}" />
  5. <view class="content contentPosition_">
  6. <view class="info cardStyle_" v-for="(item, index) in list" :key="index">
  7. <view class="left" v-if="item.noType == 0">
  8. <image :src="item.activityList[0].image.split(',')[0]" alt="">
  9. </view>
  10. <view class="left" v-if="item.noType == 1">
  11. <image :src="item.travelList[0].image.split(',')[0]" alt="">
  12. </view>
  13. <view class="right">
  14. <view class="detailed">
  15. <view class="title" v-if="item.noType == 0">{{item.activityList[0].title}}</view>
  16. <view class="title" v-if="item.noType == 1">{{item.travelList[0].title}}</view>
  17. <view class="date">{{item.createTime}}</view>
  18. <view class="date">{{item.name}}</view>
  19. <view class="address">{{item.emil}}</view>
  20. </view>
  21. <view class="data">
  22. <text>标准票</text>
  23. <text>×1</text>
  24. <text class="btn">已开票</text>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import Navbar from '@/pages/components/Navbar.vue'
  33. import { globalMixin } from '../pages/mixins/globalMixin';
  34. export default {
  35. mixins: [globalMixin],
  36. components:{
  37. Navbar
  38. },
  39. data() {
  40. return {
  41. list:[]
  42. };
  43. },
  44. components: {
  45. },
  46. computed: {
  47. },
  48. watch: {
  49. },
  50. created() {
  51. },
  52. onShow() {
  53. console.log("进入了发票管理")
  54. this.getInvoicePageList();
  55. },
  56. mounted() {
  57. },
  58. methods: {
  59. getInvoicePageList(){
  60. this.$api('getInvoicePageList',res=>{
  61. if(res.code == 200) {
  62. this.list = res.result.records
  63. }
  64. })
  65. }
  66. }
  67. };
  68. </script>
  69. <style scoped lang="scss">
  70. .invoiceRecords {
  71. .info {
  72. margin: 10rpx 32rpx 0rpx;
  73. padding: 35rpx 0 35rpx 24rpx;
  74. border-radius: 26rpx;
  75. .right {
  76. .data {
  77. display: flex;
  78. justify-content: space-between;
  79. .btn {
  80. background: #381615;
  81. color: $uni-color-primary;
  82. padding: 10rpx 40rpx;
  83. border-radius: 30rpx 0px 0px 30rpx;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. </style>