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
919693cf
Commit
919693cf
authored
Oct 01, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:update
parent
7b024cba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
App.vue
src/App.vue
+5
-1
weapp.vue
src/components/weapp.vue
+9
-2
No files found.
src/App.vue
View file @
919693cf
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
id=
"app"
>
<div
id=
"app"
>
<cr-nav-bar
v-if=
"header"
:title=
"title"
left-text=
""
@
click-left=
"backFun"
/>
<cr-nav-bar
v-if=
"header"
:title=
"title"
left-text=
""
@
click-left=
"backFun"
/>
<div
class=
"app"
>
<div
class=
"app"
>
<Weapp
v-if=
"isWeixinBrowser"
jump-url=
"
/
pages/groupbuy/webview"
/>
<Weapp
v-if=
"isWeixinBrowser"
jump-url=
"pages/groupbuy/webview"
/>
<keep-alive>
<keep-alive>
<router-view
v-if=
"$route.meta.keepLive"
/>
<router-view
v-if=
"$route.meta.keepLive"
/>
</keep-alive>
</keep-alive>
...
@@ -25,6 +25,10 @@ import { isApp, isWxMp, isWechat } from '@/service/validation.service';
...
@@ -25,6 +25,10 @@ import { isApp, isWxMp, isWechat } from '@/service/validation.service';
import
store
from
'
@/store
'
;
import
store
from
'
@/store
'
;
import
Weapp
from
'
@/components/weapp
'
;
import
Weapp
from
'
@/components/weapp
'
;
import
goodsShare
from
'
@/components/groupShare
'
;
import
goodsShare
from
'
@/components/groupShare
'
;
// import qs from 'qs';
// console.log(
// `pages/groupbuy/webview?url=${encodeURIComponent(JSON.stringify(window.location.href))}`
// );
export
default
{
export
default
{
name
:
'
App
'
,
name
:
'
App
'
,
components
:
{
components
:
{
...
...
src/components/weapp.vue
View file @
919693cf
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
羊小咩原始ID:gh_a976018bfb9e -->
羊小咩原始ID:gh_a976018bfb9e -->
<wx-open-launch-weapp
<wx-open-launch-weapp
class=
"launch-btn"
class=
"launch-btn"
username=
"gh_
e1d790d67513
"
username=
"gh_
a976018bfb9e
"
:path=
"
j
umpUrl"
:path=
"
newJ
umpUrl"
@
launch=
"launch"
@
launch=
"launch"
@
error=
"launchError"
@
error=
"launchError"
>
>
...
@@ -33,6 +33,13 @@ export default {
...
@@ -33,6 +33,13 @@ export default {
data
()
{
data
()
{
return
{};
return
{};
},
},
computed
:
{
newJumpUrl
()
{
const
jumpUrl
=
this
.
jumpUrl
;
const
linkPath
=
window
.
location
.
href
;
return
`
${
jumpUrl
}
?url=
${
encodeURIComponent
(
JSON
.
stringify
(
linkPath
))}
`
;
}
},
created
()
{
created
()
{
this
.
wxConfig
();
this
.
wxConfig
();
},
},
...
...
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