Commit 3b35f9ca authored by root's avatar root

分享

parent eb8b2664
......@@ -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')
......
......@@ -15,12 +15,6 @@
"style": {
"navigationBarTitleText": "订单"
}
},
{
"path": "pages/order/orderItem",
"style": {
"navigationBarTitleText": "订单详情"
}
},
{
"path": "pages/order/complete",
......
......@@ -198,7 +198,8 @@ export default {
};
},
onLoad() {
this.getList();
this.getList();
this.$u.mpShare.path = ''
},
methods: {
......
......@@ -23,7 +23,10 @@
},
methods: {
}
},
onLoad() {
this.$u.mpShare.path = ''
},
}
</script>
......
......@@ -2,8 +2,8 @@ module.exports = {
onLoad() {
// 设置默认的转发参数
this.$u.mpShare = {
title: '', // 默认为小程序名称
path: '', // 默认为当前页面路径
title: '充电桩安装火爆进行中...就等你', // 默认为小程序名称
path: '/pages/index/index', // 默认为当前页面路径
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