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
9be51b90
Commit
9be51b90
authored
Apr 28, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7.12.0新功能及优化
parent
73195b5a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
187 additions
and
16 deletions
+187
-16
app.json
src/app.json
+2
-1
coupons.js
src/pages/coupons/coupons.js
+15
-10
coupons.wxml
src/pages/coupons/coupons.wxml
+5
-2
coupons.wxss
src/pages/coupons/coupons.wxss
+23
-2
project.config.json
src/project.config.json
+7
-0
userInfo.wxml
src/shoppingGuid/page/pages/userInfo/userInfo.wxml
+5
-1
moneyBuyCouponRecords.js
...page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.js
+63
-0
moneyBuyCouponRecords.json
...ge/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.json
+8
-0
moneyBuyCouponRecords.wxml
...ge/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.wxml
+16
-0
moneyBuyCouponRecords.wxss
...ge/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.wxss
+43
-0
No files found.
src/app.json
View file @
9be51b90
...
...
@@ -109,7 +109,8 @@
"pages/pointExchangeGoods/pointExchangeGoods"
,
"pages/payCardInfo/payCardInfo"
,
"pages/moneyBuyCoupon/moneyBugCoupon"
,
"pages/moneyBuyCouponInfo/moneyBuyCouponInfo"
"pages/moneyBuyCouponInfo/moneyBuyCouponInfo"
,
"pages/moneyBuyCouponRecords/moneyBuyCouponRecords"
]
},
{
...
...
src/pages/coupons/coupons.js
View file @
9be51b90
...
...
@@ -17,16 +17,16 @@ wxService.page({
//包邮券
postalVoucherList
:
[]
},
//滑动切换
swiperTab
:
function
(
e
)
{
const
{
current
}
=
e
.
detail
this
.
tabSwitch
(
current
);
},
// 点击切换
clickTab
:
function
(
e
)
{
const
{
current
}
=
e
.
target
.
dataset
this
.
tabSwitch
(
current
);
},
//滑动切换
swiperTab
:
function
(
e
)
{
const
{
current
}
=
e
.
detail
this
.
tabSwitch
(
current
);
},
// 点击切换
clickTab
:
function
(
e
)
{
const
{
current
}
=
e
.
target
.
dataset
this
.
tabSwitch
(
current
);
},
//tab栏切换
tabSwitch
(
current
){
if
(
this
.
data
.
currentTab
==
current
)
return
false
;
...
...
@@ -121,4 +121,8 @@ wxService.page({
onBottom
(){
},
//跳转到我的购买优惠券记录
onTapToBuyCouponRecords
(){
},
})
\ No newline at end of file
src/pages/coupons/coupons.wxml
View file @
9be51b90
...
...
@@ -10,9 +10,9 @@
</view>
<!--bindchange="swiperTab"-->
<swiper current="{{currentTab}}" duration="300" bindchange="swiperTab">
<swiper-item>
<swiper-item
>
<!-- 优惠券 -->
<scroll-view scroll-y wx:if="{{couponList.length}}" bindscrolltolower="onBottom">
<scroll-view scroll-y wx:if="{{couponList.length}}" bindscrolltolower="onBottom"
style="height:86vh;"
>
<view class='coupon-wrap'>
<view
class='coupon-list'
...
...
@@ -136,6 +136,9 @@
</swiper-item>
</swiper>
</view>
<!-- 优惠券购买记录 -->
<view class="coupon-buy-records" wx:if="{{currentTab == 0}}" bindtap="onTapToBuyCouponRecords">优惠券购买记录</view>
<!--goHome-->
<go-home/>
<floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
...
...
src/pages/coupons/coupons.wxss
View file @
9be51b90
...
...
@@ -30,6 +30,7 @@ scroll-view{
margin: 190rpx auto 0;
text-align: center;
}
.empty-img{
width: 197rpx;
height: 176rpx;
...
...
@@ -141,9 +142,28 @@ scroll-view{
swiper {
width: 100%;
flex: 1;
height:9
0
vh;
padding-bottom:20rpx;
height:9
1
vh;
/* padding-bottom:20rpx; */
position: absolute;
overflow: scroll;
top: 100rpx;
}
.coupon-buy-records{
background: #05c35b;
width: 100%;
height: 80rpx;
color: #ffffff;
font-size: 28rpx;
position: fixed;
bottom: 0;
left: 0;
z-index: 999;
display: flex;
align-items: center;
justify-content: center;
}
.coupon-buy-records:active{
opacity: 0.7;
}
\ No newline at end of file
src/project.config.json
View file @
9be51b90
...
...
@@ -666,6 +666,13 @@
"pathName"
:
"subPackageA/page/pages/moneyBuyCouponInfo/moneyBuyCouponInfo"
,
"query"
:
"id=704317444864479232"
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"优惠券购买记录"
,
"pathName"
:
"subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords"
,
"query"
:
""
,
"scene"
:
null
}
]
}
...
...
src/shoppingGuid/page/pages/userInfo/userInfo.wxml
View file @
9be51b90
...
...
@@ -38,7 +38,11 @@
<view class='guider'>
<view class='header'>
<label>所属导购:</label>
<text>{{guider.member.name ? guider.member.name : "暂无名称"}}</text>
<text>{{guider.member.name ? guider.member.name : "暂无"}}</text>
</view>
<view class='header'>
<label>注册门店:</label>
<text>{{memberInfo.storeName ? memberInfo.storeName : "暂无"}}</text>
</view>
<view class='month'>
...
...
src/subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.js
0 → 100644
View file @
9be51b90
// subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.js
const
wxService
=
require
(
'../../../../utils/wxService'
)
const
util
=
require
(
'../../../../utils/util'
)
wxService
.
page
({
/**
* 页面的初始数据
*/
data
:
{
recordsList
:
[],
pageSize
:
10
,
pageNo
:
1
,
totalPage
:
0
,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
();
this
.
getBuyCouponRecords
();
},
//获取优惠券购买记录
getBuyCouponRecords
(
refresh
){
let
pageNo
=
this
.
data
.
pageNo
,
pageSize
=
this
.
data
.
pageSize
;
if
(
refresh
){
wx
.
stopPullDownRefresh
();
wx
.
showToast
({
title
:
'刷新成功'
,
});
}
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
data
.
pageNo
=
1
;
this
.
data
.
recordsList
=
[];
this
.
getBuyCouponRecords
(
true
);
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
if
(
this
.
data
.
pageNo
<
this
.
data
.
totalPage
){
this
.
data
.
pageNo
++
;
this
.
getBuyCouponRecords
();
}
else
{
if
(
this
.
data
.
pageNo
>
1
){
wx
.
showToast
({
title
:
'暂无更多数据了~'
,
icon
:
' none'
});
}
}
},
})
\ No newline at end of file
src/subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.json
0 → 100644
View file @
9be51b90
{
"enablePullDownRefresh"
:
true
,
"navigationBarTitleText"
:
"优惠券购买记录"
,
"usingComponents"
:
{
"empty"
:
"/component/empty/empty"
}
}
\ No newline at end of file
src/subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.wxml
0 → 100644
View file @
9be51b90
<!--subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.wxml-->
<view class="records-list" wx:if="{{recordsList.length > 0}}">
<view class="records-item">
<view class="records-title">
<label>活动名称活动名称活动名称活动名称</label>
<text>¥50.00</text>
</view>
<view class="other-info">
有效时间: <label>2020-04-30 15:30:30至2020-04-30 15:30:30</label>
</view>
</view>
</view>
<!-- 空的时候 -->
<empty text="未查到任何优惠券购买记录~" wx:if="{{recordsList.length == 0}}"/>
\ No newline at end of file
src/subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.wxss
0 → 100644
View file @
9be51b90
/* subPackageA/page/pages/moneyBuyCouponRecords/moneyBuyCouponRecords.wxss */
page{
background: #ffffff;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
view{
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.records-list{
width: 100%;
height: auto;
padding: 20rpx;
}
.records-list .records-item{
padding: 20rpx;
border-bottom: solid 1rpx #dddddd;
font-size: 24rpx;
color: #333333;
}
.records-title{
font-size: 28rpx;
font-weight: bold;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10rpx;
}
.other-info{
color: #999999;
font-weight: 24rpx;
}
.records-title text{
color: red;
}
\ No newline at end of file
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