心路历程和桂冠数据和专属海报传值mdType: d

This commit is contained in:
liyuetong
2021-09-18 17:00:55 +08:00
parent 2d93faa654
commit 28397d65dd
3 changed files with 11 additions and 10 deletions

View File

@@ -4,9 +4,9 @@
<div class='pt10 pb10' style='background-color: #f5f5f5'>
<div class='m-filterDate'>
<div class='number'>
<!-- <span :class="[currentIndex? 'checked' : 'unChecked']" @click='selectThisMonth(currentIndex)'>本月</span> -->
<span :class="[currentIndex? 'checked' : 'unChecked']" @click='selectThisMonth(currentIndex)'>本月</span>
</div>
<div class='filterTime'>
<!-- <div class='filterTime'>
<FieldDatePicter
label=''
name=''
@@ -20,7 +20,7 @@
:maxDate='datePickerObj.maxDate'
:minDate='datePickerObj.minDate'
></FieldDatePicter>
</div>
</div> -->
</div>
</div>
@@ -104,9 +104,9 @@ export default {
selectThisMonth(bool) {
if (!bool) {
// 选中左上方'本月'的tab按钮
this.currentIndex = true
// 将当前的时间(年-月)赋值给变量
this.datePickerObj.filterDate = this.getCurrentDateFunc()
// this.currentIndex = true
// // 将当前的时间(年-月)赋值给变量
// this.datePickerObj.filterDate = this.getCurrentDateFunc()
// 调用获取当前海报数据的方法
this.queryPosterDataFunc()
}
@@ -134,8 +134,9 @@ export default {
* @Date:2021-08-25
*/
queryPosterDataFunc() {
let dateArr = this.datePickerObj.filterDate.split('-')
let params = { 'monthStr': dateArr[0] + dateArr[1] }
// let dateArr = this.datePickerObj.filterDate.split('-')
// let params = { 'monthStr': dateArr[0] + dateArr[1] }
let params = { 'mdType': 'd' }
queryPosterDataUrl(params).then(res => {
if (res.result == 0) {
// 获取用户头像路径地址

View File

@@ -3,7 +3,7 @@
<div class="pt10 pb10 bgf5" style="background-color: #f5f5f5">
<div class="m-filterDate">
<div class="number">
<span :class="[currentIndex == '0' ? 'checkedLeft' : 'unCheckedLeft']" @click="switchDayOrMonth(1)">昨日</span>
<span :class="[currentIndex == '0' ? 'checkedLeft' : 'unCheckedLeft']" @click="switchDayOrMonth(1)">本月</span>
<!-- <span :class="[currentIndex == '1' ? 'checkedRight' : 'unCheckedRight']" @click="switchDayOrMonth(0)">本月</span> -->
</div>
<div class="filterTime">

View File

@@ -460,7 +460,7 @@ export default {
* @Date:2021-08-31
*/
queryPersonalFunc() {
let params = { mdType: 'm' }
let params = { mdType: 'd' }
queryPersonal(params).then(res => {
if (res.result == 0) {
// 判断查出的数据是否为空如果未空数据则要将变量设置为0