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

118 lines
3.2 KiB

2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 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] &&
  9. item.activityList[0].image &&
  10. item.activityList[0].image.split(',')[0]" alt="">
  11. </view>
  12. <view class="left" v-if="item.noType == 1">
  13. <image :src="item.travelList[0] &&
  14. item.travelList[0].image &&
  15. item.travelList[0].image.split(',')[0]" alt="">
  16. </view>
  17. <view class="right">
  18. <view class="detailed">
  19. <view class="title" v-if="item.noType == 0">
  20. {{item.activityList[0] && item.activityList[0].title}}
  21. </view>
  22. <view class="title" v-if="item.noType == 1">
  23. {{item.travelList[0] && item.travelList[0].title}}
  24. </view>
  25. <view class="date">{{item.createTime}}</view>
  26. <view class="date"
  27. style="padding-top: 0;">{{item.name}}</view>
  28. <view class="emil">{{item.emil}}</view>
  29. </view>
  30. <view class="data">
  31. <text>标准票</text>
  32. <text>×1</text>
  33. <text class="btn">{{ state[item.state] }}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <uv-load-more :status="uvLoadMore" fontSize="24rpx" dashed line />
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import Navbar from '@/pages/components/Navbar.vue'
  43. import { globalMixin } from '../pages/mixins/globalMixin';
  44. import listMixin from '@/mixins/list.js'
  45. export default {
  46. mixins: [globalMixin, listMixin],
  47. components:{
  48. Navbar
  49. },
  50. data() {
  51. return {
  52. mixinsListApi : 'getInvoicePageList',
  53. state : ['开票中', '已开票', '开票失败'],
  54. };
  55. },
  56. components: {
  57. },
  58. computed: {
  59. },
  60. watch: {
  61. },
  62. created() {
  63. },
  64. onShow() {
  65. console.log("进入了发票管理")
  66. },
  67. mounted() {
  68. },
  69. methods: {
  70. getImage(){
  71. return item.image && item.image.split(',')[0]
  72. },
  73. }
  74. };
  75. </script>
  76. <style scoped lang="scss">
  77. .invoiceRecords {
  78. .content{
  79. margin-top: 40rpx;
  80. .title,
  81. .date{
  82. overflow:hidden; //超出的文本隐藏
  83. text-overflow:ellipsis; //溢出用省略号显示
  84. white-space:nowrap; //溢出不换行
  85. width: 370rpx;
  86. }
  87. }
  88. .info {
  89. margin: 10rpx 32rpx 0rpx;
  90. padding: 35rpx 0 35rpx 24rpx;
  91. border-radius: 26rpx;
  92. .left{
  93. flex-shrink: 0;
  94. }
  95. .right {
  96. .data {
  97. padding-top: 10rpx;
  98. display: flex;
  99. justify-content: space-between;
  100. .btn {
  101. background: #381615;
  102. color: $uni-color-primary;
  103. padding: 10rpx 40rpx;
  104. border-radius: 30rpx 0px 0px 30rpx;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. </style>