recommendHistory.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="default_page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='推荐记录'></cus-header>
  4. <div class="top adfac" @click="show=true">
  5. <text>{{typeText}}</text>
  6. <image :src="imgBase+'icon_down.png'"></image>
  7. </div>
  8. <div class="list">
  9. <div class="list-item adfacjb" v-for="(item,index) in list" :key="index">
  10. <div class="list-item-left adfac">
  11. <image :src="imgCfg[item.type]"></image>
  12. <div class="name adffc">
  13. <p>{{item.name}}</p>
  14. <text>来源:{{typeCfg[item.type]}}</text>
  15. </div>
  16. </div>
  17. <div class="list-item-right">{{item.datetime}}</div>
  18. </div>
  19. </div>
  20. <u-picker :itemHeight="88" :immediateChange="true" :show="show" :columns="typeData" title="渠道类型"
  21. @cancel="show=false" @confirm="confirm"></u-picker>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data(){
  27. return {
  28. show:false,
  29. typeText:'全部渠道',
  30. typeData:[['全部渠道','问卷任务','推荐转发','创衡运营邀请渠道1','创衡运营邀请渠道2']],
  31. imgCfg:{
  32. 1:this.$imgBase+'recommend_wj.png',
  33. 2:this.$imgBase+'recommend_zf.png',
  34. 3:this.$imgBase+'recommend_yy1.png',
  35. 4:this.$imgBase+'recommend_yy2.png'
  36. },
  37. typeCfg:{
  38. 1:'问卷任务',
  39. 2:'推荐转发',
  40. 3:'创衡运营邀请渠道1',
  41. 4:'创衡运营邀请渠道2'
  42. },
  43. list:[
  44. {name:'李依然',type:1,datetime:'2025-10-10 06:00'},
  45. {name:'张三',type:2,datetime:'2025-10-10 06:00'},
  46. {name:'李四',type:3,datetime:'2025-10-10 06:00'},
  47. {name:'龙傲天',type:4,datetime:'2025-10-10 06:00'},
  48. ]
  49. }
  50. },
  51. methods:{
  52. confirm(e){
  53. this.typeText = e.value[0];
  54. this.show = false;
  55. }
  56. }
  57. }
  58. </script>
  59. <style scoped lang="scss">
  60. .default_page{
  61. background: #F7F7F7;
  62. padding: 0 24rpx 40rpx;
  63. box-sizing: border-box;
  64. .top{
  65. position: fixed;
  66. left: 0;
  67. right: 0;
  68. height: 90rpx;
  69. background: #FFFFFF;
  70. padding-left: 38rpx;
  71. text{
  72. font-family: PingFang-SC, PingFang-SC;
  73. font-weight: bold;
  74. font-size: 28rpx;
  75. color: #002846;
  76. line-height: 30rpx;
  77. }
  78. image{
  79. width: 24rpx;
  80. height: 24rpx;
  81. margin-left: 16rpx;
  82. }
  83. }
  84. .list{
  85. padding-top: 110rpx;
  86. &-item{
  87. background: #FFFFFF;
  88. border-radius: 24rpx;
  89. margin-top: 20rpx;
  90. padding: 32rpx 24rpx;
  91. &:first-child{
  92. margin-top: 0;
  93. }
  94. &-left{
  95. image{
  96. width: 88rpx;
  97. height: 88rpx;
  98. }
  99. .name{
  100. margin-left: 20rpx;
  101. p{
  102. font-family: PingFang-SC, PingFang-SC;
  103. font-weight: bold;
  104. font-size: 32rpx;
  105. color: #002846;
  106. line-height: 32rpx;
  107. }
  108. text{
  109. font-family: PingFangSC, PingFang SC;
  110. font-weight: 400;
  111. font-size: 24rpx;
  112. color: #667E90;
  113. line-height: 24rpx;
  114. margin-top: 24rpx;
  115. }
  116. }
  117. }
  118. &-right{
  119. font-family: PingFangSC, PingFang SC;
  120. font-weight: 400;
  121. font-size: 24rpx;
  122. color: #95A5B1;
  123. line-height: 24rpx;
  124. }
  125. }
  126. }
  127. }
  128. </style>