xg
This commit is contained in:
parent
92d01fb329
commit
fd609ffdee
@ -6,7 +6,7 @@
|
|||||||
<u-collapse-item :title="item.year" v-for="(item, index) in itemlistleft" :key="index"
|
<u-collapse-item :title="item.year" v-for="(item, index) in itemlistleft" :key="index"
|
||||||
:class="item.check?'headcollapse':''" @change='tapcollapseleft(item)' :open="item.open">
|
:class="item.check?'headcollapse':''" @change='tapcollapseleft(item)' :open="item.open">
|
||||||
<view class="itemtext" v-for="aitem in item.list" @tap="dataies(aitem)">
|
<view class="itemtext" v-for="aitem in item.list" @tap="dataies(aitem)">
|
||||||
<view class="left" :style="recordCode == aitem.recordCode ? 'color:#26A888' : ''">
|
<view :style="recordCode == aitem.recordCode ? 'color:#26A888' : ''">
|
||||||
{{aitem.recordDate}}
|
{{aitem.recordDate}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -71,6 +71,12 @@
|
|||||||
if (uni.getStorageSync("userinfo")) {
|
if (uni.getStorageSync("userinfo")) {
|
||||||
this.cardNo = uni.getStorageSync("userinfo").cardNo
|
this.cardNo = uni.getStorageSync("userinfo").cardNo
|
||||||
dayList(this.cardNo).then(res => {
|
dayList(this.cardNo).then(res => {
|
||||||
|
res.data.forEach(e => {
|
||||||
|
e.list.forEach(el => {
|
||||||
|
const parts =
|
||||||
|
el.recordDate = el.recordDate.substr(5, 9);
|
||||||
|
})
|
||||||
|
})
|
||||||
this.itemlistleft = res.data
|
this.itemlistleft = res.data
|
||||||
this.itemlistleft.length > 0 ? this.itemlistleft[0].open = true : ''
|
this.itemlistleft.length > 0 ? this.itemlistleft[0].open = true : ''
|
||||||
res.data && res.data[0].list.length > 0 ? this.recordCode = res.data[0].list[0]
|
res.data && res.data[0].list.length > 0 ? this.recordCode = res.data[0].list[0]
|
||||||
@ -123,8 +129,8 @@
|
|||||||
|
|
||||||
.left {
|
.left {
|
||||||
// height: 100vh;
|
// height: 100vh;
|
||||||
|
width: 30%;
|
||||||
|
|
||||||
// background: aliceblue;
|
|
||||||
::v-deep .u-collapse-title {
|
::v-deep .u-collapse-title {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-family: Source Han Sans CN;
|
font-family: Source Han Sans CN;
|
||||||
@ -181,7 +187,7 @@
|
|||||||
|
|
||||||
.right {
|
.right {
|
||||||
// height: 100vh;
|
// height: 100vh;
|
||||||
width: 77%;
|
width: 70%;
|
||||||
|
|
||||||
::v-deep .u-collapse-title {
|
::v-deep .u-collapse-title {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user