Merge pull request '罗世杰:支持分享到朋友、朋友圈' (#120) from lj into master

Reviewed-on: http://git.feashow.cn/odjbin/city-store-transfer/pulls/120
This commit is contained in:
luojie
2023-11-30 12:19:11 +00:00
2 changed files with 10 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ Vue.use(uView)
Vue.prototype.$api = apiService Vue.prototype.$api = apiService
Vue.prototype.$toast = toast Vue.prototype.$toast = toast
import share from './utils/share.js'
Vue.mixin(share)
// #ifndef VUE3 // #ifndef VUE3
import Vue from 'vue' import Vue from 'vue'
Vue.config.productionTip = false Vue.config.productionTip = false

8
utils/share.js Normal file
View File

@@ -0,0 +1,8 @@
export default{
onShareAppMessage() {
return {}
},
onShareTimeline() {
return {}
}
}