Commit fea4a36a by hank

分享修改

parent 04627371
...@@ -376,7 +376,7 @@ export default { ...@@ -376,7 +376,7 @@ export default {
}, },
share() { share() {
var _this = this var _this = this
alert('share') // alert('share')
window.wx.miniProgram.getEnv(function (res) { window.wx.miniProgram.getEnv(function (res) {
if (res.miniprogram) { if (res.miniprogram) {
// todo // todo
...@@ -385,8 +385,14 @@ export default { ...@@ -385,8 +385,14 @@ export default {
pages: 'pages/webview/webview' pages: 'pages/webview/webview'
}).then(res => { }).then(res => {
// _this.shareCode = res.data.data.weixinCode // _this.shareCode = res.data.data.weixinCode
_this.getCanvasDrawImage(res.data.data.weixinCode) if(res.data.data.weixinCode) {
_this.shareOnoff2 = true _this.getCanvasDrawImage(res.data.data.weixinCode)
_this.shareOnoff2 = true
} else {
_this.getCanvasDrawImage()
_this.shareOnoff2 = true
}
alert(JSON.stringify(res.data.data)) alert(JSON.stringify(res.data.data))
}) })
} else { } else {
......
...@@ -80,7 +80,7 @@ export default new Vuex.Store({ ...@@ -80,7 +80,7 @@ export default new Vuex.Store({
// alert('获取用户信息成功') // alert('获取用户信息成功')
resolve(res) resolve(res)
}).catch(e =>{ }).catch(e =>{
alert('获取用户信息失败') // alert('获取用户信息失败')
reject(e) reject(e)
}) })
}) })
......
...@@ -505,9 +505,9 @@ export default { ...@@ -505,9 +505,9 @@ export default {
this.lastAllLoaded = true; this.lastAllLoaded = true;
this.ruweidot = { backgroundColor: 'transparent' }; this.ruweidot = { backgroundColor: 'transparent' };
Toast({ // Toast({
message: '没有更多' // message: '没有更多'
}); // });
return return
} }
...@@ -563,7 +563,7 @@ export default { ...@@ -563,7 +563,7 @@ export default {
'onMenuShareQZone' 'onMenuShareQZone'
]; ];
window.wx.config({ window.wx.config({
debug: true, // 开启调试模式, debug: false, // 开启调试模式,
appId: res.appId, // 必填,企业号的唯一标识,此处填写企业号corpid appId: res.appId, // 必填,企业号的唯一标识,此处填写企业号corpid
timestamp: res.timestamp, // 必填,生成签名的时间戳 timestamp: res.timestamp, // 必填,生成签名的时间戳
nonceStr: res.nonceStr, // 必填,生成签名的随机串 nonceStr: res.nonceStr, // 必填,生成签名的随机串
......
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 sign in to comment