Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
9ab00e09
Commit
9ab00e09
authored
Aug 31, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享跳转首页操作
parent
ce6dec53
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
9 deletions
+47
-9
goodsaction.vue
pages/goods/components/goodsaction.vue
+1
-1
draw.vue
pages/goods/draw.vue
+2
-1
goods.vue
pages/goods/goods.vue
+2
-1
index.vue
pages/index/index.vue
+36
-2
share.vue
pages/live/share.vue
+2
-1
refunds-detail.vue
pages/order/after-sale/refunds-detail.vue
+1
-1
order-detail.vue
pages/order/order-detail.vue
+1
-1
tuangood.vue
pages/pintuan/tuangood.vue
+2
-1
No files found.
pages/goods/components/goodsaction.vue
View file @
9ab00e09
...
...
@@ -84,7 +84,7 @@ export default {
let
t
=
getCurrentPages
();
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
let
uid
=
u
.
UserId
?
u
.
UserId
:
0
;
this
.
path
=
'/
'
+
t
[
t
.
length
-
1
].
route
+
"?id="
+
this
.
goodId
+
"&user_id="
+
uid
;
this
.
path
=
'/
pages/index/index?id='
+
this
.
goodId
+
"&user_id="
+
uid
+
'&JumpType=1'
;
//console.log(t[t.length - 1]);
this
.
favorStatus
=
this
.
favorite
;
...
...
pages/goods/draw.vue
View file @
9ab00e09
...
...
@@ -302,7 +302,8 @@ export default {
url
:
"/api/Mall/GetGoosPoster"
,
data
:
{
goodsId
:
this
.
id
,
path
:
"/pages/goods/goods?id="
+
this
.
id
+
"&user_id="
+
u
.
UserId
,
// path: "/pages/goods/goods?id=" + this.id + "&user_id=" + u.UserId,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
u
.
UserId
+
'&JumpType=1'
,
},
},
(
res
)
=>
{
...
...
pages/goods/goods.vue
View file @
9ab00e09
...
...
@@ -444,7 +444,8 @@ export default {
this
.
g
.
app_share_title
!=
null
&&
this
.
g
.
app_share_title
!=
""
?
this
.
g
.
app_share_title
:
this
.
g
.
name
,
path
:
"/pages/goods/goods?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
,
// path: "/pages/goods/goods?id=" + this.id + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
'&JumpType=1'
,
imageUrl
:
this
.
g
.
app_share_pic
!=
null
&&
this
.
g
.
app_share_pic
!=
""
?
this
.
g
.
app_share_pic
...
...
pages/index/index.vue
View file @
9ab00e09
...
...
@@ -130,6 +130,8 @@ export default {
showAuth
:
false
,
U
:{},
shopData
:{},
JumpType
:
0
,
GoodsId
:
29
,
};
},
components
:
{
...
...
@@ -221,7 +223,14 @@ export default {
withShareTicket
:
true
,
menus
:
[
"shareAppMessage"
,
"shareTimeline"
],
});
if
(
options
&&
options
.
JumpType
){
//跳转类型 1为详情2为直播列表
this
.
JumpType
=
options
.
JumpType
}
if
(
options
&&
options
.
id
){
//商品详情
this
.
GoodsId
=
options
.
id
}
else
{
this
.
GoodsId
=
options
.
GoodsId
?
options
.
GoodsId
:
29
;
}
that
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
wx
.
getUserInfo
({
success
:
function
(
res
)
{
...
...
@@ -233,6 +242,15 @@ export default {
Photo
:
res
.
userInfo
.
avatarUrl
,
};
that
.
updateuserinfo
(
msg
);
// 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout
(()
=>
{
if
(
that
.
JumpType
==
1
){
//商品详情
uni
.
navigateTo
({
url
:
'/pages/goods/goods?GoodsId='
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
2
){
//直播列表
uni
.
navigateTo
({
url
:
'/pages/live/index'
});
}
},
500
)
}
else
{
//静默登录操作
uni
.
login
({
...
...
@@ -412,6 +430,15 @@ export default {
that
.
u
=
res
.
data
uni
.
removeStorageSync
(
'pid'
);
uni
.
removeStorageSync
(
'SmallShopId'
);
// 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout
(()
=>
{
if
(
that
.
JumpType
==
1
){
//商品详情
uni
.
navigateTo
({
url
:
'/pages/goods/goods?GoodsId='
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
2
){
//直播列表
uni
.
navigateTo
({
url
:
'/pages/live/index'
});
}
},
500
)
}
else
{
if
(
!
that
.
u
)
{
that
.
u
=
{
...
...
@@ -690,7 +717,14 @@ export default {
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
$refs
.
son
[
0
].
getSmallShopById
(
2
)
//第一次登陆成功后去调取微店的信息
// 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout
(()
=>
{
if
(
that
.
JumpType
==
1
){
//商品详情
uni
.
navigateTo
({
url
:
'/pages/goods/goods?GoodsId='
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
2
){
//直播列表
uni
.
navigateTo
({
url
:
'/pages/live/index'
});
}
},
500
)
},
//关闭登录窗口
gbAuth
(){
...
...
pages/live/share.vue
View file @
9ab00e09
...
...
@@ -92,7 +92,8 @@ export default {
{
url
:
"/api/AppletUser/GetWeiXinQRCodeForApplet"
,
data
:
{
Path
:
"pages/live/index?user_id="
+
that
.
UserInfo
.
UserId
+
'&SmallShopId='
+
SmallShopId
,
// Path: "pages/live/index?user_id=" + that.UserInfo.UserId+'&SmallShopId='+ SmallShopId,
Path
:
"/pages/index/index?user_id="
+
that
.
UserInfo
.
UserId
+
'&SmallShopId='
+
SmallShopId
+
'&JumpType=2'
,
With
:
that
.
qrcode
.
QrCodeSize
,
},
},
...
...
pages/order/after-sale/refunds-detail.vue
View file @
9ab00e09
...
...
@@ -95,7 +95,7 @@
<button
open-type=
"contact"
:send-message-title=
"d.OrderInfo.GoodsName"
:send-message-path=
"'/pages/
goods/goods?id=' + d.OrderInfo.GoodsId + '&user_id=' + uid
"
:send-message-path=
"'/pages/
index/index?id=' + d.OrderInfo.GoodsId + '&user_id=' + uid+'&JumpType=1'
"
:send-message-img=
"d.OrderInfo.CoverImagePath"
:show-message-card=
"true"
>
...
...
pages/order/order-detail.vue
View file @
9ab00e09
...
...
@@ -150,7 +150,7 @@
<button
open-type=
"contact"
:send-message-title=
"x.GoodsName"
:send-message-path=
"'/pages/
goods/goods?id=' + x.GoodsId + '&user_id=' + uid
"
:send-message-path=
"'/pages/
index/index?id=' + x.GoodsId + '&user_id=' + uid+'&JumpType=1'
"
:send-message-img=
" x.CoverImagePath "
:show-message-card=
"true"
>
...
...
pages/pintuan/tuangood.vue
View file @
9ab00e09
...
...
@@ -411,7 +411,8 @@ export default {
this
.
g
.
app_share_title
!=
null
&&
this
.
g
.
app_share_title
!=
""
?
this
.
g
.
app_share_title
:
this
.
g
.
name
,
path
:
"/pages/goods/goods?id="
+
this
.
id
+
"&user_id="
+
uid
,
// path: "/pages/goods/goods?id=" + this.id + "&user_id=" + uid,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
'&JumpType=1'
,
imageUrl
:
this
.
g
.
app_share_pic
!=
null
&&
this
.
g
.
app_share_pic
!=
""
?
this
.
g
.
app_share_pic
...
...
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