Commit 68dc8d7a by 高淑倩

回访

parent 0696037b
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
"id": 50, "id": 50,
"name": "销售任务详情", "name": "销售任务详情",
"pathName": "shoppingGuid/page/pages/saleTaskInfo/saleTaskInfo", "pathName": "shoppingGuid/page/pages/saleTaskInfo/saleTaskInfo",
"query": "id=638472328497467392&type=1", "query": "id=639510173622362112&type=1",
"scene": null "scene": null
}, },
{ {
......
...@@ -22,7 +22,46 @@ wxService.page({ ...@@ -22,7 +22,46 @@ wxService.page({
onReady: function () { onReady: function () {
}, },
//回访
onTapRecall(e) {
const currentEnv = wx.getStorageSync('_qyWeChat');
// wmfen5DwAA5WDE7CBEa_qgIva_cUlAyw 杨辰的外部联系人userid
if (currentEnv) {
let guidInfo = wx.getStorageSync('guidBaseInfo'),
guidQiyeUserId = guidInfo.member.qiyeInfo.userid;
let qiyeExternalUserid = e.currentTarget.dataset.item.qiyeExternalUserid;
if (!qiyeExternalUserid) {
wx.showToast({
title: '该会员还不是您的好友,请先加好友!',
icon: 'none'
});
return;
}
wx.qy.openEnterpriseChat({
userIds: guidQiyeUserId, //参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
externalUserIds: qiyeExternalUserid, // 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。
groupName: '', // 必填,会话名称。单聊时该参数传入空字符串""即可。
success: function (res) {
},
fail: function (res) {
// 失败处理
wx.showToast({
title: '创建会话失败,请稍后再试!',
icon: 'none'
});
}
});
} else {
wx.showToast({
title: '请在企业微信中使用',
icon: 'none'
});
}
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
......
...@@ -45,31 +45,17 @@ ...@@ -45,31 +45,17 @@
</view> </view>
<!-- 列表 --> <!-- 列表 -->
<view class='list' wx:if="{{enlistList.recruitInfo.length}}"> <view class='list' wx:if="{{enlistList.recruitInfo.length}}">
<block wx:for="{{enlistList.recruitInfo}}"> <block wx:for="{{enlistList.recruitInfo}}" wx:key="{{index}}" wx:for-item="item">
<view class='item'> <view class='item'>
<view class='u-info'> <view class='u-info'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image> <image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image>
<text>139xxxx2453</text> <text>{{item.mobile}}</text>
</view> </view>
<view class='item-btn'>立即回访</view> <view class='item-btn' data-item="{{item}}" bindtap='onTapRecall'>立即回访</view>
</view>
<view class='item'>
<view class='u-info'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image>
<text>139xxxx2453</text>
</view>
<view class='item-btn'>立即回访</view>
</view> </view>
<view class='item'>
<view class='u-info'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image>
<text>139xxxx2453</text>
</view>
<view class='item-btn'>立即回访</view>
</view>
</block> </block>
</view> </view>
<view wx:else class='u-info no-order'>暂无回访列表</view> <view wx:else class='u-info no-order'>暂无回访列表</view>
......
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 to comment