user.vue 19 KB

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