Commit 17f26c05 by hank

跳转小程序

parent 70a4058c
......@@ -801,17 +801,20 @@ export default {
})
},
goImgup() {
// h5 跳转 小程序
// window.wx.miniProgram.getEnv(function (res) {
// if (res.miniprogram) {
// // alert(res.miniprogram)
// window.wx.miniProgram.navigateTo({url: '/pages/works/works'});
// window.wx.miniProgram.postMessage({data: {id: '1234'}}); // 传的参数
// }
// })
// return
var _this = this
if (this.realName && this.phoneNumber) {
this.$router.push({ path: '/imgup' });
// h5 跳转 小程序
window.wx.miniProgram.getEnv(function (res) {
if (res.miniprogram) {
// alert(res.miniprogram)
window.wx.miniProgram.navigateTo({url: '/pages/upload/upload'});
window.wx.miniProgram.postMessage({data: {id: '1234'}}); // 传的参数
} else {
_this.$router.push({ path: '/imgup' });
}
})
return
} else {
Toast({
message: '请进行实名认证后再发布作品'
......
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