Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
403838d9
Commit
403838d9
authored
Apr 22, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
8b82441a
a00f16b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
main.js
src/main.js
+5
-2
index.vue
src/pages/learn/index.vue
+2
-1
news-details.vue
src/pages/learn/news-details.vue
+4
-1
mpShare.js
src/uview-ui/libs/mixin/mpShare.js
+2
-2
No files found.
src/main.js
View file @
403838d9
...
...
@@ -21,8 +21,11 @@ Vue.use(httpInterceptor, app)
Vue
.
use
(
router
)
// http接口API抽离,免于写url或者一些固定的参数
import
httpApi
from
'@/common/http.api.js'
Vue
.
use
(
httpApi
,
app
)
Vue
.
use
(
httpApi
,
app
)
// 分享
let
mpShare
=
require
(
'@/uview-ui/libs/mixin/mpShare.js'
)
Vue
.
mixin
(
mpShare
)
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
RouterMount
(
app
,
router
,
'#app'
)
...
...
src/pages/learn/index.vue
View file @
403838d9
...
...
@@ -198,7 +198,8 @@ export default {
};
},
onLoad
()
{
this
.
getList
();
this
.
getList
();
this
.
$u
.
mpShare
.
path
=
''
},
methods
:
{
...
...
src/pages/learn/news-details.vue
View file @
403838d9
...
...
@@ -23,7 +23,10 @@
},
methods
:
{
}
},
onLoad
()
{
this
.
$u
.
mpShare
.
path
=
''
},
}
</
script
>
...
...
src/uview-ui/libs/mixin/mpShare.js
View file @
403838d9
...
...
@@ -2,8 +2,8 @@ module.exports = {
onLoad
()
{
// 设置默认的转发参数
this
.
$u
.
mpShare
=
{
title
:
''
,
// 默认为小程序名称
path
:
''
,
// 默认为当前页面路径
title
:
'
充电桩安装火爆进行中...就等你
'
,
// 默认为小程序名称
path
:
'
/pages/index/index
'
,
// 默认为当前页面路径
imageUrl
:
''
// 默认为当前页面的截图
}
},
...
...
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