// 点击客服链接时触发的函数
concat: function (o) {
// 获取当前点击元素的索引
var n = o.currentTarget.dataset.index;
// 打印索引
console.log(n);
// 打开客服聊天窗口
wx.openCustomerServiceChat({
// 客服链接的扩展信息
extInfo: {
url: this.data.concatList[n].url
},
// 企业ID
corpId: this.data.corpid,
// 打开成功的回调函数
success: function (o) {
console.log("---res---", o);
},
// 打开失败的回调函数
fail: function (o) {
console.log("---fail---", o);
}
});
},

不可以