Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
group-buy-ui
Commits
bf7fa7fb
Commit
bf7fa7fb
authored
Sep 25, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: fix
parent
9c9fb9da
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
17 deletions
+37
-17
share-icon.png
src/assets/images/share-icon.png
+0
-0
index.less
src/views/goodsDetail/index.less
+12
-0
index.vue
src/views/goodsDetail/index.vue
+8
-0
index.vue
src/views/pay/index.vue
+17
-17
No files found.
src/assets/images/share-icon.png
0 → 100644
View file @
bf7fa7fb
4.41 KB
src/views/goodsDetail/index.less
View file @
bf7fa7fb
...
...
@@ -43,6 +43,18 @@
.goods {
&-share-button{
width: 40px;
height: 40px;
position: fixed;
right: 0;
bottom: 120px;
z-index: 3;
/deep/ img {
width: 40px;
height: 40px;
}
}
&-container {
padding-bottom: 60px;
box-sizing: border-box;
...
...
src/views/goodsDetail/index.vue
View file @
bf7fa7fb
<
template
>
<div
v-if=
"showPage"
class=
"goods"
style=
"height: 100%"
>
<div
class=
"goods-share-button"
>
<cr-image
src=
"@/assets/images/share-icon.png"
width=
""
height=
""
class=
"goods-share-button-img"
/>
</div>
<!-- 主体 -->
<div
class=
"goods-container"
>
<!-- 轮播图 -->
...
...
src/views/pay/index.vue
View file @
bf7fa7fb
...
...
@@ -124,7 +124,7 @@ import {
import
{
pay
,
prepay
,
//
getCoupon,
getCoupon
,
ocrFaceId
,
queryPayInfo
,
kaGetNextUrl
,
...
...
@@ -380,22 +380,22 @@ export default {
}
},
/* 获取优惠券信息 */
//
async getCouponList(orderNo) {
//
const [data] = await getCoupon({ orderNo: orderNo });
//
this.payCouponList = [];
//
if (data && data.coupons) {
//
data.coupons.forEach(item => {
//
// 享花券
//
if (item.couponCategory === 21) {
//
this.payCouponList.push({
//
...item,
//
id: item.pickupId,
//
pickupAble: 1
//
});
//
}
//
});
//
}
//
},
async
getCouponList
(
orderNo
)
{
const
[
data
]
=
await
getCoupon
({
orderNo
:
orderNo
});
this
.
payCouponList
=
[];
if
(
data
&&
data
.
coupons
)
{
data
.
coupons
.
forEach
(
item
=>
{
// 享花券
if
(
item
.
couponCategory
===
21
)
{
this
.
payCouponList
.
push
({
...
item
,
id
:
item
.
pickupId
,
pickupAble
:
1
});
}
});
}
},
nextAction
:
throttle
(
function
()
{
const
trackParams
=
{
order_id
:
this
.
orderNo
,
...
...
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