Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yimu
h5-front
Commits
5a342125
Commit
5a342125
authored
Mar 08, 2022
by
verestrasz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1697ee3e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
29 deletions
+17
-29
order.js
src/mixins/order.js
+0
-13
blind-detail.vue
src/views/blind-box/blind-detail.vue
+2
-12
blind-sku.vue
src/views/blind-box/blind-sku.vue
+2
-2
goods-detail.vue
src/views/goods/goods-detail.vue
+13
-2
No files found.
src/mixins/order.js
View file @
5a342125
...
@@ -108,19 +108,6 @@ export const OrderMixin = {
...
@@ -108,19 +108,6 @@ export const OrderMixin = {
this
.
$hideLoading
();
this
.
$hideLoading
();
},
},
});
});
this
.
$api
({
apiName
:
"cancelOrder"
,
header
:{
"apiToken"
:
apiToken
},
postData
:
this
.
data
.
payId
,
success
:
()
=>
{
this
.
data
.
orderState
=
OrderStatus
.
CLOSE
;
},
complete
:
()
=>
{
this
.
$hideLoading
();
},
});
}
else
{
}
else
{
this
.
$hideLoading
();
this
.
$hideLoading
();
}
}
...
...
src/views/blind-box/blind-detail.vue
View file @
5a342125
...
@@ -33,12 +33,12 @@
...
@@ -33,12 +33,12 @@
<div
class=
"header"
>
<div
class=
"header"
>
商品详情
商品详情
</div>
</div>
<div
class=
"detail"
v-html=
"data
&& getHtml(data.detail)
"
v-finishHtml
></div>
<div
class=
"detail"
v-html=
"data
&&data.detail
"
v-finishHtml
></div>
</div>
</div>
<van-popup
v-model=
"showPopup"
position=
"bottom"
round
closeable
>
<van-popup
v-model=
"showPopup"
position=
"bottom"
round
closeable
>
<div
class=
"blind-rule"
>
<div
class=
"blind-rule"
>
<div
class=
"title"
>
规则说明
</div>
<div
class=
"title"
>
规则说明
</div>
<div
class=
"content"
v-html=
"data &&
getHtml(data.blindBoxRule)"
></div>
<div
class=
"content"
v-html=
"data &&
data.blindBoxRule"
v-finishHtml
></div>
</div>
</div>
</van-popup>
</van-popup>
</div>
</div>
...
@@ -75,16 +75,6 @@ export default {
...
@@ -75,16 +75,6 @@ export default {
handleRule
()
{
handleRule
()
{
this
.
showPopup
=
true
this
.
showPopup
=
true
},
},
getHtml
(
data
){
if
(
data
){
var
regex1
=
new
RegExp
(
"(i?)(
\
<p)(?!(.*?style=['
\"
](.*)['
\"
])[^
\
>]+
\
>)"
,
'g'
)
data
=
data
.
replace
(
regex1
,
'$2 style="padding:0 10px"$3'
)
return
data
}
else
{
return
""
}
}
},
},
};
};
</
script
>
</
script
>
...
...
src/views/blind-box/blind-sku.vue
View file @
5a342125
...
@@ -101,10 +101,10 @@ export default {
...
@@ -101,10 +101,10 @@ export default {
padding: 42px 12px 20px;
padding: 42px 12px 20px;
background: url("~@/assets/img/blind-box-sku.png") no-repeat;
background: url("~@/assets/img/blind-box-sku.png") no-repeat;
background-size: 100%;
background-size: 100%;
&-box {
&-box {
width: 100%;
width: 100%;
overflow-x: scroll;
overflow-x: auto;
overflow-y: hidden;
}
}
}
}
.blind-card {
.blind-card {
...
...
src/views/goods/goods-detail.vue
View file @
5a342125
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<!--
<m-icon
icon=
"icon-goods-desc"
:size=
"12"
className=
"icon"
/>
-->
<!--
<m-icon
icon=
"icon-goods-desc"
:size=
"12"
className=
"icon"
/>
-->
<div
class=
"title"
>
简介
</div>
<div
class=
"title"
>
简介
</div>
</div>
</div>
<div
class=
"detail"
v-html=
"data && data.detail"
></div>
<div
class=
"detail"
v-html=
"data && data.detail"
v-finishHtml
></div>
<div
class=
"desc hash flex-default"
>
<div
class=
"desc hash flex-default"
>
<!--
<m-icon
icon=
"icon-goods-desc"
:size=
"12"
className=
"icon"
/>
-->
<!--
<m-icon
icon=
"icon-goods-desc"
:size=
"12"
className=
"icon"
/>
-->
<div
class=
"title"
>
溯源
</div>
<div
class=
"title"
>
溯源
</div>
...
@@ -51,7 +51,18 @@ export default {
...
@@ -51,7 +51,18 @@ export default {
props
:
{
props
:
{
data
:
Object
,
data
:
Object
,
},
},
directives
:{
finishHtml
:{
update
(
el
)
{
let
children
=
el
.
childNodes
for
(
let
item
of
children
){
if
(
item
.
style
.
paddingLeft
!==
'10px'
){
item
.
style
.
padding
=
"0 10px"
}
}
}
},
},
computed
:
{
computed
:
{
progressWidth
()
{
progressWidth
()
{
return
this
.
data
&&
this
.
data
.
sales
/
this
.
data
.
circulation
*
100
return
this
.
data
&&
this
.
data
.
sales
/
this
.
data
.
circulation
*
100
...
...
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