index.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414
  1. <template>
  2. <view>
  3. <public-module></public-module>
  4. <view class="headers dis a-c j-c" :style="headerStyle">
  5. <text>{{userInfo.sysUser.userName}}</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 " @click="searchPopup">
  15. <view class="search">
  16. <text>{{ startTime && endTime ? startTime + '-' + endTime : '时间筛选' }}</text>
  17. <i></i>
  18. </view>
  19. <image src="/static/home/icon3.png" class="image3" mode=""></image>
  20. </view>
  21. <image src="/static/home/icon2.png" class="image2" mode=""></image>
  22. <view class="data dis f-wrap j-s">
  23. <view class="dis f-c a-start view">
  24. <text>{{numberFormat(todayOverview.numberOrders || 0) }}</text>
  25. <text>订单(笔)</text>
  26. </view>
  27. <view class="dis f-c a-start view">
  28. <text>{{numberFormat(todayOverview.addPerNumber || 0) }}</text>
  29. <text>新增人员</text>
  30. </view>
  31. <view class="dis f-c a-start view">
  32. <text>{{numberFormat(todayOverview.premium || 0)}}</text>
  33. <text>保费(元)</text>
  34. </view>
  35. <view class="dis f-c a-start view">
  36. <text>{{numberFormat(todayOverview.commission || 0 ) }}</text>
  37. <text>佣金(元)</text>
  38. </view>
  39. </view>
  40. </view>
  41. <!-- 我的收益 -->
  42. <view class="earnings dis a-c j-s mt-2" @click="myEarnings">
  43. <view class="dis a-c ">
  44. <image src="/static/home/wallet.png" mode=""></image>
  45. <image class="incomeText ml-1" src="/static/home/incomeText.png" mode=""></image>
  46. <image class="income" src="/static/home/income.png" mode=""></image>
  47. </view>
  48. <view class="btn">
  49. 去查看
  50. </view>
  51. </view>
  52. <view class="statistics">
  53. <uni-tabs :list="teamOverview" :is-scroll="true" name="gradeName" active-color="#333"
  54. inactive-color="#999" :current="current" @change="change"
  55. style="background: transparent;border-bottom: 1rpx solid #EEEEEE;"></uni-tabs>
  56. <view class="count">
  57. <template v-if="teamOverviewInfo.grade==1">
  58. <image src="/static/home/icon4.png" class="mb-2" mode=""
  59. @click="invitationCode(teamOverviewInfo.grade)">
  60. </image>
  61. <view class="data dis f-wrap j-s ">
  62. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  63. @click="closePartner">
  64. <text>{{teamOverviewInfo.vo1.v1 || 0}}</text>
  65. <text>我的管理人</text>
  66. </view>
  67. <view class="dis f-c a-c view">
  68. <text>{{teamOverviewInfo.vo1.v2 || 0}}</text>
  69. <text>管理人的合伙人</text>
  70. </view>
  71. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  72. @click="todayclosePartner">
  73. <text>{{teamOverviewInfo.vo1.v3 || 0}}</text>
  74. <text>我今日新增管理人</text>
  75. </view>
  76. <view class="dis f-c a-c view">
  77. <text>{{teamOverviewInfo.vo1.v4 || 0}}</text>
  78. <text>今日管理人邀请的合伙人</text>
  79. </view>
  80. </view>
  81. <view class="data dis f-wrap j-s mt-2">
  82. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  83. <text>{{userWalletInfo.sumPremium || 0}}</text>
  84. <text>保费</text>
  85. </view>
  86. <view class="dis f-c a-c view">
  87. <text>{{userWalletInfo.extractFee || 0}}</text>
  88. <text>佣金</text>
  89. </view>
  90. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  91. <text>{{userWalletInfo.historyFee || 0}}</text>
  92. <text>佣金已转入</text>
  93. </view>
  94. <view class="dis f-c a-c view">
  95. <text>{{userWalletInfo.cashFee || 0}}</text>
  96. <text>佣金未转入</text>
  97. <view class="commissionIn" @click="roleCommInShow=true">
  98. <text>转入</text>
  99. <u-icon name="arrow-rightward" color="#2D6DFF" size="20"></u-icon>
  100. </view>
  101. </view>
  102. </view>
  103. </template>
  104. <template v-if="teamOverviewInfo.grade==2 ">
  105. <image src="/static/home/icon5.png" class="mb-2" mode=""
  106. @click="invitationCode(teamOverviewInfo.grade)">
  107. </image>
  108. <view class="data dis f-wrap j-s ">
  109. <!-- 权限锁定组件 -->
  110. <!-- <uni-permission-view v-if="teamOverviewInfo.parentStatus=='2'"
  111. :genericText="teamOverviewInfo.lockCommission?`解锁“${gradeText}”,立即到账<text style='color:#F74141;font-weight: bold;'>${teamOverviewInfo.lockCommission}</text>元`:`完成任务,解锁“${gradeText}”,佣金即可提现到账`"
  112. cornerRadius="8rpx" :imageStyle="{width:'109rpx',height:'107rpx'}"
  113. @requestUnlock="requestUnlock">
  114. </uni-permission-view> -->
  115. <!-- 权限锁定组件 -->
  116. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  117. @click="closePartner">
  118. <text>{{teamOverviewInfo.vo2.v1 || 0}}</text>
  119. <text>我的合伙人</text>
  120. </view>
  121. <view class="dis f-c a-c view">
  122. <text>{{teamOverviewInfo.vo2.v2 || 0}}</text>
  123. <text>合伙人的工作室</text>
  124. </view>
  125. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  126. @click="todayclosePartner">
  127. <text>{{teamOverviewInfo.vo2.v3 || 0}}</text>
  128. <text>我今日新增合伙人</text>
  129. </view>
  130. <view class="dis f-c a-c view">
  131. <text>{{teamOverviewInfo.vo2.v4 || 0}}</text>
  132. <text>今日合伙人邀请的工作室</text>
  133. </view>
  134. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  135. <text>{{teamOverviewInfo.vo2.v5 || 0}}</text>
  136. <text>今日保费</text>
  137. </view>
  138. <view class="dis f-c a-c view">
  139. <text>{{teamOverviewInfo.vo2.v6 || 0}}</text>
  140. <text>今日佣金</text>
  141. </view>
  142. </view>
  143. <view class="data dis f-wrap j-s mt-2">
  144. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  145. <text>{{userWalletInfo.sumPremium ||0 }}</text>
  146. <text>保费</text>
  147. </view>
  148. <view class="dis f-c a-c view">
  149. <text>{{userWalletInfo.extractFee ||0}}</text>
  150. <text>佣金</text>
  151. </view>
  152. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  153. <text>{{userWalletInfo.historyFee ||0 }}</text>
  154. <text>佣金已转入</text>
  155. </view>
  156. <view class="dis f-c a-c view">
  157. <text>{{userWalletInfo.expired||0 }}</text>
  158. <text>佣金已过期</text>
  159. </view>
  160. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  161. <text>{{userWalletInfo.cashFee ||0 }}</text>
  162. <text>佣金未转入</text>
  163. <view class="commissionIn " @click="roleCommInShow=true">
  164. <text>转入</text>
  165. <u-icon name="arrow-rightward" color="#2D6DFF" size="20"></u-icon>
  166. </view>
  167. </view>
  168. <view class="dis f-c a-c view">
  169. <text
  170. :style="{color:userWalletInfo.freeze>0?'#999':'#333'}">{{userWalletInfo.freeze ||0}}</text>
  171. <text>佣金已冻结</text>
  172. <image v-if="userWalletInfo.freeze>0" class="frozen" src="/static/home/frozen.png"
  173. mode="">
  174. </image>
  175. </view>
  176. </view>
  177. </template>
  178. <template v-if="teamOverviewInfo.grade==3 ">
  179. <image src="/static/home/icon6.png" class="mb-2" mode=""
  180. @click="invitationCode(teamOverviewInfo.grade)">
  181. </image>
  182. <view class="data dis f-wrap j-s ">
  183. <!-- 权限锁定组件 -->
  184. <!-- <uni-permission-view v-if="teamOverviewInfo.parentStatus=='2'"
  185. :genericText="teamOverviewInfo.lockCommission?`解锁“${gradeText}”,立即到账<text style='color:#F74141;font-weight: bold;'>${teamOverviewInfo.lockCommission}</text>元`:`完成任务,解锁“${gradeText}”,佣金即可提现到账`"
  186. cornerRadius="8rpx" :imageStyle="{width:'109rpx',height:'107rpx'}"
  187. @requestUnlock="requestUnlock"
  188. :btnText="teamOverviewInfo.upgradeStatus==2?'申请中':'立即解锁'">
  189. </uni-permission-view> -->
  190. <!-- 权限锁定组件 -->
  191. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  192. @click="closePartner">
  193. <text>{{teamOverviewInfo.vo3.v1 || 0}}</text>
  194. <text>我的工作室</text>
  195. </view>
  196. <view class="dis f-c a-c view">
  197. <text>{{teamOverviewInfo.vo3.v2 || 0}}</text>
  198. <text>工作室下的业务团队</text>
  199. </view>
  200. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  201. @click="todayclosePartner">
  202. <text>{{teamOverviewInfo.vo3.v3 || 0}}</text>
  203. <text>我今日新增工作室</text>
  204. </view>
  205. <view class="dis f-c a-c view">
  206. <text>{{teamOverviewInfo.vo3.v4 || 0}}</text>
  207. <text>今日工作室邀请的团队</text>
  208. </view>
  209. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  210. <text>{{teamOverviewInfo.vo3.v5 || 0}}</text>
  211. <text>今日保费</text>
  212. </view>
  213. <view class="dis f-c a-c view">
  214. <text>{{teamOverviewInfo.vo3.v6 || 0}}</text>
  215. <text>今日佣金</text>
  216. </view>
  217. </view>
  218. <view class="data dis f-wrap j-s mt-2">
  219. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  220. <text>{{userWalletInfo.sumPremium ||0 }}</text>
  221. <text>保费</text>
  222. </view>
  223. <view class="dis f-c a-c view">
  224. <text>{{userWalletInfo.extractFee ||0}}</text>
  225. <text>佣金</text>
  226. </view>
  227. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  228. <text>{{userWalletInfo.historyFee ||0 }}</text>
  229. <text>佣金已转入</text>
  230. </view>
  231. <view class="dis f-c a-c view">
  232. <text>{{userWalletInfo.expired||0 }}</text>
  233. <text>佣金已过期</text>
  234. </view>
  235. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  236. <text>{{userWalletInfo.cashFee ||0 }}</text>
  237. <text>佣金未转入</text>
  238. <view class="commissionIn " @click="roleCommInShow=true">
  239. <text>转入</text>
  240. <u-icon name="arrow-rightward" color="#2D6DFF" size="20"></u-icon>
  241. </view>
  242. </view>
  243. <view class="dis f-c a-c view">
  244. <text
  245. :style="{color:userWalletInfo.freeze>0?'#999':'#333'}">{{userWalletInfo.freeze ||0}}</text>
  246. <text>佣金已冻结</text>
  247. <image v-if="userWalletInfo.freeze>0" class="frozen" src="/static/home/frozen.png"
  248. mode="">
  249. </image>
  250. </view>
  251. </view>
  252. </template>
  253. <template v-if="teamOverviewInfo.grade==4 ">
  254. <image src="/static/home/icon7.png" class="mb-2" mode=""
  255. @click="invitationCode(teamOverviewInfo.grade)">
  256. </image>
  257. <view class="data dis f-wrap j-s ">
  258. <!-- 权限锁定组件 -->
  259. <!-- <uni-permission-view v-if="teamOverviewInfo.parentStatus=='2'"
  260. :genericText="teamOverviewInfo.lockCommission?`解锁“${gradeText}”,立即到账<text style='color:#F74141;font-weight: bold;'>${teamOverviewInfo.lockCommission}</text>元`:`完成任务,解锁“${gradeText}”,佣金即可提现到账`"
  261. cornerRadius="8rpx" :imageStyle="{width:'109rpx',height:'107rpx'}"
  262. @requestUnlock="requestUnlock">
  263. </uni-permission-view> -->
  264. <!-- 权限锁定组件 -->
  265. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  266. @click="closePartner">
  267. <text>{{teamOverviewInfo.vo4.v1 || 0}}</text>
  268. <text>我的团队</text>
  269. </view>
  270. <view class="dis f-c a-c view">
  271. <text>{{teamOverviewInfo.vo4.v2 || 0}}</text>
  272. <text>代理人人数</text>
  273. </view>
  274. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  275. @click="todayclosePartner">
  276. <text>{{teamOverviewInfo.vo4.v3 || 0}}</text>
  277. <text>我今日新增团队</text>
  278. </view>
  279. <view class="dis f-c a-c view">
  280. <text>{{teamOverviewInfo.vo4.v4 || 0}}</text>
  281. <text>今日新增代理人</text>
  282. </view>
  283. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  284. <text>{{teamOverviewInfo.vo4.v5 || 0}}</text>
  285. <text>今日保费</text>
  286. </view>
  287. <view class="dis f-c a-c view">
  288. <text>{{teamOverviewInfo.vo4.v6 || 0 }}</text>
  289. <text>今日佣金</text>
  290. </view>
  291. </view>
  292. <view class="data dis f-wrap j-s mt-2">
  293. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  294. <text>{{userWalletInfo.sumPremium ||0 }}</text>
  295. <text>保费</text>
  296. </view>
  297. <view class="dis f-c a-c view">
  298. <text>{{userWalletInfo.extractFee ||0}}</text>
  299. <text>佣金</text>
  300. </view>
  301. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
  302. @click="incomingTransferLog">
  303. <text>{{userWalletInfo.historyFee ||0 }}</text>
  304. <text>佣金已转入</text>
  305. </view>
  306. <view class="dis f-c a-c view" @click="accountExpireRecord">
  307. <text>{{userWalletInfo.expired||0 }}</text>
  308. <text>佣金已过期</text>
  309. </view>
  310. <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
  311. <text>{{userWalletInfo.cashFee ||0 }}</text>
  312. <text>佣金未转入</text>
  313. <view class="commissionIn " @click="roleCommInShow=true">
  314. <text>转入</text>
  315. <u-icon name="arrow-rightward" color="#2D6DFF" size="20"></u-icon>
  316. </view>
  317. </view>
  318. <view class="dis f-c a-c view" @click="accountFreezeRecord">
  319. <text
  320. :style="{color:userWalletInfo.freeze>0?'#999':'#333'}">{{userWalletInfo.freeze ||0}}</text>
  321. <text>佣金已冻结</text>
  322. <image v-if="userWalletInfo.freeze>0" class="frozen" src="/static/home/frozen.png"
  323. mode="">
  324. </image>
  325. </view>
  326. </view>
  327. </template>
  328. </view>
  329. </view>
  330. </view>
  331. <!-- 购买等级 -->
  332. <view class="purchaseLevels dis a-c j-c " v-if="teamOverviewInfo.parentStatus == '2'">
  333. <view class="purchaseLevel">
  334. <!-- 头部 -->
  335. <view class="header dis a-c j-c mb-2">
  336. <!-- 星星装饰图 -->
  337. <image class="star" src="/static/image/my/upgradeTask/star-left.png" mode=""></image>
  338. <view class="title ">
  339. <text>完成任务或直接联系客服购买该等级</text>
  340. <view class="line"></view>
  341. </view>
  342. <image class="star" src="/static/image/my/upgradeTask/star-right.png" mode=""></image>
  343. </view>
  344. <!-- 内容 -->
  345. <view class="dis a-c j-s">
  346. <!-- 左侧红包样式 -->
  347. <view class="redPacket">
  348. <!-- 红包图片 -->
  349. <image class="redPacket-img" src="/static/image/my/upgradeTask/redPacket.png" mode="">
  350. </image>
  351. <!-- 锁定样式 -->
  352. <view class="lock">
  353. <image class="lock-img" src="/static/image/my/upgradeTask/lock.png" mode=""></image>
  354. </view>
  355. </view>
  356. <view class="redPacket-data dis f-c">
  357. <view class="dis a-c ">
  358. <text class="sum">¥{{teamOverviewInfo.lockCommission || 0 }}</text>
  359. <text class="days">(已锁定 {{teamOverviewInfo.zeroDays || 0}}天清0)</text>
  360. </view>
  361. <text class="ml-1" style="font-size: 26rpx;color: #999;">支付<text
  362. style="color: #FFA008;">{{teamOverviewInfo.fallAmount}}</text>
  363. 元可解锁</text>
  364. </view>
  365. <view class="btn" @click="requestUnlock">去解锁</view>
  366. </view>
  367. </view>
  368. </view>
  369. <!-- 升级任务 -->
  370. <view class="purchaseLevels dis a-c j-c "
  371. v-if="teamOverviewInfo.parentStatus == '1' && teamOverviewInfo.grade!=1">
  372. <view class="purchaseLevel">
  373. <!-- 头部 -->
  374. <view class="header dis a-c j-c mb-1">
  375. <!-- 星星装饰图 -->
  376. <image class="star" src="/static/image/my/upgradeTask/star-left.png" mode=""></image>
  377. <view class="title ">
  378. <text>完成任务,解锁{{this.gradeText1(teamOverviewInfo.grade)}}权益</text>
  379. <view class="line"></view>
  380. </view>
  381. <image class="star" src="/static/image/my/upgradeTask/star-right.png" mode=""></image>
  382. </view>
  383. <!-- 任务轮播 -->
  384. <view class="taskCarousel">
  385. <!-- 加载状态 -->
  386. <view v-if="loading" class="loading">加载中...</view>
  387. <swiper v-if="!loading && upgradeTaskdata.requirement.length > 0" :key="swiperKey" class="swiper "
  388. circular :indicator-dots="true" :autoplay="true" :duration="300" indicator-color="#D9D9D9"
  389. indicator-active-color="#2DD9FF" :circular="true">
  390. <swiper-item v-for="(item,index) in upgradeTaskdata.requirement" :key="item.id">
  391. <view class="taskitem dis a-c j-s">
  392. <view class="task-icon">
  393. <image :src="`/static/image/my/upgradeTask/icon${index+1}.png`" mode=""></image>
  394. </view>
  395. <view class="task-progress">
  396. <!-- 任务标题 -->
  397. <text class="title " v-if="upgradeTaskdata.grade=='2'">
  398. {{ index==0 ? '邀请合伙人' :index==1? `${upgradeTaskdata.gradeName}下属成员出单保费`:'自己的出单保费' }}达{{item.min}}{{ index ? '元' : '人' }}
  399. </text>
  400. <text class="title " v-if="upgradeTaskdata.grade=='3'">
  401. {{ index==0 ? '邀请工作室' :index==1? `${upgradeTaskdata.gradeName}下属成员出单保费`:'自己的出单保费' }}达{{item.min}}{{ index ? '元' : '人' }}
  402. </text>
  403. <text class="title " v-if="upgradeTaskdata.grade=='4'">
  404. {{ index==0 ? '邀请团队长' :index==1? `${upgradeTaskdata.gradeName}下属成员出单保费`:'自己的出单保费' }}达{{item.min}}{{ index ? '元' : '人' }}
  405. </text>
  406. <text class="title " v-if="upgradeTaskdata.grade=='5'">
  407. {{ index==0 ? '邀请团队长' :index==1? `${upgradeTaskdata.gradeName}下属成员出单保费`:'自己的出单保费' }}达{{item.min}}{{ index ? '元' : '人' }}
  408. </text>
  409. <view class=" dis a-c">
  410. <!-- 进度条 -->
  411. <view class="progressBar">
  412. <view class="jindu"
  413. :style="{width: `${ Number(item.achieve) / Number(item.min) * 100}%`}">
  414. </view>
  415. </view>
  416. <!-- 进度条 -->
  417. <view class="task-data dis a-c ml-1">
  418. <text>{{item.achieve}}</text>
  419. <text class="ml-1 mr-1">/</text>
  420. <text>{{item.min}}</text>
  421. </view>
  422. </view>
  423. </view>
  424. <view :class="index==1?'task-btn1':'task-btn'"
  425. v-if="Number(item.achieve)>=Number(item.min)">
  426. 已完成
  427. </view>
  428. <view :class="index==1?'task-btn1':'task-btn'" v-else @click="requestUnlock">
  429. {{index==1?'未完成':'去完成'}}
  430. </view>
  431. </view>
  432. </swiper-item>
  433. </swiper>
  434. </view>
  435. </view>
  436. </view>
  437. <u-popup v-model="ShowModalCodebusiness" mode="bottom" border-radius="15" :closeable="true">
  438. <view>
  439. <text class=" ShowModalCode-business">工作室业务</text>
  440. <view>
  441. <radio-group class="uni-list" @change="styleChange">
  442. <view v-for="(item, index) in styles" :key="index" class="uni-list-item">
  443. <view class="uni-list-item__container">
  444. <view class="uni-list-item__content">
  445. <text class="uni-list-item__content-title">{{ item.text }}</text>
  446. </view>
  447. <view class="uni-list-item__extra">
  448. <radio :value="item.value" :checked="item.checked" />
  449. </view>
  450. </view>
  451. <view class="uni-list-item__notestext">{{ item.notestext }}</view>
  452. </view>
  453. </radio-group>
  454. </view>
  455. <view class="ShowModalCode-sumbit" @click="ShowModalCodeSumbit()">确定</view>
  456. </view>
  457. </u-popup>
  458. <u-modal v-model="promptshow" :show-cancel-button="true" :confirm-text="`确认为${deptSource==1?'渠道':'个代'}模式`"
  459. cancel-text="重新选择" :cancel-style="{fontSize:'28rpx',color:'#007AFF'}" :confirm-style="{fontSize:'28rpx'}"
  460. @confirm="promptshowconfirm">
  461. <view class="p-2">
  462. <text v-if="deptSource==1">您选择的 <text style="color: #007AFF;">渠道</text> 模式,业务员出单后,业务员的
  463. <text> <strong>佣金都会归到团队长账户内由团队长进行分配</strong></text>。</text>
  464. <text v-else>您选择的 <text style="color: #007AFF;margin: 0 10rpx;">个代</text> 模式,业务员出单后,业务员的
  465. <text> <strong>佣金都会归到自己账户内</strong> </text>。</text>
  466. </view>
  467. </u-modal>
  468. <!-- 佣金转入 -->
  469. <u-popup v-model="roleCommInShow" mode="center" border-radius="10">
  470. <view class=" roleCommInClass dis f-c a-c">
  471. <text class="title font-weight mt-3">佣金转入钱包</text>
  472. <view class="dis f-c p-3 content">
  473. <text>您的每一个等级收益需要手动转入钱包中,才可以将收益提现</text>
  474. <view class="mt-1 ">
  475. <text>{{userWalletInfo.cashFee}}元</text>
  476. <text class="ml-2" style="color: #2D6DFF;">全部转入</text>
  477. </view>
  478. <u-input v-model="amount" class="mt-1" type="digit" :border="true" placeholder="输入转入金额" focus />
  479. </view>
  480. </view>
  481. <view class="roleCommInClass-footer dis a-c j-s ">
  482. <view class="dis a-c j-c" @click="roleCommInShow=false">取消</view>
  483. <view class="dis a-c j-c" @click="roleCommInconfirm">确认</view>
  484. </view>
  485. </u-popup>
  486. <my-date-picker ref="datePicker" @confirmPickDate="confirmPickDate" />
  487. </view>
  488. </template>
  489. <script>
  490. import myDatePicker from '../components/todaydate-picker.vue';
  491. import QR from "@/common/wxqrcode.js"
  492. import {
  493. mapState,
  494. mapMutations
  495. } from "vuex"
  496. import {
  497. nextTick,
  498. vShow
  499. } from "vue"
  500. export default {
  501. computed: {
  502. ...mapState(['userInfo', "userCheckInfo"]),
  503. gradeText() {
  504. const gradeMap = {
  505. 1: '创始人',
  506. 2: '管理人',
  507. 3: '合伙人',
  508. 4: '工作室'
  509. }
  510. return gradeMap[this.teamOverviewInfo.grade] || ''
  511. },
  512. displayData() {
  513. return this.upgradeTaskdata.requirement;
  514. }
  515. },
  516. components: {
  517. myDatePicker
  518. },
  519. data() {
  520. return {
  521. startTime: null,
  522. endTime: null,
  523. swiperKey: 0, // 用于强制更新 swiper
  524. loading: true, // 加载状态
  525. upgradeTaskdata: {}, //升级任务数据
  526. amount: null, //转入佣金
  527. roleCommInShow: false, //佣金转入弹窗
  528. promptshow: false, //提示
  529. personTypeshow: false, //业务类型弹窗
  530. userWalletInfo: {}, //角色钱包数据
  531. teamOverviewInfo: {}, //页面展示数据
  532. todayOverview: {}, //今日数据
  533. teamOverview: [],
  534. current: 0,
  535. showData: '全部数据',
  536. ShowModalCodebusiness: false, //业务来源弹窗
  537. teamImg: '',
  538. workImg: '',
  539. totalList: {},
  540. type: uni.getStorageSync('type'),
  541. headerStyle: {
  542. backgroundColor: 'transparent',
  543. backgroundImage: '',
  544. backgroundSize: '',
  545. backgroundPosition: '',
  546. boxShadow: ''
  547. // 其他样式属性...
  548. },
  549. styles: [{
  550. value: '1',
  551. text: '渠道',
  552. notestext: '团队长加出单员模式,无分销模式,结费都在团队长处。',
  553. checked: true
  554. },
  555. {
  556. value: '2',
  557. notestext: '团队长加代理人模式,三级分销模式,结费方式为个人,有佣金。',
  558. text: '个代'
  559. }
  560. ],
  561. deptSource: 1,
  562. grade: 0,
  563. }
  564. },
  565. onShow() {},
  566. async onLoad() {
  567. this.type = uni.getStorageSync('type')
  568. this.showData = '全部数据';
  569. await this.getList() //人员统计
  570. this.getAmountList(this.userInfo.sysUser.grade); //角色佣金
  571. if (this.userInfo.sysUser.grade > 1) this.getUpgradeTask(this.userInfo.sysUser.grade); //角色升级任务
  572. },
  573. methods: {
  574. incomingTransferLog() {
  575. uni.navigateTo({
  576. url: '/pages/institutional/incomingTransferLog?grade=' + this.teamOverviewInfo.grade
  577. })
  578. },
  579. accountExpireRecord() {
  580. uni.navigateTo({
  581. url: '/pages/institutional/accountFreezeRecord?type=1&&grade=' + this.teamOverviewInfo.grade
  582. })
  583. },
  584. accountFreezeRecord() {
  585. uni.navigateTo({
  586. url: '/pages/institutional/accountFreezeRecord?type=2&&grade=' + this.teamOverviewInfo.grade
  587. })
  588. },
  589. //日期选择回调
  590. confirmPickDate(startdate, enddate) {
  591. console.log(startdate, enddate);
  592. this.startTime = startdate;
  593. this.endTime = enddate;
  594. this.getList(startdate, enddate) //人员统计
  595. },
  596. //激活时间选择组件
  597. searchPopup() {
  598. this.$refs.datePicker.open()
  599. },
  600. //获取上级角色名称
  601. gradeText1(grade) {
  602. const gradeMap = {
  603. 1: '创始人',
  604. 2: '管理人',
  605. 3: '合伙人',
  606. 4: '工作室'
  607. }
  608. return gradeMap[Number(grade) - 1] || ''
  609. },
  610. //获取升级任务
  611. async getUpgradeTask(grade) {
  612. this.loading = true; // 开始加载
  613. try {
  614. let res = await this.$http.get('/partner/queryDowngradeTask?grade=' + grade); //升级任务
  615. if (res.code == 200) {
  616. this.upgradeTaskdata = res.data;
  617. } else {
  618. this.upgradeTaskdata = {}
  619. }
  620. } catch (error) {
  621. console.error("数据加载失败:", error);
  622. } finally {
  623. this.loading = false; // 加载完成
  624. this.swiperKey += 1; // 更新 swiperKey 以强制重新渲染
  625. }
  626. },
  627. //角色佣金转入
  628. async roleCommInconfirm() {
  629. if (Number(this.amount) > this.userWalletInfo.cashFee) {
  630. return uni.showToast({
  631. title: '转入金额不能大于可转入金额',
  632. icon: 'none',
  633. });
  634. }
  635. if (Number(this.amount) <= 0) {
  636. return uni.showToast({
  637. title: '转入金额不能为0',
  638. icon: 'none',
  639. });
  640. }
  641. let res = await this.$http.post('/partnerExtractHistory/extractRecords', {
  642. grade: this.userWalletInfo.grade,
  643. amount: this.amount,
  644. });
  645. if (res.code == 200) {
  646. this.roleCommInShow = true;
  647. } else {
  648. uni.showToast({
  649. title: res.msg,
  650. icon: 'none',
  651. });
  652. }
  653. },
  654. //锁定视图点击事件
  655. async requestUnlock() {
  656. if (this.teamOverviewInfo.parentStatus == '2' && this.teamOverviewInfo.unlockedStatus) {
  657. switch (this.teamOverviewInfo.upgradeStatus) {
  658. case 0:
  659. let params = {
  660. grade: Number(this.teamOverviewInfo.grade),
  661. lockingState: this.teamOverviewInfo.parentStatus,
  662. lockCommission: this.teamOverviewInfo.lockCommission,
  663. zeroDays: this.teamOverviewInfo.zeroDays,
  664. fallAmount: this.teamOverviewInfo.fallAmount,
  665. }
  666. uni.navigateTo({
  667. url: "/pages/my/upgradeTask?info=" + JSON.stringify(params),
  668. })
  669. break;
  670. case 1:
  671. let res = await this.$http.post('/partner/submitLiftingRecord', {
  672. grade: this.teamOverviewInfo.grade,
  673. upgradeType: '1'
  674. });
  675. if (res.code == '200') {
  676. uni.showToast({
  677. title: res.msg,
  678. icon: 'none',
  679. });
  680. this.getList()
  681. } else {
  682. uni.showToast({
  683. title: res.msg,
  684. icon: 'none',
  685. });
  686. }
  687. break;
  688. case 2:
  689. uni.showToast({
  690. title: '申请中',
  691. icon: 'none',
  692. });
  693. break;
  694. default:
  695. }
  696. } else {
  697. uni.showToast({
  698. title: '先解锁上一级',
  699. icon: 'none',
  700. });
  701. }
  702. },
  703. //业务来源确定事件
  704. promptshowconfirm() {
  705. this.promptshow = false;
  706. this.ShowModalCodebusiness = false;
  707. uni.navigateTo({
  708. url: "/pages/institutional/invitationCode?grade=" + this.grade + "&deptSource=" + this
  709. .deptSource + '&userId=' + this.userInfo.sysUser.userId + "&info=" + JSON.stringify(this
  710. .teamOverviewInfo),
  711. })
  712. // uni.navigateTo({
  713. // url: "/pages/index/applypartner?grade=" + this.grade + "&deptSource=" + this
  714. // .deptSource + '&userId=' + this.userInfo.sysUser.userId,
  715. // })
  716. },
  717. //业务类型
  718. styleChange(e) {
  719. this.deptSource = e.detail.value
  720. },
  721. //数据格式化
  722. numberFormat(value) {
  723. return (value).toLocaleString('en-US');
  724. },
  725. //标签切换
  726. change(index) {
  727. console.log(this.teamOverview[index]);
  728. const info = this.teamOverview[index];
  729. console.log(info);
  730. this.teamOverviewInfo = info;
  731. this.current = index;
  732. this.getAmountList(info.grade)
  733. this.getUpgradeTask(info.grade); //角色升级任务
  734. },
  735. //获取人员数据
  736. async getList(startTime, endTime) {
  737. let params = {
  738. type: this.type,
  739. "startTime": startTime + '00:00:00' || '',
  740. "endTime": endTime + '23:59:59' || '',
  741. }
  742. let res = await this.$http.post('/newAppPartner/getHomePage', params); //统计数据
  743. if (res.code == '200') {
  744. this.todayOverview = res.data.todayOverview; //今日数据
  745. res.data.teamOverview.map(val => {
  746. val.gradeName = '我是' + val.gradeName;
  747. return val;
  748. })
  749. res.data.teamOverview.map(val => {
  750. if (val.parentStatus == '2') {
  751. val.imageSel = '/static/home/imageSel.png'
  752. val.imageUnSel = '/static/home/imageUnSel.png'
  753. }
  754. return val;
  755. })
  756. this.teamOverview = res.data.teamOverview; //选项卡
  757. console.log(this.teamOverview);
  758. this.current = 0;
  759. this.teamOverviewInfo = res.data.teamOverview[0]; //页面赋值第一条数据
  760. }
  761. },
  762. //钱包
  763. async getAmountList(grade) {
  764. let params = {
  765. grade: grade,
  766. "startTime": '',
  767. "endTime": '',
  768. }
  769. let res = await this.$http.post('/newAppPartner/getHomeWallet', params); //佣金
  770. if (res.code == '200') {
  771. this.userWalletInfo = res.data;
  772. }
  773. },
  774. //业务来源确定
  775. ShowModalCodeSumbit() {
  776. this.promptshow = true;
  777. },
  778. //人员列表
  779. closePartner() {
  780. uni.navigateTo({
  781. url: "/pages/institutional/partner?grade=" + this.teamOverviewInfo.grade,
  782. })
  783. },
  784. //今日人员
  785. todayclosePartner() {
  786. let dotayDate = new Date().toISOString().split('T')[0] //今日日期
  787. uni.navigateTo({
  788. url: "/pages/institutional/partner?grade=" + this.teamOverviewInfo.grade + '&startTime=' +
  789. dotayDate + '&endTime=' + dotayDate,
  790. })
  791. },
  792. //我的收益
  793. myEarnings() {
  794. uni.navigateTo({
  795. url: "/pages/institutional/myEarnings?info=" + JSON.stringify(this.teamOverviewInfo),
  796. })
  797. },
  798. //邀请码
  799. invitationCode(value) {
  800. this.grade = value;
  801. if (value == 4) { //区分合伙人和工作室 4==工作室
  802. this.ShowModalCodebusiness = true;
  803. } else {
  804. uni.navigateTo({
  805. url: "/pages/institutional/invitationCode?grade=" + value + "&info=" + JSON.stringify({
  806. ...this
  807. .teamOverviewInfo,
  808. lockingState: this.teamOverviewInfo.parentStatus
  809. }),
  810. })
  811. // uni.navigateTo({
  812. // url: "/pages/index/applypartner?grade=" + value + '&userId=' + this.userInfo.sysUser
  813. // .userId,
  814. // })
  815. }
  816. },
  817. }
  818. }
  819. </script>
  820. <style lang="scss" scoped>
  821. * {
  822. // outline: 1px solid red !important;
  823. }
  824. page {
  825. background-color: #F7F7F7;
  826. }
  827. .headers {
  828. position: fixed;
  829. top: 0;
  830. left: 0;
  831. height: auto;
  832. width: 100%;
  833. z-index: 99;
  834. padding: 30rpx;
  835. padding-top: 50px;
  836. text {
  837. font-size: 36rpx;
  838. font-weight: bold;
  839. color: #fff;
  840. }
  841. .right {
  842. position: absolute;
  843. right: 30rpx;
  844. image {
  845. width: 28rpx;
  846. height: 28rpx;
  847. margin-right: 4rpx;
  848. }
  849. text {
  850. font-weight: 400;
  851. color: #fff;
  852. font-size: 24rpx;
  853. }
  854. }
  855. }
  856. .homeBackground {
  857. height: 177px;
  858. width: 100%;
  859. background-image: url("/static/home/back.png");
  860. background-size: 100% 100%;
  861. }
  862. .dailyData-block {
  863. width: 100%;
  864. margin-top: -136rpx;
  865. background-image: url("/static/home/aaa.png");
  866. background-size: 100% 100%;
  867. backdrop-filter: blur(2rpx);
  868. padding: 20rpx 40rpx;
  869. // background: rgba(255, 255, 255, 0.2);
  870. // border-radius: 16px;
  871. // box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  872. // backdrop-filter: blur(30px);
  873. // border: 1px solid rgba(255, 255, 255, 1);
  874. .title {
  875. position: relative;
  876. display: inline-block;
  877. .search {
  878. text {
  879. font-size: 30rpx;
  880. color: #fff;
  881. font-weight: 400;
  882. }
  883. i {
  884. margin-left: 9rpx;
  885. display: inline-block;
  886. width: 0;
  887. height: 0;
  888. border: 8rpx solid;
  889. border-color: #fff;
  890. border-bottom: 8rpx solid transparent;
  891. border-right: 8rpx solid transparent;
  892. border-left: 8rpx solid transparent;
  893. }
  894. }
  895. text {
  896. color: #fff;
  897. font-weight: bold;
  898. font-size: 36rpx;
  899. margin-left: 10rpx;
  900. }
  901. .image3 {
  902. width: 100%;
  903. height: 20rpx;
  904. position: absolute;
  905. bottom: 0;
  906. left: 4rpx;
  907. }
  908. }
  909. .image2 {
  910. width: 138rpx;
  911. height: 138rpx;
  912. position: absolute;
  913. top: -50rpx;
  914. right: 22rpx;
  915. }
  916. .data {
  917. .view {
  918. width: 50%;
  919. text:first-child {
  920. font-size: 46rpx;
  921. color: #333;
  922. font-weight: bold;
  923. }
  924. text:last-child {
  925. font-size: 24rpx;
  926. color: #666;
  927. }
  928. }
  929. }
  930. }
  931. .statistics {
  932. background: #FFFFFF;
  933. border-radius: 20rpx 20rpx 20rpx 20rpx;
  934. margin-top: 25rpx;
  935. .count {
  936. padding: 34rpx 30rpx;
  937. box-sizing: border-box;
  938. image {
  939. width: 100%;
  940. height: 120rpx;
  941. }
  942. }
  943. .data {
  944. position: relative;
  945. padding: 30rpx;
  946. box-sizing: border-box;
  947. background-color: #FBFBFB;
  948. border-radius: 8rpx;
  949. .view {
  950. width: 49%;
  951. >:nth-child(1) {
  952. font-size: 36rpx;
  953. color: #333;
  954. font-weight: bold;
  955. margin-bottom: 4rpx;
  956. }
  957. >:nth-child(2) {
  958. font-size: 22rpx;
  959. color: #999;
  960. }
  961. .frozen {
  962. width: 28rpx;
  963. height: 28rpx;
  964. margin-top: 4rpx;
  965. }
  966. //转入按钮
  967. .commissionIn {
  968. padding: 0 12rpx;
  969. box-sizing: border-box;
  970. border-radius: 30rpx 30rpx 30rpx 30rpx;
  971. border: 1rpx solid #2D6DFF;
  972. font-size: 20rpx;
  973. color: #2D6DFF;
  974. margin-top: 4rpx;
  975. line-height: normal;
  976. }
  977. }
  978. }
  979. }
  980. ::v-deep {
  981. .u-tab-bar {
  982. background: linear-gradient(90deg, #2DD9FF 0%, #2D6DFF 100%) !important;
  983. border-radius: 6rpx;
  984. }
  985. }
  986. .ShowModalCode-style {
  987. text:first-child {
  988. display: block;
  989. font-weight: 600;
  990. font-size: 16px;
  991. color: #333333;
  992. border: 1px solid #EEEEEE;
  993. padding: 15px;
  994. text-align: center;
  995. }
  996. }
  997. .ShowModalCode-con {
  998. padding: 30px;
  999. text-align: center;
  1000. image {
  1001. margin: 0 auto;
  1002. margin-top: 15px;
  1003. }
  1004. }
  1005. .ShowModalCode-business {
  1006. display: block;
  1007. font-weight: 600;
  1008. font-size: 16px;
  1009. color: #333333;
  1010. // border: 1px solid #EEEEEE;
  1011. padding: 15px;
  1012. text-align: center;
  1013. }
  1014. .ShowModalCode-sumbit {
  1015. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1016. border-radius: 5px 5px 5px 5px;
  1017. height: 40px;
  1018. line-height: 40px;
  1019. font-size: 16px;
  1020. color: #FFFFFF;
  1021. margin: 15px;
  1022. text-align: center;
  1023. }
  1024. .uni-list {
  1025. flex: 1;
  1026. }
  1027. .uni-list-item:first-child {
  1028. /* #ifndef APP-NVUE */
  1029. // display: flex;
  1030. /* #endif */
  1031. flex: 1;
  1032. flex-direction: row;
  1033. background-color: #FFFFFF;
  1034. border-bottom-style: solid;
  1035. border-bottom-width: 1px;
  1036. border-bottom-color: #eee;
  1037. }
  1038. .uni-list-item__container {
  1039. padding: 12px 15px;
  1040. width: 100%;
  1041. flex: 1;
  1042. position: relative;
  1043. /* #ifndef APP-NVUE */
  1044. display: flex;
  1045. box-sizing: border-box;
  1046. /* #endif */
  1047. flex-direction: row;
  1048. justify-content: space-between;
  1049. align-items: center;
  1050. }
  1051. .uni-list-item__notestext {
  1052. padding: 0 15px 15px 15px;
  1053. font-size: 15px;
  1054. color: #666666;
  1055. }
  1056. .uni-list-item__content-title {
  1057. font-size: 17px;
  1058. color: #333333;
  1059. }
  1060. //我的收益
  1061. .earnings {
  1062. background: #FFFFFF;
  1063. padding: 25rpx 30rpx;
  1064. box-sizing: border-box;
  1065. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1066. .btn {
  1067. padding: 3rpx 12rpx;
  1068. box-sizing: border-box;
  1069. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1070. border-radius: 4rpx 4rpx 4rpx 4rpx;
  1071. font-size: 22rpx;
  1072. color: #fff;
  1073. }
  1074. .income {
  1075. width: 36rpx;
  1076. height: 36rpx;
  1077. }
  1078. image {
  1079. width: 40rpx;
  1080. height: 40rpx;
  1081. }
  1082. .incomeText {
  1083. width: 122rpx;
  1084. height: 28rpx;
  1085. margin-right: 4rpx;
  1086. }
  1087. }
  1088. .roleCommInClass {
  1089. width: 600rpx;
  1090. border-radius: 10rpx;
  1091. box-sizing: border-box;
  1092. font-size: 26rpx;
  1093. .title {
  1094. font-size: 32rpx;
  1095. color: #333;
  1096. }
  1097. .content {
  1098. text:nth-child(1) {
  1099. font-size: 28rpx;
  1100. color: #333;
  1101. }
  1102. text:nth-child(2) {
  1103. font-size: 26rpx;
  1104. color: #666;
  1105. }
  1106. }
  1107. }
  1108. .roleCommInClass-footer {
  1109. width: 100%;
  1110. border-top: 1rpx solid #eee;
  1111. view {
  1112. width: 49%;
  1113. padding: 24rpx;
  1114. box-sizing: border-box;
  1115. }
  1116. view:first-child {
  1117. border-right: 1rpx solid #eee;
  1118. }
  1119. view:last-child {
  1120. color: #2D6DFF;
  1121. }
  1122. }
  1123. // 购买等级
  1124. .purchaseLevels {
  1125. position: relative;
  1126. background: linear-gradient(180deg, #FFD581 0%, #FFFFFF 70%);
  1127. border-radius: 20rpx;
  1128. margin: 20rpx 30rpx;
  1129. .purchaseLevel {
  1130. width: 99.7%;
  1131. margin-top: 2rpx;
  1132. padding: 20rpx 30rpx;
  1133. box-sizing: border-box;
  1134. background: linear-gradient(0deg, #fff 20%, #FFF6EC 100%);
  1135. border-radius: 20rpx;
  1136. }
  1137. .header {
  1138. .star {
  1139. width: 27rpx;
  1140. height: 22rpx;
  1141. }
  1142. .title {
  1143. position: relative;
  1144. margin-left: 2rpx;
  1145. margin-right: 2rpx;
  1146. text-align: center;
  1147. font-size: 30rpx;
  1148. color: #333;
  1149. font-weight: bold;
  1150. text {
  1151. position: relative;
  1152. z-index: 9;
  1153. margin: 0 4rpx;
  1154. }
  1155. .line {
  1156. position: absolute;
  1157. bottom: 6rpx;
  1158. left: 0;
  1159. right: 0;
  1160. margin: auto;
  1161. width: 90%;
  1162. height: 13rpx;
  1163. background: #FFE262;
  1164. border-radius: 0rpx 0rpx 0rpx 0rpx;
  1165. }
  1166. }
  1167. }
  1168. // 红包样式
  1169. .redPacket {
  1170. position: relative;
  1171. padding: 15rpx;
  1172. box-sizing: border-box;
  1173. background: #FFF0E8;
  1174. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1175. .redPacket-img {
  1176. width: 70rpx;
  1177. height: 70rpx;
  1178. }
  1179. .lock {
  1180. position: absolute;
  1181. bottom: 0;
  1182. right: 0;
  1183. padding: 5rpx;
  1184. z-index: 9;
  1185. box-sizing: border-box;
  1186. background: rgba(255, 163, 117, 0.3);
  1187. border-radius: 20rpx 0rpx 20rpx 0rpx;
  1188. backdrop-filter: blur(10rpx);
  1189. .lock-img {
  1190. width: 30rpx;
  1191. height: 30rpx;
  1192. }
  1193. }
  1194. }
  1195. /* 锁定金额 */
  1196. .redPacket-data {
  1197. .sum {
  1198. font-size: 36rpx;
  1199. color: #F74141;
  1200. font-weight: bold;
  1201. }
  1202. .days {
  1203. font-size: 30rpx;
  1204. color: #666;
  1205. }
  1206. }
  1207. /* 去解锁按钮 */
  1208. .btn {
  1209. padding: 8rpx 20rpx;
  1210. box-sizing: border-box;
  1211. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1212. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1213. font-size: 28rpx;
  1214. color: #fff;
  1215. line-height: 1.5;
  1216. }
  1217. .taskCarousel {
  1218. width: 100%;
  1219. .swiper {
  1220. height: 200rpx;
  1221. }
  1222. .taskitem {
  1223. width: 100%;
  1224. padding: 10rpx;
  1225. box-sizing: border-box;
  1226. .task-icon {
  1227. background: #F1FBFF;
  1228. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1229. padding: 15rpx;
  1230. box-sizing: border-box;
  1231. image {
  1232. width: 70rpx;
  1233. height: 70rpx;
  1234. }
  1235. }
  1236. .task-progress {
  1237. flex: 1;
  1238. height: 100%;
  1239. margin-left: 20rpx;
  1240. margin-right: 16rpx;
  1241. .title {
  1242. font-size: 28rpx;
  1243. color: #333;
  1244. font-weight: bold;
  1245. line-height: 1.2;
  1246. }
  1247. .progressBar {
  1248. position: relative;
  1249. width: 90rpx;
  1250. height: 6rpx;
  1251. background: #F0F0F0;
  1252. border-radius: 100px;
  1253. overflow: hidden;
  1254. .jindu {
  1255. position: absolute;
  1256. left: 0;
  1257. top: 0;
  1258. height: 6rpx;
  1259. background: #FFA008;
  1260. border-radius: 100px;
  1261. }
  1262. }
  1263. .task-data {
  1264. font-size: 26rpx;
  1265. text:nth-child(1) {
  1266. color: #FFA008;
  1267. }
  1268. text:nth-child(2),
  1269. text:nth-child(3) {
  1270. color: #999999;
  1271. }
  1272. }
  1273. }
  1274. .task-btn {
  1275. padding: 8rpx 20rpx;
  1276. box-sizing: border-box;
  1277. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1278. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1279. font-size: 28rpx;
  1280. color: #fff;
  1281. line-height: 1.5;
  1282. }
  1283. .task-btn1 {
  1284. padding: 8rpx 20rpx;
  1285. box-sizing: border-box;
  1286. background: transparent;
  1287. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1288. font-size: 28rpx;
  1289. color: #2D74FF;
  1290. line-height: 1.5;
  1291. }
  1292. }
  1293. .taskitem:last-child {
  1294. margin-bottom: 13rpx;
  1295. }
  1296. }
  1297. }
  1298. ::v-deep {
  1299. uni-swiper .uni-swiper-dots-horizontal .uni-swiper-dot {
  1300. width: 6rpx;
  1301. height: 6rpx;
  1302. background: #D9D9D9;
  1303. }
  1304. uni-swiper .uni-swiper-dots-horizontal .uni-swiper-dot-active {
  1305. width: 10rpx;
  1306. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1307. }
  1308. }
  1309. </style>