Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
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
pseer
gxpt_wechat
Commits
1496b1d3
Commit
1496b1d3
authored
Nov 28, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
56dfddfc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
14 deletions
+40
-14
index.js
api/index.js
+6
-2
index.vue
pages/index/index.vue
+9
-8
useCouponIllustrate.vue
pages/useCouponIllustrate/useCouponIllustrate.vue
+25
-4
No files found.
api/index.js
View file @
1496b1d3
...
...
@@ -67,4 +67,9 @@ export const uploadFile=(data)=> {
}
});
})
}
\ No newline at end of file
}
export
const
getProtocol
=
(
key
)
=>
{
let
url
=
`/protocol/
${
key
}
`
return
http
.
get
(
url
)
}
pages/index/index.vue
View file @
1496b1d3
...
...
@@ -86,12 +86,13 @@
<view
class=
"flex-row room-type"
>
<view
class=
"flex-col"
>
<view
v-for=
"(val,i) in item.packList"
:key=
"i"
v-if=
"i
<2
"
class=
"item"
>
<view
class=
"part-1"
>
<
!--
<
view
class=
"part-1"
>
<text>
惠
</text>
</view>
</view>
-->
<view
class=
"part-2"
>
<text>
{{
val
.
duration
}}
小时套餐:
</text>
<text
class=
"text-red text-bold text-lg"
>
¥
{{
val
.
price
}}
/场
</text>
<text
class=
"text-sm"
>
{{
val
.
duration
}}
小时套餐:¥
</text>
<text
class=
"text-red text-bold text-xl"
>
{{
val
.
price
}}
</text>
<text
class=
"text-sm"
>
/场
</text>
</view>
</view>
</view>
...
...
@@ -100,7 +101,7 @@
<view
class=
"flex-between confirm-box"
>
<view
class=
"flex-priceBox"
>
<
text
style=
"color: #e70486;margin-left: -6rpx;"
>
¥
</text><text
class=
"text-pink"
>
{{
item
.
price
}}
</text><text>
/小时
</text
>
<
!--
<text
style=
"color: #e70486;margin-left: -6rpx;"
>
¥
</text><text
class=
"text-pink"
>
{{
item
.
price
}}
</text><text
class=
"text-sm"
>
/小时
</text>
--
>
</view>
<view
class=
"confirm"
>
...
...
@@ -991,7 +992,7 @@
//
height
:
44
rpx
;
//
background
:
#FFFFFF
;
//
border
:
2
rpx
solid
#fc3f21
;
margin
:
6
upx
1%
;
margin
:
0
1%
;
overflow
:
hidden
;
.part-1{
...
...
@@ -1013,7 +1014,7 @@
//
justify-content
:
center
;
align-items
:
center
;
height
:
100%
;
padding
:
8
upx
;
padding
:
4
upx
8
upx
;
//
border-right
:
2
upx
solid
#fc3f21
;
}
.part-3
{
...
...
@@ -1021,7 +1022,7 @@
justify-content
:
center
;
align-items
:
center
;
height
:
100%
;
padding
:
8
upx
;
padding
:
4
upx
8
upx
;
}
//
text
{
//
font-size
:
25
upx
;
...
...
pages/useCouponIllustrate/useCouponIllustrate.vue
View file @
1496b1d3
<
template
>
<view
class=
"flex-col use-coupon-illustrate"
>
<view
class=
"
title-box
"
>
<text
class=
"text-pink text-bold text-xl"
>
优惠券使用教程
</text>
<view
class=
"
content"
v-html=
"content
"
>
</view>
</view>
</
template
>
<
script
>
import
{
getProtocol
}
from
"@/api/index.js"
export
default
{
data
()
{
return
{
content
:
''
};
},
onLoad
()
{
this
.
onLoading
()
},
methods
:{
onLoading
(){
getProtocol
(
'coupon_use_process'
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
){
uni
.
setNavigationBarTitle
({
title
:
res
.
data
.
data
.
protocolTitle
})
this
.
content
=
res
.
data
.
data
.
content
}
})
}
}
}
</
script
>
...
...
@@ -20,7 +37,11 @@
.use-coupon-illustrate
{
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
width
:
100vw
;
padding
:
20
upx
0
;
.content{
width
:
100%
;
}
.title-box
{
display
:
flex
;
padding
:
30
upx
;
...
...
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