index.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!--index.wxml-->
  2. <scroll-view scroll-y="{{ true }}" style="height: {{scrollH}}px" scroll-into-view="{{ toView }}" scroll-with-animation bindscrolltoupper="bindUpper">
  3. <view class="wrap_nr">
  4. <view class="tips">您好,在线客服很高兴为您服务</view>
  5. <view class="section_w" wx:for="{{ dataList }}" wx:key="index" id="{{ 'item'+ item.id }}">
  6. <view class="sec_time" wx:if="{{ index == 0 }}">{{ item.created_at }}</view>
  7. <view class="section from_user" wx:if="{{ item.type == 1 }}">
  8. <view class="item">
  9. <view class="item_wenzi">{{ item.content }}</view>
  10. <image class="icon" src="{{ userThumb }}"></image>
  11. </view>
  12. </view>
  13. <view class="section from_plat" wx:if="{{ item.type == 2 }}">
  14. <view class="item">
  15. <image class="icon" src="{{ kfThumb }}"></image>
  16. <view class="item_wenzi">{{ item.content }}</view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </scroll-view>
  22. <!-- <view class="tips">您好,在线客服很高兴为您服务</view>
  23. <view id="scrollView" style="height:{{ scrollH }}px;">
  24. <view class="section_w" wx:for="{{ dataList }}" wx:key="index">
  25. <view class="sec_time" wx:if="{{ index == 0 }}">{{ item.created_at }}</view>
  26. <view class="section from_user" wx:if="{{ item.type == 1 }}">
  27. <view class="item">
  28. <view class="item_wenzi">{{ item.content }}</view>
  29. <image class="icon" src="{{ userThumb }}"></image>
  30. </view>
  31. </view>
  32. <view class="section from_plat" wx:if="{{ item.type == 2 }}">
  33. <view class="item">
  34. <image class="icon" src="{{ kfThumb }}"></image>
  35. <view class="item_wenzi">{{ item.content }}</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view> -->
  40. <view class="wrap_pub" style="bottom:{{keybordH}}px">
  41. <view class="pub_l">
  42. <van-field
  43. value="{{ content }}"
  44. placeholder=""
  45. bind:input="getContent"
  46. />
  47. <!-- bind:input="getContent" -->
  48. <!-- adjust-position="{{ false }}" -->
  49. <!-- bind:focus="bindFocus" -->
  50. <!-- bind:blur= "bindBlur" -->
  51. </view>
  52. <image class="icon_send" src="/statics/img/icon_send.png" bind:tap="bindSendContent"></image>
  53. </view>
  54. <!-- loading -->
  55. <!-- <van-overlay show="{{ loading }}" z-index="100">
  56. <van-loading custom-class="custom_loading" />
  57. </van-overlay> -->