Commit 7193b2fb authored by zhangyanni's avatar zhangyanni

ceshi

parent d8093766
......@@ -28,6 +28,7 @@
"less-loader": "^5.0.0",
"lrz": "^4.9.40",
"mint-ui": "^2.2.13",
"nativeshare": "^2.1.3",
"portfinder": "^1.0.21",
"vue": "^2.6.10",
"vue-awesome-swiper": "^3.1.3",
......
......@@ -13,7 +13,7 @@
<script>
import {Toast} from 'mint-ui';
//https://github.com/fa-ge/NativeShare
const nativeshare = () => import ('vue-native-share') //这种引入方式nativeshare是Promise对象
const nativeshare = () => import ('nativeshare') //这种引入方式nativeshare是Promise对象
//https://github.com/backToNature/m-share
const m_share = () => import ('m-share')
var NativeShare, mShare
......@@ -47,6 +47,11 @@
api.getConfigAxios(params).then((res)=>{
if(res.code==0){
this.config = res.result;
// ES6 标准
nativeshare().then(res => {NativeShare = res.default} )
// CommonJS 标准
m_share().then(res => {mShare = res})
//alert(browser)
// wx.config({
// debug:true,// 是否开启调试模式
// appId:res.result.appId,//appid
......@@ -166,11 +171,7 @@
}
},
mounted() {
// ES6 标准
nativeshare().then(res => {NativeShare = res.default} )
// CommonJS 标准
m_share().then(res => {mShare = res})
//alert(browser)
this.shareFunc();
}
}
</script>
......
......@@ -477,4 +477,11 @@
margin-left: .4rem;
}
}
.wechatShare{
position: fixed;
bottom: 0;
width: 100%;
left: 0;
background: #fff;
}
</style>
\ No newline at end of file
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