index.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409
  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="accountFreezeRecord">
  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'
  577. })
  578. },
  579. accountFreezeRecord() {
  580. uni.navigateTo({
  581. url: '/pages/institutional/accountFreezeRecord'
  582. })
  583. },
  584. //日期选择回调
  585. confirmPickDate(startdate, enddate) {
  586. console.log(startdate, enddate);
  587. this.startTime = startdate;
  588. this.endTime = enddate;
  589. this.getList(startdate, enddate) //人员统计
  590. },
  591. //激活时间选择组件
  592. searchPopup() {
  593. this.$refs.datePicker.open()
  594. },
  595. //获取上级角色名称
  596. gradeText1(grade) {
  597. const gradeMap = {
  598. 1: '创始人',
  599. 2: '管理人',
  600. 3: '合伙人',
  601. 4: '工作室'
  602. }
  603. return gradeMap[Number(grade) - 1] || ''
  604. },
  605. //获取升级任务
  606. async getUpgradeTask(grade) {
  607. this.loading = true; // 开始加载
  608. try {
  609. let res = await this.$http.get('/partner/queryDowngradeTask?grade=' + grade); //升级任务
  610. if (res.code == 200) {
  611. this.upgradeTaskdata = res.data;
  612. } else {
  613. this.upgradeTaskdata = {}
  614. }
  615. } catch (error) {
  616. console.error("数据加载失败:", error);
  617. } finally {
  618. this.loading = false; // 加载完成
  619. this.swiperKey += 1; // 更新 swiperKey 以强制重新渲染
  620. }
  621. },
  622. //角色佣金转入
  623. async roleCommInconfirm() {
  624. if (Number(this.amount) > this.userWalletInfo.cashFee) {
  625. return uni.showToast({
  626. title: '转入金额不能大于可转入金额',
  627. icon: 'none',
  628. });
  629. }
  630. if (Number(this.amount) <= 0) {
  631. return uni.showToast({
  632. title: '转入金额不能为0',
  633. icon: 'none',
  634. });
  635. }
  636. let res = await this.$http.post('/partnerExtractHistory/extractRecords', {
  637. grade: this.userWalletInfo.grade,
  638. amount: this.amount,
  639. });
  640. if (res.code == 200) {
  641. this.roleCommInShow = true;
  642. } else {
  643. uni.showToast({
  644. title: res.msg,
  645. icon: 'none',
  646. });
  647. }
  648. },
  649. //锁定视图点击事件
  650. async requestUnlock() {
  651. if (this.teamOverviewInfo.parentStatus == '2' && this.teamOverviewInfo.unlockedStatus) {
  652. switch (this.teamOverviewInfo.upgradeStatus) {
  653. case 0:
  654. let params = {
  655. grade: Number(this.teamOverviewInfo.grade),
  656. lockingState: this.teamOverviewInfo.parentStatus,
  657. lockCommission: this.teamOverviewInfo.lockCommission,
  658. zeroDays: this.teamOverviewInfo.zeroDays,
  659. fallAmount: this.teamOverviewInfo.fallAmount,
  660. }
  661. uni.navigateTo({
  662. url: "/pages/my/upgradeTask?info=" + JSON.stringify(params),
  663. })
  664. break;
  665. case 1:
  666. let res = await this.$http.post('/partner/submitLiftingRecord', {
  667. grade: this.teamOverviewInfo.grade,
  668. upgradeType: '1'
  669. });
  670. if (res.code == '200') {
  671. uni.showToast({
  672. title: res.msg,
  673. icon: 'none',
  674. });
  675. this.getList()
  676. } else {
  677. uni.showToast({
  678. title: res.msg,
  679. icon: 'none',
  680. });
  681. }
  682. break;
  683. case 2:
  684. uni.showToast({
  685. title: '申请中',
  686. icon: 'none',
  687. });
  688. break;
  689. default:
  690. }
  691. } else {
  692. uni.showToast({
  693. title: '先解锁上一级',
  694. icon: 'none',
  695. });
  696. }
  697. },
  698. //业务来源确定事件
  699. promptshowconfirm() {
  700. this.promptshow = false;
  701. this.ShowModalCodebusiness = false;
  702. uni.navigateTo({
  703. url: "/pages/institutional/invitationCode?grade=" + this.grade + "&deptSource=" + this
  704. .deptSource + '&userId=' + this.userInfo.sysUser.userId + "&info=" + JSON.stringify(this
  705. .teamOverviewInfo),
  706. })
  707. // uni.navigateTo({
  708. // url: "/pages/index/applypartner?grade=" + this.grade + "&deptSource=" + this
  709. // .deptSource + '&userId=' + this.userInfo.sysUser.userId,
  710. // })
  711. },
  712. //业务类型
  713. styleChange(e) {
  714. this.deptSource = e.detail.value
  715. },
  716. //数据格式化
  717. numberFormat(value) {
  718. return (value).toLocaleString('en-US');
  719. },
  720. //标签切换
  721. change(index) {
  722. console.log(this.teamOverview[index]);
  723. const info = this.teamOverview[index];
  724. console.log(info);
  725. this.teamOverviewInfo = info;
  726. this.current = index;
  727. this.getAmountList(info.grade)
  728. this.getUpgradeTask(info.grade); //角色升级任务
  729. },
  730. //获取人员数据
  731. async getList(startTime, endTime) {
  732. let params = {
  733. type: this.type,
  734. "startTime": startTime + '00:00:00' || '',
  735. "endTime": endTime + '23:59:59' || '',
  736. }
  737. let res = await this.$http.post('/newAppPartner/getHomePage', params); //统计数据
  738. if (res.code == '200') {
  739. this.todayOverview = res.data.todayOverview; //今日数据
  740. res.data.teamOverview.map(val => {
  741. val.gradeName = '我是' + val.gradeName;
  742. return val;
  743. })
  744. res.data.teamOverview.map(val => {
  745. if (val.parentStatus == '2') {
  746. val.imageSel = '/static/home/imageSel.png'
  747. val.imageUnSel = '/static/home/imageUnSel.png'
  748. }
  749. return val;
  750. })
  751. this.teamOverview = res.data.teamOverview; //选项卡
  752. console.log(this.teamOverview);
  753. this.current = 0;
  754. this.teamOverviewInfo = res.data.teamOverview[0]; //页面赋值第一条数据
  755. }
  756. },
  757. //钱包
  758. async getAmountList(grade) {
  759. let params = {
  760. grade: grade,
  761. "startTime": '',
  762. "endTime": '',
  763. }
  764. let res = await this.$http.post('/newAppPartner/getHomeWallet', params); //佣金
  765. if (res.code == '200') {
  766. this.userWalletInfo = res.data;
  767. }
  768. },
  769. //业务来源确定
  770. ShowModalCodeSumbit() {
  771. this.promptshow = true;
  772. },
  773. //人员列表
  774. closePartner() {
  775. uni.navigateTo({
  776. url: "/pages/institutional/partner?grade=" + this.teamOverviewInfo.grade,
  777. })
  778. },
  779. //今日人员
  780. todayclosePartner() {
  781. let dotayDate = new Date().toISOString().split('T')[0] //今日日期
  782. uni.navigateTo({
  783. url: "/pages/institutional/partner?grade=" + this.teamOverviewInfo.grade + '&startTime=' +
  784. dotayDate + '&endTime=' + dotayDate,
  785. })
  786. },
  787. //我的收益
  788. myEarnings() {
  789. uni.navigateTo({
  790. url: "/pages/institutional/myEarnings?info=" + JSON.stringify(this.teamOverviewInfo),
  791. })
  792. },
  793. //邀请码
  794. invitationCode(value) {
  795. this.grade = value;
  796. if (value == 4) { //区分合伙人和工作室 4==工作室
  797. this.ShowModalCodebusiness = true;
  798. } else {
  799. uni.navigateTo({
  800. url: "/pages/institutional/invitationCode?grade=" + value + "&info=" + JSON.stringify({
  801. ...this
  802. .teamOverviewInfo,
  803. lockingState: this.teamOverviewInfo.parentStatus
  804. }),
  805. })
  806. // uni.navigateTo({
  807. // url: "/pages/index/applypartner?grade=" + value + '&userId=' + this.userInfo.sysUser
  808. // .userId,
  809. // })
  810. }
  811. },
  812. }
  813. }
  814. </script>
  815. <style lang="scss" scoped>
  816. * {
  817. // outline: 1px solid red !important;
  818. }
  819. page {
  820. background-color: #F7F7F7;
  821. }
  822. .headers {
  823. position: fixed;
  824. top: 0;
  825. left: 0;
  826. height: auto;
  827. width: 100%;
  828. z-index: 99;
  829. padding: 30rpx;
  830. padding-top: 50px;
  831. text {
  832. font-size: 36rpx;
  833. font-weight: bold;
  834. color: #fff;
  835. }
  836. .right {
  837. position: absolute;
  838. right: 30rpx;
  839. image {
  840. width: 28rpx;
  841. height: 28rpx;
  842. margin-right: 4rpx;
  843. }
  844. text {
  845. font-weight: 400;
  846. color: #fff;
  847. font-size: 24rpx;
  848. }
  849. }
  850. }
  851. .homeBackground {
  852. height: 177px;
  853. width: 100%;
  854. background-image: url("/static/home/back.png");
  855. background-size: 100% 100%;
  856. }
  857. .dailyData-block {
  858. width: 100%;
  859. margin-top: -136rpx;
  860. background-image: url("/static/home/aaa.png");
  861. background-size: 100% 100%;
  862. backdrop-filter: blur(2rpx);
  863. padding: 20rpx 40rpx;
  864. // background: rgba(255, 255, 255, 0.2);
  865. // border-radius: 16px;
  866. // box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  867. // backdrop-filter: blur(30px);
  868. // border: 1px solid rgba(255, 255, 255, 1);
  869. .title {
  870. position: relative;
  871. display: inline-block;
  872. .search {
  873. text {
  874. font-size: 30rpx;
  875. color: #fff;
  876. font-weight: 400;
  877. }
  878. i {
  879. margin-left: 9rpx;
  880. display: inline-block;
  881. width: 0;
  882. height: 0;
  883. border: 8rpx solid;
  884. border-color: #fff;
  885. border-bottom: 8rpx solid transparent;
  886. border-right: 8rpx solid transparent;
  887. border-left: 8rpx solid transparent;
  888. }
  889. }
  890. text {
  891. color: #fff;
  892. font-weight: bold;
  893. font-size: 36rpx;
  894. margin-left: 10rpx;
  895. }
  896. .image3 {
  897. width: 100%;
  898. height: 20rpx;
  899. position: absolute;
  900. bottom: 0;
  901. left: 4rpx;
  902. }
  903. }
  904. .image2 {
  905. width: 138rpx;
  906. height: 138rpx;
  907. position: absolute;
  908. top: -50rpx;
  909. right: 22rpx;
  910. }
  911. .data {
  912. .view {
  913. width: 50%;
  914. text:first-child {
  915. font-size: 46rpx;
  916. color: #333;
  917. font-weight: bold;
  918. }
  919. text:last-child {
  920. font-size: 24rpx;
  921. color: #666;
  922. }
  923. }
  924. }
  925. }
  926. .statistics {
  927. background: #FFFFFF;
  928. border-radius: 20rpx 20rpx 20rpx 20rpx;
  929. margin-top: 25rpx;
  930. .count {
  931. padding: 34rpx 30rpx;
  932. box-sizing: border-box;
  933. image {
  934. width: 100%;
  935. height: 120rpx;
  936. }
  937. }
  938. .data {
  939. position: relative;
  940. padding: 30rpx;
  941. box-sizing: border-box;
  942. background-color: #FBFBFB;
  943. border-radius: 8rpx;
  944. .view {
  945. width: 49%;
  946. >:nth-child(1) {
  947. font-size: 36rpx;
  948. color: #333;
  949. font-weight: bold;
  950. margin-bottom: 4rpx;
  951. }
  952. >:nth-child(2) {
  953. font-size: 22rpx;
  954. color: #999;
  955. }
  956. .frozen {
  957. width: 28rpx;
  958. height: 28rpx;
  959. margin-top: 4rpx;
  960. }
  961. //转入按钮
  962. .commissionIn {
  963. padding: 0 12rpx;
  964. box-sizing: border-box;
  965. border-radius: 30rpx 30rpx 30rpx 30rpx;
  966. border: 1rpx solid #2D6DFF;
  967. font-size: 20rpx;
  968. color: #2D6DFF;
  969. margin-top: 4rpx;
  970. line-height: normal;
  971. }
  972. }
  973. }
  974. }
  975. ::v-deep {
  976. .u-tab-bar {
  977. background: linear-gradient(90deg, #2DD9FF 0%, #2D6DFF 100%) !important;
  978. border-radius: 6rpx;
  979. }
  980. }
  981. .ShowModalCode-style {
  982. text:first-child {
  983. display: block;
  984. font-weight: 600;
  985. font-size: 16px;
  986. color: #333333;
  987. border: 1px solid #EEEEEE;
  988. padding: 15px;
  989. text-align: center;
  990. }
  991. }
  992. .ShowModalCode-con {
  993. padding: 30px;
  994. text-align: center;
  995. image {
  996. margin: 0 auto;
  997. margin-top: 15px;
  998. }
  999. }
  1000. .ShowModalCode-business {
  1001. display: block;
  1002. font-weight: 600;
  1003. font-size: 16px;
  1004. color: #333333;
  1005. // border: 1px solid #EEEEEE;
  1006. padding: 15px;
  1007. text-align: center;
  1008. }
  1009. .ShowModalCode-sumbit {
  1010. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1011. border-radius: 5px 5px 5px 5px;
  1012. height: 40px;
  1013. line-height: 40px;
  1014. font-size: 16px;
  1015. color: #FFFFFF;
  1016. margin: 15px;
  1017. text-align: center;
  1018. }
  1019. .uni-list {
  1020. flex: 1;
  1021. }
  1022. .uni-list-item:first-child {
  1023. /* #ifndef APP-NVUE */
  1024. // display: flex;
  1025. /* #endif */
  1026. flex: 1;
  1027. flex-direction: row;
  1028. background-color: #FFFFFF;
  1029. border-bottom-style: solid;
  1030. border-bottom-width: 1px;
  1031. border-bottom-color: #eee;
  1032. }
  1033. .uni-list-item__container {
  1034. padding: 12px 15px;
  1035. width: 100%;
  1036. flex: 1;
  1037. position: relative;
  1038. /* #ifndef APP-NVUE */
  1039. display: flex;
  1040. box-sizing: border-box;
  1041. /* #endif */
  1042. flex-direction: row;
  1043. justify-content: space-between;
  1044. align-items: center;
  1045. }
  1046. .uni-list-item__notestext {
  1047. padding: 0 15px 15px 15px;
  1048. font-size: 15px;
  1049. color: #666666;
  1050. }
  1051. .uni-list-item__content-title {
  1052. font-size: 17px;
  1053. color: #333333;
  1054. }
  1055. //我的收益
  1056. .earnings {
  1057. background: #FFFFFF;
  1058. padding: 25rpx 30rpx;
  1059. box-sizing: border-box;
  1060. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1061. .btn {
  1062. padding: 3rpx 12rpx;
  1063. box-sizing: border-box;
  1064. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1065. border-radius: 4rpx 4rpx 4rpx 4rpx;
  1066. font-size: 22rpx;
  1067. color: #fff;
  1068. }
  1069. .income {
  1070. width: 36rpx;
  1071. height: 36rpx;
  1072. }
  1073. image {
  1074. width: 40rpx;
  1075. height: 40rpx;
  1076. }
  1077. .incomeText {
  1078. width: 122rpx;
  1079. height: 28rpx;
  1080. margin-right: 4rpx;
  1081. }
  1082. }
  1083. .roleCommInClass {
  1084. width: 600rpx;
  1085. border-radius: 10rpx;
  1086. box-sizing: border-box;
  1087. font-size: 26rpx;
  1088. .title {
  1089. font-size: 32rpx;
  1090. color: #333;
  1091. }
  1092. .content {
  1093. text:nth-child(1) {
  1094. font-size: 28rpx;
  1095. color: #333;
  1096. }
  1097. text:nth-child(2) {
  1098. font-size: 26rpx;
  1099. color: #666;
  1100. }
  1101. }
  1102. }
  1103. .roleCommInClass-footer {
  1104. width: 100%;
  1105. border-top: 1rpx solid #eee;
  1106. view {
  1107. width: 49%;
  1108. padding: 24rpx;
  1109. box-sizing: border-box;
  1110. }
  1111. view:first-child {
  1112. border-right: 1rpx solid #eee;
  1113. }
  1114. view:last-child {
  1115. color: #2D6DFF;
  1116. }
  1117. }
  1118. // 购买等级
  1119. .purchaseLevels {
  1120. position: relative;
  1121. background: linear-gradient(180deg, #FFD581 0%, #FFFFFF 70%);
  1122. border-radius: 20rpx;
  1123. margin: 20rpx 30rpx;
  1124. .purchaseLevel {
  1125. width: 99.7%;
  1126. margin-top: 2rpx;
  1127. padding: 20rpx 30rpx;
  1128. box-sizing: border-box;
  1129. background: linear-gradient(0deg, #fff 20%, #FFF6EC 100%);
  1130. border-radius: 20rpx;
  1131. }
  1132. .header {
  1133. .star {
  1134. width: 27rpx;
  1135. height: 22rpx;
  1136. }
  1137. .title {
  1138. position: relative;
  1139. margin-left: 2rpx;
  1140. margin-right: 2rpx;
  1141. text-align: center;
  1142. font-size: 30rpx;
  1143. color: #333;
  1144. font-weight: bold;
  1145. text {
  1146. position: relative;
  1147. z-index: 9;
  1148. margin: 0 4rpx;
  1149. }
  1150. .line {
  1151. position: absolute;
  1152. bottom: 6rpx;
  1153. left: 0;
  1154. right: 0;
  1155. margin: auto;
  1156. width: 90%;
  1157. height: 13rpx;
  1158. background: #FFE262;
  1159. border-radius: 0rpx 0rpx 0rpx 0rpx;
  1160. }
  1161. }
  1162. }
  1163. // 红包样式
  1164. .redPacket {
  1165. position: relative;
  1166. padding: 15rpx;
  1167. box-sizing: border-box;
  1168. background: #FFF0E8;
  1169. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1170. .redPacket-img {
  1171. width: 70rpx;
  1172. height: 70rpx;
  1173. }
  1174. .lock {
  1175. position: absolute;
  1176. bottom: 0;
  1177. right: 0;
  1178. padding: 5rpx;
  1179. z-index: 9;
  1180. box-sizing: border-box;
  1181. background: rgba(255, 163, 117, 0.3);
  1182. border-radius: 20rpx 0rpx 20rpx 0rpx;
  1183. backdrop-filter: blur(10rpx);
  1184. .lock-img {
  1185. width: 30rpx;
  1186. height: 30rpx;
  1187. }
  1188. }
  1189. }
  1190. /* 锁定金额 */
  1191. .redPacket-data {
  1192. .sum {
  1193. font-size: 36rpx;
  1194. color: #F74141;
  1195. font-weight: bold;
  1196. }
  1197. .days {
  1198. font-size: 30rpx;
  1199. color: #666;
  1200. }
  1201. }
  1202. /* 去解锁按钮 */
  1203. .btn {
  1204. padding: 8rpx 20rpx;
  1205. box-sizing: border-box;
  1206. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1207. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1208. font-size: 28rpx;
  1209. color: #fff;
  1210. line-height: 1.5;
  1211. }
  1212. .taskCarousel {
  1213. width: 100%;
  1214. .swiper {
  1215. height: 200rpx;
  1216. }
  1217. .taskitem {
  1218. width: 100%;
  1219. padding: 10rpx;
  1220. box-sizing: border-box;
  1221. .task-icon {
  1222. background: #F1FBFF;
  1223. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1224. padding: 15rpx;
  1225. box-sizing: border-box;
  1226. image {
  1227. width: 70rpx;
  1228. height: 70rpx;
  1229. }
  1230. }
  1231. .task-progress {
  1232. flex: 1;
  1233. height: 100%;
  1234. margin-left: 20rpx;
  1235. margin-right: 16rpx;
  1236. .title {
  1237. font-size: 28rpx;
  1238. color: #333;
  1239. font-weight: bold;
  1240. line-height: 1.2;
  1241. }
  1242. .progressBar {
  1243. position: relative;
  1244. width: 90rpx;
  1245. height: 6rpx;
  1246. background: #F0F0F0;
  1247. border-radius: 100px;
  1248. overflow: hidden;
  1249. .jindu {
  1250. position: absolute;
  1251. left: 0;
  1252. top: 0;
  1253. height: 6rpx;
  1254. background: #FFA008;
  1255. border-radius: 100px;
  1256. }
  1257. }
  1258. .task-data {
  1259. font-size: 26rpx;
  1260. text:nth-child(1) {
  1261. color: #FFA008;
  1262. }
  1263. text:nth-child(2),
  1264. text:nth-child(3) {
  1265. color: #999999;
  1266. }
  1267. }
  1268. }
  1269. .task-btn {
  1270. padding: 8rpx 20rpx;
  1271. box-sizing: border-box;
  1272. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1273. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1274. font-size: 28rpx;
  1275. color: #fff;
  1276. line-height: 1.5;
  1277. }
  1278. .task-btn1 {
  1279. padding: 8rpx 20rpx;
  1280. box-sizing: border-box;
  1281. background: transparent;
  1282. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1283. font-size: 28rpx;
  1284. color: #2D74FF;
  1285. line-height: 1.5;
  1286. }
  1287. }
  1288. .taskitem:last-child {
  1289. margin-bottom: 13rpx;
  1290. }
  1291. }
  1292. }
  1293. ::v-deep {
  1294. uni-swiper .uni-swiper-dots-horizontal .uni-swiper-dot {
  1295. width: 6rpx;
  1296. height: 6rpx;
  1297. background: #D9D9D9;
  1298. }
  1299. uni-swiper .uni-swiper-dots-horizontal .uni-swiper-dot-active {
  1300. width: 10rpx;
  1301. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  1302. }
  1303. }
  1304. </style>