historyList: [], | historyList: [], | ||||
input: null, | input: null, | ||||
openid: null, | openid: null, | ||||
// 😄😊😃😉😍😘😚😳😌😁😜😝😒😏😓😔😞😖😥😰😨😣😢😭😂😲😱😠😡😪😷👿👽💛💙💗💚❤💔💓💘✨🌟💢❕❔💤💨💦🎶🎵🔥🔥💩👍👎👌👊✊✌👋✋👐👆👇👉👈🙌🙏☝👏💪🚶🏃👫💃👯🙆🙅💁🙇💏💑💆💇💅👦👧👩👨👶👵👴👱👲👳👷👮👼👸💂💀👣💋 | |||||
connectemoji: ["😘", "😡", "😔", "😄", "❤", "😍", "👼", ""], | connectemoji: ["😘", "😡", "😔", "😄", "❤", "😍", "👼", ""], | ||||
emoji_list: ['emoji1i1', 'emoji2i2', 'emoji3i3', 'emoji4i4', 'emoji5i5'], | emoji_list: ['emoji1i1', 'emoji2i2', 'emoji3i3', 'emoji4i4', 'emoji5i5'], | ||||
emotionVisible: false, | emotionVisible: false, | ||||
}) | }) | ||||
let customerId = app.globalData.customerId; | let customerId = app.globalData.customerId; | ||||
let sendAvatar = app.globalData.businessCommunicationCustomer.chatHeads; | let sendAvatar = app.globalData.businessCommunicationCustomer.chatHeads; | ||||
console.log(customerId, 'customerId'); | |||||
this.setData({ | this.setData({ | ||||
receiveMemberId: customerId, | receiveMemberId: customerId, | ||||
sendAvatar | sendAvatar |
<image class="expression-msg-img" src="/images/home/expression-msg-icon.png" bind:tap="emotionChange" /> | <image class="expression-msg-img" src="/images/home/expression-msg-icon.png" bind:tap="emotionChange" /> | ||||
<image class="img-msg-img" src="/images/home/img-msg-icon.png" /> | <image class="img-msg-img" src="/images/home/img-msg-icon.png" /> | ||||
</view> | </view> | ||||
<view class="emotions" wx:if="{{emotionVisible}}"> | |||||
<view class="faces-view" wx:if="{{emotionVisible}}"> | |||||
<view class="emotions-item" wx:for="{{connectemoji}}" wx:key="index" bindtap="addemotion" data-index="{{index}}"> | <view class="emotions-item" wx:for="{{connectemoji}}" wx:key="index" bindtap="addemotion" data-index="{{index}}"> | ||||
{{item}} | {{item}} | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<!-- <view class="emotions" wx:if="{{emotionVisible}}"> | |||||
<view class="emotions-item" wx:for="{{connectemoji}}" wx:key="index" bindtap="addemotion" data-index="{{index}}"> | |||||
{{item}} | |||||
</view> | |||||
</view> --> | |||||
</view> | </view> |
* 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
*/ | */ | ||||
onLoad: function (options) { | onLoad: function (options) { | ||||
let htmlUrl = `${app.mangerUrl}/customerService/dist/mobileClient.html?entryType=0&miniUrl=` + options.url + `&customerId=` + app.globalData.customerId; | |||||
let htmlUrl = `${app.mangerUrl}/customerService/dist/mobileClient.html?entryType=1&miniUrl=` + options.url + `&customerId=` + app.globalData.customerId; | |||||
// 如果是去关注 | // 如果是去关注 | ||||
if (options.followApplets == "true") { | if (options.followApplets == "true") { | ||||
htmlUrl = "https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIwNDEzNzk5MA==&scene=124#wechat_redirect"; | htmlUrl = "https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIwNDEzNzk5MA==&scene=124#wechat_redirect"; |