parent
0f040b87a6
commit
00947a4ed0
After Width: | Height: | Size: 775 B |
After Width: | Height: | Size: 39 KiB |
@ -1,19 +1,39 @@
|
||||
// pages/user/subpage/quest.js
|
||||
// pages/user/subpage/integral/integral.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
rearr: [{
|
||||
isshow: false,
|
||||
time: '2022年4月',
|
||||
re: [{
|
||||
title: '任务奖励',
|
||||
time: '2022-04-15 16:35:09',
|
||||
count: '+600'
|
||||
}, {
|
||||
title: '任务奖励',
|
||||
time: '2022-04-15 16:35:09',
|
||||
count: '+600'
|
||||
}]
|
||||
}]
|
||||
},
|
||||
|
||||
getlist() {
|
||||
change(e) {
|
||||
// console.log(e.currentTarget.dataset.mes)
|
||||
let a = e.currentTarget.dataset.mes
|
||||
let str = 'rearr[' + a + '].isshow'
|
||||
this.setData({
|
||||
[str]: !this.data.rearr[a].isshow
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '我的积分',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
@ -0,0 +1,36 @@
|
||||
<!--pages/user/subpage/integral/integral.wxml-->
|
||||
<view class="main">
|
||||
<!-- <image style="width: 686rpx;height: 204rpx;" src="/images/img_wdjfbg@2x.png"></image> -->
|
||||
<!-- 顶部卡片 -->
|
||||
<view class="top">
|
||||
<view class="top_title">
|
||||
<view>当前积分数</view>
|
||||
<view>累计获得积分</view>
|
||||
</view>
|
||||
<view class="top_num">
|
||||
<view>300</view>
|
||||
<view>1200</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 展示 -->
|
||||
<view class="show">
|
||||
<l-collapse>
|
||||
<l-collapse-item wx:for="{{rearr}}" wx:key="index" customTitle="{{true}}">
|
||||
<view class="show_tiltle" slot="title" bindtap="change" data-mes="{{index}}">
|
||||
<view>积分明细</view>
|
||||
<view class="show_tiltle2">{{item.time}}
|
||||
<l-icon wx:if="{{!item.isshow}}" name="down" size="28" color="#333333" />
|
||||
<l-icon wx:if="{{item.isshow}}" name="up" size="28" color="#333333" />
|
||||
</view>
|
||||
</view>
|
||||
<view wx:for="{{item.re}}" wx:key="index" class="card" style="border-bottom: {{index<item.length ? 'rgba(223, 223, 223, 0.589) solid 1rpx': ''}};">
|
||||
<view class="card_left">
|
||||
<view class="card_title">{{item.title}}</view>
|
||||
<view class="card_tip">{{item.time}}</view>
|
||||
</view>
|
||||
<view class="card_right">{{item.count}}</view>
|
||||
</view>
|
||||
</l-collapse-item>
|
||||
</l-collapse>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
@ -1,2 +0,0 @@
|
||||
<!--pages/user/subpage/quest.wxml-->
|
||||
<text>pages/user/subpage/quest.wxml</text>
|
@ -1 +0,0 @@
|
||||
/* pages/user/subpage/quest.wxss */
|
Loading…
Reference in new issue