Commit 10e3d790 authored by Facius's avatar Facius

分享功能

parent 39532b13
...@@ -3,6 +3,8 @@ import App from './App' ...@@ -3,6 +3,8 @@ import App from './App'
import uView from "uview-ui"; import uView from "uview-ui";
Vue.use(uView); Vue.use(uView);
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)
Vue.config.productionTip = false Vue.config.productionTip = false
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
onShareAppMessage(res) { onShareAppMessage(res) {
let shareObj = { let shareObj = {
title: '', title: '',
path: '/pages/photo/product', path: '/pages/photo/index',
imageUrl: '', imageUrl: '',
success() {}, success() {},
fail() {} fail() {}
......
...@@ -127,7 +127,16 @@ ...@@ -127,7 +127,16 @@
} }
} }
}, },
onShareAppMessage(res) {
let shareObj = {
title: '',
path: '/pages/photo/index',
imageUrl: '',
success() {},
fail() {}
}
return shareObj
},
methods: { methods: {
getListData: function() { getListData: function() {
this.loading = true this.loading = true
......
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