Commit 403838d9 authored by Facius's avatar Facius
parents 8b82441a a00f16b6
...@@ -21,8 +21,11 @@ Vue.use(httpInterceptor, app) ...@@ -21,8 +21,11 @@ Vue.use(httpInterceptor, app)
Vue.use(router) Vue.use(router)
// http接口API抽离,免于写url或者一些固定的参数 // http接口API抽离,免于写url或者一些固定的参数
import httpApi from '@/common/http.api.js' 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();使用路由自带的渲染方式 //v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5 // #ifdef H5
RouterMount(app,router,'#app') RouterMount(app,router,'#app')
......
...@@ -198,7 +198,8 @@ export default { ...@@ -198,7 +198,8 @@ export default {
}; };
}, },
onLoad() { onLoad() {
this.getList(); this.getList();
this.$u.mpShare.path = ''
}, },
methods: { methods: {
......
...@@ -23,7 +23,10 @@ ...@@ -23,7 +23,10 @@
}, },
methods: { methods: {
} },
onLoad() {
this.$u.mpShare.path = ''
},
} }
</script> </script>
......
...@@ -2,8 +2,8 @@ module.exports = { ...@@ -2,8 +2,8 @@ module.exports = {
onLoad() { onLoad() {
// 设置默认的转发参数 // 设置默认的转发参数
this.$u.mpShare = { this.$u.mpShare = {
title: '', // 默认为小程序名称 title: '充电桩安装火爆进行中...就等你', // 默认为小程序名称
path: '', // 默认为当前页面路径 path: '/pages/index/index', // 默认为当前页面路径
imageUrl: '' // 默认为当前页面的截图 imageUrl: '' // 默认为当前页面的截图
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment