Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
zhengke
jz_Travel
Commits
372ebd84
Commit
372ebd84
authored
Jan 16, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3422f301
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
159 additions
and
115 deletions
+159
-115
index.vue
pages/coupon/index/index.vue
+147
-108
jz_Reserve.vue
pages/jiuzhai/jz_Reserve.vue
+12
-7
No files found.
pages/coupon/index/index.vue
View file @
372ebd84
...
@@ -2,49 +2,44 @@
...
@@ -2,49 +2,44 @@
<view
class=
"couponStyle"
:style=
"
{ height: contentHeight }" @click="lineShow=false">
<view
class=
"couponStyle"
:style=
"
{ height: contentHeight }" @click="lineShow=false">
<!--
<u-tabs
:list=
"list"
:is-scroll=
"false"
:current=
"currentIndex"
@
change=
"change"
:active-color=
"mainColor"
:show-bar=
"showBar"
<!--
<u-tabs
:list=
"list"
:is-scroll=
"false"
:current=
"currentIndex"
@
change=
"change"
:active-color=
"mainColor"
:show-bar=
"showBar"
height=
"100"
></u-tabs>
-->
height=
"100"
></u-tabs>
-->
<view
class=
"couponHeaderBox"
>
<view
class=
"couponHeaderBox"
>
<view
class=
"couponHeader"
>
<view
class=
"couponHeader"
>
<view
class=
"couponHeadLeft"
>
<view
class=
"couponHeadLeft"
>
<view
class=
"couponHeadLText"
@
click
.
stop=
"lineShow=!lineShow"
>
<view
class=
"couponHeadLText"
@
click
.
stop=
"lineShow=!lineShow"
>
<text
class=
"couponHeadLTextL"
>
{{
lineName
}}
</text>
<text
class=
"couponHeadLTextL"
>
{{
lineName
}}
</text>
<view><u-icon
:name=
"!lineShow?'arrow-down':'arrow-up'"
size=
"24"
></u-icon></view>
<view>
<u-icon
:name=
"!lineShow?'arrow-down':'arrow-up'"
size=
"24"
></u-icon>
</view>
</view>
</view>
</view>
</view>
<view
class=
"couponHeadRight"
>
<view
class=
"couponHeadRight"
>
<text
v-for=
"(item,index) in list"
:key=
"index"
<text
v-for=
"(item,index) in list"
:key=
"index"
:class=
"[msg.CouponType==item.id?'active':'']"
@
click
.
stop=
"msg.CouponType=item.id,ResetQuery()"
>
{{
item
.
name
}}
</text>
:class=
"[msg.CouponType==item.id?'active':'']"
@
click
.
stop=
"msg.CouponType=item.id,ResetQuery()"
>
{{
item
.
name
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"couponLine"
v-if=
"lineShow"
>
<view
class=
"couponLine"
v-if=
"lineShow"
>
<view
class=
"couponLineT"
v-for=
"(item,index) in lineList"
<view
class=
"couponLineT"
v-for=
"(item,index) in lineList"
>
>
<view
class=
"couponLineAllName"
:class=
"[msg.lineId==item.id?'active':'']"
@
click
.
stop=
"msg.lineId=item.id,lineName=item.text"
>
<view
class=
"couponLineAllName"
:class=
"[msg.lineId==item.id?'active':'']"
@
click
.
stop=
"msg.lineId=item.id,lineName=item.text"
>
<text>
{{
item
.
text
}}
</text>
<text>
{{
item
.
text
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<u-empty
v-if=
"couponDataList.length == 0 && !loading"
text=
"暂无相关优惠券"
mode=
"coupon"
></u-empty>
<u-empty
v-if=
"couponDataList.length == 0 && !loading"
text=
"暂无相关优惠券"
mode=
"coupon"
></u-empty>
<view
v-if=
"couponDataList.length > 0"
style=
" height: calc(100vh - 50px); width: calc(100vw); overflow: hidden;padding-bottom: 50px;"
>
<view
v-if=
"couponDataList.length > 0"
style=
" height: calc(100vh - 50px); width: calc(100vw); overflow: hidden;padding-bottom: 50px;"
>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<view
class=
"couponList"
>
<view
class=
"couponList"
>
<view
class=
"couponListBox"
<view
class=
"couponListBox"
:class=
"
{
:class=
"
{
'active0': x.couponsType,'active1': '',
'active0': x.couponsType,'active1': '',
'active2': '','active3': '',
'active2': '','active3': '',
'active4': '','active5': '',
'active4': '','active5': '',
'active6': '','active7': '',
'active6': '','active7': '',
'active8': '',
'active8': '',
}"
}"
v-for="(x, i) in couponDataList" :key="i">
v-for="(x, i) in couponDataList" :key="i">
<view
class=
"item"
>
<view
class=
"item"
>
<view
<view
:style=
"
{'background-image':`url(${x.backGroubd}) `}" class="couponItemLeft">
:style=
"
{'background-image':`url(${x.backGroubd}) `}"
class="couponItemLeft"
>
<view
class=
"miane"
>
<view
class=
"miane"
>
<view
class=
"money"
>
<view
class=
"money"
>
<text
class=
"small"
style=
"font-family: microsoft yahei ui light;margin-right: 5rpx;"
v-if=
"x.couponsType == 1"
>
¥
</text>
<text
class=
"small"
style=
"font-family: microsoft yahei ui light;margin-right: 5rpx;"
v-if=
"x.couponsType == 1"
>
¥
</text>
...
@@ -58,7 +53,7 @@
...
@@ -58,7 +53,7 @@
<view
class=
"detail"
>
<view
class=
"detail"
>
<view
class=
"coupond"
>
<view
class=
"coupond"
>
<view
class=
"name"
style=
"font-family:'microsoft yahei ui light';"
>
<view
class=
"name"
style=
"font-family:'microsoft yahei ui light';"
>
<view
class=
"nameText"
>
{{
x
.
couponName
}}
</view>
<view
class=
"nameText"
>
{{
x
.
couponName
}}
</view>
<view
class=
"nameType"
>
跟团游
</view>
<view
class=
"nameType"
>
跟团游
</view>
</view>
</view>
<view
class=
"coupondLineTb"
>
<view
class=
"coupondLineTb"
>
...
@@ -122,10 +117,14 @@
...
@@ -122,10 +117,14 @@
msg
:
{
msg
:
{
"pageIndex"
:
1
,
"pageIndex"
:
1
,
"pageSize"
:
8
,
"pageSize"
:
8
,
"userId"
:
15625
,
//CustomerAccountId
"userId"
:
0
,
//CustomerAccountId
"CouponStatus"
:
1
,
// 优惠券状态 1未使用 2已使用 3已过期
"lineId"
:
0
,
//线路
"CouponType"
:
0
,
//优惠券类型
"lineteamId"
:
0
,
//系列ID
"lineId"
:
0
,
//线路
"CustomerType"
:
1
,
//0-同行,1-直客
"CouponStatus"
:
1
,
//优惠券状态 1未使用 2已使用 3已过期
"CouponsUseScope"
:
0
,
//优惠券使用范围 有枚举
"FromPlatform"
:
0
,
//来源平台 1app 2小程序
"CouponType"
:
0
,
//优惠券类型 1:抵用券,2:折扣卷
},
},
page_count
:
1
,
page_count
:
1
,
couponDataList
:
[],
couponDataList
:
[],
...
@@ -137,60 +136,64 @@
...
@@ -137,60 +136,64 @@
nomore
:
"没有更多了"
,
nomore
:
"没有更多了"
,
},
},
showBar
:
true
,
showBar
:
true
,
lineList
:[
lineList
:
[{
{
text
:
'通用'
,
text
:
'通用'
,
id
:
0
id
:
0
},
},
{
{
text
:
'跟团游'
,
text
:
'跟团游'
,
id
:
1
id
:
1
},
},
{
{
text
:
'自由行'
,
text
:
'自由行'
,
id
:
2
id
:
2
},
},
{
{
text
:
'景点'
,
text
:
'景点'
,
id
:
3
id
:
3
},
},
{
{
text
:
'当地游'
,
text
:
'当地游'
,
id
:
4
id
:
4
},
},
{
{
text
:
'定制游'
,
text
:
'定制游'
,
id
:
5
id
:
5
},
},
{
{
text
:
'美食'
,
text
:
'美食'
,
id
:
6
id
:
6
},
},
{
{
text
:
'门票'
,
text
:
'门票'
,
id
:
7
id
:
7
},
},
{
{
text
:
'签证'
,
text
:
'签证'
,
id
:
8
id
:
8
},
},
],
],
lineName
:
'通用'
,
lineName
:
'通用'
,
lineShow
:
false
,
lineShow
:
false
,
lineImgs
:[
lineImgs
:
[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322574781584.png'
,
//跟团游
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322574781584.png'
,
//跟团游
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322566159036.png'
,
//自由行
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322566159036.png'
,
//自由行
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322566207695.png'
,
//门票
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322566207695.png'
,
//门票
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726323205591893.png'
,
//当地游
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726323205591893.png'
,
//当地游
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726326034522587.png'
,
//定制游
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726326034522587.png'
,
//定制游
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322567374491.png'
,
//签证
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322567374491.png'
,
//签证
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322567423518.png'
,
//机票
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322567423518.png'
,
//机票
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322570001132.png'
,
//美食1
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322570001132.png'
,
//美食1
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322569972025.png'
,
//美食2
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726322569972025.png'
,
//美食2
]
],
b2bUserInfo
:
{},
};
};
},
},
created
()
{
created
()
{
this
.
b2bUserInfo
=
uni
.
getStorageSync
(
'b2b_user'
);
if
(
this
.
b2bUserInfo
&&
this
.
b2bUserInfo
.
accountId
)
{
this
.
msg
.
userId
=
this
.
b2bUserInfo
.
accountId
;
}
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
// #ifdef MP-ALIPAY
// #ifdef MP-ALIPAY
...
@@ -216,9 +219,9 @@
...
@@ -216,9 +219,9 @@
this
.
init
()
this
.
init
()
},
},
methods
:
{
methods
:
{
ResetQuery
(){
ResetQuery
()
{
this
.
couponDataList
=
[]
this
.
couponDataList
=
[]
this
.
msg
.
pageIndex
=
1
this
.
msg
.
pageIndex
=
1
this
.
init
()
this
.
init
()
},
},
change
(
index
)
{
change
(
index
)
{
...
@@ -234,14 +237,14 @@
...
@@ -234,14 +237,14 @@
this
.
apipost
(
"coupon_post_GetUserCanUseCouponPageList"
,
this
.
msg
,
(
res
)
=>
{
this
.
apipost
(
"coupon_post_GetUserCanUseCouponPageList"
,
this
.
msg
,
(
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
let
arrList
=
function
(
list
){
let
arrList
=
function
(
list
)
{
list
.
forEach
(
x
=>
{
list
.
forEach
(
x
=>
{
x
.
backGroubd
=
''
x
.
backGroubd
=
''
})
})
}
}
arrList
(
res
.
data
.
pageData
)
arrList
(
res
.
data
.
pageData
)
this
.
couponDataList
=
res
.
data
.
pageData
;
this
.
couponDataList
=
res
.
data
.
pageData
;
this
.
couponDataList
.
forEach
(
x
=>
{
this
.
couponDataList
.
forEach
(
x
=>
{
x
.
backGroubd
=
this
.
lineImgs
[
0
]
x
.
backGroubd
=
this
.
lineImgs
[
0
]
})
})
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
page_count
=
res
.
data
.
pageCount
;
...
@@ -283,12 +286,7 @@
...
@@ -283,12 +286,7 @@
"&type=1"
,
"&type=1"
,
});
});
}
}
},
}
goUrl
()
{
uni
.
navigateTo
({
url
:
"/pages/coupon/list/list"
,
});
},
},
},
};
};
</
script
>
</
script
>
...
@@ -378,6 +376,7 @@
...
@@ -378,6 +376,7 @@
align-items
:
center
;
align-items
:
center
;
color
:
#fff
;
color
:
#fff
;
}
}
.couponStyle
.item
.miane
.money
{
.couponStyle
.item
.miane
.money
{
font-family
:
"oswald"
;
font-family
:
"oswald"
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -417,6 +416,7 @@
...
@@ -417,6 +416,7 @@
display
:
flex
;
display
:
flex
;
flex-wrap
:
nowrap
;
flex-wrap
:
nowrap
;
}
}
.couponStyle
.item
.detail
.coupond
.date
{
.couponStyle
.item
.detail
.coupond
.date
{
font-family
:
"23"
;
font-family
:
"23"
;
margin-top
:
5px
;
margin-top
:
5px
;
...
@@ -433,43 +433,50 @@
...
@@ -433,43 +433,50 @@
.couponStyle
.item
.detail
.chosen
{
.couponStyle
.item
.detail
.chosen
{
width
:
20px
;
width
:
20px
;
}
}
.couponHeaderBox
{
.couponHeaderBox
{
background
:
#fff
;
background
:
#fff
;
position
:
relative
;
position
:
relative
;
}
}
.couponHeader
{
.couponHeader
{}
}
.couponHeader
{
.couponHeader
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
padding
:
10px
0
;
padding
:
10px
0
;
}
}
.couponHeadLeft
{
.couponHeadLeft
{
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
.couponHeadLText
{
.couponHeadLText
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
flex
:
1
;
flex
:
1
;
padding-left
:
43
rpx
;
padding-left
:
43
rpx
;
border-right
:
1
rpx
solid
rgba
(
207
,
207
,
207
,
.4
);
border-right
:
1
rpx
solid
rgba
(
207
,
207
,
207
,
.4
);
}
}
.couponHeadLTextL
{
.couponHeadLTextL
{
margin-right
:
42
rpx
;
margin-right
:
42
rpx
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
}
}
.couponHeadLText
view
{
.couponHeadLText
view
{
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-right
:
25
rpx
;
margin-right
:
25
rpx
;
}
}
.couponHeadLAuto
{
.couponHeadLAuto
{
flex-shrink
:
0
;
flex-shrink
:
0
;
width
:
2px
;
width
:
2px
;
background
:
rgba
(
207
,
207
,
207
,
1
);
background
:
rgba
(
207
,
207
,
207
,
1
);
}
}
.couponLine
{
.couponLine
{
width
:
100%
;
width
:
100%
;
position
:
absolute
;
position
:
absolute
;
top
:
75
rpx
;
top
:
75
rpx
;
...
@@ -477,30 +484,36 @@
...
@@ -477,30 +484,36 @@
z-index
:
2
;
z-index
:
2
;
background
:
#fff
;
background
:
#fff
;
}
}
.couponHeadRight
{
.couponHeadRight
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
flex
:
1
;
flex
:
1
;
}
}
.couponHeadRight
text
{
.couponHeadRight
text
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
0
31
rpx
;
padding
:
0
31
rpx
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.couponHeadRight
text
.active
{
.couponHeadRight
text
.active
{
color
:
rgba
(
238
,
68
,
84
,
1
);
color
:
rgba
(
238
,
68
,
84
,
1
);
}
}
.couponLine
{
.couponLine
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
padding
:
40
rpx
17
rpx
10
rpx
17
rpx
;
padding
:
40
rpx
17
rpx
10
rpx
17
rpx
;
border-top
:
1
rpx
solid
rgba
(
207
,
207
,
207
,
.4
);
border-top
:
1
rpx
solid
rgba
(
207
,
207
,
207
,
.4
);
}
}
.couponLineT
{
.couponLineT
{
padding
:
0
19.8
rpx
;
padding
:
0
19.8
rpx
;
}
}
.couponLineAllName
{
.couponLineAllName
{
width
:
142
rpx
;
width
:
142
rpx
;
padding
:
18
rpx
0
;
padding
:
18
rpx
0
;
border-radius
:
10
rpx
;
border-radius
:
10
rpx
;
...
@@ -509,18 +522,21 @@
...
@@ -509,18 +522,21 @@
text-align
:
center
;
text-align
:
center
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
}
}
.couponLineAllName.active
{
.couponLineAllName.active
{
background
:
rgba
(
238
,
68
,
84
,
.2
);
background
:
rgba
(
238
,
68
,
84
,
.2
);
color
:
#EE4454
;
color
:
#EE4454
;
}
}
.couponListBox
{
.couponListBox
{
margin-top
:
30
rpx
;
margin-top
:
30
rpx
;
width
:
100%
;
width
:
100%
;
padding
:
24
rpx
28
rpx
;
padding
:
24
rpx
28
rpx
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
20
rpx
;
border-radius
:
20
rpx
;
}
}
.couponItemLeft
{
.couponItemLeft
{
width
:
146
rpx
;
width
:
146
rpx
;
height
:
143
rpx
;
height
:
143
rpx
;
padding
:
0
36
rpx
;
padding
:
0
36
rpx
;
...
@@ -532,12 +548,14 @@
...
@@ -532,12 +548,14 @@
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
}
.couponStyle
.item
.detail
.coupond
.nameText
{
.couponStyle
.item
.detail
.coupond
.nameText
{
width
:
calc
(
100%-48
rpx
);
width
:
calc
(
100%-48
rpx
);
white-space
:
nowrap
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.couponStyle
.item
.detail
.coupond
.nameType
{
.couponStyle
.item
.detail
.coupond
.nameType
{
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-left
:
14
rpx
;
margin-left
:
14
rpx
;
...
@@ -546,60 +564,72 @@
...
@@ -546,60 +564,72 @@
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-weight
:
100
;
font-weight
:
100
;
}
}
.couponListBox.active0
.nameType
{
.couponListBox.active0
.nameType
{
color
:
rgba
(
29
,
152
,
144
,
1
);
color
:
rgba
(
29
,
152
,
144
,
1
);
background
:
rgba
(
97
,
220
,
212
,
1
);
background
:
rgba
(
97
,
220
,
212
,
1
);
}
}
.couponListBox.active1
.nameType
{
.couponListBox.active1
.nameType
{
color
:
rgba
(
212
,
84
,
42
,
1
);
color
:
rgba
(
212
,
84
,
42
,
1
);
background
:
rgba
(
253
,
127
,
86
,
1
);
background
:
rgba
(
253
,
127
,
86
,
1
);
}
}
.couponListBox.active2
.nameType
{
.couponListBox.active2
.nameType
{
color
:
rgba
(
60
,
103
,
160
,
1
);
color
:
rgba
(
60
,
103
,
160
,
1
);
background
:
rgba
(
106
,
168
,
249
,
1
);
background
:
rgba
(
106
,
168
,
249
,
1
);
}
}
.couponListBox.active3
.nameType
{
.couponListBox.active3
.nameType
{
color
:
rgba
(
204
,
60
,
110
,
1
);
color
:
rgba
(
204
,
60
,
110
,
1
);
background
:
rgba
(
243
,
108
,
155
,
1
);
background
:
rgba
(
243
,
108
,
155
,
1
);
}
}
.couponListBox.active4
.nameType
{
.couponListBox.active4
.nameType
{
color
:
rgba
(
40
,
132
,
163
,
1
);
color
:
rgba
(
40
,
132
,
163
,
1
);
background
:
rgba
(
24
,
184
,
237
,
1
);
background
:
rgba
(
24
,
184
,
237
,
1
);
}
}
.couponListBox.active5
.nameType
{
.couponListBox.active5
.nameType
{
color
:
rgba
(
184
,
163
,
19
,
1
);
color
:
rgba
(
184
,
163
,
19
,
1
);
background
:
rgba
(
233
,
235
,
51
,
1
);
background
:
rgba
(
233
,
235
,
51
,
1
);
}
}
.couponListBox.active6
.nameType
{
.couponListBox.active6
.nameType
{
color
:
rgba
(
186
,
110
,
1
,
1
);
color
:
rgba
(
186
,
110
,
1
,
1
);
background
:
rgba
(
255
,
150
,
0
,
1
);
background
:
rgba
(
255
,
150
,
0
,
1
);
}
}
.couponListBox.active7
.nameType
{
.couponListBox.active7
.nameType
{
color
:
rgba
(
55
,
143
,
71
,
1
);
color
:
rgba
(
55
,
143
,
71
,
1
);
background
:
rgba
(
31
,
193
,
62
,
1
);
background
:
rgba
(
31
,
193
,
62
,
1
);
}
}
.couponListBox.active8
.nameType
{
.couponListBox.active8
.nameType
{
color
:
#c6c6c6
;
color
:
#c6c6c6
;
background
:
#e1e1e1
;
background
:
#e1e1e1
;
}
}
.coupondLineTb
{
.coupondLineTb
{
position
:
relative
;
position
:
relative
;
}
}
.coupondLineTbt
{
.coupondLineTbt
{
height
:
56
rpx
;
height
:
56
rpx
;
word-break
:
break-all
;
word-break
:
break-all
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
overflow
:
hidden
;
font-size
:
22
rpx
;
font-size
:
22
rpx
;
font-weight
:
400
;
font-weight
:
400
;
margin-top
:
14
rpx
;
margin-top
:
14
rpx
;
line-height
:
28
rpx
;
line-height
:
28
rpx
;
color
:
#666
;
color
:
#666
;
}
}
.coupondLineGo
{
.coupondLineGo
{
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
top
:
56
rpx
;
top
:
56
rpx
;
...
@@ -611,31 +641,40 @@
...
@@ -611,31 +641,40 @@
text-align
:
center
;
text-align
:
center
;
line-height
:
44
rpx
;
line-height
:
44
rpx
;
}
}
.couponListBox.active0
.coupondLineGo
{
.couponListBox.active0
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#26C6A5
,
#61DCD4
);
background
:
linear-gradient
(
133deg
,
#26C6A5
,
#61DCD4
);
}
}
.couponListBox.active1
.coupondLineGo
{
.couponListBox.active1
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#FD7F56
,
#FFC291
);
background
:
linear-gradient
(
133deg
,
#FD7F56
,
#FFC291
);
}
}
.couponListBox.active2
.coupondLineGo
{
.couponListBox.active2
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#3C67A0
,
#88ADDD
);
background
:
linear-gradient
(
133deg
,
#3C67A0
,
#88ADDD
);
}
}
.couponListBox.active3
.coupondLineGo
{
.couponListBox.active3
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#F36C9B
,
#FEA7C6
);
background
:
linear-gradient
(
133deg
,
#F36C9B
,
#FEA7C6
);
}
}
.couponListBox.active4
.coupondLineGo
{
.couponListBox.active4
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#18B8ED
,
#89D6EF
);
background
:
linear-gradient
(
133deg
,
#18B8ED
,
#89D6EF
);
}
}
.couponListBox.active5
.coupondLineGo
{
.couponListBox.active5
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#EBD333
,
#EBF38C
);
background
:
linear-gradient
(
133deg
,
#EBD333
,
#EBF38C
);
}
}
.couponListBox.active6
.coupondLineGo
{
.couponListBox.active6
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#FF9600
,
#FFC600
);
background
:
linear-gradient
(
133deg
,
#FF9600
,
#FFC600
);
}
}
.couponListBox.active7
.coupondLineGo
{
.couponListBox.active7
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#1FC13E
,
#5AE19A
);
background
:
linear-gradient
(
133deg
,
#1FC13E
,
#5AE19A
);
}
}
.couponListBox.active8
.coupondLineGo
{
.couponListBox.active8
.coupondLineGo
{
background
:
linear-gradient
(
133deg
,
#c6c6c6
,
#e1e1e1
);
background
:
linear-gradient
(
133deg
,
#c6c6c6
,
#e1e1e1
);
}
}
</
style
>
</
style
>
pages/jiuzhai/jz_Reserve.vue
View file @
372ebd84
...
@@ -849,18 +849,23 @@
...
@@ -849,18 +849,23 @@
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'订单创建成功
,正在拉取微信支付
'
,
title
:
'订单创建成功
.
'
,
icon
:
'none'
icon
:
'none'
})
})
let
data
=
res
.
data
;
uni
.
redirectTo
({
data
.
CoverImg
=
this
.
currentPriceInfo
.
CoverImg
;
url
:
"/pages/jiuzhai/jz_MyOrder"
,
let
myData
=
JSON
.
stringify
(
data
);
});
this
.
orderData
=
encodeURIComponent
(
myData
);
// let data = res.data;
// data.CoverImg = this.currentPriceInfo.CoverImg;
// let myData = JSON.stringify(data);
// this.orderData = encodeURIComponent(myData);
// #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN
this
.
queren
(
data
.
OrderId
);
// 去掉支付
//this.queren(data.OrderId);
// #endif
// #endif
// #ifdef MP-ALIPAY
// #ifdef MP-ALIPAY
this
.
querenAli
(
data
);
//去掉支付
//this.querenAli(data);
// #endif
// #endif
}
else
{}
}
else
{}
this
.
submit
=
false
;
this
.
submit
=
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