user.vue 18 KB

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