帧视界壹通告,付费看视频的微信小程序
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.

193 lines
4.5 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="promotionRecord">
  3. <!--顶部导航栏-->
  4. <navbar
  5. leftClick
  6. @leftClick="$utils.navigateBack"
  7. title="我的推广"/>
  8. <!--主页面-->
  9. <view class="frame">
  10. <!--标题-->
  11. <view class="title">
  12. <span>推广记录</span>
  13. </view>
  14. <!--搜索条件-->
  15. <view class="search">
  16. <!--搜索框-->
  17. <view style="width:40%;height:100%">
  18. <uv-input placeholder="请输入内容" border="surround" clearable></uv-input>
  19. </view>
  20. <!--开始时间-->
  21. <view class="dateTimeCls">
  22. <view class="date" @click="startDateOpen">
  23. <uv-datetime-picker ref="startDateRef" v-model="queryParams.startDate" mode="date"
  24. @confirm="startDateChange">
  25. </uv-datetime-picker>
  26. </view>
  27. <view class="image">
  28. <image src="/static/image/promotionRecord/2.svg" style="width: 100%;height: 100%"></image>
  29. </view>
  30. </view>
  31. <!--结束时间-->
  32. <view class="dateTimeCls">
  33. <view class="date" @click="endDateOpen">
  34. {{ queryParams.endDate }}
  35. <uv-datetime-picker ref="endDateRef" v-model="queryParams.endDate" mode="date"
  36. @confirm="endDateChange">
  37. </uv-datetime-picker>
  38. </view>
  39. <view class="image">
  40. <image src="/static/image/promotionRecord/2.svg" style="width: 100%;height: 100%"></image>
  41. </view>
  42. </view>
  43. </view>
  44. <!--发布列表-->
  45. <view style="" class="publishListClass">
  46. <PromotionRecordList :list="promotionRecordList"/>
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. import PromotionRecordList from "@/pages/mine/sonPage/promotion/promotionRecordList.vue";
  53. import moment from "moment";
  54. export default {
  55. components: {PromotionRecordList},
  56. data() {
  57. return {
  58. promotionRecordList: [
  59. {
  60. title: "推广记录",
  61. createTime: '2024-08-22 09:00:00',
  62. createBy: "24小时",
  63. isPay: "¥100"
  64. },
  65. ],
  66. queryParams: {
  67. pageNo: 1,
  68. pageSize: 10,
  69. startDate:moment(new Date()).format('YYYY-MM-DD'),
  70. endDate: moment(new Date()).format('YYYY-MM-DD'),
  71. },
  72. }
  73. },
  74. methods: {
  75. startDateChange(val) {
  76. console.log(val.value, "======startDateChange=======")
  77. this.queryParams.startDate = moment(new Date(val.value)).format('YYYY-MM-DD')
  78. },
  79. startDateOpen() {
  80. this.$refs.startDateRef.open();
  81. },
  82. endDateChange(val) {
  83. console.log(val.value, "=======endDateChange======")
  84. var aaa = moment(new Date(val.value)).format('YYYY-MM-DD')
  85. console.log(aaa, "aaa")
  86. this.queryParams.endDate = val.value
  87. },
  88. endDateOpen() {
  89. this.$refs.endDateRef.open();
  90. },
  91. startDateFormatter(type, value) {
  92. if (type === 'year') {
  93. return `${value}`
  94. }
  95. if (type === 'month') {
  96. return `${value}`
  97. }
  98. if (type === 'day') {
  99. return `${value}`
  100. }
  101. return value
  102. },
  103. endDateFormatter(type, value) {
  104. console.log(type, value, "======endDateFormatter=======")
  105. if (type === 'year') {
  106. return `${value}`
  107. }
  108. if (type === 'month') {
  109. return `${value}`
  110. }
  111. if (type === 'day') {
  112. return `${value}`
  113. }
  114. return value
  115. }
  116. }
  117. }
  118. </script>
  119. <style lang="scss" scoped>
  120. * {
  121. box-sizing: border-box;
  122. margin: 0;
  123. padding: 0;
  124. }
  125. .promotionRecord {
  126. width: 100vw;
  127. height: 100vh;
  128. .frame {
  129. width: 100%;
  130. //height: calc(100vh - 220rpx);
  131. padding: 28rpx 28rpx 0 28rpx;
  132. .title {
  133. font-size: 34rpx;
  134. color: #333;
  135. font-weight: 700
  136. }
  137. .search {
  138. display: flex;
  139. align-items: center;
  140. gap: 10rpx;
  141. width: 100%;
  142. height: 80rpx;
  143. margin-top: 20rpx;
  144. .dateTimeCls {
  145. display: flex;
  146. align-items: center;
  147. justify-content: space-between;
  148. width: 25%;
  149. height: 80%;
  150. border: 1px solid #b0b2b3;
  151. padding: 5rpx;
  152. border-radius: 20rpx;
  153. .date {
  154. font-size: 25rpx;
  155. display: flex;
  156. align-items: center;
  157. width: 80%;
  158. height: 100%;
  159. color: #b0b2b3;
  160. }
  161. .image {
  162. width: 20%;
  163. height: 100%;
  164. }
  165. }
  166. }
  167. .publishListClass {
  168. margin-top: 10rpx;
  169. height: 78vh;
  170. overflow: auto;
  171. width: 100%;
  172. }
  173. }
  174. }
  175. </style>