wechatService(){
let sweixin = null
let corpid = getApp().globalData.config['client.weixin.service']['cropid']
let curl = getApp().globalData.config['client.weixin.service']['kf.address']
plus.share.getServices(res=>{
sweixin = res.find(i => i.id === 'weixin')
console.log('sweixin',sweixin,);
if(sweixin){
sweixin.openCustomerServiceChat({
corpid: corpid,
url: curl,
},suc=>{
console.log("success",JSON.stringify(res))
},err=>{
console.log("error",JSON.stringify(err))
})
}else{
plus.nativeUI.alert('当前环境不支持微信操作!')
}
})
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22