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
9798c1a0
Commit
9798c1a0
authored
Feb 18, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8fdfc077
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
visaDetail.vue
pages/visa/visaDetail.vue
+25
-0
visa_SureOrder.vue
pages/visa/visa_SureOrder.vue
+1
-1
No files found.
pages/visa/visaDetail.vue
View file @
9798c1a0
...
@@ -481,6 +481,18 @@
...
@@ -481,6 +481,18 @@
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
try
{
try
{
if
(
res
.
data
.
VisaProductInfo
.
FeeInclude
.
indexOf
(
'<img'
)
!=-
1
){
res
.
data
.
VisaProductInfo
.
FeeInclude
=
this
.
imgTagAddStyle
(
res
.
data
.
VisaProductInfo
.
FeeInclude
)
}
if
(
res
.
data
.
VisaProductInfo
.
FeeNonInclude
.
indexOf
(
'<img'
)
!=-
1
){
res
.
data
.
VisaProductInfo
.
FeeNonInclude
=
this
.
imgTagAddStyle
(
res
.
data
.
VisaProductInfo
.
FeeNonInclude
)
}
if
(
res
.
data
.
VisaProductInfo
.
VisaMaterials
.
indexOf
(
'<img'
)
!=-
1
){
res
.
data
.
VisaProductInfo
.
VisaMaterials
=
this
.
imgTagAddStyle
(
res
.
data
.
VisaProductInfo
.
VisaMaterials
)
}
if
(
res
.
data
.
VisaProductInfo
.
WarmTip
.
indexOf
(
'<img'
)
!=-
1
){
res
.
data
.
VisaProductInfo
.
WarmTip
=
this
.
imgTagAddStyle
(
res
.
data
.
VisaProductInfo
.
WarmTip
)
}
this
.
dataList
=
res
.
data
this
.
dataList
=
res
.
data
this
.
getUserCouponList
()
this
.
getUserCouponList
()
// #ifdef MP-ALIPAY
// #ifdef MP-ALIPAY
...
@@ -518,6 +530,19 @@
...
@@ -518,6 +530,19 @@
}
}
);
);
},
},
imgTagAddStyle
(
htmlstr
){
//正则匹配所有img标签
//var regex0 = new RegExp("(i?)(\
<
img
)([
^
\
>
]
+
\
>
)
","
gmi
");
//正则匹配不含style="" 或 style='' 的img标签
var regex1 = new RegExp("
(
i
?)(
\
<
img
)(?
!
(.
*
?
style
=
[
'
\
"](.*)['
\
"])[^
\
>]+
\
>)"
,
"gmi"
);
//给不含style="" 或 style='' 的img标签加上style=""
htmlstr
=
htmlstr
.
replace
(
regex1
,
"$2 style=
\"\"
$3"
);
//正则匹配含有style的img标签
var
regex2
=
new
RegExp
(
"(i?)(
\
<img.*?style=['
\"
])([^
\
>]+
\
>)"
,
"gmi"
);
//在img标签的style里面增加css样式(这里增加的样式:display:block;max-width:100%;height:auto;border:5px solid red;)
htmlstr
=
htmlstr
.
replace
(
regex2
,
"$2display:block;max-width:100%;height:auto;$3"
);
return
htmlstr
;
},
//立即预定
//立即预定
goReserce
()
{
goReserce
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
...
...
pages/visa/visa_SureOrder.vue
View file @
9798c1a0
...
@@ -443,7 +443,7 @@
...
@@ -443,7 +443,7 @@
</view>
</view>
<view
class=
"jz_form"
style=
"margin: 40rpx 0; padding: 0"
>
<view
class=
"jz_form"
style=
"margin: 40rpx 0; padding: 0"
>
<view
class=
"form-items"
>
<view
class=
"form-items"
>
<view
class=
"label"
>
支付
</view>
<view
class=
"label"
>
总金额
</view>
<view
class=
"val f14 regular"
style=
"text-align: right"
>
<view
class=
"val f14 regular"
style=
"text-align: right"
>
<text
style=
"margin-right: 30rpx"
>
{{
orderData
.
OrderModel
.
PeopleNum
}}
人
</text>
<text
style=
"margin-right: 30rpx"
>
{{
orderData
.
OrderModel
.
PeopleNum
}}
人
</text>
<text
class=
"red"
>
¥
<text
class=
"red"
>
¥
...
...
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