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"
|
||||
:class="item.check?'headcollapse':''" @change='tapcollapseleft(item)' :open="item.open">
|
||||
<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}}
|
||||
</view>
|
||||
</view>
|
||||
@ -71,6 +71,12 @@
|
||||
if (uni.getStorageSync("userinfo")) {
|
||||
this.cardNo = uni.getStorageSync("userinfo").cardNo
|
||||
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.length > 0 ? this.itemlistleft[0].open = true : ''
|
||||
res.data && res.data[0].list.length > 0 ? this.recordCode = res.data[0].list[0]
|
||||
@ -123,8 +129,8 @@
|
||||
|
||||
.left {
|
||||
// height: 100vh;
|
||||
width: 30%;
|
||||
|
||||
// background: aliceblue;
|
||||
::v-deep .u-collapse-title {
|
||||
font-size: 26rpx;
|
||||
font-family: Source Han Sans CN;
|
||||
@ -181,7 +187,7 @@
|
||||
|
||||
.right {
|
||||
// height: 100vh;
|
||||
width: 77%;
|
||||
width: 70%;
|
||||
|
||||
::v-deep .u-collapse-title {
|
||||
font-size: 30rpx;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user