Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b16a4a44
authored
Nov 15, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
e573edaf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
src/components/Poster.vue
src/components/Share.vue
src/store/modules/app.js
src/views/coupon/index.vue
src/components/Poster.vue
View file @
b16a4a4
...
...
@@ -65,9 +65,11 @@ export default {
this
.
showToast
(
'请长按海报保存'
)
},
share
()
{
console
.
log
(
this
)
let
{
currentItem
,
apiName
,
activityData
}
=
this
let
flag
=
apiName
!=
'shopmallApi'
// if (currentItem.userId) {
// } else {
window
.
$wx
.
shareAppMessage
({
imgUrl
:
flag
?
currentItem
.
shareImgUrl
:
currentItem
.
goodsImage
,
title
:
flag
?
currentItem
.
name
:
currentItem
.
goodsName
,
...
...
@@ -75,7 +77,7 @@ export default {
}).
then
(
res
=>
{
this
.
showToast
(
'发送成功'
)
})
// }
}
}
}
...
...
src/components/Share.vue
View file @
b16a4a4
...
...
@@ -98,9 +98,9 @@ export default {
onSelect
({
type
,
className
})
{
let
{
currentItem
,
apiName
,
activityData
}
=
this
switch
(
type
)
{
/**分享微信 */
case
1
:
let
{
userId
}
=
currentItem
/**卡券分享微信 */
if
(
apiName
==
'couponApi'
||
apiName
==
'boutiquecouponApi'
)
{
let
{
id
,
couponName
}
=
currentItem
const
desc
=
'您的专属服务顾问为您发来了优惠券,请点击领取~'
...
...
@@ -142,10 +142,15 @@ export default {
}
this
.
cancel
()
break
;
/**分享海报 */
case
2
:
if
(
className
)
return
if
(
className
)
{
this
.
showToast
(
'无对应内容'
)
return
}
this
.
showPoster
=
true
break
;
/**复制 */
case
3
:
let
{
id
}
=
currentItem
this
.
showLoading
()
...
...
src/store/modules/app.js
View file @
b16a4a4
...
...
@@ -102,12 +102,12 @@ const actions = {
}
}
else
{
/**没有账号 */
window
.
location
.
href
=
`
${
url
}
common/nothing`
//
window.location.href = `${url}common/nothing`
}
}
else
{
/**账号过期 (暂时没有字段判断是否过期) */
Notify
(
message
)
window
.
location
.
href
=
`
${
url
}
common/overdue`
//
window.location.href = `${url}common/overdue`
}
})
}
else
{
...
...
src/views/coupon/index.vue
View file @
b16a4a4
...
...
@@ -93,7 +93,7 @@ export default {
methods
:
{
getList_0
(
pageNum
)
{
let
{
list
}
=
this
boutiquecouponApi
.
getBoutiqueCouponList
({
currentPage
:
pageNum
}).
then
(
res
=>
{
boutiquecouponApi
.
getBoutiqueCouponList
({
pageNum
}).
then
(
res
=>
{
console
.
log
(
'精品礼券'
,
res
)
this
.
flag
=
true
this
.
list
=
list
.
concat
(
res
.
list
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment