index.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <import src="../../public/pages/public-view.wxml"/>
  2. <view style="width:100%;height:600rpx;background-color:#3296FB;position:fixed;"></view>
  3. <scroll-view scroll-y="{{scroll}}" class="bg-scroll-view">
  4. <view style="width:100%;height:600rpx;background-color:#F5F5F5;"></view>
  5. <image class="banner" src="../../icon/public/banner.png"></image>
  6. <image src="../../icon/information/banner.png"></image>
  7. <view>
  8. <text>Hi,我是小保</text>
  9. <text>很高兴为您服务,欢迎来撩:)</text>
  10. </view>
  11. <view class="broadcast" wx:if="{{broadcast.s}}">
  12. <view>
  13. <view style="width:{{broadcast.w}}px;"><!-- iOS9系统需要手动设置,不然撑不开文字会重叠 -->
  14. <view style="{{broadcast.fa}}">
  15. <text class="broadcast-text-{{broadcast.fc}}" id="broadcastText">{{broadcast.b}}</text>
  16. </view>
  17. <view style="{{broadcast.sa}}">
  18. <text class="broadcast-text-{{broadcast.sc}}">{{broadcast.b}}</text>
  19. </view>
  20. <view style="{{broadcast.ta}}">
  21. <text class="broadcast-text-{{broadcast.tc}}">{{broadcast.b}}</text>
  22. </view>
  23. </view>
  24. </view>
  25. <image src="../../icon/information/info_broadcast_delete.png" bindtap="deleteBroadcast"></image>
  26. </view>
  27. <view class="tab-view">
  28. <view wx:for="{{ui.tab}}" wx:key="" id="{{index}}" bindtap="tabAction">
  29. <image src="../../icon/information/{{item[1]}}.png"></image>
  30. <text>{{item[0]}}</text>
  31. </view>
  32. </view>
  33. <button wx:if="{{isLogin}}" hover-class="none" plain="true" style="border-color: rgba(0, 0, 0, 0)" session-from="sobot|{{userInfo.nickName}}|{{userInfo.avatarUrl}}|{{params}}" open-type="contact" ></button>
  34. <view class="question-view">
  35. <view>
  36. <view></view>
  37. <text>猜你遇到了以下问题</text>
  38. <view bindtap="changeQuestion" wx:if="{{data.length > 5}}">换一换</view>
  39. </view>
  40. <!-- <template is="line"/> -->
  41. </view>
  42. <template is="question-item" wx:for="{{questions}}" wx:key="" data="{{id:index, q: item}}" />
  43. <view style="width:100%;height:70px;margin-top:-0.7px;background-color:#f5f5f5;padding-bottom: env(safe-area-inset-bottom);"></view>
  44. </scroll-view>
  45. <view class="tab-shadow-view"></view>
  46. <view class="question-detail-view" hidden="{{questionDetailsView.hidden}}" bindtap="hiddenQuestionDetail">
  47. <view animation="{{questionDetailsView.animation}}">
  48. <view>
  49. <view></view>
  50. <text>{{details.topic}}</text>
  51. <image src="../../icon/public/delete.png" bindtap="hiddenQuestionDetail"></image>
  52. </view>
  53. <view></view>
  54. <scroll-view class="question-detail-scroll" scroll-y scroll-top="{{questionDetailsView.scroll}}">
  55. <text class="question-detail-title"></text>
  56. <text>{{details.answer}}</text>
  57. </scroll-view>
  58. <!-- <view ></view>
  59. <view >
  60. <text>是否对您有帮助:</text>
  61. <view>
  62. <image></image>
  63. <text>有用</text>
  64. </view>
  65. <view></view>
  66. <view>
  67. <image></image>
  68. <text>没用</text>
  69. </view>
  70. </view> -->
  71. </view>
  72. </view>
  73. <contact show="{{showContact}}" bindhiddenContact="hiddenContactListener"></contact>
  74. <template name="question-item">
  75. <view class="question-item" id="{{id}}" bindtap='showQuestionDetails'>
  76. <image src="../../icon/information/info_question.png"></image>
  77. <text>{{q}}</text>
  78. <image src="../../icon/public/arrow_right.png"></image>
  79. </view>
  80. <template is="right-line"/>
  81. </template>