chat.wxml
3.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!--pages/main/smartchat/chat.wxml-->
<view>
<view style='background:#fff;padding-bottom:65px;'>
<view wx:for="{{chatlist}}" wx:for-item="item" style='display:flex;flex-direction:column'>
<view style='margin:50rpx 60rpx 0 36rpx;display:flex;flex-direction:row' wx:if="{{item.type=='0'}}">
<image style='width:102rpx;height:92rpx' src="/images/icon_robot.png"></image>
<view class='receive_bg'>
<text class='text_receive_wrap'>{{item.text}}</text>
</view>
</view>
<view style='margin:50rpx 36rpx 0 60rpx;display:flex;justify-content:flex-end;' wx:if="{{item.type=='1'}}">
<view class='send_bg'>
<text class='text_send_wrap'>{{item.text}}</text>
</view>
<view style='width:92rpx;height:92rpx;'>
<open-data type="userAvatarUrl"></open-data>
</view>
</view>
</view>
<view id="flag"></view>
</view>
<view class='bottom_wrap' id='bottom'>
<input class='input_wrap' placeholder-class='input_placeholder_wrap' bindinput="bindKeyInput" placeholder='请输入您要咨询的问题' value='{{inputValue}}'></input>
<view class='btn_send_wrap' bindtap='sendMsg'>发送</view>
</view>
</view>
<!-- 自定义弹窗 -->
<view class="mask" hidden="{{!showModal}}"></view>
<view class='modal_lg' hidden="{{!showModal}}">
<text class="text_title">您在多个单位有任职信息,请选择您要在哪家单位咨询问题。</text>
<view class='divide_line_f5f5f5'></view>
<scroll-view style='width:100%;display:flex;flex-direction:column;max-height:688rpx;'>
<view wx:for="{{comlist}}" wx:for-index="idx" bindtap='bindChange' id="{{idx}}">
<view wx:if="{{idx==choosed_index}}" style='padding:30rpx;display:flex;flex-direction:row;'>
<view class='text_item_blue float_left'>{{item.name}}</view>
<image class='icon_choosed' src="/images/icon_chat_choosed.png"></image>
</view>
<view wx:else style='padding:30rpx ;display:flex;'>
<text class='text_item_black float_left'>{{item.name}}</text>
</view>
<view class='divide_line_f5f5f5'></view>
</view>
</scroll-view>
<view class='divide_line_f5f5f5'></view>
<view style='width:100%;display: flex;'>
<text class='text_cancel' bindtap='cancel'>取消</text>
<view style='width:1px;background:#F5F5F5;margin:20rpx 0'></view>
<text class='text_confirm' bindtap='confirm'>确定</text>
</view>
</view>
<!-- <view hidden="{{!showModal}}">
<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{value}}" bindchange="bindChange" class="picker_wrap">
<view style=' position: absolute;top:10rpx;width: 100%;z-index: 10;'>
<view bindtap="cancel" style='float: left;margin: 20rpx;color: #818181;'>取消</view>
<view bindtap="confirm" style='float: right; margin: 20rpx; color: #2FB42E'>确定</view>
</view>
<picker-view-column>
<view wx:for="{{comlist}}" style="line-height: 50px;padding: 0 30rpx;text-align:center;">{{item.name}}</view>
</picker-view-column>
</picker-view>
</view> -->