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
34c8694b
Commit
34c8694b
authored
Feb 26, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加复制功能
parent
508f25c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
2 deletions
+35
-2
valueCardRecords.js
...ubPackage/page/pages/valueCardRecords/valueCardRecords.js
+15
-0
valueCardRecords.wxml
...Package/page/pages/valueCardRecords/valueCardRecords.wxml
+2
-1
valueCardRecords.wxss
...Package/page/pages/valueCardRecords/valueCardRecords.wxss
+18
-1
No files found.
src/subPackage/page/pages/valueCardRecords/valueCardRecords.js
View file @
34c8694b
...
...
@@ -28,6 +28,21 @@ wxService.page({
},
//复制
onTapCopy
(
e
){
let
value
=
e
.
currentTarget
.
dataset
.
value
;
wx
.
setClipboardData
({
//准备复制的数据
data
:
value
,
success
:
function
(
res
)
{
wx
.
showToast
({
title
:
'复制成功'
,
icon
:
'none'
});
}
});
},
//获取购买记录
getBuyRecordsList
(
refresh
){
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
);
...
...
src/subPackage/page/pages/valueCardRecords/valueCardRecords.wxml
View file @
34c8694b
...
...
@@ -7,7 +7,8 @@
wx:key="*this">
<view class='records-item-lf'>
<view class='records-title'>{{item.activityName}}</view>
<view class="records-desc">超值卡号:{{item.supValCardId}}</view>
<view class="records-desc">超值卡号:{{item.supValCardId}}
<text class="copy" data-value="{{item.supValCardId}}" bindtap="onTapCopy">复制</text> </view>
<view class="records-desc">购买时间:{{item.payOrderTime}}</view>
<view class="records-desc">有效时间:{{item.startTime}} 至 {{item.endTime}}</view>
</view>
...
...
src/subPackage/page/pages/valueCardRecords/valueCardRecords.wxss
View file @
34c8694b
...
...
@@ -52,7 +52,24 @@ view{
.records-desc{
font-size: 24rpx;
color: #999999;
margin-bottom: 4rpx;
margin-bottom: 8rpx;
display: flex;
align-items: center;
}
.records-desc .copy{
display: block;
font-size: 22rpx;
padding: 2rpx 10rpx;
border: solid 1rpx #ff2222;
color: #ff2222;
border-radius: 4rpx;
margin-left: 10rpx;
}
.records-desc .copy:active{
opacity: 0.7;
}
...
...
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