user.vue 19 KB

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