Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-app
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli-app
Commits
8c2cb0e5
Commit
8c2cb0e5
authored
Mar 07, 2023
by
zhangmengjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
23.3.7
parent
ebb2e627
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
53 deletions
+97
-53
components/tabbar/tabbar.vue
+1
-1
demand/payment/index.vue
+12
-5
my/coupon/index.vue
+78
-22
pages/demand/index.vue
+5
-12
pages/home/index.vue
+1
-13
No files found.
components/tabbar/tabbar.vue
View file @
8c2cb0e5
...
...
@@ -78,7 +78,7 @@ export default {
url
:
path
.
url
});
}
this
.
$emit
(
'tabBarChange'
,
path
.
url
,
path
.
type
);
//
this.$emit('tabBarChange', path.url, path.type);
}
}
};
...
...
demand/payment/index.vue
View file @
8c2cb0e5
...
...
@@ -28,12 +28,12 @@
</view>
</view>
</view>
<view
class=
"content-discounts"
>
<view
class=
"content-discounts"
@
click=
"jump(1)"
>
<view
class=
""
>
选择优惠券
</view>
<view
class=
""
>
-99
{{
times
}}
元
<image
src=
"@/static/icon/jt.png"
mode=
""
></image>
</view>
</view>
...
...
@@ -41,7 +41,7 @@
<view
class=
""
>
截止1小时内支付完成
<text>
00:59:42
</text>
</view>
<button
@
click=
"jump"
>
立即支付 300.00元
</button>
<button
@
click=
"jump
(2)
"
>
立即支付 300.00元
</button>
</view>
</view>
</
template
>
...
...
@@ -53,18 +53,25 @@
return
{
imgBgUrl
:
apiBaseConfig
.
imgBgUrl
,
globalData
:
getApp
().
globalData
,
scrollTopHeader
:
0
scrollTopHeader
:
0
,
times
:
'0'
};
},
onLoad
()
{},
methods
:
{
jump
()
{
jump
(
val
)
{
if
(
val
==
1
){
this
.
$uniGo
.
navigateTo
({
url
:
`/my/coupon/index?type=pay`
});
}
else
{
this
.
$uniGo
.
navigateTo
({
url
:
`/demand/confirm/index`
});
}
}
}
}
</
script
>
<
style
>
page
{
...
...
my/coupon/index.vue
View file @
8c2cb0e5
...
...
@@ -7,7 +7,7 @@
<text></text>
<view>
可用优惠券(2)
</view>
</view>
<view
class=
"index-content-item-qu"
>
<view
class=
"index-content-item-qu"
@
click=
"optionData.type === 'pay'?jump():null"
>
<image
class=
"index-content-item-qu-bg"
src=
"@/static/icon/xy01.png"
mode=
""
></image>
<view
class=
"index-content-item-qu-bl"
>
<text
class=
"index-content-item-qu-bl-tl"
>
满减优惠券
</text>
...
...
@@ -19,7 +19,7 @@
</view>
<view
class=
"index-content-item-qu-bl-lk-b"
>
有效期:2022.3.1-2022.12.31
</view>
</view>
<template
v-if=
"optionData.type === '
coupon
'"
>
<template
v-if=
"optionData.type === '
pay
'"
>
<view
class=
"index-content-item-qu-bl-rk"
>
<view
class=
"index-content-item-qu-bl-rk-a"
>
订单金额满
</view>
<view
class=
"index-content-item-qu-bl-rk-b"
>
9999元
</view>
...
...
@@ -27,7 +27,7 @@
<view
class=
"index-content-item-qu-bl-rk-d"
>
当前可使用
</view>
</view>
</
template
>
<
template
v-if=
"optionData.type === '
pay
'"
>
<
template
v-if=
"optionData.type === '
coupon
'"
>
<view
class=
"index-content-item-qu-bl-rk"
>
<view
class=
"index-content-item-qu-bl-rk-a index-content-item-qu-bl-rk-axl"
>
订单金额满
</view>
<view
class=
"index-content-item-qu-bl-rk-b index-content-item-qu-bl-rk-bxl"
>
9999元
</view>
...
...
@@ -53,7 +53,8 @@
<text>
200
</text>
优惠券
</view>
<view
class=
"index-content-item-qu-bl-lk-b index-content-item-qu-bl-lk-bx"
>
有效期:2022.3.1-2022.12.31
</view>
<view
class=
"index-content-item-qu-bl-lk-b index-content-item-qu-bl-lk-bx"
>
有效期:2022.3.1-2022.12.31
</view>
</view>
<view
class=
"index-content-item-qu-bl-rk"
>
<view
class=
"index-content-item-qu-bl-rk-a index-content-item-qu-bl-rk-ax"
>
订单金额满
</view>
...
...
@@ -69,8 +70,8 @@
</template>
<
script
>
import
apiBaseConfig
from
'@/config/index.js'
;
export
default
{
import
apiBaseConfig
from
'@/config/index.js'
;
export
default
{
data
()
{
return
{
imgBgUrl
:
apiBaseConfig
.
imgBgUrl
,
...
...
@@ -83,6 +84,7 @@ export default {
onLoad
(
option
)
{
let
self
=
this
;
self
.
optionData
=
option
;
console
.
log
(
option
)
self
.
initial
();
},
methods
:
{
...
...
@@ -96,26 +98,46 @@ export default {
self
.
title
=
'确认支付'
;
break
;
}
},
jump
()
{
console
.
log
(
'22222'
)
// 获取所有页面栈实例列表
let
pages
=
getCurrentPages
();
// 上一页页面实例
let
prevPage
=
pages
[
pages
.
length
-
2
];
// 修改上一页data里面的times参数值为100
prevPage
.
$vm
.
times
=
100
;
//uni.navigateTo跳转的返回,默认1为返回上一级
uni
.
navigateBack
({
delta
:
1
});
console
.
log
(
'1111111'
)
}
}
};
};
</
script
>
<
style
>
page
{
page
{
background-color
:
#f7f8f9
;
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
.index
{
.index
{
&-content
{
margin
:
24
rpx
20
rpx
;
width
:
calc
(
100%
-
20
rpx
*
2
);
&-item
{
margin-bottom
:
30
rpx
;
&-nav
{
margin-bottom
:
20
rpx
;
>
text
{
>text
{
display
:
inline-block
;
width
:
6
rpx
;
height
:
36
rpx
;
...
...
@@ -123,24 +145,29 @@ page {
border-radius
:
3
rpx
;
margin-right
:
10
rpx
;
}
>
view
{
>
view
{
font-size
:
28
rpx
;
font-family
:
AlibabaPuHuiTi-Medium
,
AlibabaPuHuiTi
;
font-weight
:
500
;
color
:
#333333
;
>
text
{
>text
{
color
:
#2c66ff
;
}
}
}
&
-nav
:last-child
{
margin-bottom
:
0
rpx
;
}
&
-navx
{
>
text
{
>
text
{
background
:
#666666
;
}
}
&
-qu
{
width
:
710
rpx
;
height
:
200
rpx
;
...
...
@@ -150,22 +177,27 @@ page {
overflow
:
hidden
;
margin-bottom
:
20
rpx
;
position
:
relative
;
&-bg,
&-bl
{
width
:
710
rpx
;
height
:
200
rpx
;
}
&
-bg
{
position
:
absolute
;
left
:
0
rpx
;
top
:
0
rpx
;
}
&
-bl
{
position
:
relative
;
>
text,
>
view
{
>text,
>view
{
position
:
absolute
;
}
&
-tl
{
font-size
:
20
rpx
;
font-family
:
AlibabaPuHuiTi-Regular
,
AlibabaPuHuiTi
;
...
...
@@ -174,24 +206,29 @@ page {
top
:
4
rpx
;
left
:
62
rpx
;
}
&
-tlx
{
color
:
#666666
;
}
&
-lk
{
bottom
:
20
rpx
;
left
:
20
rpx
;
&-t
{
font-size
:
30
rpx
;
font-family
:
AlibabaPuHuiTi-Regular
,
AlibabaPuHuiTi
;
font-weight
:
400
;
color
:
#333333
;
>
text
:
nth-child
(
1
)
{
>
text
:
nth-child
(
1
)
{
font-size
:
40
rpx
;
font-family
:
AlibabaPuHuiTi-Medium
,
AlibabaPuHuiTi
;
font-weight
:
500
;
color
:
#2c66ff
;
}
>
text
:nth-child
(
2
)
{
>
text
:nth-child
(
2
)
{
font-size
:
72
rpx
;
font-family
:
AlibabaPuHuiTi-Bold
,
AlibabaPuHuiTi
;
font-weight
:
bold
;
...
...
@@ -199,33 +236,41 @@ page {
margin-right
:
20
rpx
;
}
}
&
-tx
{
color
:
#999999
;
>
text
:
nth-child
(
1
)
{
>
text
:
nth-child
(
1
)
{
color
:
#999999
;
}
>
text
:nth-child
(
2
)
{
>
text
:nth-child
(
2
)
{
color
:
#999999
;
}
}
&
-b
{
font-size
:
20
rpx
;
font-family
:
AlibabaPuHuiTi-Regular
,
AlibabaPuHuiTi
;
font-weight
:
400
;
color
:
#333333
;
}
&
-bx
{
color
:
#999999
;
}
}
&
-rk
{
width
:
170
rpx
;
height
:
200
rpx
;
right
:
0
rpx
;
top
:
0
rpx
;
>
view
{
>view
{
text-align
:
center
;
}
&
-a
{
font-size
:
20
rpx
;
font-family
:
AlibabaPuHuiTi-Regular
,
AlibabaPuHuiTi
;
...
...
@@ -233,13 +278,16 @@ page {
color
:
#ffffff
;
margin-top
:
26
rpx
;
}
&
-ax
{
color
:
#999999
;
margin-top
:
21
rpx
;
}
&
-axl
{
margin-top
:
21
rpx
;
}
&
-b
{
font-size
:
30
rpx
;
font-family
:
AlibabaPuHuiTi-Medium
,
AlibabaPuHuiTi
;
...
...
@@ -247,13 +295,16 @@ page {
color
:
#ffffff
;
margin-top
:
10
rpx
;
}
&
-bx
{
color
:
#666666
;
margin-top
:
5
rpx
;
}
&
-bxl
{
margin-top
:
5
rpx
;
}
&
-c
,
&
-d
{
font-size
:
20
rpx
;
...
...
@@ -262,17 +313,21 @@ page {
color
:
#ffffff
;
margin-top
:
10
rpx
;
}
&
-cx
{
color
:
#999999
;
margin-top
:
5
rpx
;
}
&
-cxl
{
margin-top
:
5
rpx
;
}
&
-d
{
font-weight
:
500
;
margin-top
:
21
rpx
;
}
&
-dx
{
width
:
120
rpx
;
border
:
1
rpx
solid
#999999
;
...
...
@@ -283,6 +338,7 @@ page {
color
:
#999999
;
margin-top
:
17
rpx
;
}
&
-dxl
{
width
:
120
rpx
;
height
:
44
rpx
;
...
...
@@ -299,5 +355,5 @@ page {
}
}
}
}
}
</
style
>
pages/demand/index.vue
View file @
8c2cb0e5
...
...
@@ -8,16 +8,16 @@
<view
v-show=
"subscript == index"
class=
"content-tabs-text-area"
></view>
</view>
</view>
<
template
v-if=
"arr && arr.length"
>
<
!--
<template
v-if=
"arr && arr.length"
>
--
>
<comindex
class=
"content-mindex"
:subscript=
'subscript'
></comindex>
<
/
template
>
<view
v-else
class=
"diagram"
>
<
!--
</
template
>
--
>
<!--
<view v-else class="diagram">
<image src="@/static/icon/qst.png" mode=""></image>
<view class="">
暂无数据
</view>
</view>
<com-tabbar
@
tabBarChange=
'tabBarChange'
:list=
" [{
</view>
-->
<com-tabbar
:list=
" [{
name: '首页',
icon: '/static/tabbar/tb1.png',
selectIcon:'/static/tabbar/td1.png',
...
...
@@ -84,13 +84,6 @@
}
},
methods
:
{
tabBarChange
(
url
,
type
)
{
if
(
type
==
'type'
)
{
uniGo
.
reLaunch
({
url
:
url
});
}
},
jump
(
ind
)
{
this
.
subscript
=
ind
}
...
...
pages/home/index.vue
View file @
8c2cb0e5
...
...
@@ -42,7 +42,7 @@
</view>
<com-navbar
:leftIcon=
"false"
:homeShow=
"false"
bgColor=
"transparent"
title=
"首页"
:titleStyle=
"
{ color: '#FFFFFF', fontSize: '32rpx',scrollTopHeader: scrollTopHeader }" />
<com-tabbar
@
tabBarChange=
'tabBarChange'
:list=
"tabBarList"
></com-tabbar>
<com-tabbar
:list=
"tabBarList"
></com-tabbar>
</view>
</
template
>
...
...
@@ -100,13 +100,6 @@
url
:
`/home/index/index`
});
},
tabBarChange
(
url
,
type
)
{
if
(
type
==
'type'
)
{
this
.
$uniGo
.
reLaunch
({
url
:
url
});
}
}
}
}
</
script
>
...
...
@@ -119,7 +112,6 @@
.content
{
display
:
flex
;
flex-direction
:
column
;
//
align-items
:
center
;
justify-content
:
center
;
&-swiper
{
...
...
@@ -149,7 +141,6 @@
>
view
:nth-child
(
2
)
{
font-size
:
28
rpx
;
font-family
:
AlibabaPuHuiTi-Medium
,
AlibabaPuHuiTi
;
font-weight
:
500
;
color
:
#333333
;
}
...
...
@@ -173,7 +164,6 @@
>
view
:
nth-child
(
1
)
{
font-size
:
28
rpx
;
font-family
:
AlibabaPuHuiTi-Medium
,
AlibabaPuHuiTi
;
font-weight
:
700
;
color
:
#333333
;
margin-top
:
8
rpx
;
...
...
@@ -182,7 +172,6 @@
>
view
:nth-child
(
2
)
{
margin-top
:
6
rpx
;
font-size
:
24
rpx
;
font-family
:
AlibabaPuHuiTi-Regular
,
AlibabaPuHuiTi
;
font-weight
:
400
;
color
:
#444444
;
}
...
...
@@ -190,7 +179,6 @@
>
view
:nth-child
(
3
)
{
margin-top
:
9
rpx
;
font-size
:
20
rpx
;
font-family
:
AlibabaPuHuiTi-Regular
,
AlibabaPuHuiTi
;
font-weight
:
400
;
color
:
#5281FF
;
}
...
...
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