|
|
|
@ -288,6 +288,7 @@ class App extends Component {
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
url: 'http://pre-newweb.educoder.net',
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
console.log('got res')
|
|
|
|
|
const data = response.data;
|
|
|
|
|
wx.config({
|
|
|
|
|
debug: false,
|
|
|
|
@ -305,6 +306,7 @@ class App extends Component {
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
wx.ready(function () {
|
|
|
|
|
console.log('wx is ready')
|
|
|
|
|
var shareData = {
|
|
|
|
|
title: '这是是分享标题',
|
|
|
|
|
desc: '这是是摘要',
|
|
|
|
@ -322,6 +324,8 @@ class App extends Component {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
wx.error(function (res) {
|
|
|
|
|
console.log('wx is error')
|
|
|
|
|
console.log(res)
|
|
|
|
|
//alert(res.errMsg);//错误提示
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|