user.vue 19 KB

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