searchResults.wxml 7.4 KB

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