user.vue 18 KB

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