user.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. <template>
  2. <view class="container">
  3. <!-- <view class="user-section">
  4. <view class="bg">
  5. <image class="bg_ware" src="https://moyv.top/wechat/images/bg_wave.gif"></image>
  6. </view>
  7. <view class="user-info-box">
  8. <view class="portrait-box">
  9. <image v-if="userInfo" class="portrait" :src="userInfo.avatarUrl"></image>
  10. <u-avatar v-else class="portrait" text=""></u-avatar>
  11. </view>
  12. <view class="info-box">
  13. <view @click="toLogin" class="username">{{hasLogin? (userInfo.userName || '点击修改昵称') : '立即登录' }}</view>
  14. </view>
  15. </view>
  16. </view> -->
  17. <view style="position: absolute;width: 90%;padding-left: 85%;">
  18. <image @click='setting' style='width:21px;height:21px;' src="../../static/img/sign/shezhi@3x.png" ></image>
  19. </view>
  20. <view class="indexUp flex justify-between">
  21. <view class='flex'>
  22. <image v-bind:src="headUrl" class="headPortrait"></image>
  23. <view class="personal">
  24. <view @click="toLogin" class="information">{{hasLogin? username : '立即登录' }}</view>
  25. <view class="information">{{starUserphone}}</view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="cover-container">
  30. <view class="cu-list menu text-left ">
  31. <view class="cu-item" v-for="(item, index) in gridList" v-if="item.show" :key="index"
  32. @click="gridClick(item, index)" hover-class="common-hover" :hover-stay-time="50">
  33. <view>
  34. <!-- <text :class="item.icon" class="grid_icon icon text-grey"></text> -->
  35. <image :src="item.src" class="sign"></image>
  36. <text >{{item.name}}</text>
  37. </view>
  38. <view>
  39. <text v-if='item.num==2&&taskTip' class='badge_user'>{{taskTip}}</text>
  40. <text v-if='item.num==1&&contractTip' class='badge_user'>{{contractTip}}</text>
  41. <text class='tip_text cuIcon-right'></text>
  42. </view>
  43. <!-- <image src="../../static/img/sign/authentication@3x.png" mode=""></image> -->
  44. </view>
  45. <!-- <view class='cu-item' @click='scanCode'>
  46. <view>
  47. <text class="cuIcon-scan icon text-grey"></text>
  48. <text class="text-grey">扫一扫</text>
  49. </view>
  50. <view class = 'tip_text cuIcon-right' ></view>
  51. </view> -->
  52. </view>
  53. <view style='text-align:center;'>
  54. <navigator
  55. url="/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/userAgreement.html"
  56. class="path" hover-class="navigator-hover">《服务协议》</navigator>
  57. <navigator
  58. url="/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/screctAgreement.html"
  59. class="path" hover-class="navigator-hover">《隐私政策》</navigator>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. import dragButton from "@/components/drag-button/drag-button.vue";
  66. import {
  67. mapState
  68. } from 'vuex';
  69. let startY = 0,
  70. moveY = 0,
  71. pageAtTop = true;
  72. export default {
  73. components: {
  74. dragButton
  75. },
  76. data() {
  77. return {
  78. inputShow: false,
  79. modalName: '',
  80. mycarStyle: '',
  81. feild: undefined,
  82. inputContent: '',
  83. coverTransform: 'translateY(0px)',
  84. coverTransition: '0s',
  85. moving: false,
  86. footprintList: [],
  87. isVip: false,
  88. userInfoTmp: [],
  89. inputStatus: 'none',
  90. carInfo: [],
  91. headUrl:"../../static/img/myimg/YongHu@3x.png",
  92. userphone:"",
  93. username:"请更改昵称",
  94. gridList: [
  95. {
  96. num: 0,
  97. name: '身份认证',
  98. // icon: 'cuIcon-apps',
  99. src:'../../static/img/sign/authentication@2x.png',
  100. tips: 0,
  101. url: '/pages/attestation/index',
  102. show: true
  103. },
  104. {
  105. num: 1,
  106. name: '我的合同',
  107. // icon: 'cuIcon-calendar',
  108. src:'../../static/img/sign/myContract@2x.png',
  109. tips: 0,
  110. url: '/pageB/contract/contract',
  111. show: true
  112. },
  113. {
  114. num: 2,
  115. name: '我的任务',
  116. // icon: 'cuIcon-copy',
  117. src:'../../static/img/sign/myTask@2x.png',
  118. tips: 0,
  119. url: '/pages/task/my_task',
  120. show: true
  121. },
  122. {
  123. num: 3,
  124. name: '我的粮脉',
  125. // icon: 'cuIcon-apps',
  126. src:'../../static/img/sign/liangmai.png',
  127. tips: 0,
  128. url: '/pages/grain_pulse/my_grain_pulse',
  129. show: true
  130. },
  131. {
  132. num: 4,
  133. name: '我的发布',
  134. // icon: 'cuIcon-news',
  135. src:'../../static/img/sign/myRelease@2x.png',
  136. tips: 0,
  137. url: `/pages/release/release`,
  138. show: true
  139. },
  140. {
  141. num: 5,
  142. name: '货运收发',
  143. // icon: 'cuIcon-copy',
  144. src:'../../static/img/sign/receiveGoods@2x.png',
  145. tips: 0,
  146. url: `/pageA/freightTransport/index`,
  147. show: true
  148. },
  149. // {
  150. // num: 5,
  151. // name: '设置',
  152. // // icon: 'cuIcon-edit',
  153. // src:'../../static/img/sign/shezhi@2x.png',
  154. // tips: 0,
  155. // url: `/pages/user/setUp`,
  156. // show: true
  157. // }
  158. ],
  159. showTran: true,
  160. companyId: 1,
  161. current: 4
  162. }
  163. },
  164. onLoad() {
  165. },
  166. // #ifndef MP
  167. onNavigationBarButtonTap(e) {
  168. const index = e.index;
  169. if (index === 0) {
  170. this.navTo('/pages/set/set');
  171. } else if (index === 1) {
  172. // #ifdef APP-PLUS
  173. const pages = getCurrentPages();
  174. const page = pages[pages.length - 1];
  175. const currentWebview = page.$getAppWebview();
  176. currentWebview.hideTitleNViewButtonRedDot({
  177. index
  178. });
  179. // #endif
  180. uni.navigateTo({
  181. url: '/pages/notice/notice'
  182. })
  183. }
  184. },
  185. // #endif
  186. computed: {
  187. ...mapState(['hasLogin', 'userInfo']),
  188. // 手机号中间4位加*
  189. starUserphone(){
  190. let reg = /^(\d{3})\d{4}(\d{4})$/;
  191. if(this.userphone){
  192. return this.userphone.replace(reg, "$1****$2");
  193. }
  194. }
  195. },
  196. onShow() {
  197. uni.hideKeyboard()
  198. uni.showTabBar()
  199. this.loadData()
  200. console.log("hasLogin",this.hasLogin )
  201. if(this.userInfo){
  202. if(!this.userInfo.avatarUrl){
  203. this.headUrl = "../../static/img/myimg/YongHu@3x.png"
  204. }else{
  205. this.headUrl = this.userInfo.avatarUrl
  206. }
  207. this.username = this.userInfo.userName
  208. this.userphone = this.userInfo.phone
  209. var that = this
  210. this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
  211. console.log("noticeNumber",res)
  212. if (res.data.data) {
  213. let name = 'myTip';
  214. let value = res.data.data.task;
  215. that.$store.commit('$uStore', {
  216. name,
  217. value
  218. });
  219. if(value != 0&&value){
  220. uni.setTabBarBadge({
  221. index:4,
  222. text:value+""
  223. })
  224. }
  225. name = 'taskTip';
  226. value = res.data.data.task;
  227. that.$store.commit('$uStore', {
  228. name,
  229. value
  230. });
  231. // name = 'contractTip';
  232. // value = res.data.data.contractTip;
  233. // that.$store.commit('$uStore', {
  234. // name,
  235. // value
  236. // });
  237. }
  238. })
  239. }else{
  240. this.headUrl = "../../static/img/myimg/YongHu@3x.png"
  241. this.username = "立即登录"
  242. }
  243. console.log("this.userInfo",this.userInfo)
  244. },
  245. methods: {
  246. fankui(){
  247. uni.navigateTo({
  248. url: `/pages/user/fankui`
  249. })
  250. },
  251. zhibo() {
  252. uni.navigateTo({
  253. url: `/pageB/video/broadcast`
  254. })
  255. },
  256. look() {
  257. uni.navigateTo({
  258. url: `/pageB/video/look`
  259. })
  260. },
  261. contactUs() {
  262. const that = this
  263. uni.makePhoneCall({
  264. // 手机号
  265. phoneNumber: '18241771147',
  266. // 成功回调
  267. success: (res) => {},
  268. // 失败回调
  269. fail: (res) => {}
  270. });
  271. },
  272. loadData() {
  273. // const that = this
  274. // if(uni.getStorageSync("PageCur")){
  275. // that.PageCur = uni.getStorageSync("PageCur");
  276. // }
  277. // that.userInfoTmp = uni.getStorageSync("userInfo")
  278. // uni.showLoading({
  279. // title: '正在加载',
  280. // mask:true
  281. // })
  282. // that.$api.request('integral', 'getIndexData', failres => {
  283. // that.$api.msg(failres.errmsg)
  284. // uni.hideLoading()
  285. // }).then(res => {
  286. // let data = res.data
  287. // uni.setStorageSync("message", data.message);
  288. // uni.setStorageSync("task", data.task);
  289. // uni.setStorageSync("contract", data.contract);
  290. // uni.setStorageSync('showTran', data.showTran);
  291. // that.showTran = data.showTran
  292. // that.gridList[4].tips = data.task
  293. // that.gridList[2].tips = data.contract
  294. // that.companyId = data.companyId
  295. // uni.hideLoading()
  296. // })
  297. },
  298. gridClick(item, index) {
  299. var that = this
  300. if (item.name == "退出登录") {
  301. this.logout()
  302. return;
  303. } else if (item.name == "联系我们") {
  304. //#ifdef MP
  305. this.inputShow = true
  306. this.inputStatus = 'inline'
  307. this.feild = "nickname"
  308. this.inputContent = ''
  309. //#endif
  310. //#ifdef APP-PLUS
  311. this.contactUs()
  312. //#endif
  313. return;
  314. } else if (item.name == '我的车辆') {
  315. const that = this
  316. uni.showLoading({
  317. title: '正在加载',
  318. mask: true
  319. })
  320. that.$api.request('tran', 'getMyCarList', failres => {
  321. that.$api.msg(failres.errmsg)
  322. uni.hideLoading()
  323. }).then(res => {
  324. that.carInfo = res.data
  325. if (that.carInfo.length == 0) {
  326. that.$api.msg('暂无车辆信息')
  327. } else {
  328. var height = that.carInfo.length * 100
  329. var width = 500
  330. that.mycarStyle = "height:" + height + "rpx;width:" + width + "rpx"
  331. that.modalName = 'MycarModal'
  332. }
  333. uni.hideLoading()
  334. })
  335. return;
  336. }
  337. if (!this.hasLogin) {
  338. uni.showModal({
  339. title: '登录提示',
  340. content: '您尚未登录,是否立即登录?',
  341. showCancel: true,
  342. confirmText: '登录',
  343. success: (e) => {
  344. if (e.confirm) {
  345. uni.navigateTo({
  346. url: '/pages/public/login'
  347. })
  348. }
  349. },
  350. fail: () => {},
  351. complete: () => {}
  352. })
  353. }else {
  354. if (item.url) {
  355. uni.navigateTo({
  356. url: item.url + `?companyId=${that.companyId}`
  357. })
  358. }
  359. }
  360. },
  361. setting(){
  362. if (!this.hasLogin) {
  363. uni.showModal({
  364. title: '登录提示',
  365. content: '您尚未登录,是否立即登录?',
  366. showCancel: true,
  367. confirmText: '登录',
  368. success: (e) => {
  369. if (e.confirm) {
  370. uni.navigateTo({
  371. url: '/pages/public/login'
  372. })
  373. }
  374. },
  375. fail: () => {},
  376. complete: () => {}
  377. })
  378. }else {
  379. uni.navigateTo({
  380. url:'/pages/user/setUp'
  381. })
  382. }
  383. },
  384. toLogin() {
  385. console.log("userInfo",this.userInfo)
  386. if (!this.hasLogin || !this.userInfo || this.username == "立即登录") {
  387. uni.navigateTo({
  388. url: '/pages/public/login_account_number'
  389. })
  390. }
  391. else{
  392. uni.navigateTo({
  393. url: '/pages/user/setUp'
  394. })
  395. }
  396. // else if(!this.userInfo.nickname){
  397. // this.inputShow = true
  398. // this.inputStatus = 'inline'
  399. // this.feild = "nickname"
  400. // this.inputContent = ''
  401. // }
  402. },
  403. confirm() {
  404. const that = this
  405. if (!that.inputContent) {
  406. that.$api.msg('输入不能为空')
  407. return
  408. }
  409. let obj = {}
  410. obj[that.feild] = that.inputContent
  411. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  412. that.userInfo.nickname = that.inputContent
  413. that.inputContent = ''
  414. that.$store.commit('login', that.userInfo)
  415. })
  416. },
  417. cancel() {
  418. this.inputShow = false
  419. this.inputStatus = 'none'
  420. this.genderShow = false
  421. },
  422. myAccount() {
  423. uni.navigateTo({
  424. url: `/pageA/pages/contract`
  425. })
  426. },
  427. logout() {
  428. const that = this
  429. uni.showModal({
  430. title: '询问',
  431. content: '您确定要退出吗?',
  432. cancelText: '取消',
  433. confirmText: '确定',
  434. success: (e) => {
  435. if (e.confirm) {
  436. uni.hideTabBarRedDot({
  437. index:3
  438. })
  439. uni.clearStorageSync();
  440. that.$store.commit('logout')
  441. that.$api.logout()
  442. uni.navigateTo({
  443. url: `/pages/public/login`
  444. })
  445. }
  446. }
  447. })
  448. },
  449. /**
  450. * 统一跳转接口,拦截未登录路由
  451. * navigator标签现在默认没有转场动画,所以用view
  452. */
  453. navTo(url) {
  454. if (!this.hasLogin) {
  455. url = '/pages/public/login';
  456. }
  457. uni.navigateTo({
  458. url
  459. })
  460. },
  461. mycarClick(carNo) {
  462. this.modalName = null
  463. uni.navigateTo({
  464. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  465. })
  466. },
  467. qrClick(userInfo) {
  468. this.modalName = null
  469. uni.navigateTo({
  470. url: `/pages/user/qr`
  471. })
  472. },
  473. scanCode() {
  474. uni.scanCode({
  475. success: function(res) {
  476. uni.navigateTo({
  477. url: res.result
  478. })
  479. }
  480. })
  481. },
  482. hideModal(e) {
  483. this.modalName = null
  484. },
  485. }
  486. }
  487. </script>
  488. <style lang='scss' scoped>
  489. page{
  490. background:#F5F6FA;
  491. }
  492. .container {
  493. padding-top: 85px;
  494. padding-top: 35px;
  495. background-color: #F5F6FA;
  496. position: relative;
  497. width: 100vw;
  498. height: 100vh;
  499. overflow: hidden;
  500. background: url('~@/static/img/login/bg_slices/bg@3x.png');
  501. background-size: 100% 100%;
  502. margin: 0 auto;
  503. }
  504. .cu-tag.badge {
  505. right: 26rpx;
  506. }
  507. .path {
  508. color: #007aff;
  509. display: inline-block;
  510. text-align: center;
  511. }
  512. .icon {
  513. margin-right: 10rpx;
  514. }
  515. .portrait-box {
  516. margin-top: 20rpx;
  517. }
  518. .qr-wrap {
  519. margin-top: 20upx;
  520. color: #fff;
  521. font-size: 32rpx;
  522. }
  523. .cu-list {
  524. /* height: 483rpx;
  525. overflow-y: scroll; */
  526. margin-top: 16rpx;
  527. background:#fff;
  528. margin-top: 22rpx;
  529. margin-bottom: 80rpx;
  530. }
  531. .badge_user {
  532. color: #fff;
  533. background-color: #dc3545;
  534. display: inline-block;
  535. padding: .25em .4em;
  536. font-size: 75%;
  537. font-weight: 700;
  538. line-height: 1;
  539. text-align: center;
  540. white-space: nowrap;
  541. vertical-align: top;
  542. border-radius: 50%;
  543. transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  544. }
  545. @keyframes move_wave {
  546. 0% {
  547. transform: translateX(0) translateZ(0) scaleY(1)
  548. }
  549. 50% {
  550. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  551. }
  552. 100% {
  553. transform: translateX(-50%) translateZ(0) scaleY(1)
  554. }
  555. }
  556. .bg {
  557. position: relative;
  558. height: 300rpx;
  559. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  560. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  561. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  562. }
  563. .bg_ware {
  564. position: absolute;
  565. left: 0;
  566. bottom: -2rpx;
  567. width: 100%;
  568. mix-blend-mode: screen;
  569. height: 224rpx;
  570. }
  571. %flex-center {
  572. display: flex;
  573. flex-direction: column;
  574. justify-content: center;
  575. align-items: center;
  576. }
  577. %section {
  578. display: flex;
  579. justify-content: space-around;
  580. align-content: center;
  581. background: #fff;
  582. border-radius: 10upx;
  583. }
  584. .grid-item-box {
  585. flex: 1;
  586. /* position: relative;
  587. */
  588. /* #ifndef APP-NVUE */
  589. display: flex;
  590. /* #endif */
  591. flex-direction: column;
  592. align-items: center;
  593. justify-content: center;
  594. padding: 15px 0;
  595. }
  596. .image {
  597. width: 80rpx;
  598. height: 80rpx;
  599. }
  600. .text {
  601. font-size: 26rpx;
  602. margin-top: 10rpx;
  603. }
  604. .user-section {
  605. height: 520upx;
  606. padding: 100upx 30upx 0;
  607. position: relative;
  608. .bg {
  609. position: absolute;
  610. left: 0;
  611. top: 0;
  612. width: 100%;
  613. height: 100%;
  614. filter: blur(1px);
  615. box-shadow: 0px 1px 8px #ccc;
  616. /* background:linear-gradient(#0eb0c9,#126bae); */
  617. /* opacity: .7; */
  618. }
  619. }
  620. .user-info-box {
  621. height: 180upx;
  622. /* display:flex; */
  623. /* align-items:center; */
  624. text-align: center;
  625. position: relative;
  626. z-index: 1;
  627. .portrait {
  628. width: 130upx;
  629. height: 130upx;
  630. border: 5upx solid #fff;
  631. border-radius: 50%;
  632. }
  633. .username {
  634. font-size: $font-lg + 3upx;
  635. color: #fff;
  636. margin-top: 20upx;
  637. }
  638. }
  639. .vip-card-box {
  640. display: flex;
  641. flex-direction: column;
  642. color: #f7d680;
  643. height: 240upx;
  644. background: linear-gradient(left, rgba(0, 0, 0, .7), rgba(0, 0, 0, .8));
  645. border-radius: 16upx 16upx 0 0;
  646. overflow: hidden;
  647. position: relative;
  648. padding: 20upx 24upx;
  649. .card-bg {
  650. position: absolute;
  651. top: 20upx;
  652. right: 0;
  653. width: 380upx;
  654. height: 260upx;
  655. }
  656. .b-btn {
  657. position: absolute;
  658. right: 20upx;
  659. top: 16upx;
  660. width: 132upx;
  661. height: 40upx;
  662. text-align: center;
  663. line-height: 40upx;
  664. font-size: 22upx;
  665. color: #36343c;
  666. border-radius: 20px;
  667. background: linear-gradient(left, #f9e6af, #ffd465);
  668. z-index: 1;
  669. }
  670. .tit {
  671. font-size: $font-base+2upx;
  672. color: #f7d680;
  673. margin-bottom: 28upx;
  674. .yticon {
  675. color: #f6e5a3;
  676. margin-right: 16upx;
  677. }
  678. }
  679. .e-b {
  680. font-size: $font-sm;
  681. color: #d8cba9;
  682. margin-top: 10upx;
  683. }
  684. }
  685. .cover-container {
  686. padding: 1px 10px ;
  687. padding-bottom: 200upx;
  688. /* background-color: #F5F6FA; */
  689. /* border-radius: 20px; */
  690. margin-top: 60upx;
  691. .arc {
  692. position: absolute;
  693. left: 0;
  694. top: -34upx;
  695. width: 100%;
  696. height: 36upx;
  697. }
  698. }
  699. .tj-sction {
  700. @extend %section;
  701. .tj-item {
  702. @extend %flex-center;
  703. flex-direction: column;
  704. height: 140upx;
  705. font-size: $font-sm;
  706. color: #75787d;
  707. }
  708. .num {
  709. font-size: $font-lg;
  710. color: $font-color-dark;
  711. margin-bottom: 8upx;
  712. }
  713. }
  714. .order-section {
  715. @extend %section;
  716. padding: 28upx 0;
  717. margin-top: 20upx;
  718. .order-item {
  719. @extend %flex-center;
  720. width: 120upx;
  721. height: 120upx;
  722. border-radius: 10upx;
  723. font-size: $font-sm;
  724. color: $font-color-dark;
  725. }
  726. .yticon {
  727. font-size: 48upx;
  728. margin-bottom: 18upx;
  729. color: #fa436a;
  730. }
  731. .icon-shouhoutuikuan {
  732. font-size: 44upx;
  733. }
  734. }
  735. .history-section {
  736. padding: 30upx 0 0;
  737. margin-top: 20upx;
  738. background: #fff;
  739. border-radius: 10upx;
  740. .sec-header {
  741. display: flex;
  742. align-items: center;
  743. font-size: $font-base;
  744. color: $font-color-dark;
  745. line-height: 40upx;
  746. margin-left: 30upx;
  747. .yticon {
  748. font-size: 44upx;
  749. color: #5eba8f;
  750. margin-right: 16upx;
  751. line-height: 40upx;
  752. }
  753. }
  754. .h-list {
  755. white-space: nowrap;
  756. padding: 30upx 30upx 0;
  757. image {
  758. display: inline-block;
  759. width: 160upx;
  760. height: 160upx;
  761. margin-right: 20upx;
  762. border-radius: 10upx;
  763. }
  764. }
  765. }
  766. .grid {
  767. display: flex;
  768. align-items: center;
  769. flex-wrap: wrap;
  770. /* border-top: 2upx solid rgba(172,172,172,.2); */
  771. .grid-item-3 {
  772. box-sizing: border-box;
  773. width: calc(100% / 3);
  774. border-bottom: 2upx solid rgba(172, 172, 172, .2);
  775. border-right: 2upx solid rgba(172, 172, 172, .2);
  776. text-align: center;
  777. padding: 40upx 0;
  778. position: relative;
  779. /* view{
  780. font-size: $font-sm;
  781. margin-top: 16upx;
  782. color: $font-color-dark;
  783. } */
  784. .grid_icon {
  785. font-size: 48upx;
  786. margin-bottom: 18upx;
  787. color: #fa436a;
  788. }
  789. .tip_text {
  790. display: block;
  791. padding: 4upx 8upx;
  792. text-align: center;
  793. border-radius: 36upx;
  794. font-size: 24upx;
  795. background-color: #fa436a;
  796. color: rgba(255, 255, 255, 1);
  797. position: absolute;
  798. right: 6upx;
  799. top: 6upx;
  800. }
  801. }
  802. .grid-item-3:nth-child(3n + 3),
  803. .grid-item-4:nth-child(4n + 4) {
  804. border-right: none;
  805. }
  806. }
  807. .headPortrait {
  808. width: 75px;
  809. height: 75px;
  810. border-radius: 40px;
  811. border: 2px solid #ffffff;
  812. }
  813. .personal {
  814. margin-top: 10px;
  815. margin-left: 20px;
  816. }
  817. .information {
  818. font-size: 15px;
  819. font-weight: 600;
  820. height: 36px;
  821. }
  822. .indexlow{
  823. /* margin-top: 30px; */
  824. border-radius: 10px;
  825. }
  826. .cu-list>.cu-item:after{
  827. border:none;
  828. }
  829. .sign{
  830. width: 18px;
  831. height: 18px;
  832. top: 4px;
  833. margin-right: 6px;
  834. }
  835. .indexUp{
  836. padding:0 20px;
  837. align-items: center;
  838. }
  839. </style>