Commit da4957fe by hank

图片跨域

parent b6da89b8
......@@ -379,23 +379,13 @@ export default {
share() {
var _this = this
// alert('share')
axios.post('/weixin/getcode', {
scene: _this.$route.query.id,
pages: 'pages/webview/webview'
}).then(res => {
// _this.shareCode = res.data.data.weixinCode
if(res.data.data.weixinCode) {
_this.getCanvasDrawImage(res.data.data.weixinCode)
_this.shareOnoff2 = true
} else {
_this.getCanvasDrawImage()
}
// alert(JSON.stringify(res.data.data))
})
window.wx.miniProgram.getEnv(function (res) {
if (res.miniprogram) {
// todo
_this.shareOnoff2 = true
if(_this.shareCode) {
return
}
axios.post('/weixin/getcode', {
scene: _this.$route.query.id,
pages: 'pages/webview/webview'
......@@ -406,7 +396,7 @@ export default {
_this.shareOnoff2 = true
} else {
_this.getCanvasDrawImage()
_this.shareOnoff2 = true
}
// alert(JSON.stringify(res.data.data))
......
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