uni-app
uni-app copied to clipboard
关于编译微信小程序原生语法的问题
<button>
type="primary"
size="40"
session-from="sobot|{{userInfo.nickName}}|{{userInfo.avatarUrl}}|{{params}}"
open-type="contact"
>联系客服</button>
如上,我不知道在uni-app怎么样表示session-form的参数,还请解答下,谢谢。
<button
type="primary"
size="40"
:session-from="'sobot|'+userInfo.nickName+'|'+userInfo.avatarUrl+'|'+params"
open-type="contact"
>联系客服</button>
<button type="primary" size="40" :session-from="'sobot|'+userInfo.nickName+'|'+userInfo.avatarUrl+'|'+params" open-type="contact" >联系客服</button>
可以了,谢了老哥。