Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
1c8a27ec
Commit
1c8a27ec
authored
Aug 03, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券
parent
57876c76
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
1 deletion
+67
-1
pages.json
src/pages.json
+7
-0
coupon.vue
src/pages/index/coupon.vue
+48
-0
index.vue
src/pages/index/index.vue
+12
-1
No files found.
src/pages.json
View file @
1c8a27ec
...
...
@@ -92,6 +92,13 @@
"navigationBarTitleText"
:
"申请退款"
}
}
,
{
"path"
:
"pages/index/coupon"
,
"style"
:
{
"navigationBarTitleText"
:
"优惠券详情"
}
}
],
"globalStyle"
:
{
"navigationStyle"
:
"custom"
...
...
src/pages/index/coupon.vue
0 → 100644
View file @
1c8a27ec
<
template
>
<view
class=
"container"
>
<scroll-view
class=
"tabs"
scroll-x=
"true"
@
scroll=
"scroll"
>
<text
class=
"tab"
v-for=
"(item, index) in tabs"
:key=
"index"
>
{{
item
}}
</text>
</scroll-view>
<view
class=
"itemBox"
>
<view
class=
"item"
></view>
</view>
</view>
</
template
>
<
script
setup
>
import
{}
from
'vue'
;
const
tabs
=
ref
([
'推荐'
,
'附近美食'
,
'果蔬生鲜'
,
'数码商城'
,
'小吃快餐'
,
'数码商城'
,
'餐饮券'
]);
</
script
>
<
style
lang=
"scss"
scoped
>
page
{
background
:
#f3f3f3
;
}
.container
{
.tabs
{
white-space
:
nowrap
;
padding
:
0
30rpx
;
box-sizing
:
border-box
;
height
:
100rpx
;
line-height
:
100rpx
;
font-size
:
32rpx
;
color
:
#333333
;
font-weight
:
bold
;
background
:
white
;
.tab
{
display
:
inline-block
;
margin-right
:
40rpx
;
}
}
.itemBox
{
padding
:
0
23rpx
;
border-radius
:
16rpx
16rpx
16rpx
16rpx
;
margin-top
:
20rpx
;
.item
{
width
:
341rpx
;
height
:
674rpx
;
background
:
#ffffff
;
}
}
}
</
style
>
src/pages/index/index.vue
View file @
1c8a27ec
...
...
@@ -44,7 +44,12 @@
<view
v-else
class=
"textF"
@
tap=
"toUse"
>
去使用
</view>
</view>
</scroll-view>
<image
class=
"discount"
src=
"../../static/index/discount.png"
mode=
"widthFix"
/>
<image
@
tap=
"toCoupon"
class=
"discount"
src=
"../../static/index/discount.png"
mode=
"widthFix"
/>
</view>
<!-- 贵阳老味道 -->
<!--
<view
class=
"guiyang"
></view>
-->
...
...
@@ -223,6 +228,12 @@ const receive = (data) => {
});
}
};
// TO优惠券详情
const
toCoupon
=
()
=>
{
xma
.
navigateTo
({
url
:
'/pages/index/coupon'
,
});
};
// 获取分类
const
getClassification
=
()
=>
{
groupBuyList
().
then
((
res
)
=>
{
...
...
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