Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
66829686
Commit
66829686
authored
Nov 14, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兑换记录页面
parent
0fc753f8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
163 additions
and
2 deletions
+163
-2
app.json
src/app.json
+2
-1
project.config.json
src/project.config.json
+8
-1
recordList.js
src/subPackage/page/pages/recordList/recordList.js
+87
-0
recordList.json
src/subPackage/page/pages/recordList/recordList.json
+4
-0
recordList.wxml
src/subPackage/page/pages/recordList/recordList.wxml
+14
-0
recordList.wxss
src/subPackage/page/pages/recordList/recordList.wxss
+48
-0
No files found.
src/app.json
View file @
66829686
...
...
@@ -58,7 +58,8 @@
"pages/goToHome/goToHome"
,
"pages/noPermission/noPermission"
,
"pages/scanCoupon/scanCoupon"
,
"pages/scanCouponStoreList/scanCouponStoreList"
"pages/scanCouponStoreList/scanCouponStoreList"
,
"pages/recordList/recordList"
]
},
{
...
...
src/project.config.json
View file @
66829686
...
...
@@ -39,7 +39,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
16
,
"current"
:
62
,
"list"
:
[
{
"id"
:
-1
,
...
...
@@ -448,6 +448,13 @@
"name"
:
"我招募的总会员数"
,
"pathName"
:
"shoppingGuid/page/pages/myMemberList/myMemberList"
,
"query"
:
""
},
{
"id"
:
-1
,
"name"
:
"兑换记录列表"
,
"pathName"
:
"subPackage/page/pages/recordList/recordList"
,
"query"
:
""
,
"scene"
:
null
}
]
}
...
...
src/subPackage/page/pages/recordList/recordList.js
0 → 100644
View file @
66829686
// subPackage/page/pages/recordList/recordList.js
const
wxService
=
require
(
'../../../../utils/wxService'
)
const
utils
=
require
(
'../../../../utils/util'
)
wxService
.
page
({
/**
* 页面的初始数据
*/
data
:
{
recordList
:
[
{
name
:
'500积分换xx'
,
time
:
'2019-12-2 15:20:54'
,
address
:
'上海市浦东新区上海市浦东新区上海市浦东新区'
,
point
:
'-500积分'
,
},
{
name
:
'500积分换xx'
,
time
:
'2019-12-2 15:20:54'
,
address
:
'上海市浦东新区上海市浦东新区上海市浦东新区'
,
point
:
'-500积分'
,
},{
name
:
'500积分换xx'
,
time
:
'2019-12-2 15:20:54'
,
address
:
'上海市浦东新区上海市浦东新区上海市浦东新区'
,
point
:
'-500积分'
,
}
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
}
})
\ No newline at end of file
src/subPackage/page/pages/recordList/recordList.json
0 → 100644
View file @
66829686
{
"navigationBarTitleText"
:
"兑换记录"
}
\ No newline at end of file
src/subPackage/page/pages/recordList/recordList.wxml
0 → 100644
View file @
66829686
<!--subPackage/page/pages/recordList/recordList.wxml-->
<view class="record-list">
<block wx:for="{{recordList}}" wx:key="{{index}}" wx:for-item="item">
<view class="list-item">
<view class="list-desc">
<view class="desc-name">{{item.name}}</view>
<view class="desc-time">{{item.time}}</view>
<view class="desc-address">{{item.address}}</view>
</view>
<view class="list-point">{{item.point}}</view>
</view>
</block>
</view>
src/subPackage/page/pages/recordList/recordList.wxss
0 → 100644
View file @
66829686
/* subPackage/page/pages/recordList/recordList.wxss */
@import "/base/base.wxss";
.record-list {
border-top: 1px solid rgba(151, 151, 151, 1);
padding: 0 20rpx;
box-sizing: border-box;
}
.list-item {
display: flex;
height: 164rpx;
border-bottom: 1px solid rgba(151, 151, 151, 1);
padding: 35rpx 20rpx 34rpx 20rpx;
box-sizing: border-box;
overflow: hidden;
align-items: center;
justify-content: space-between;
}
.list-desc {
text-align: left;
}
.desc-name {
height: 30rpx;
color: rgba(51, 51, 51, 1);
font-size: 30rpx;
}
.desc-time,
.desc-address {
color: rgba(170, 170, 170, 1);
font-size: 22rpx;
}
.desc-address {
width: 352rpx;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
}
.desc-time {
padding: 6rpx 0 7rpx 0;
}
.list-point {
color: rgba(0, 0, 0, 1);
font-size: 24rpx;
text-align: right;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment