index.vue 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. <template>
  2. <view>
  3. <public-module></public-module>
  4. <view class="headers dis a-c j-c" :style="headerStyle">
  5. <text>掌柜合伙人</text>
  6. <view class="right dis a-c">
  7. <image src="/static/home/customerService.png" mode=""></image>
  8. <text>客服</text>
  9. </view>
  10. </view>
  11. <view class="homeBackground"></view>
  12. <view class="" style="padding: 0 30rpx;">
  13. <view class="dailyData-block">
  14. <view class="title ">
  15. <text>今日状况</text>
  16. <image src="/static/home/icon1.png" class="image1" mode=""></image>
  17. <image src="/static/home/icon3.png" class="image3" mode=""></image>
  18. </view>
  19. <image src="/static/home/icon2.png" class="image2" mode=""></image>
  20. <view class="data dis f-wrap j-s">
  21. <view class="dis f-c a-start view">
  22. <text>3213213</text>
  23. <text>订单(笔)</text>
  24. </view>
  25. <view class="dis f-c a-start view">
  26. <text>3213213</text>
  27. <text>新增人员</text>
  28. </view>
  29. <view class="dis f-c a-start view">
  30. <text>3213213</text>
  31. <text>保费(元)</text>
  32. </view>
  33. <view class="dis f-c a-start view">
  34. <text>3213213</text>
  35. <text>佣金(元)</text>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="statistics">
  40. <u-tabs :list="list" :is-scroll="true" active-color="#333" inactive-color="#999" :current="current"
  41. @change="change" style="background: transparent;border-bottom: 1rpx solid #EEEEEE;"></u-tabs>
  42. <view class="count">
  43. <image src="/static/home/icon4.png" class="mb-2" mode="" @click="invitationCode"></image>
  44. <view class="data dis f-wrap j-s mb-3">
  45. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;" @click="closePartner">
  46. <text>22</text>
  47. <text>我的管理人</text>
  48. </view>
  49. <view class="dis f-c a-c view">
  50. <text>22</text>
  51. <text>管理人的工作室</text>
  52. </view>
  53. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  54. <text>22</text>
  55. <text>我今日新增合伙人</text>
  56. </view>
  57. <view class="dis f-c a-c view">
  58. <text>22</text>
  59. <text>今日管理人邀请的工作室</text>
  60. </view>
  61. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  62. <text>22</text>
  63. <text>今日保费</text>
  64. </view>
  65. <view class="dis f-c a-c view">
  66. <text>22</text>
  67. <text>今日佣金</text>
  68. </view>
  69. </view>
  70. <view class="earnings dis a-c j-s " @click="myEarnings">
  71. <view class="dis a-c ">
  72. <image src="/static/home/wallet.png" mode=""></image>
  73. <text>我的收益</text>
  74. </view>
  75. <u-icon name="arrow-right" size="30" color="rgba(35,40,50,0.5)"></u-icon>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </template>
  82. <script>
  83. import myDatePicker from '../components/todaydate-picker.vue';
  84. import QR from "@/common/wxqrcode.js"
  85. import {
  86. mapState,
  87. mapMutations
  88. } from "vuex"
  89. import {
  90. vShow
  91. } from "vue"
  92. export default {
  93. computed: {
  94. ...mapState(['userInfo', "userCheckInfo"]),
  95. },
  96. components: {
  97. myDatePicker
  98. },
  99. data() {
  100. return {
  101. list: [{
  102. name: '我是创始人'
  103. }, {
  104. name: '我是管理人'
  105. },
  106. {
  107. name: '我是合伙人'
  108. },
  109. {
  110. name: '我是工作室'
  111. }
  112. ],
  113. current: 0,
  114. showData: '全部数据',
  115. ShowModalCode: false,
  116. ShowModalCode1: false,
  117. ShowModalCodebusiness: false,
  118. teamImg: '',
  119. workImg: '',
  120. totalList: {},
  121. type: uni.getStorageSync('type'),
  122. headerStyle: {
  123. backgroundColor: 'transparent',
  124. backgroundImage: '',
  125. backgroundSize: '',
  126. backgroundPosition: '',
  127. boxShadow: ''
  128. // 其他样式属性...
  129. },
  130. styles: [{
  131. value: '1',
  132. text: '渠道',
  133. notestext: '团队长加出单员模式,无分销模式,结费都在团队长处。',
  134. checked: true
  135. },
  136. {
  137. value: '2',
  138. notestext: '团队长加代理人模式,三级分销模式,结费方式为个人,有佣金。',
  139. text: '个代'
  140. }
  141. ],
  142. deptSource: 1
  143. // type:JSON.parse(localStorage.getItem('type')).data
  144. }
  145. },
  146. async onShow(e) {
  147. this.type = uni.getStorageSync('type')
  148. this.showData = '全部数据',
  149. this.getList()
  150. // let res = await this.$http.post('/APPPartner/getHomePage', {
  151. // type: uni.getStorageSync('type'),
  152. // });
  153. // if (res.code == '200') {
  154. // this.totalList = res.data
  155. // }
  156. },
  157. methods: {
  158. change(index) {
  159. this.current = index;
  160. },
  161. async getList(beginTime, endTime) {
  162. let params = {
  163. type: this.type,
  164. "endTime": endTime || '',
  165. "beginTime": beginTime || '',
  166. }
  167. let res = await this.$http.post('/APPPartner/getHomePage', params);
  168. if (res.code == '200') {
  169. this.totalList = res.data
  170. }
  171. },
  172. searchPopup() {
  173. this.$refs.datePicker.open()
  174. },
  175. confirmPickDate(dateStr, dateStr1, val) {
  176. if (dateStr) {
  177. dateStr += ' 00:00:01'
  178. }
  179. if (dateStr1) {
  180. dateStr1 += ' 23:59:59'
  181. }
  182. this.showData = val
  183. this.getList(dateStr, dateStr1)
  184. },
  185. styleChange(e) {
  186. this.deptSource = e.detail.value
  187. },
  188. recruitmentCode() {
  189. this.ShowModalCode = true
  190. this.teamImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applyteam?userId=" + this.userInfo
  191. .sysUser.userId, {
  192. size: parseInt(200) //二维码大小
  193. })
  194. },
  195. ShowModalCodeSumbit() {
  196. console.log(this.deptSource, 44444444);
  197. this.ShowModalCode1 = true
  198. this.workImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applystudio?deptSource=" + this
  199. .deptSource + '&userId=' + this.userInfo.sysUser.userId, {
  200. size: parseInt(200) //二维码大小
  201. })
  202. },
  203. recruitmentWorkCode() {
  204. this.ShowModalCodebusiness = true
  205. this.deptSource = 1
  206. },
  207. detail(id) {
  208. uni.navigateTo({
  209. url: "/pages/institutional/walletDetail?id=" + id
  210. })
  211. },
  212. closeDetailPro(val) {
  213. uni.navigateTo({
  214. url: `/pages/institutional/detail?deptId=${val.deptId}&deptName=${val.deptName}&startTime=${val.startTime}`
  215. })
  216. },
  217. closeInstitution() {
  218. // if(this.totalList.workroomNum>0){
  219. // }
  220. // this.totalList.type=1
  221. uni.navigateTo({
  222. url: "/pages/institutional/institutionalTeam?key=" + encodeURIComponent(JSON.stringify(this
  223. .totalList))
  224. })
  225. },
  226. closeStudion() {
  227. uni.navigateTo({
  228. url: "/pages/institutional/institutional?key=" + encodeURIComponent(JSON.stringify(this
  229. .totalList))
  230. })
  231. },
  232. //人员详情
  233. closePartner() {
  234. uni.navigateTo({
  235. url: "/pages/institutional/partner"
  236. })
  237. },
  238. //我的收益
  239. myEarnings() {
  240. uni.navigateTo({
  241. url: "/pages/institutional/myEarnings"
  242. })
  243. },
  244. //邀请码
  245. invitationCode() {
  246. uni.navigateTo({
  247. url: "/pages/institutional/invitationCode"
  248. })
  249. },
  250. viewTeam() {
  251. uni.navigateTo({
  252. url: "/pages/institutional/institutional"
  253. })
  254. },
  255. bankCard() {
  256. uni.navigateTo({
  257. url: "/pages/wallet/bankCard"
  258. })
  259. },
  260. bankwallet() {
  261. uni.navigateTo({
  262. url: "/pages/index/applystudio"
  263. })
  264. },
  265. }
  266. }
  267. </script>
  268. <style lang="scss" scoped>
  269. page {
  270. background-color: #F7F7F7;
  271. }
  272. .headers {
  273. position: fixed;
  274. top: 0;
  275. left: 0;
  276. height: auto;
  277. width: 100%;
  278. z-index: 999999;
  279. padding: 30rpx;
  280. padding-top: 50px;
  281. text {
  282. font-size: 36rpx;
  283. font-weight: bold;
  284. color: #fff;
  285. }
  286. .right {
  287. position: absolute;
  288. right: 30rpx;
  289. image {
  290. width: 28rpx;
  291. height: 28rpx;
  292. margin-right: 4rpx;
  293. }
  294. text {
  295. font-weight: 400;
  296. color: #fff;
  297. font-size: 24rpx;
  298. }
  299. }
  300. }
  301. .homeBackground {
  302. height: 177px;
  303. width: 100%;
  304. background-image: url("/static/home/back.png");
  305. background-size: 100% 100%;
  306. }
  307. .dailyData-block {
  308. width: 100%;
  309. margin-top: -136rpx;
  310. background-image: url("/static/home/aaa.png");
  311. background-size: 100% 100%;
  312. backdrop-filter: blur(2rpx);
  313. padding: 20rpx 40rpx;
  314. // background: rgba(255, 255, 255, 0.2);
  315. // border-radius: 16px;
  316. // box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  317. // backdrop-filter: blur(30px);
  318. // border: 1px solid rgba(255, 255, 255, 1);
  319. .title {
  320. position: relative;
  321. display: inline-block;
  322. text {
  323. color: #fff;
  324. font-weight: bold;
  325. font-size: 36rpx;
  326. margin-left: 10rpx;
  327. }
  328. .image1 {
  329. width: 16rpx;
  330. height: 16rpx;
  331. position: absolute;
  332. top: 0;
  333. right: -20rpx;
  334. }
  335. .image3 {
  336. width: 166rpx;
  337. height: 20rpx;
  338. position: absolute;
  339. bottom: 0;
  340. left: 0;
  341. }
  342. }
  343. .image2 {
  344. width: 138rpx;
  345. height: 138rpx;
  346. position: absolute;
  347. top: -50rpx;
  348. right: 22rpx;
  349. }
  350. .data {
  351. .view {
  352. width: 50%;
  353. text:first-child {
  354. font-size: 46rpx;
  355. color: #333;
  356. font-weight: bold;
  357. }
  358. text:last-child {
  359. font-size: 24rpx;
  360. color: #666;
  361. }
  362. }
  363. }
  364. }
  365. .statistics {
  366. background: #FFFFFF;
  367. border-radius: 20rpx 20rpx 20rpx 20rpx;
  368. margin-top: 15rpx;
  369. .count {
  370. padding: 34rpx 30rpx;
  371. box-sizing: border-box;
  372. image {
  373. width: 100%;
  374. height: 120rpx;
  375. }
  376. }
  377. .data {
  378. padding: 30rpx;
  379. box-sizing: border-box;
  380. background-color: #FBFBFB;
  381. border-radius: 8rpx;
  382. .view {
  383. width: 49%;
  384. text:first-child {
  385. font-size: 36rpx;
  386. color: #333;
  387. font-weight: bold;
  388. margin-bottom: 4rpx;
  389. }
  390. text:last-child {
  391. font-size: 22rpx;
  392. color: #999;
  393. }
  394. }
  395. }
  396. .earnings {
  397. image {
  398. width: 40rpx;
  399. height: 40rpx;
  400. }
  401. text {
  402. font-size: 30rpx;
  403. color: #333;
  404. margin-left: 14rpx;
  405. }
  406. }
  407. }
  408. ::v-deep {
  409. .u-tab-bar {
  410. background: linear-gradient(90deg, #2DD9FF 0%, #2D6DFF 100%) !important;
  411. border-radius: 6rpx;
  412. }
  413. }
  414. </style>