institutional.vue 5.8 KB

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