index.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <template>
  2. <view>
  3. <public-module></public-module>
  4. <view class="headers " :style="headerStyle">
  5. <view class="dis a-c j-c">
  6. <text>首页</text>
  7. </view>
  8. </view>
  9. <!-- <image style="position: relative;height:230px" src="../../static/beijing.png"></image> -->
  10. <!-- <image v-if="type == 1" style="position: relative;height:230px" src="../../static/shouye1.png"></image> -->
  11. <view class="Personnel">
  12. <view class="avatar">
  13. <image src="/static/img/Frame (8).png" mode=""></image>
  14. <text>团队新人员加入信息/新出单信息</text>
  15. </view>
  16. <uni-notice-bar show-icon scrollable text="uni-app 版正式发布,开发一次,同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。" />
  17. <!-- <view class="homepage" style="position: absolute;padding: 0px 20px; top: 170px;">
  18. <view class="wallet" @click="bankwallet()">
  19. <view>钱包</view>
  20. <view>查看金额与记录</view>
  21. </view>
  22. <view class="wallet" @click="detail()">
  23. <view>绑定银行卡</view>
  24. <view>提现请先绑定</view>
  25. </view>
  26. </view> -->
  27. </view>
  28. <view class="insurance dis j-s" >
  29. <view style="text-align: center;">
  30. <view class="insurance-cash" >{{totalList.sumPremium}}</view>
  31. <text class="insurance-text">总保费 </text>
  32. </view>
  33. <view style="text-align: center;">
  34. <view class="insurance-cash">{{totalList.teamManNum }}</view>
  35. <text class="insurance-text">总人数 </text>
  36. </view>
  37. <view style="text-align: center;">
  38. <view class="insurance-cash">{{totalList.extractFee}}</view>
  39. <text class="insurance-text">总佣金</text>
  40. </view>
  41. </view>
  42. <view >
  43. <view class="institutional-data" v-if="type == 2">
  44. <view class="inst-con" @click="closeStudion()">
  45. <view>工作室</view>
  46. <text >{{totalList.workroomTeamNum}}</text>
  47. </view>
  48. <!-- <view class="institutional-title homepage">
  49. <text>团队贡献数据</text>
  50. <text @click="viewTeam()" class="view-now" style="font-size: 11px;" >查看更多</text>
  51. </view>
  52. <o-empty height="15vh" v-if="totalList1.length==0" />
  53. <view class="institutional-list" v-if="totalList1.length > 0">
  54. <view style="padding: 10px 0;">
  55. <view class="homepage" style="font-size: 13px;font-weight: 500;">
  56. <text>{{ totalList1[0].deptName }}</text>
  57. </view>
  58. <view class="dis j-s">
  59. <view type="primary" size="mini">负责人:{{ totalList1[0].userName }}</view>
  60. <text @click="closeDetailPro(totalList1[0])" class="view-now1"
  61. >查看详情</text>
  62. </view>
  63. </view>
  64. <view style="padding: 10px 0;border-top: 1px solid #ccc" v-if="totalList1.length > 1">
  65. <view class="homepage" style="font-size: 13px;font-weight: 500;">
  66. <text>{{ totalList1[1].deptName }}</text>
  67. </view>
  68. <view class="dis j-s">
  69. <view type="primary" size="mini">负责人:{{ totalList1[1].userName }}</view>
  70. <text class="view-now1" @click="closeDetailPro(totalList1[1])"
  71. >查看详情</text>
  72. </view>
  73. </view>
  74. </view> -->
  75. </view>
  76. <view class="inst-data dis j-s" v-if="type == 1">
  77. <view class="inst-con" @click="closePartner()">
  78. <view>合伙人</view>
  79. <text >{{totalList.partnerNum}}</text>
  80. </view>
  81. <view class="inst-con" @click="closeInstitution()">
  82. <view>工作室</view>
  83. <text >{{totalList.workroomNum}}</text>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </template>
  89. <script>
  90. export default {
  91. data() {
  92. return {
  93. totalList:{},
  94. type: uni.getStorageSync('type'),
  95. headerStyle: {
  96. backgroundColor: 'transparent',
  97. backgroundImage: '',
  98. backgroundSize: '',
  99. backgroundPosition: '',
  100. boxShadow: ''
  101. // 其他样式属性...
  102. },
  103. // type:JSON.parse(localStorage.getItem('type')).data
  104. }
  105. },
  106. async onLoad(e) {
  107. this.type = uni.getStorageSync('type')
  108. let res = await this.$http.get('/APPPartner/getHomePage', {
  109. type: uni.getStorageSync('type'),
  110. });
  111. if (res.code == '200') {
  112. this.totalList = res.data
  113. }
  114. },
  115. methods: {
  116. detail(id){
  117. uni.navigateTo({
  118. url: "/pages/institutional/walletDetail?id="+id
  119. })
  120. },
  121. closeDetailPro(val){
  122. uni.navigateTo({
  123. url: `/pages/institutional/detail?deptId=${val.deptId}&deptName=${val.deptName}&startTime=${val.startTime}`
  124. })
  125. },
  126. closeInstitution() {
  127. this.totalList.type=1
  128. uni.navigateTo({
  129. url: "/pages/institutional/institutionalTeam?key="+encodeURIComponent(JSON.stringify(this.totalList))
  130. })
  131. },
  132. closeStudion() {
  133. uni.navigateTo({
  134. url: "/pages/institutional/institutional?key="+encodeURIComponent(JSON.stringify(this.totalList))
  135. })
  136. },
  137. closePartner() {
  138. uni.navigateTo({
  139. url: "/pages/institutional/partner"
  140. })
  141. },
  142. viewTeam() {
  143. uni.navigateTo({
  144. url: "/pages/institutional/institutional"
  145. })
  146. },
  147. bankCard() {
  148. uni.navigateTo({
  149. url: "/pages/wallet/bankCard"
  150. })
  151. },
  152. bankwallet() {
  153. uni.navigateTo({
  154. url: "/pages/institutional/wallet"
  155. })
  156. },
  157. }
  158. }
  159. </script>
  160. <style lang="scss" scoped>
  161. .homepage {
  162. display: flex;
  163. width: 100%;
  164. justify-content: space-between;
  165. }
  166. .homepage>view {
  167. width: 47%;
  168. height: 100px;
  169. // min-height: 18vh;
  170. // max-height: 22vh;
  171. background-size: contain;
  172. }
  173. .wallet {
  174. padding: 15upx 20upx;
  175. }
  176. .wallet>view:nth-child(1) {
  177. color: #333333;
  178. font-size: 14px;
  179. font-weight: bold;
  180. }
  181. .wallet>view:nth-child(2) {
  182. margin-top: 5upx;
  183. font-size: 12px;
  184. color: rgba(51, 51, 51, 0.8);
  185. }
  186. .homepage>view:nth-child(1) {
  187. background: url(../../static/qianbao.png) no-repeat;
  188. background-size: 100% 100%;
  189. }
  190. .homepage>view:nth-child(2) {
  191. background: url(../../static/yinhangka.png) no-repeat;
  192. background-size: 100% 100%;
  193. }
  194. .institutional-data {
  195. margin: 16px;
  196. .inst-con {
  197. padding: 13px 18px;
  198. width: 100%;
  199. background: url(../../static/工作室.png) no-repeat;
  200. background-size: 100% 100%;
  201. color: #009B9F;
  202. }
  203. }
  204. // .institutional-title {
  205. // padding: 10upx 10upx 20upx 10upx;
  206. // font-weight: bold;
  207. // text {
  208. // font-size: 14px;
  209. // }
  210. // }
  211. // .institutional-list {
  212. // background: #FFFFFF;
  213. // border-radius: 12px 12px 12px 12px;
  214. // padding: 0 20upx;
  215. // font-size: 38upx;
  216. // }
  217. .view-now {
  218. background: linear-gradient(90deg, #7E99D1 0%, #4F78B1 100%);
  219. border-radius: 20px 20px 20px 20px;
  220. color: #fff;
  221. font-size: 11px;
  222. padding: 2px 10px;
  223. }
  224. .view-now1{
  225. background-color: rgba(79, 120, 177, 0.1);
  226. color: #537BB4;
  227. border-radius: 20px 20px 20px 20px;
  228. font-size: 11px;
  229. padding: 2px 10px;
  230. }
  231. .homepage-title {
  232. margin-top: 5px;
  233. button {
  234. background-color: #FEF0E1;
  235. color: #FE8F1C;
  236. }
  237. }
  238. .homepage-title>button:last-child {
  239. background: #E6FAE3;
  240. color: #3AC716;
  241. margin-left: 10px;
  242. }
  243. .button1 {
  244. background-color: #FEF0E1;
  245. color: #FE8F1C;
  246. font-size: 11px;
  247. padding: 5px 10px
  248. }
  249. .button2 {
  250. background: #E6FAE3;
  251. color: #3AC716;
  252. margin-left: 10px;
  253. font-size: 11px;
  254. padding: 5px 10px
  255. }
  256. .inst-data {
  257. margin: 16px;
  258. }
  259. .inst-con {
  260. width: 47%;
  261. padding: 13px 18px;
  262. }
  263. .inst-con>view:nth-child(1) {
  264. font-size: 19px;
  265. font-weight: 700;
  266. }
  267. .inst-con>view:nth-child(2) {
  268. font-size: 13px;
  269. font-weight: 400;
  270. }
  271. .inst-data>view:nth-child(1) {
  272. background: url(../../static/合伙人.png) no-repeat;
  273. background-size: 100% 100%;
  274. color: #3168DA;
  275. }
  276. .inst-data>view:nth-child(2) {
  277. background: url(../../static/工作室.png) no-repeat;
  278. background-size: 100% 100%;
  279. color: #009B9F;
  280. }
  281. .headers {
  282. position: fixed;
  283. top: 0;
  284. left: 0;
  285. height: auto;
  286. width: 100%;
  287. z-index: 999999;
  288. padding: 16px;
  289. padding-top: 40px;
  290. >view {
  291. width: 100%;
  292. height: 100%;
  293. position: relative;
  294. }
  295. text {
  296. font-size: 18px;
  297. font-weight: 700;
  298. color: #333333;
  299. }
  300. }
  301. .Personnel {
  302. height: auto;
  303. width: 100%;
  304. background: #F7F7F7;
  305. background-image: url("/static/beijing.png");
  306. background-size: 100% 100%;
  307. padding: 200px 16px 15px 16px;
  308. .avatar {
  309. background: #FFFFFF;
  310. box-shadow: 0px 0 8px 0px rgba(0,0,0,0.1);
  311. border-radius: 5px 5px 5px 5px;
  312. padding: 0 10px;
  313. line-height: 35px;
  314. height: 35px;
  315. image {
  316. display: inline-block;
  317. width: 16px;
  318. height: 16px;
  319. vertical-align: middle;
  320. margin-right: 5px;
  321. }
  322. }
  323. }
  324. .insurance{
  325. margin: 0 16px;
  326. background: #FFFFFF;
  327. box-shadow: 0px 0 8px 0px rgba(0,0,0,0.1);
  328. border-radius: 5px 5px 5px 5px;
  329. padding: 20px 30px;
  330. .insurance-cash{
  331. font-weight: 700;
  332. font-size: 21px;
  333. color: #333333;
  334. line-height: 24px;
  335. margin-bottom: 5px;
  336. }
  337. .insurance-text{
  338. font-weight: 300;
  339. font-size: 13px;
  340. color: #999999;
  341. line-height: 15px;
  342. }
  343. }
  344. .studio{
  345. margin:16px;
  346. }
  347. </style>