mine.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. <template>
  2. <view>
  3. <view class="background">
  4. <!-- 个人信息 @click="gotoUrl('/pages/mine/personInfos')" -->
  5. <view class="person-infos">
  6. <view class="photo">
  7. <image class="img" src="@/assets/img/默认头像.png" mode=""></image>
  8. </view>
  9. <view class="else">
  10. <view class="name">
  11. {{regUser.name}}
  12. </view>
  13. <view class="company">
  14. {{personInfo.name}}
  15. </view>
  16. </view>
  17. <u-picker v-model="changeUserShow" mode="selector" :range="userList"
  18. :default-selector="[defaultIndex]" range-key="tenantName" @confirm="selector1confirm" ></u-picker>
  19. <view class="change" @click="changeUserShowBtn" v-if="userList&&userList.length>1">
  20. 切换
  21. </view>
  22. <!-- <view class="change">
  23. 切换
  24. </view> -->
  25. </view>
  26. <!-- 账户余额 -->
  27. <view class="content">
  28. <view class="balance">
  29. <view class="title">
  30. <view class="icon">
  31. <image class="img" src="@/assets/img/wallet@3x.png" mode=""></image>
  32. </view>
  33. <view class="text">
  34. 账户余额
  35. <span class="state" v-if="personInfo.balance<0">已欠费</span>
  36. </view>
  37. </view>
  38. <view class="balance-number">
  39. <view class="number" :class="{
  40. number2:personInfo.balance<0
  41. }" >
  42. {{personInfo.balance}}<span style="font-size: 32rpx;">元</span>
  43. </view>
  44. <view class="recharge" @click="gotoUrl('/pages/recharge/accountRecharge')" >
  45. 充值
  46. </view>
  47. </view>
  48. <view class="triangle-with-dashed-line"
  49. :style="{
  50. 'border-top-color':averageColor,
  51. 'left':averageLevel+'px',
  52. }"
  53. ></view>
  54. <view class="balance-level">
  55. <view class="b1 c">
  56. <view class="b2 c">
  57. <view class="b3 c">
  58. </view>
  59. </view>
  60. </view>
  61. <view class="t ">
  62. <view class="t1 " :style="averageText1?'color:#C0331D;font-weight: bold;':''">
  63. {{'不足1天'}}
  64. </view>
  65. <view class="t2 " :style="averageText2?'color:#ef7830;font-weight: bold;':''">
  66. {{'不足7天'}}
  67. </view>
  68. <view class="t3 " :style="averageText3?'color:#4faf78;font-weight: bold;':''">
  69. {{averageText3?averageText3:'不足15天'}}
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 期限 -->
  75. <view class="deadline" v-for="(obj,i) in contractList" :key="i">
  76. <view class="deadline-item" v-for="(item,i) in obj.contractItemList" :key="i" v-if="item.paymentMethod==1&&item.name!='电费'" >
  77. <view class="item-icon">
  78. <image class="img" v-if="item.name.indexOf('水')>-1" src="@/assets/img/deadline2.png" mode=""></image>
  79. <image class="img" v-else-if="item.name.indexOf('房')>-1||item.name.indexOf('租')>-1" src="@/assets/img/deadline1.png" mode=""></image>
  80. <image class="img" v-else-if="item.name.indexOf('保洁')>-1" src="@/assets/img/deadline4.png" mode=""></image>
  81. <image class="img" v-else-if="item.name.indexOf('物业')>-1" src="@/assets/img/deadline3.png" mode=""></image>
  82. <image class="img" v-else src="@/assets/img/deadline3.png" mode=""></image>
  83. </view>
  84. <view class="date-box" :class="{
  85. stateBl:stateBl(item.prepaidEndTime)
  86. }">
  87. <view class="classify">
  88. {{item.name}}
  89. </view>
  90. <view class="classify">
  91. <span class="state" v-if="item.prepaidEndTime&&stateBl(item.prepaidEndTime)">已到期</span>
  92. <span class="state" v-if="!item.prepaidEndTime">未交费</span>
  93. </view>
  94. <view class="date" v-if="item.prepaidEndTime">
  95. 已缴费至 <text class="state">{{item.prepaidEndTime}}</text>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 功能 -->
  102. <view class="function-group">
  103. <view class="function-item" v-if="false" @click="gotoUrl('/pages/mine/tenantInformation')">
  104. <view class="icon">
  105. <image class="img" src="@/assets/img/riLine-contacts-book-line.svg" mode=""></image>
  106. </view>
  107. <view class="name">
  108. 用户信息
  109. </view>
  110. <view class="arrow">
  111. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  112. </view>
  113. </view>
  114. <view class="function-item" v-if="false">
  115. <view class="icon">
  116. <image class="img" src="@/assets/img/riLine-pie-chart-line.svg" mode=""></image>
  117. </view>
  118. <view class="name">
  119. 用电监控
  120. </view>
  121. <view class="arrow">
  122. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  123. </view>
  124. </view>
  125. <view class="function-item" v-if="false">
  126. <view class="icon">
  127. <image class="img" src="@/assets/img/riLine-book-2-line.svg" mode=""></image>
  128. </view>
  129. <view class="name">
  130. 用电常识
  131. </view>
  132. <view class="arrow">
  133. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  134. </view>
  135. </view>
  136. <view class="function-item" v-if="personInfo.allowInvoice"
  137. @click="gotoUrl('/pages/invoiceManagement/invoiceManagement')">
  138. <view class="icon">
  139. <image class="img" src="@/assets/img/iconPark-order2.svg" mode=""></image>
  140. </view>
  141. <view class="name">
  142. 发票管理
  143. </view>
  144. <view class="arrow">
  145. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  146. </view>
  147. </view>
  148. <view class="function-item" @click="gotoUrl('/pages/mine/contactService')">
  149. <view class="icon">
  150. <image class="img" src="@/assets/img/riLine-customer-service-2-line.svg" mode=""></image>
  151. </view>
  152. <view class="name">
  153. 客服热线
  154. </view>
  155. <view class="arrow">
  156. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  157. </view>
  158. </view>
  159. </view>
  160. <view class="function-group" v-if="false">
  161. <view class="function-item">
  162. <view class="icon">
  163. <image class="img" src="@/assets/img/riLine-user-settings-line.svg" mode=""></image>
  164. </view>
  165. <view class="name">
  166. 个人信息
  167. </view>
  168. <view class="arrow">
  169. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  170. </view>
  171. </view>
  172. </view>
  173. <view class="function-group">
  174. <view class="function-item" @click="gotoUrl('/pages/mine/setting')">
  175. <view class="icon">
  176. <image class="img" src="@/assets/img/riLine-settings-2-line.svg" mode=""></image>
  177. </view>
  178. <view class="name">
  179. 设置
  180. </view>
  181. <view class="arrow">
  182. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  183. </view>
  184. </view>
  185. </view>
  186. </view>
  187. <Tabbar :current="2" ref="tabbarMain" :prefetchNum="prefetchNum" ></Tabbar>
  188. </view>
  189. </template>
  190. <script>
  191. import * as API from '@/apis/pagejs/index.js'
  192. import * as API_user from '@/apis/pagejs/user.js'
  193. import * as API_deduction from '@/apis/pagejs/deduction.js'
  194. import * as API_message from '@/apis/pagejs/message.js'
  195. import Tabbar from '@/components/Tabbar.vue'
  196. import {
  197. newDate
  198. } from '@/apis/utils'
  199. export default {
  200. components: {
  201. Tabbar
  202. },
  203. data() {
  204. return {
  205. companyInfo:{},
  206. regUser:{},
  207. userList:[],
  208. changeUserShow:false,
  209. defaultIndex:0,
  210. prefetchNum:0,
  211. personInfo:{
  212. },
  213. contractList:[],
  214. averageLevel:10,
  215. averageColor:"#55bb81",
  216. averageText1:"",
  217. averageText2:"",
  218. averageText3:"",
  219. }
  220. },
  221. onLoad() {
  222. this.personInfo=this.carhelp.getPersonInfo()
  223. //this.homePage()
  224. this.userList=this.carhelp.getPersonInfoPlus().userList
  225. //this.prefetch()
  226. //this.personalCenter()
  227. },
  228. onShow() {
  229. this.query()
  230. },
  231. methods: {
  232. availableDuration(){
  233. API.availableDuration({
  234. }).then((response) => {
  235. var sz=['#C0331D','#e84325','#ef7830',
  236. '#4faf78', '#55bb81']
  237. this.averageText1=""
  238. this.averageText2=""
  239. this.averageText3=""
  240. var balance=response.data.balance;
  241. var averageAmount=response.data.averageAmount;
  242. if(averageAmount==0&&balance>0){
  243. this.averageLevel=uni.upx2px(500);
  244. this.averageColor=sz[sz.length-1]
  245. }else if(averageAmount==0){
  246. this.averageColor=sz[0]
  247. this.averageLevel=10;
  248. }else if(balance==0){
  249. this.averageLevel=10;
  250. this.averageColor=sz[0]
  251. }else{
  252. var day=balance/averageAmount
  253. if(day>=1){
  254. day=parseInt(day)
  255. }
  256. if(day<1){
  257. this.averageLevel=10;
  258. this.averageColor=sz[0]
  259. }else if(day==1){
  260. this.averageLevel= uni.upx2px(120) ;
  261. this.averageColor=sz[1]
  262. }else if(day<7){
  263. this.averageColor=sz[2]
  264. var averageLevel=120;
  265. var sday=day-1
  266. var kd=(sday)/6*120
  267. this.averageText2='1'
  268. this.averageLevel=uni.upx2px(averageLevel + kd);
  269. }else if(day<=15){
  270. this.averageColor=sz[3]
  271. var sday=day-7
  272. var averageLevel=240;
  273. var kd=(sday)/8*160
  274. this.averageText3='预计可用'+day+'天'
  275. this.averageLevel=uni.upx2px(averageLevel + kd);
  276. }else{
  277. this.averageLevel=uni.upx2px(500);
  278. this.averageColor=sz[sz.length-1]
  279. }
  280. }
  281. if(this.averageLevel==10||this.averageLevel==uni.upx2px(120)){
  282. this.averageText1='1'
  283. }else if(this.averageLevel>uni.upx2px(120)&&this.averageLevel<uni.upx2px(240)){
  284. this.averageText2='1'
  285. }
  286. else if(this.averageLevel==uni.upx2px(500)){
  287. this.averageText3='余额充足'
  288. }
  289. }).catch(error => {
  290. //uni.hideLoading();
  291. uni.showToast({
  292. title: error,
  293. icon: "none"
  294. })
  295. })
  296. },
  297. stateBl(time){
  298. var get=newDate(time)
  299. var time=new Date()
  300. return get<time;
  301. },
  302. getContractList() {
  303. API_deduction.contractList({
  304. pageIndex: 1,
  305. pageSize: 9999
  306. }).then((response) => {
  307. uni.hideLoading();
  308. this.contractList = response.data.data;
  309. }).catch(error => {
  310. uni.hideLoading();
  311. uni.showToast({
  312. icon: "none",
  313. title: error
  314. })
  315. })
  316. },
  317. prefetch(){
  318. API_message.prefetch({
  319. }).then((response) => {
  320. this.prefetchNum=response.data
  321. this.getBillList()
  322. }).catch(error => {
  323. //uni.hideLoading();
  324. uni.hideLoading();
  325. uni.showToast({
  326. icon: "none",
  327. title: error
  328. })
  329. })
  330. },
  331. getBillList(){
  332. API_message.headlineBill().then((response) => {
  333. this.headlineBill=response.data;
  334. var num=response.data.unReadtNum;
  335. if (this.$refs.tabbarMain) {
  336. this.$refs.tabbarMain.setprefetchNum(this.prefetchNum+num);
  337. }
  338. }).catch(error => {
  339. uni.hideLoading();
  340. uni.showToast({
  341. icon: "none",
  342. title: error
  343. })
  344. })
  345. },
  346. query() {
  347. uni.showLoading({
  348. title: "加载中",
  349. mask: true,
  350. })
  351. API_user.findByOpenId({
  352. noerror: true,
  353. openId: this.carhelp.getOpenId(),
  354. }).then((response) => {
  355. //this.loginset(response)
  356. uni.hideLoading();
  357. var token = response ? response.data.token : '';
  358. this.carhelp.setToken(token);
  359. this.carhelp.setPersonInfo(response.data.tenantInfo);
  360. this.carhelp.setPersonInfoPlus(response.data)
  361. this.companyInfo = response.data.companyInfo;
  362. this.regUser = response.data.regUser;
  363. this.personInfo = response.data.tenantInfo;
  364. this.userList=response.data.userList
  365. this.availableDuration()
  366. this.prefetch();
  367. this.getContractList()
  368. //this.homePage()
  369. }).catch(error => {
  370. uni.hideLoading();
  371. uni.showToast({
  372. icon: "none",
  373. title: error
  374. })
  375. })
  376. },
  377. changeUserShowBtn() {
  378. this.defaultIndex = this.userList.findIndex(item => {
  379. return item.id == this.regUser.id
  380. })
  381. this.changeUserShow = true
  382. },
  383. selector1confirm(e) {
  384. var obj = this.userList[e[0]]
  385. uni.showLoading({
  386. title: "加载中",
  387. mask: true,
  388. })
  389. API_user.changeUser({
  390. id: obj.id,
  391. openId: this.carhelp.getOpenId()
  392. }).then((response) => {
  393. this.query()
  394. //this.companyInfo=response.data.companyInfo;
  395. }).catch(error => {
  396. uni.hideLoading();
  397. uni.showToast({
  398. icon: "none",
  399. title: error
  400. })
  401. })
  402. },
  403. personalCenter() {
  404. uni.showLoading({
  405. title: "加载中",
  406. mask: true,
  407. })
  408. API_user.personalCenter({
  409. }).then((response) => {
  410. uni.hideLoading();
  411. //this.companyInfo=response.data.companyInfo;
  412. }).catch(error => {
  413. uni.hideLoading();
  414. uni.showToast({
  415. icon: "none",
  416. title: error
  417. })
  418. })
  419. },
  420. homePage() {
  421. uni.showLoading({
  422. title: "加载中",
  423. mask: true,
  424. })
  425. API.homePage({
  426. }).then((response) => {
  427. uni.hideLoading();
  428. this.companyInfo = response.data.companyInfo;
  429. this.regUser = response.data.regUser;
  430. this.personInfo = response.data.tenantInfo;
  431. }).catch(error => {
  432. uni.hideLoading();
  433. uni.showToast({
  434. icon: "none",
  435. title: error
  436. })
  437. })
  438. }
  439. }
  440. }
  441. </script>
  442. <style lang="scss" scoped>
  443. .background {
  444. background: linear-gradient(180deg, rgba(194, 219, 255, 1) 53%, rgba(180, 211, 255, 0) 100%);
  445. padding: 72rpx 32rpx;
  446. height: 516rpx;
  447. // 个人信息
  448. .person-infos {
  449. display: flex;
  450. align-items: center;
  451. .photo {
  452. width: 112rpx;
  453. height: 112rpx;
  454. border-radius: 50px;
  455. .img {
  456. width: 100%;
  457. height: 100%;
  458. }
  459. }
  460. .else {
  461. margin-left: 24rpx;
  462. width: 400rpx;
  463. .name {
  464. white-space: pre;
  465. overflow: hidden;
  466. text-overflow: ellipsis;
  467. color: rgb(16, 16, 16);
  468. font-size: 36rpx;
  469. font-weight: bold;
  470. }
  471. .company {
  472. color: rgba(16, 16, 16, 1);
  473. }
  474. }
  475. // 切换
  476. .change {
  477. border: 1px solid rgba(22, 119, 255, 1);
  478. min-width: 128rpx;
  479. height: 64rpx;
  480. line-height: 64rpx;
  481. border-radius: 50px;
  482. margin-left: auto;
  483. color: rgba(22, 119, 255, 1);
  484. text-align: center;
  485. }
  486. }
  487. // 账户余额
  488. .content {
  489. margin: 68rpx 0rpx 24rpx 0rpx;
  490. padding-bottom: 40rpx;
  491. border-radius: 8px;
  492. background: linear-gradient(180deg, rgba(220, 235, 255, 1) 0%, rgba(255, 255, 255, 1) 39%);
  493. border: 1px solid rgba(255, 255, 255, 1);
  494. .balance{
  495. padding: 32rpx 24rpx;
  496. border-bottom: 1px solid #F4F4F4;
  497. }
  498. .title {
  499. display: flex;
  500. .icon {
  501. width: 40rpx;
  502. height: 40rpx;
  503. .img {
  504. width: 100%;
  505. height: 100%;
  506. }
  507. }
  508. .text {
  509. margin-left: 16rpx;
  510. color: rgba(51, 51, 51, 1);
  511. font-size: 32rpx;
  512. font-weight: bold;
  513. .state {
  514. white-space: pre;
  515. margin-left: 16rpx;
  516. color: rgba(238, 49, 56, 1);
  517. }
  518. }
  519. }
  520. .triangle-with-dashed-line {
  521. width: 0;
  522. height: 0;
  523. border-left: 6px solid transparent; /* 左侧边框透明 */
  524. border-right: 6px solid transparent; /* 右侧边框透明 */
  525. border-top: 10px solid red; /* 上边框为黑色,形成倒三角 */
  526. position: relative; /* 相对于自身定位 */
  527. // margin: 2px; /* 外边距,以便更清楚地看到效果 */
  528. top: 12rpx;
  529. }
  530. .triangle-with-dashed-line::after {
  531. content: '';
  532. position: absolute;
  533. top: 100%; /* 定位在倒三角的底部 */
  534. left: 50%; /* 初始左偏移,用于居中 */
  535. transform: translateX(-50%) translateY(-50%); /* 水平居中,并向上移动50%的自身高度来居中 */
  536. width: 1px; /* 虚线的宽度 */
  537. height: 32rpx; /* 虚线的高度,根据需要调整 */
  538. border-left: 1px dashed #fff; /* 左侧边框为虚线,右侧为透明或不需要设置 */
  539. margin-top: 16rpx; /* 根据需要调整以优化虚线与倒三角之间的距离 */
  540. margin-left:1px;
  541. }
  542. .balance-level{
  543. display: flex;
  544. margin-top: 16rpx;
  545. justify-content: center;
  546. flex-direction: column;
  547. align-items: center;
  548. .t{
  549. display: flex;
  550. margin-top: 8rpx;
  551. font-size: 24rpx;
  552. white-space: pre;
  553. .t1{
  554. width: 110rpx;
  555. }
  556. .t2{
  557. width: 120rpx;
  558. }
  559. .t3{
  560. width: 240rpx;
  561. }
  562. }
  563. .c{
  564. content: '';
  565. border-radius: 50px;
  566. height: 16px;
  567. line-height: 16px;
  568. }
  569. .b1{
  570. width: 600rpx;
  571. background: linear-gradient(90deg, rgba(0,186,120,1) 38%,rgba(0,215,138,1) 100%);
  572. }
  573. .b2{
  574. width: 232rpx;;
  575. background: linear-gradient(90deg, rgba(255,148,0,1) 50%,rgba(255,188,0,1) 100%);
  576. }
  577. .b3{
  578. width: 120rpx;
  579. background: linear-gradient(90deg, rgba(211,25,0,1) 0%,rgba(230,60,0,1) 100%);
  580. }
  581. }
  582. .balance-number {
  583. display: flex;
  584. align-items: center;
  585. justify-content: space-between;
  586. margin-top: 16rpx;
  587. margin-left: 56rpx;
  588. .number2 {
  589. color: rgba(238, 49, 56, 1);
  590. }
  591. .number {
  592. font-size: 56rpx;
  593. font-weight: bold;
  594. }
  595. .recharge {
  596. width: 144rpx;
  597. height: 56rpx;
  598. line-height: 56rpx;
  599. border-radius: 50px;
  600. background: linear-gradient(85.19deg, rgba(255, 61, 0, 1) 4.89%, rgba(255, 123, 0, 1) 95.37%);
  601. color: rgba(255, 255, 255, 1);
  602. text-align: center;
  603. }
  604. }
  605. // 期限
  606. .deadline {
  607. display: flex;
  608. flex-wrap: wrap;
  609. .deadline-item:first-of-type{
  610. //border-top: 1px solid #F4F4F4;
  611. }
  612. .deadline-item:last-of-type{
  613. // border-left: 1px solid #F4F4F4;
  614. }
  615. .deadline-item {
  616. border-bottom: 1px solid #F4F4F4;
  617. border-right: 1px solid #F4F4F4;
  618. width: 50%;
  619. display: flex;
  620. padding: 24rpx ;
  621. .item-icon {
  622. width: 40rpx;
  623. height: 40rpx;
  624. margin-right: 12rpx;
  625. .img {
  626. width: 100%;
  627. height: 100%;
  628. vertical-align: middle;
  629. }
  630. }
  631. .stateBl{
  632. .state {
  633. // white-space: pre;
  634. color: rgba(238, 49, 56, 1);
  635. }
  636. }
  637. .date-box {
  638. .state {
  639. white-space: pre;
  640. //color: rgba(238, 49, 56, 1);
  641. }
  642. text{
  643. margin-left: 8rpx;
  644. }
  645. .classify {
  646. color: rgba(51, 51, 51, 1);
  647. font-size: 32rpx;
  648. font-weight: bold;
  649. }
  650. .date{
  651. color: rgba(51,51,51,1);
  652. font-size: 24rpx;
  653. margin-top: 4rpx;
  654. }
  655. }
  656. }
  657. }
  658. }
  659. // 地址
  660. .address-box {
  661. border-radius: 8px;
  662. background: linear-gradient(90deg, rgba(49, 110, 207, 1) 2%, rgba(20, 73, 159, 1) 100%);
  663. color: #fff;
  664. padding: 40rpx 32rpx;
  665. margin-top: 40rpx;
  666. display: flex;
  667. align-items: center;
  668. position: relative;
  669. .address {
  670. .address-title {
  671. font-size: 40rpx;
  672. }
  673. .address-value {
  674. font-size: 24rpx;
  675. margin-top: 8rpx;
  676. }
  677. }
  678. // 切换
  679. .change {
  680. border: 1px solid rgba(255, 255, 255, 1);
  681. width: 128rpx;
  682. height: 64rpx;
  683. line-height: 64rpx;
  684. border-radius: 50px;
  685. color: rgba(255, 255, 255, 1);
  686. text-align: center;
  687. margin-left: auto;
  688. z-index: 99;
  689. }
  690. .image {
  691. width: 174rpx;
  692. height: 174rpx;
  693. position: absolute;
  694. right: 0;
  695. top: 20rpx;
  696. .img {
  697. width: 100%;
  698. height: 100%;
  699. }
  700. }
  701. }
  702. }
  703. // 功能
  704. .function-group {
  705. border-radius: 8px;
  706. background-color: #fff;
  707. margin-bottom: 24rpx;
  708. .function-item {
  709. display: flex;
  710. align-items: center;
  711. padding: 26rpx 26rpx 26rpx 0;
  712. margin-left: 26rpx;
  713. border-bottom: 1px solid rgba(221, 221, 221, 1);
  714. .icon {
  715. width: 40rpx;
  716. height: 40rpx;
  717. .img {
  718. width: 100%;
  719. height: 100%;
  720. }
  721. }
  722. .name {
  723. color: rgba(51, 51, 51, 1);
  724. font-size: 30rpx;
  725. margin-left: 26rpx;
  726. }
  727. .arrow {
  728. margin-left: auto;
  729. }
  730. }
  731. }
  732. </style>