user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  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">{{starUserphone}}</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. </view>
  64. </template>
  65. <script>
  66. import dragButton from "@/components/drag-button/drag-button.vue";
  67. import {
  68. mapState
  69. } from 'vuex';
  70. let startY = 0,
  71. moveY = 0,
  72. pageAtTop = true;
  73. export default {
  74. components: {
  75. dragButton
  76. },
  77. data() {
  78. return {
  79. inputShow: false,
  80. modalName: '',
  81. mycarStyle: '',
  82. feild: undefined,
  83. inputContent: '',
  84. coverTransform: 'translateY(0px)',
  85. coverTransition: '0s',
  86. moving: false,
  87. footprintList: [],
  88. isVip: false,
  89. userInfoTmp: [],
  90. inputStatus: 'none',
  91. carInfo: [],
  92. headUrl:"../../static/img/myimg/YongHu@3x.png",
  93. userphone:"",
  94. username:"请更改昵称",
  95. gridList: [
  96. {
  97. num: 0,
  98. name: '身份认证',
  99. // icon: 'cuIcon-apps',
  100. src:'../../static/img/sign/authentication@2x.png',
  101. tips: 0,
  102. url: '/pages/attestation/index',
  103. show: true
  104. },
  105. {
  106. num: 1,
  107. name: '我的合同',
  108. // icon: 'cuIcon-calendar',
  109. src:'../../static/img/sign/myContract@2x.png',
  110. tips: 0,
  111. url: '/pageB/contract/contract',
  112. show: true
  113. },
  114. {
  115. num: 2,
  116. name: '我的任务',
  117. // icon: 'cuIcon-copy',
  118. src:'../../static/img/sign/myTask@2x.png',
  119. tips: 0,
  120. url: '/pages/task/my_task',
  121. show: true
  122. },
  123. {
  124. num: 3,
  125. name: '我的发布',
  126. // icon: 'cuIcon-news',
  127. src:'../../static/img/sign/myRelease@2x.png',
  128. tips: 0,
  129. url: `/pages/release/release`,
  130. show: true
  131. },
  132. {
  133. num: 4,
  134. name: '货运收发',
  135. // icon: 'cuIcon-copy',
  136. src:'../../static/img/sign/receiveGoods@2x.png',
  137. tips: 0,
  138. url: `/pageA/freightTransport/index`,
  139. show: true
  140. },
  141. {
  142. num: 5,
  143. name: '设置',
  144. // icon: 'cuIcon-edit',
  145. src:'../../static/img/sign/shezhi@2x.png',
  146. tips: 0,
  147. url: `/pages/user/setUp`,
  148. show: true
  149. },
  150. {
  151. num:6,
  152. name: '退出登录',
  153. // icon:'cuIcon-exit',
  154. src:'../../static/img/sign/return@3x.png',
  155. tips: 0,
  156. url:'',
  157. show:true
  158. },
  159. ],
  160. showTran: true,
  161. companyId: 1,
  162. current: 4
  163. }
  164. },
  165. onLoad() {
  166. },
  167. // #ifndef MP
  168. onNavigationBarButtonTap(e) {
  169. const index = e.index;
  170. if (index === 0) {
  171. this.navTo('/pages/set/set');
  172. } else if (index === 1) {
  173. // #ifdef APP-PLUS
  174. const pages = getCurrentPages();
  175. const page = pages[pages.length - 1];
  176. const currentWebview = page.$getAppWebview();
  177. currentWebview.hideTitleNViewButtonRedDot({
  178. index
  179. });
  180. // #endif
  181. uni.navigateTo({
  182. url: '/pages/notice/notice'
  183. })
  184. }
  185. },
  186. // #endif
  187. computed: {
  188. ...mapState(['hasLogin', 'userInfo']),
  189. // 手机号中间4位加*
  190. starUserphone(){
  191. let reg = /^(\d{3})\d{4}(\d{4})$/;
  192. if(this.userphone){
  193. return this.userphone.replace(reg, "$1****$2");
  194. }
  195. }
  196. },
  197. onShow() {
  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:3,
  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. toLogin() {
  361. console.log("userInfo",this.userInfo)
  362. if (!this.hasLogin || !this.userInfo || this.username == "立即登录") {
  363. uni.navigateTo({
  364. url: '/pages/public/login_account_number'
  365. })
  366. }
  367. else{
  368. uni.navigateTo({
  369. url: '/pages/user/setUp'
  370. })
  371. }
  372. // else if(!this.userInfo.nickname){
  373. // this.inputShow = true
  374. // this.inputStatus = 'inline'
  375. // this.feild = "nickname"
  376. // this.inputContent = ''
  377. // }
  378. },
  379. confirm() {
  380. const that = this
  381. if (!that.inputContent) {
  382. that.$api.msg('输入不能为空')
  383. return
  384. }
  385. let obj = {}
  386. obj[that.feild] = that.inputContent
  387. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  388. that.userInfo.nickname = that.inputContent
  389. that.inputContent = ''
  390. that.$store.commit('login', that.userInfo)
  391. })
  392. },
  393. cancel() {
  394. this.inputShow = false
  395. this.inputStatus = 'none'
  396. this.genderShow = false
  397. },
  398. myAccount() {
  399. uni.navigateTo({
  400. url: `/pageA/pages/contract`
  401. })
  402. },
  403. logout() {
  404. const that = this
  405. uni.showModal({
  406. title: '询问',
  407. content: '您确定要退出吗?',
  408. cancelText: '取消',
  409. confirmText: '确定',
  410. success: (e) => {
  411. if (e.confirm) {
  412. uni.hideTabBarRedDot({
  413. index:3
  414. })
  415. uni.clearStorageSync();
  416. that.$store.commit('logout')
  417. that.$api.logout()
  418. uni.navigateTo({
  419. url: `/pages/public/login`
  420. })
  421. }
  422. }
  423. })
  424. },
  425. /**
  426. * 统一跳转接口,拦截未登录路由
  427. * navigator标签现在默认没有转场动画,所以用view
  428. */
  429. navTo(url) {
  430. if (!this.hasLogin) {
  431. url = '/pages/public/login';
  432. }
  433. uni.navigateTo({
  434. url
  435. })
  436. },
  437. mycarClick(carNo) {
  438. this.modalName = null
  439. uni.navigateTo({
  440. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  441. })
  442. },
  443. qrClick(userInfo) {
  444. this.modalName = null
  445. uni.navigateTo({
  446. url: `/pages/user/qr`
  447. })
  448. },
  449. scanCode() {
  450. uni.scanCode({
  451. success: function(res) {
  452. uni.navigateTo({
  453. url: res.result
  454. })
  455. }
  456. })
  457. },
  458. hideModal(e) {
  459. this.modalName = null
  460. },
  461. }
  462. }
  463. </script>
  464. <style lang='scss' scoped>
  465. .container {
  466. padding-top: 85px;
  467. background-color: #F5F6FA;
  468. position: relative;
  469. width: 100vw;
  470. height: 100vh;
  471. overflow: hidden;
  472. background: url('~@/static/img/login/bg.png');
  473. background-size: 100% 100%;
  474. margin: 0 auto;
  475. }
  476. .cu-tag.badge {
  477. right: 26rpx;
  478. }
  479. .path {
  480. color: #007aff;
  481. display: inline-block;
  482. text-align: center;
  483. }
  484. .icon {
  485. margin-right: 10rpx;
  486. }
  487. .portrait-box {
  488. margin-top: 20rpx;
  489. }
  490. .qr-wrap {
  491. margin-top: 20upx;
  492. color: #fff;
  493. font-size: 32rpx;
  494. }
  495. .cu-list {
  496. /* height: 483rpx;
  497. overflow-y: scroll; */
  498. margin-top: 42rpx;
  499. margin-bottom: 80rpx;
  500. }
  501. .badge_user {
  502. color: #fff;
  503. background-color: #dc3545;
  504. display: inline-block;
  505. padding: .25em .4em;
  506. font-size: 75%;
  507. font-weight: 700;
  508. line-height: 1;
  509. text-align: center;
  510. white-space: nowrap;
  511. vertical-align: top;
  512. border-radius: 50%;
  513. transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  514. }
  515. @keyframes move_wave {
  516. 0% {
  517. transform: translateX(0) translateZ(0) scaleY(1)
  518. }
  519. 50% {
  520. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  521. }
  522. 100% {
  523. transform: translateX(-50%) translateZ(0) scaleY(1)
  524. }
  525. }
  526. .bg {
  527. position: relative;
  528. height: 300rpx;
  529. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  530. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  531. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  532. }
  533. .bg_ware {
  534. position: absolute;
  535. left: 0;
  536. bottom: -2rpx;
  537. width: 100%;
  538. mix-blend-mode: screen;
  539. height: 224rpx;
  540. }
  541. %flex-center {
  542. display: flex;
  543. flex-direction: column;
  544. justify-content: center;
  545. align-items: center;
  546. }
  547. %section {
  548. display: flex;
  549. justify-content: space-around;
  550. align-content: center;
  551. background: #fff;
  552. border-radius: 10upx;
  553. }
  554. .grid-item-box {
  555. flex: 1;
  556. /* position: relative;
  557. */
  558. /* #ifndef APP-NVUE */
  559. display: flex;
  560. /* #endif */
  561. flex-direction: column;
  562. align-items: center;
  563. justify-content: center;
  564. padding: 15px 0;
  565. }
  566. .image {
  567. width: 80rpx;
  568. height: 80rpx;
  569. }
  570. .text {
  571. font-size: 26rpx;
  572. margin-top: 10rpx;
  573. }
  574. .user-section {
  575. height: 520upx;
  576. padding: 100upx 30upx 0;
  577. position: relative;
  578. .bg {
  579. position: absolute;
  580. left: 0;
  581. top: 0;
  582. width: 100%;
  583. height: 100%;
  584. filter: blur(1px);
  585. box-shadow: 0px 1px 8px #ccc;
  586. /* background:linear-gradient(#0eb0c9,#126bae); */
  587. /* opacity: .7; */
  588. }
  589. }
  590. .user-info-box {
  591. height: 180upx;
  592. /* display:flex; */
  593. /* align-items:center; */
  594. text-align: center;
  595. position: relative;
  596. z-index: 1;
  597. .portrait {
  598. width: 130upx;
  599. height: 130upx;
  600. border: 5upx solid #fff;
  601. border-radius: 50%;
  602. }
  603. .username {
  604. font-size: $font-lg + 3upx;
  605. color: #fff;
  606. margin-top: 20upx;
  607. }
  608. }
  609. .vip-card-box {
  610. display: flex;
  611. flex-direction: column;
  612. color: #f7d680;
  613. height: 240upx;
  614. background: linear-gradient(left, rgba(0, 0, 0, .7), rgba(0, 0, 0, .8));
  615. border-radius: 16upx 16upx 0 0;
  616. overflow: hidden;
  617. position: relative;
  618. padding: 20upx 24upx;
  619. .card-bg {
  620. position: absolute;
  621. top: 20upx;
  622. right: 0;
  623. width: 380upx;
  624. height: 260upx;
  625. }
  626. .b-btn {
  627. position: absolute;
  628. right: 20upx;
  629. top: 16upx;
  630. width: 132upx;
  631. height: 40upx;
  632. text-align: center;
  633. line-height: 40upx;
  634. font-size: 22upx;
  635. color: #36343c;
  636. border-radius: 20px;
  637. background: linear-gradient(left, #f9e6af, #ffd465);
  638. z-index: 1;
  639. }
  640. .tit {
  641. font-size: $font-base+2upx;
  642. color: #f7d680;
  643. margin-bottom: 28upx;
  644. .yticon {
  645. color: #f6e5a3;
  646. margin-right: 16upx;
  647. }
  648. }
  649. .e-b {
  650. font-size: $font-sm;
  651. color: #d8cba9;
  652. margin-top: 10upx;
  653. }
  654. }
  655. .cover-container {
  656. padding: 1px 10px ;
  657. padding-bottom: 200upx;
  658. background-color: #F5F6FA;
  659. /* border-radius: 20px; */
  660. margin-top: 60upx;
  661. .arc {
  662. position: absolute;
  663. left: 0;
  664. top: -34upx;
  665. width: 100%;
  666. height: 36upx;
  667. }
  668. }
  669. .tj-sction {
  670. @extend %section;
  671. .tj-item {
  672. @extend %flex-center;
  673. flex-direction: column;
  674. height: 140upx;
  675. font-size: $font-sm;
  676. color: #75787d;
  677. }
  678. .num {
  679. font-size: $font-lg;
  680. color: $font-color-dark;
  681. margin-bottom: 8upx;
  682. }
  683. }
  684. .order-section {
  685. @extend %section;
  686. padding: 28upx 0;
  687. margin-top: 20upx;
  688. .order-item {
  689. @extend %flex-center;
  690. width: 120upx;
  691. height: 120upx;
  692. border-radius: 10upx;
  693. font-size: $font-sm;
  694. color: $font-color-dark;
  695. }
  696. .yticon {
  697. font-size: 48upx;
  698. margin-bottom: 18upx;
  699. color: #fa436a;
  700. }
  701. .icon-shouhoutuikuan {
  702. font-size: 44upx;
  703. }
  704. }
  705. .history-section {
  706. padding: 30upx 0 0;
  707. margin-top: 20upx;
  708. background: #fff;
  709. border-radius: 10upx;
  710. .sec-header {
  711. display: flex;
  712. align-items: center;
  713. font-size: $font-base;
  714. color: $font-color-dark;
  715. line-height: 40upx;
  716. margin-left: 30upx;
  717. .yticon {
  718. font-size: 44upx;
  719. color: #5eba8f;
  720. margin-right: 16upx;
  721. line-height: 40upx;
  722. }
  723. }
  724. .h-list {
  725. white-space: nowrap;
  726. padding: 30upx 30upx 0;
  727. image {
  728. display: inline-block;
  729. width: 160upx;
  730. height: 160upx;
  731. margin-right: 20upx;
  732. border-radius: 10upx;
  733. }
  734. }
  735. }
  736. .grid {
  737. display: flex;
  738. align-items: center;
  739. flex-wrap: wrap;
  740. /* border-top: 2upx solid rgba(172,172,172,.2); */
  741. .grid-item-3 {
  742. box-sizing: border-box;
  743. width: calc(100% / 3);
  744. border-bottom: 2upx solid rgba(172, 172, 172, .2);
  745. border-right: 2upx solid rgba(172, 172, 172, .2);
  746. text-align: center;
  747. padding: 40upx 0;
  748. position: relative;
  749. /* view{
  750. font-size: $font-sm;
  751. margin-top: 16upx;
  752. color: $font-color-dark;
  753. } */
  754. .grid_icon {
  755. font-size: 48upx;
  756. margin-bottom: 18upx;
  757. color: #fa436a;
  758. }
  759. .tip_text {
  760. display: block;
  761. padding: 4upx 8upx;
  762. text-align: center;
  763. border-radius: 36upx;
  764. font-size: 24upx;
  765. background-color: #fa436a;
  766. color: rgba(255, 255, 255, 1);
  767. position: absolute;
  768. right: 6upx;
  769. top: 6upx;
  770. }
  771. }
  772. .grid-item-3:nth-child(3n + 3),
  773. .grid-item-4:nth-child(4n + 4) {
  774. border-right: none;
  775. }
  776. }
  777. .headPortrait {
  778. width: 75px;
  779. height: 75px;
  780. border-radius: 40px;
  781. margin-left: 20px;
  782. border: 2px solid #ffffff;
  783. }
  784. .personal {
  785. margin-top: 10px;
  786. margin-left: 20px;
  787. }
  788. .information {
  789. font-size: 15px;
  790. font-weight: 600;
  791. height: 36px;
  792. }
  793. .indexlow{
  794. /* margin-top: 30px; */
  795. border-radius: 20px;
  796. }
  797. .sign{
  798. width: 18px;
  799. height: 18px;
  800. top: 4px;
  801. margin-right: 6px;
  802. }
  803. </style>