1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <!--pages/other/znzx/znzx.wxml-->
- <scroll-view class="containers" style="top: {{keyBoardHeight > 0? 'calc(' + keyBoardHeight + 'px * -1)':'0'}};" scroll-y scroll-into-view="{{scrollInto}}" scroll-with-animation>
- <view class="fill"></view>
- <view class="msg-box" wx:for="{{msgList}}" wx:key="index">
- <view wx:if="{{item.from == 'other'}}" class="msg_type msg_type_left">
- <view class="msg_headimg">
- <image src="/images/znzx/headimg.png" mode="widthFix" />
- </view>
- <view class="msg_content">
- <!-- 普通消息 -->
- <view wx:if="{{item.msg_type == 'type1'}}" class="msg_content_type1">{{item.content}}</view>
- <!-- 消息类型 1 -->
- <view wx:if="{{item.msg_type == 'type2'}}" class="msg_content_type2">
- <view class="msg_content_type2_title">{{item.title}}</view>
- <view class="msg_content_type2_link_box">
- <view class="msg_content_type2_link" wx:for="{{item.linkList}}" wx:for-item="item1" wx:for-index="index1" wx:key="index" data-item="{{item1}}" bind:tap="getAnswer">
- {{index1 + 1}}、{{item1.answerTitle}}
- </view>
- </view>
- <view class="msg_content_type2_subtitle">{{item.subTitle}}</view>
- <view class="msg_content_type2_sublink_box">
- <view class="msg_content_type2_sublink" wx:for="{{item.subLinkList}}" wx:for-item="item1" wx:for-index="index1" wx:key="index" data-item="{{item1}}" bind:tap="getAnswer">
- {{item1.intentTitle}}
- </view>
- </view>
- </view>
- <!-- 消息类型 2 -->
- <view wx:if="{{item.msg_type == 'type3'}}" class="msg_content_type3">
- <view class="msg_content_type3_title">{{item.title}}</view>
- <view class="msg_content_type3_link_box">
- <view class="msg_content_type3_link" wx:for="{{item.linkList}}" wx:for-item="item1" wx:for-index="index1" wx:key="index" data-item="{{item1}}" bind:tap="getAnswer">
- {{item1.intentTitle}}
- </view>
- </view>
- </view>
- <!-- 消息类型 3 -->
- <view wx:if="{{item.msg_type == 'type4'}}" class="msg_content_type4">
- <view class="msg_content_type4_title">{{item.title}}</view>
- <rich-text class="msg_content_type4_rich" nodes="{{item.content}}" data-img="{{item.imgSrcList}}" bind:tap="richTap" />
- <view class="msg_content_type4_link_box">
- <view class="msg_content_type4_link" wx:for="{{item.linkList}}" wx:for-item="item1" wx:for-index="index1" wx:key="index" data-item="{{item1}}" bind:tap="getDetail">
- <text>依据(点击查看详情)\n</text>{{item1.answerBasisTitle}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view wx:if="{{item.from == 'me'}}" class="msg_type msg_type_right">
- <view class="msg_content">{{item.content}}</view>
- <view class="msg_headimg">
- <image src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/headimg.png" mode="widthFix" />
- </view>
- </view>
- </view>
- <view id="bottom" class="fill fill-bottom"></view>
- </scroll-view>
- <view class="control" style="padding-bottom: {{keyBoardHeight > 0? 'calc(' + keyBoardHeight + 'px + 20rpx)':'80rpx'}};">
- <view wx:if="{{inType === 1}}" class="control-box">
- <view class="control-voice" data-type="{{0}}" bind:tap="intype">
- <image src="/icon/msg_voice.png" mode="widthFix" />
- </view>
- <view class="control-input {{msg.content.length > 10?'':'control-input-auto'}}">
- <textarea auto-height disable-default-padding show-confirm-bar="{{false}}" adjust-position="{{false}}" confirm-type="send" placeholder="请输入您想咨询的问题..." value="{{msg.content}}" bindinput="input" bindconfirm="sendMsg" />
- </view>
- <view class="control-send {{msg.content.length > 0?'control-send-ok':''}}" bind:tap="{{msg.content.length > 0?'sendMsg':''}}">发送</view>
- </view>
- <view wx:if="{{inType === 0}}" class="control-box control-box-voice">
- <view class="control-voice" data-type="{{1}}" bind:tap="intype">
- <image src="/icon/msg_keyboard.png" mode="widthFix" />
- </view>
- <view class="control-input">
- <view class="control-input-voice {{startSpech?'control-input-voice-active':''}}" bind:touchstart="startVoice" bind:touchend="endVoice">{{startSpech?'松开 结束':'按住 说话'}}</view>
- <view class="voice-mask" wx:if="{{startSpech}}">
- <view class="voicing-box">
- <view class="voiceing" wx:for="{{10}}" wx:key="index"></view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <pop show="{{showDetail}}" bindclose="close">
- <view class="pop-title">{{detailInfo.ZLTITLE}}</view>
- <scroll-view class="popContain" scroll-y="{{true}}" enhanced="{{true}}" show-scrollbar="{{false}}">
- <rich-text class="popRich" nodes="{{detailInfo.ANSWERCONTENT}}" />
- </scroll-view>
- </pop>
|