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

117 lines
3.1 KiB

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
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months 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="address">{{item.emil}}</view>
  29. </view>
  30. <view class="data">
  31. <text>标准票</text>
  32. <text>×1</text>
  33. <text class="btn">已开票</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. };
  54. },
  55. components: {
  56. },
  57. computed: {
  58. },
  59. watch: {
  60. },
  61. created() {
  62. },
  63. onShow() {
  64. console.log("进入了发票管理")
  65. },
  66. mounted() {
  67. },
  68. methods: {
  69. getImage(){
  70. return item.image && item.image.split(',')[0]
  71. },
  72. }
  73. };
  74. </script>
  75. <style scoped lang="scss">
  76. .invoiceRecords {
  77. .content{
  78. margin-top: 40rpx;
  79. .title,
  80. .date{
  81. overflow:hidden; //超出的文本隐藏
  82. text-overflow:ellipsis; //溢出用省略号显示
  83. white-space:nowrap; //溢出不换行
  84. width: 370rpx;
  85. }
  86. }
  87. .info {
  88. margin: 10rpx 32rpx 0rpx;
  89. padding: 35rpx 0 35rpx 24rpx;
  90. border-radius: 26rpx;
  91. .left{
  92. flex-shrink: 0;
  93. }
  94. .right {
  95. .data {
  96. padding-top: 10rpx;
  97. display: flex;
  98. justify-content: space-between;
  99. .btn {
  100. background: #381615;
  101. color: $uni-color-primary;
  102. padding: 10rpx 40rpx;
  103. border-radius: 30rpx 0px 0px 30rpx;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. </style>