institutional.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <template>
  2. <view class="" >
  3. <public-module></public-module>
  4. <view class="headers " :style="headerStyle">
  5. <view class="dis a-c j-start " style="padding: 0 15px;">
  6. <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
  7. <text style="margin: auto;">{{parentData.userName || '工作室'}}</text>
  8. </view>
  9. </view>
  10. <view class="body" style="background: #F8FAFE;margin-top: 85px;">
  11. <view class="partner-head">
  12. <seach @queryData="queryData" :directLsit='parentData' />
  13. </view>
  14. <card ref="card" :cardData='directLsit' :isStudio='true'></card>
  15. <!-- <block v-for="(item,index) in directLsit" :key="index">
  16. </block> -->
  17. <!-- <u-loadmore style="margin-top: 5px;" v-if="directLsit.length!=0" :status="status" />
  18. <o-empty v-if="directLsit.length==0" /> -->
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import seach from '../components/seach.vue';
  24. import card from '../components/card.vue'
  25. export default{
  26. components:{card,seach},
  27. data(){
  28. return{
  29. headerStyle: {
  30. backgroundColor: 'transparent',
  31. backgroundImage: 'url("/static/beijing (2).png")',
  32. backgroundSize: 'cover',
  33. backgroundPosition: '',
  34. boxShadow: ''
  35. // 其他样式属性...
  36. },
  37. teamTabIndex: 0,
  38. directLsit: [],
  39. source:0,
  40. totalPages:0,
  41. totalSize:0,
  42. status: 'loadmore',
  43. pageRequest: { //查询的默认条件
  44. pageNum: 1,
  45. pageSize: 20,
  46. userName:''
  47. },
  48. parentData:{},
  49. }
  50. },
  51. async onLoad(e) {
  52. this.parentData = JSON.parse(decodeURIComponent(e.key));
  53. console.log(this.parentData)
  54. this.queryData()
  55. },
  56. methods:{
  57. back() {
  58. uni.navigateBack({
  59. delta: 1, // 返回的页面数,如果是1表示返回上一页
  60. success: function() {}
  61. });
  62. },
  63. onReachBottom() {
  64. if (this.pageRequest.pageNum >= this.totalPages) return;
  65. this.status = 'loading';
  66. this.pageRequest.pageNum = ++this.pageRequest.pageNum;
  67. setTimeout(async () => {
  68. let res = await this.$http.post('/sysPartner/querySysPartnerAPPPage', {
  69. ...this.pageRequest,
  70. source:this.source
  71. });
  72. if (res.code == '200') {
  73. this.totalSize = res.data.totalSize;
  74. this.directLsit = [...this.directLsit, ...res.data.content];
  75. }
  76. if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
  77. else this.status = 'loading';
  78. }, 1000)
  79. },
  80. async queryData(data) {
  81. let params = {
  82. beginTime:data&& data.beginTime || '',
  83. endTime:data&& data.endTime || '',
  84. deptIds:this.parentData.deptIds,
  85. industrySector:data&& data.industrySector ||'',
  86. // ...this.pageRequest
  87. }
  88. let res = await this.$http.post('/APPPartner/getTeamInfo', params);
  89. if (res.code == '200') {
  90. res.data.appPartnerInfos.forEach(e=>{
  91. e.userName=e.deptName
  92. e.level=this.parentData.level
  93. })
  94. this.directLsit=res.data.appPartnerInfos
  95. this.parentData= {...this.parentData,...res.data}
  96. // this.totalPages = res.data.totalPages;
  97. // this.totalSize = res.data.totalSize;
  98. // if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
  99. // else this.status = 'loadmore';
  100. }
  101. },
  102. onShowDatePicker() { //显示
  103. this.showDatePicker = true;
  104. },
  105. }
  106. }
  107. </script>
  108. <style lang="scss" scoped>
  109. .headers {
  110. position: fixed;
  111. top: 0;
  112. left: 0;
  113. width: 100%;
  114. z-index: 999999;
  115. padding-top: 40px;
  116. height: 85px;
  117. text {
  118. font-size: 18px;
  119. font-weight: bold;
  120. }
  121. }
  122. .partner-head{
  123. background: #FFFFFF;
  124. color: #333333;
  125. font-size: 14px;
  126. i{
  127. margin-left: 2px;
  128. display:inline-block;
  129. width: 0;
  130. height: 0;
  131. border: 4px solid;
  132. border-color: #666666;
  133. border-bottom: 4px solid transparent;
  134. border-right: 4px solid transparent;
  135. border-left: 4px solid transparent;
  136. }
  137. .search-data{
  138. color: #666666;
  139. .active{
  140. color: #FFFFFF;
  141. background: linear-gradient( 132deg, #2DD9FF 0%, #2D6DFF 100%);
  142. }
  143. text{
  144. // width: 25px;
  145. // height: 25px;
  146. // text-align: center;
  147. padding: 5px 8px;
  148. border: 1px solid #EEEEEE;
  149. }
  150. }
  151. }
  152. .sum-insurance{
  153. padding: 10px 0;
  154. view{
  155. text-align: center;
  156. width: 33.33%;
  157. border-right: 1px solid #EEEEEE;
  158. text{
  159. display: block;
  160. }
  161. text:first-child{
  162. font-weight: 600;
  163. font-size: 18px;
  164. color: #333333;
  165. }
  166. text:last-child{
  167. font-size: 10px;
  168. color: #999999;
  169. }
  170. }
  171. }
  172. .card{
  173. background: #FFFFFF;
  174. border-radius: 5px 5px 5px 5px;
  175. margin: 10px;
  176. background-image: url("/static/card.png");
  177. background-size: 100% 100%;
  178. border-top: 1px solid;
  179. border-image: linear-gradient(270deg, rgba(45, 217, 255, 0), rgba(45, 217, 255, 1), rgba(45, 217, 255, 0)) 1 1;
  180. .card-title{
  181. text:first-child{
  182. font-weight: 600;
  183. font-size: 16px;
  184. color: #333333;
  185. }
  186. text:last-child{
  187. font-size: 12px;
  188. color: #666666;
  189. }
  190. }
  191. .card-con{
  192. padding: 10px 0;
  193. view{
  194. text-align: center;
  195. width: 33.33%;
  196. border-right: 1px solid #EEEEEE;
  197. text{
  198. display: block;
  199. }
  200. text:first-child{
  201. font-weight: 600;
  202. font-size: 18px;
  203. color: #333333;
  204. line-height: 18px;
  205. }
  206. text:last-child{
  207. font-size: 10px;
  208. color: #999999;
  209. }
  210. }
  211. }
  212. .card-footer{
  213. border-top: 1px solid #EEEEEE;
  214. line-height: 42px;
  215. image{
  216. display: inline-block;
  217. width: 17px;
  218. height:17px;
  219. vertical-align: middle;
  220. margin-right: 8px;
  221. }
  222. text{
  223. width: 49%;
  224. text-align: center;
  225. line-height: 40px;
  226. font-size: 16px;
  227. color: #333333;
  228. }
  229. }
  230. }
  231. </style>