Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
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
hooloo
mp
user
Commits
c4470f45
Commit
c4470f45
authored
Jul 20, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成优惠券页面部分开发
parent
24e96d74
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
9 deletions
+36
-9
components/Ticket/index.vue
+0
-0
mineSubPackage/pages/coupon/index.vue
+32
-5
orderSubPackage/pages/coupon/index.vue
+1
-1
orderSubPackage/pages/settlement/index.vue
+1
-1
pages.json
+2
-2
No files found.
components/Ticket/index.vue
View file @
c4470f45
This diff is collapsed.
Click to expand it.
mineSubPackage/pages/coupon/index.vue
View file @
c4470f45
...
@@ -26,11 +26,15 @@
...
@@ -26,11 +26,15 @@
<view>
<view>
<swiper
:current=
"current"
class=
"swiper"
>
<swiper
:current=
"current"
class=
"swiper"
>
<swiper-item>
<swiper-item>
<view
class=
"
nouser
"
>
<view
class=
"
list
"
>
<Ticket
/>
<Ticket
/>
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item>
2
</swiper-item>
<swiper-item>
<view
class=
"list"
>
<Ticket
v-for=
"(item,index) in nouserList"
:key=
"index"
:info=
"item"
/>
</view>
</swiper-item>
</swiper>
</swiper>
</view>
</view>
</view>
</view>
...
@@ -44,15 +48,38 @@ export default {
...
@@ -44,15 +48,38 @@ export default {
return
{
return
{
list1
:
[
list1
:
[
{
{
name
:
"HOOLOO
卷
"
,
name
:
"HOOLOO
券
"
,
},
},
{
{
name
:
"已使用/已失效"
,
name
:
"已使用/已失效"
,
},
},
],
],
nouserList
:[],
current
:
0
,
current
:
0
,
};
};
},
},
mounted
(){
for
(
let
i
=
0
;
i
<
2
;
i
++
){
this
.
nouserList
.
push
({
status
:
2
,
// 0可使用 1不可使用/已过期/已失效
couponType
:
2
,
// 0满减 1折扣 2抵扣
typeDesc
:
'最大字数最大字'
,
// 左上角文案描述
mjPrice
:
'30'
,
// 满减金额
zkPrice
:
'7'
,
// 折扣金额
dkPrice
:
'免单'
,
// 抵扣金额
priceDesc
:
'满130可用'
,
// 条件描述
checkStatus
:
false
,
// 优惠券选中状态
title
:
'最大字数最大字数最大'
,
// 优惠券标题
time
:[
'2022.07.24.17:20'
],
// 过期时间
shopList
:[
'全门店可用'
],
// 可用门店
goodList
:[
'全品类可用'
],
// 可用品类
useScence
:[
'小程序下单可用'
],
// 使用场景
useDesc
:[
'*不可与其他优惠券同时使用'
,
'*不可与门店优惠共享'
,
'*订单完成后选择退款,只退回实际支付金额,优惠券不予退回'
],
// 使用说明
zkRule
:
'整单最高抵扣50元'
,
// 折扣规则
reson
:
'不可与已勾选券叠加使用'
// 不可使用原因
})
}
},
methods
:
{
methods
:
{
changeTab
(
current
)
{
changeTab
(
current
)
{
this
.
current
=
current
.
index
;
this
.
current
=
current
.
index
;
...
@@ -66,9 +93,9 @@ export default {
...
@@ -66,9 +93,9 @@ export default {
.swiper
{
.swiper
{
background
:
#F8F8F8
;
background
:
#F8F8F8
;
height
:
calc
(
100vh
-
64
rpx
);
height
:
calc
(
100vh
-
64
rpx
);
.
nouser
{
.
list
{
height
:
100%
;
height
:
100%
;
padding
:
32
rpx
;
padding
:
0
rpx
32
rpx
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
}
}
}
}
...
...
orderSubPackage/pages/coupon/index.vue
View file @
c4470f45
<
template
>
<
template
>
<view>
结算页面优惠
卷
</view>
<view>
结算页面优惠
券
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
orderSubPackage/pages/settlement/index.vue
View file @
c4470f45
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</div>
</div>
<div
class=
"coupon"
@
click=
"goCouponSelect"
>
<div
class=
"coupon"
@
click=
"goCouponSelect"
>
<div
class=
"title"
>
HOOLOO
卷
</div>
<div
class=
"title"
>
HOOLOO
券
</div>
<div
class=
"num"
>
<div
class=
"num"
>
<span>
暂未可用优惠
</span>
<span>
暂未可用优惠
</span>
<image
class=
"arrow-right-select"
:src=
"'../../../static/imgs/jiantouhei.png'"
/>
<image
class=
"arrow-right-select"
:src=
"'../../../static/imgs/jiantouhei.png'"
/>
...
...
pages.json
View file @
c4470f45
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
{
{
"path"
:
"pages/coupon/index"
,
"path"
:
"pages/coupon/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"我的HOOLOO
卷
"
,
"navigationBarTitleText"
:
"我的HOOLOO
券
"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
}
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
{
{
"path"
:
"pages/coupon/index"
,
"path"
:
"pages/coupon/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"我的HOOLOO
卷
"
,
"navigationBarTitleText"
:
"我的HOOLOO
券
"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
}
...
...
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