searchResults.wxml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!--pages/searchResults/searchResults.wxml-->
  2. <navBar></navBar>
  3. <wux-gallery id="wux-gallery" />
  4. <van-notify id="van-notify" />
  5. <myFloatButton count="{{patentNoList.length}}" bind:click="clickButton"></myFloatButton>
  6. <myDialog isShown="{{showDialog}}" title="选择关注的类型" bindcancel="closeDialog" bindconfirm="confirm">
  7. <view>
  8. <view class="grids" bordered="{{ false }}">
  9. <view class="grid {{followType == 1?'checked':''}}" data-type="1" catch:tap="attention">
  10. <view class="iconfont myIconanquanbangzhu operate_icon"></view>
  11. <view class="operate_text">白名单</view>
  12. </view>
  13. <view class="line"></view>
  14. <view class="grid {{followType == 2?'checked':''}}" data-type="2" catch:tap="attention">
  15. <view class="iconfont myIcongroup43 operate_icon"></view>
  16. <view class="operate_text">灰名单</view>
  17. </view>
  18. <view class="line"></view>
  19. <view class="grid {{followType == 0?'checked':''}}" data-type="0" catch:tap="attention">
  20. <view class="iconfont myIconicon-test operate_icon"></view>
  21. <view class="operate_text">黑名单</view>
  22. </view>
  23. </view>
  24. <view class="isAdd">
  25. <van-checkbox value="{{ isAdd }}" bind:change="changeIsAdd">选择的专利是否收藏到对应产品当中</van-checkbox>
  26. </view>
  27. </view>
  28. </myDialog>
  29. <wux-fab-button
  30. position="bottomRight"
  31. theme="balanced"
  32. direction="vertical"
  33. reverse="{{false}}"
  34. spaceBetween="{{ 10 }}"
  35. sAngle="{{ 0 }}"
  36. eAngle="{{ 360 }}"
  37. buttons="{{ buttons }}"
  38. bind:change="onChange"
  39. bind:click="onClick"
  40. bind:contact="onContact"
  41. bind:getuserinfo="onGotUserInfo"
  42. />
  43. <wux-refresher
  44. id="wux-refresher"
  45. bind:pulling="onPulling"
  46. bind:refresh="onRefresh"
  47. scrollTop="{{scrollTop}}"
  48. >
  49. <scroll-view scroll-y class="searchResults">
  50. <view class="head">
  51. <view class="img">
  52. <image class="img" src="/static/image/logo-3.png" mode=""/>
  53. </view>
  54. <view>
  55. <myInput value="{{keyword}}" placeholder="请输入产品相关关键词" bindchange="changeKeyword" bindsearch="search" bindclickInnerIcon="clickInnerIcon"></myInput>
  56. </view>
  57. </view>
  58. <view class="product">
  59. <view class="product_head">
  60. <view class="product_text">
  61. <wux-ellipsis class="head_left_title" wx:if="{{product.name}}" direction="end" content="产品名称:{{ product.name }}"/>
  62. <!-- <text wx:if="{{product.name}}">产品名称:{{product.name}}</text> -->
  63. </view>
  64. <view wx:if="{{product.concernType == 0 || product.concernType}}" class="product_icon">
  65. <view class="iconfont {{concernType[product.concernType]}}" style="font-size: 50rpx;" catch:tap="cancelFollow"></view>
  66. <view class="iconfont myIconmonitor" data-index="{{index}}" catch:tap="control"></view>
  67. </view>
  68. <view wx:else class="product_icon">
  69. <view class="iconfont myIconguanzhu" data-index="{{index}}" bind:tap="open"></view>
  70. <view class="iconfont myIconmonitor" data-index="{{index}}" bind:tap="control"></view>
  71. </view>
  72. </view>
  73. <view>
  74. <swiper class="swiper" autoplay="{{false}}" interval="{{3000}}" duration="{{500}}" indicator-dots="{{false}}">
  75. <block wx:if="{{searchType == 1 && product.systemFileList && product.systemFileList.length>0}}">
  76. <swiper-item wx:for="{{product.systemFileList}}" wx:for-item="img" wx:key="*this">
  77. <!-- <image src="{{imgHttp+img.guid}}" class="slide-image" /> -->
  78. <!-- <view class="slide-image" style="background-image: url('{{imgHttp+img.guid}}')"></view> -->
  79. <image src="{{imgHttp+img.guid}}" class="slide-image" mode="aspectFit"/>
  80. </swiper-item>
  81. </block>
  82. <swiper-item wx:elif="{{searchType == 0 && product.filePath}}">
  83. <image class="slide-image" src="{{product.filePath}}" mode="aspectFit"/>
  84. <!-- <view class="slide-image" style="background-image: url('{{product.filePath}}')"></view> -->
  85. </swiper-item>
  86. <swiper-item wx:else>
  87. <image class="slide-image" src="/static/image/empty.gif" mode="aspectFit"/>
  88. <!-- <view class="slide-image" style="background-image: url('/static/image/empty.gif')"></view> -->
  89. </swiper-item>
  90. </swiper>
  91. </view>
  92. <view class="product_text" wx:if="{{product.key}}">
  93. 检索内容:{{product.key}}
  94. </view>
  95. </view>
  96. <van-divider customStyle=" border-color: #6b6b6b;" dashed />
  97. <view class="content">
  98. <view class="content_head">
  99. <view class="content_head_description">注:非会员可选择100条</view>
  100. <view class="content_head_result">
  101. <view class="content_head_result_description">以下是您的检索结果:</view>
  102. <!-- <view class="content_head_result_btn" bind:tap="export">
  103. 一键导出
  104. </view> -->
  105. </view>
  106. </view>
  107. <view class="content_result" wx:if="{{tableData.length>0}}">
  108. <block wx:for="{{tableData}}" wx:key="index">
  109. <myCard edit="{{false}}">
  110. <view slot="head_left">
  111. <van-tag round color="#3f395c">{{index+ 1}}</van-tag> 专利号:{{item.appNo}}
  112. </view>
  113. <view slot="head_right">
  114. <van-checkbox-group value="{{ patentNoList }}" data-item="{{item}}" data-index="{{index}}" data-appNo="{{item.appNo}}" bind:change="changePatentNoList">
  115. <van-checkbox name="{{item.appNo}}"></van-checkbox>
  116. </van-checkbox-group>
  117. </view>
  118. <view>
  119. <swiper indicator-dots="{{true}}"
  120. autoplay="{{false}}" interval="{{2000}}" duration="{{500}}">
  121. <block wx:if="{{item.imageList && item.imageList.length>0}}" wx:for="{{item.imageList}}" wx:for-item="img" wx:key="index">
  122. <swiper-item>
  123. <view style="background-image: url('{{imgHttp+img.guid}}')" class="slide-image" data-current="{{img}}" data-imgList="{{item.imageList}}" bind:tap="previewImage"></view>
  124. <!-- <image src="{{imgHttp+img.guid}}" class="slide-image" data-current="{{img}}" data-imgList="{{item.systemFileList}}" bindtap="previewImage" mode="aspectFit"/> -->
  125. </swiper-item>
  126. </block>
  127. </swiper>
  128. <view wx:if="{{item.rightHolder && item.rightHolder.length>0}}">
  129. 专利权人:{{item.rightHolder[0].name}}
  130. </view>
  131. </view>
  132. </myCard>
  133. </block>
  134. <view class="loadData" wx:if="{{total && tableData.length>0}}">
  135. <view wx:if="{{total>tableData.length}}" bind:tap="loadMore">加载更多</view>
  136. <wux-spin wux-class="spin" size="small" wx:elif="{{loading}}"/>
  137. <view wx:elif="{{total>10}}">没有更多了</view>
  138. </view>
  139. </view>
  140. <van-empty wx:else description="暂无数据" />
  141. </view>
  142. </scroll-view>
  143. </wux-refresher>