mine.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  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. var uid=this.carhelp.getUID()
  352. var getOtherUserId=this.carhelp.getOtherUserId()
  353. API_user.findByOpenId({
  354. noerror: true,
  355. openId: uid?uid:this.carhelp.getOpenId(),
  356. otherUserId:getOtherUserId
  357. }).then((response) => {
  358. //this.loginset(response)
  359. uni.hideLoading();
  360. var token = response ? response.data.token : '';
  361. this.carhelp.setToken(token);
  362. this.carhelp.setPersonInfo(response.data.tenantInfo);
  363. this.carhelp.setPersonInfoPlus(response.data)
  364. this.companyInfo = response.data.companyInfo;
  365. this.regUser = response.data.regUser;
  366. this.personInfo = response.data.tenantInfo;
  367. this.userList=response.data.userList
  368. this.availableDuration()
  369. this.prefetch();
  370. this.getContractList()
  371. //this.homePage()
  372. }).catch(error => {
  373. uni.hideLoading();
  374. uni.showToast({
  375. icon: "none",
  376. title: error
  377. })
  378. })
  379. },
  380. changeUserShowBtn() {
  381. this.defaultIndex = this.userList.findIndex(item => {
  382. return item.id == this.regUser.id
  383. })
  384. this.changeUserShow = true
  385. },
  386. selector1confirm(e) {
  387. var obj = this.userList[e[0]]
  388. uni.showLoading({
  389. title: "加载中",
  390. mask: true,
  391. })
  392. API_user.changeUser({
  393. id: obj.id,
  394. openId: this.carhelp.getOpenId()
  395. }).then((response) => {
  396. this.query()
  397. //this.companyInfo=response.data.companyInfo;
  398. }).catch(error => {
  399. uni.hideLoading();
  400. uni.showToast({
  401. icon: "none",
  402. title: error
  403. })
  404. })
  405. },
  406. personalCenter() {
  407. uni.showLoading({
  408. title: "加载中",
  409. mask: true,
  410. })
  411. API_user.personalCenter({
  412. }).then((response) => {
  413. uni.hideLoading();
  414. //this.companyInfo=response.data.companyInfo;
  415. }).catch(error => {
  416. uni.hideLoading();
  417. uni.showToast({
  418. icon: "none",
  419. title: error
  420. })
  421. })
  422. },
  423. homePage() {
  424. uni.showLoading({
  425. title: "加载中",
  426. mask: true,
  427. })
  428. API.homePage({
  429. }).then((response) => {
  430. uni.hideLoading();
  431. this.companyInfo = response.data.companyInfo;
  432. this.regUser = response.data.regUser;
  433. this.personInfo = response.data.tenantInfo;
  434. }).catch(error => {
  435. uni.hideLoading();
  436. uni.showToast({
  437. icon: "none",
  438. title: error
  439. })
  440. })
  441. }
  442. }
  443. }
  444. </script>
  445. <style lang="scss" scoped>
  446. .background {
  447. background: linear-gradient(180deg, rgba(194, 219, 255, 1) 53%, rgba(180, 211, 255, 0) 100%);
  448. padding: 72rpx 32rpx;
  449. height: 516rpx;
  450. // 个人信息
  451. .person-infos {
  452. display: flex;
  453. align-items: center;
  454. .photo {
  455. width: 112rpx;
  456. height: 112rpx;
  457. border-radius: 50px;
  458. .img {
  459. width: 100%;
  460. height: 100%;
  461. }
  462. }
  463. .else {
  464. margin-left: 24rpx;
  465. width: 400rpx;
  466. .name {
  467. white-space: pre;
  468. overflow: hidden;
  469. text-overflow: ellipsis;
  470. color: rgb(16, 16, 16);
  471. font-size: 36rpx;
  472. font-weight: bold;
  473. }
  474. .company {
  475. color: rgba(16, 16, 16, 1);
  476. }
  477. }
  478. // 切换
  479. .change {
  480. border: 1px solid rgba(22, 119, 255, 1);
  481. min-width: 128rpx;
  482. height: 64rpx;
  483. line-height: 64rpx;
  484. border-radius: 50px;
  485. margin-left: auto;
  486. color: rgba(22, 119, 255, 1);
  487. text-align: center;
  488. }
  489. }
  490. // 账户余额
  491. .content {
  492. margin: 68rpx 0rpx 24rpx 0rpx;
  493. padding-bottom: 40rpx;
  494. border-radius: 8px;
  495. background: linear-gradient(180deg, rgba(220, 235, 255, 1) 0%, rgba(255, 255, 255, 1) 39%);
  496. border: 1px solid rgba(255, 255, 255, 1);
  497. .balance{
  498. padding: 32rpx 24rpx;
  499. border-bottom: 1px solid #F4F4F4;
  500. }
  501. .title {
  502. display: flex;
  503. .icon {
  504. width: 40rpx;
  505. height: 40rpx;
  506. .img {
  507. width: 100%;
  508. height: 100%;
  509. }
  510. }
  511. .text {
  512. margin-left: 16rpx;
  513. color: rgba(51, 51, 51, 1);
  514. font-size: 32rpx;
  515. font-weight: bold;
  516. .state {
  517. white-space: pre;
  518. margin-left: 16rpx;
  519. color: rgba(238, 49, 56, 1);
  520. }
  521. }
  522. }
  523. .triangle-with-dashed-line {
  524. width: 0;
  525. height: 0;
  526. border-left: 6px solid transparent; /* 左侧边框透明 */
  527. border-right: 6px solid transparent; /* 右侧边框透明 */
  528. border-top: 10px solid red; /* 上边框为黑色,形成倒三角 */
  529. position: relative; /* 相对于自身定位 */
  530. // margin: 2px; /* 外边距,以便更清楚地看到效果 */
  531. top: 12rpx;
  532. }
  533. .triangle-with-dashed-line::after {
  534. content: '';
  535. position: absolute;
  536. top: 100%; /* 定位在倒三角的底部 */
  537. left: 50%; /* 初始左偏移,用于居中 */
  538. transform: translateX(-50%) translateY(-50%); /* 水平居中,并向上移动50%的自身高度来居中 */
  539. width: 1px; /* 虚线的宽度 */
  540. height: 32rpx; /* 虚线的高度,根据需要调整 */
  541. border-left: 1px dashed #fff; /* 左侧边框为虚线,右侧为透明或不需要设置 */
  542. margin-top: 16rpx; /* 根据需要调整以优化虚线与倒三角之间的距离 */
  543. margin-left:1px;
  544. }
  545. .balance-level{
  546. display: flex;
  547. margin-top: 16rpx;
  548. justify-content: center;
  549. flex-direction: column;
  550. align-items: center;
  551. .t{
  552. display: flex;
  553. margin-top: 8rpx;
  554. font-size: 24rpx;
  555. white-space: pre;
  556. .t1{
  557. width: 110rpx;
  558. }
  559. .t2{
  560. width: 120rpx;
  561. }
  562. .t3{
  563. width: 240rpx;
  564. }
  565. }
  566. .c{
  567. content: '';
  568. border-radius: 50px;
  569. height: 16px;
  570. line-height: 16px;
  571. }
  572. .b1{
  573. width: 600rpx;
  574. background: linear-gradient(90deg, rgba(0,186,120,1) 38%,rgba(0,215,138,1) 100%);
  575. }
  576. .b2{
  577. width: 232rpx;;
  578. background: linear-gradient(90deg, rgba(255,148,0,1) 50%,rgba(255,188,0,1) 100%);
  579. }
  580. .b3{
  581. width: 120rpx;
  582. background: linear-gradient(90deg, rgba(211,25,0,1) 0%,rgba(230,60,0,1) 100%);
  583. }
  584. }
  585. .balance-number {
  586. display: flex;
  587. align-items: center;
  588. justify-content: space-between;
  589. margin-top: 16rpx;
  590. margin-left: 56rpx;
  591. .number2 {
  592. color: rgba(238, 49, 56, 1);
  593. }
  594. .number {
  595. font-size: 56rpx;
  596. font-weight: bold;
  597. }
  598. .recharge {
  599. width: 144rpx;
  600. height: 56rpx;
  601. line-height: 56rpx;
  602. border-radius: 50px;
  603. background: linear-gradient(85.19deg, rgba(255, 61, 0, 1) 4.89%, rgba(255, 123, 0, 1) 95.37%);
  604. color: rgba(255, 255, 255, 1);
  605. text-align: center;
  606. }
  607. }
  608. // 期限
  609. .deadline {
  610. display: flex;
  611. flex-wrap: wrap;
  612. .deadline-item:first-of-type{
  613. //border-top: 1px solid #F4F4F4;
  614. }
  615. .deadline-item:last-of-type{
  616. // border-left: 1px solid #F4F4F4;
  617. }
  618. .deadline-item {
  619. border-bottom: 1px solid #F4F4F4;
  620. border-right: 1px solid #F4F4F4;
  621. width: 50%;
  622. display: flex;
  623. padding: 24rpx ;
  624. .item-icon {
  625. width: 40rpx;
  626. height: 40rpx;
  627. margin-right: 12rpx;
  628. .img {
  629. width: 100%;
  630. height: 100%;
  631. vertical-align: middle;
  632. }
  633. }
  634. .stateBl{
  635. .state {
  636. // white-space: pre;
  637. color: rgba(238, 49, 56, 1);
  638. }
  639. }
  640. .date-box {
  641. .state {
  642. white-space: pre;
  643. //color: rgba(238, 49, 56, 1);
  644. }
  645. text{
  646. margin-left: 8rpx;
  647. }
  648. .classify {
  649. color: rgba(51, 51, 51, 1);
  650. font-size: 32rpx;
  651. font-weight: bold;
  652. }
  653. .date{
  654. color: rgba(51,51,51,1);
  655. font-size: 24rpx;
  656. margin-top: 4rpx;
  657. }
  658. }
  659. }
  660. }
  661. }
  662. // 地址
  663. .address-box {
  664. border-radius: 8px;
  665. background: linear-gradient(90deg, rgba(49, 110, 207, 1) 2%, rgba(20, 73, 159, 1) 100%);
  666. color: #fff;
  667. padding: 40rpx 32rpx;
  668. margin-top: 40rpx;
  669. display: flex;
  670. align-items: center;
  671. position: relative;
  672. .address {
  673. .address-title {
  674. font-size: 40rpx;
  675. }
  676. .address-value {
  677. font-size: 24rpx;
  678. margin-top: 8rpx;
  679. }
  680. }
  681. // 切换
  682. .change {
  683. border: 1px solid rgba(255, 255, 255, 1);
  684. width: 128rpx;
  685. height: 64rpx;
  686. line-height: 64rpx;
  687. border-radius: 50px;
  688. color: rgba(255, 255, 255, 1);
  689. text-align: center;
  690. margin-left: auto;
  691. z-index: 99;
  692. }
  693. .image {
  694. width: 174rpx;
  695. height: 174rpx;
  696. position: absolute;
  697. right: 0;
  698. top: 20rpx;
  699. .img {
  700. width: 100%;
  701. height: 100%;
  702. }
  703. }
  704. }
  705. }
  706. // 功能
  707. .function-group {
  708. border-radius: 8px;
  709. background-color: #fff;
  710. margin-bottom: 24rpx;
  711. .function-item {
  712. display: flex;
  713. align-items: center;
  714. padding: 26rpx 26rpx 26rpx 0;
  715. margin-left: 26rpx;
  716. border-bottom: 1px solid rgba(221, 221, 221, 1);
  717. .icon {
  718. width: 40rpx;
  719. height: 40rpx;
  720. .img {
  721. width: 100%;
  722. height: 100%;
  723. }
  724. }
  725. .name {
  726. color: rgba(51, 51, 51, 1);
  727. font-size: 30rpx;
  728. margin-left: 26rpx;
  729. }
  730. .arrow {
  731. margin-left: auto;
  732. }
  733. }
  734. }
  735. </style>