客服send-message-path路径设置无效,点击直接返回到上一页
发布于 6 年前 作者 tlu 8268 次浏览 来自 问答

点击进入客服 =》 点击右下角分享卡片 =》 点击卡片 =》 返回到上一页

但是,这个卡片的路径其实是另外一个页面

如果把这个卡片再分享出来,再点击就会到另外一个页面了

2 回复

<button class=“contact noneBtn” open-type=“contact” show-message-card=“true” send-message-title=“弈赔小程序” send-message-path="/pages/project_iclaim/index/expertConsultation?type=1" send-message-img="/static/images/1.png" bindcontact=“handleContact”></button>

handleContact(e){

console.log(e.detail)

if(e.detail.path){

this.$Router.push({path:e.detail.path,query:e.detail.query})			

}

}

体验版 开发板版 亲测有用。通过 handleContact 可以定向跳转到指定页 ,请忽略我的(this.$Router.push 方法 uni-app专用)自己使用小程序的跳转

是的,需要在

这个进去才是配置的页面

回到顶部