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
2544574c
Commit
2544574c
authored
Sep 24, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:禁止在其他环境打开
parent
4ab6516e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
App.vue
src/App.vue
+7
-7
module.js
src/store/module.js
+1
-1
index.vue
src/views/goodsList/index.vue
+1
-1
index.vue
src/views/orderList/index.vue
+1
-1
No files found.
src/App.vue
View file @
2544574c
...
...
@@ -18,8 +18,8 @@
<
script
>
import
{
mapState
}
from
'
vuex
'
;
import
NetError
from
'
@/components/NetError
'
;
//
import { isApp, isWxMp, isWechat } from '@/service/validation.service';
//
import store from '@/store';
import
{
isApp
,
isWxMp
,
isWechat
}
from
'
@/service/validation.service
'
;
import
store
from
'
@/store
'
;
import
Weapp
from
'
@/components/weapp
'
;
import
goodsShare
from
'
@/components/groupShare
'
;
...
...
@@ -52,11 +52,11 @@ export default {
}
},
$route
()
{
//
store.dispatch('change_show_mini_app_guide', {
//
bool: !isApp && !isWxMp && !isWechat ? true : false,
//
pointer: this
//
});
//
store.dispatch('change_is_weixin_browser', !isApp && !isWxMp && isWechat ? true : false);
store
.
dispatch
(
'
change_show_mini_app_guide
'
,
{
bool
:
!
isApp
&&
!
isWxMp
&&
!
isWechat
?
true
:
false
,
pointer
:
this
});
store
.
dispatch
(
'
change_is_weixin_browser
'
,
!
isApp
&&
!
isWxMp
&&
isWechat
?
true
:
false
);
}
},
methods
:
{
...
...
src/store/module.js
View file @
2544574c
...
...
@@ -92,7 +92,7 @@ const mutations = {
},
[
types
.
CHANGE_SHOW_MINI_APP_GUIDE
](
state
,
{
bool
,
pointer
})
{
state
.
isPrimordialBrowser
=
bool
;
if
(
!
bool
)
{
if
(
bool
)
{
// 需要取反
// 如果非app webview并且非小程序webview,直接拦截提示,到小程序操作
pointer
.
$dialog
({
...
...
src/views/goodsList/index.vue
View file @
2544574c
...
...
@@ -230,7 +230,7 @@ export default {
shareIconUrl
,
img
}
=
this
.
goodsTemp
;
const
link
=
`
${
config
.
localHost
}
/groupBuy/list?activityId=
${
this
.
activityId
}
`
;
const
link
=
`
${
config
.
localHost
}
/groupBuy/list?
h=0&
activityId=
${
this
.
activityId
}
`
;
return
Promise
.
resolve
({
title
:
shareTitle
,
desc
:
shareSubTitle
,
...
...
src/views/orderList/index.vue
View file @
2544574c
...
...
@@ -118,7 +118,7 @@ export default {
templateId
:
shareInfo
.
templateId
,
templateDetailId
:
shareInfo
.
templateId
});
const
detailUrl
=
`
${
config
.
localHost
}
/groupBuy/skuInfoSmallPic?
${
linkPath
}
`
;
const
detailUrl
=
`
${
config
.
localHost
}
/groupBuy/skuInfoSmallPic?
h=0&
${
linkPath
}
`
;
return
Promise
.
resolve
({
title
:
shareInfo
.
skuName
,
desc
:
''
,
...
...
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