user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880
  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 solid-top indexlow">
  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. position: relative;
  481. width: 100vw;
  482. height: 100vh;
  483. overflow: hidden;
  484. background: url('~@/static/img/login/bg_slices/bg@3x.png');
  485. background-size: 100% 100%;
  486. margin: 0 auto;
  487. }
  488. .cu-tag.badge {
  489. right: 26rpx;
  490. }
  491. .path {
  492. color: #007aff;
  493. display: inline-block;
  494. text-align: center;
  495. }
  496. .icon {
  497. margin-right: 10rpx;
  498. }
  499. .portrait-box {
  500. margin-top: 20rpx;
  501. }
  502. .qr-wrap {
  503. margin-top: 20upx;
  504. color: #fff;
  505. font-size: 32rpx;
  506. }
  507. .cu-list {
  508. /* height: 483rpx;
  509. overflow-y: scroll; */
  510. margin-top: 16rpx;
  511. background:#fff;
  512. margin-bottom: 80rpx;
  513. }
  514. .badge_user {
  515. color: #fff;
  516. background-color: #dc3545;
  517. display: inline-block;
  518. padding: .25em .4em;
  519. font-size: 75%;
  520. font-weight: 700;
  521. line-height: 1;
  522. text-align: center;
  523. white-space: nowrap;
  524. vertical-align: top;
  525. border-radius: 50%;
  526. transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  527. }
  528. @keyframes move_wave {
  529. 0% {
  530. transform: translateX(0) translateZ(0) scaleY(1)
  531. }
  532. 50% {
  533. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  534. }
  535. 100% {
  536. transform: translateX(-50%) translateZ(0) scaleY(1)
  537. }
  538. }
  539. .bg {
  540. position: relative;
  541. height: 300rpx;
  542. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  543. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  544. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  545. }
  546. .bg_ware {
  547. position: absolute;
  548. left: 0;
  549. bottom: -2rpx;
  550. width: 100%;
  551. mix-blend-mode: screen;
  552. height: 224rpx;
  553. }
  554. %flex-center {
  555. display: flex;
  556. flex-direction: column;
  557. justify-content: center;
  558. align-items: center;
  559. }
  560. %section {
  561. display: flex;
  562. justify-content: space-around;
  563. align-content: center;
  564. background: #fff;
  565. border-radius: 10upx;
  566. }
  567. .grid-item-box {
  568. flex: 1;
  569. /* position: relative;
  570. */
  571. /* #ifndef APP-NVUE */
  572. display: flex;
  573. /* #endif */
  574. flex-direction: column;
  575. align-items: center;
  576. justify-content: center;
  577. padding: 15px 0;
  578. }
  579. .image {
  580. width: 80rpx;
  581. height: 80rpx;
  582. }
  583. .text {
  584. font-size: 26rpx;
  585. margin-top: 10rpx;
  586. }
  587. .user-section {
  588. height: 520upx;
  589. padding: 100upx 30upx 0;
  590. position: relative;
  591. .bg {
  592. position: absolute;
  593. left: 0;
  594. top: 0;
  595. width: 100%;
  596. height: 100%;
  597. filter: blur(1px);
  598. box-shadow: 0px 1px 8px #ccc;
  599. /* background:linear-gradient(#0eb0c9,#126bae); */
  600. /* opacity: .7; */
  601. }
  602. }
  603. .user-info-box {
  604. height: 180upx;
  605. /* display:flex; */
  606. /* align-items:center; */
  607. text-align: center;
  608. position: relative;
  609. z-index: 1;
  610. .portrait {
  611. width: 130upx;
  612. height: 130upx;
  613. border: 5upx solid #fff;
  614. border-radius: 50%;
  615. }
  616. .username {
  617. font-size: $font-lg + 3upx;
  618. color: #fff;
  619. margin-top: 20upx;
  620. }
  621. }
  622. .vip-card-box {
  623. display: flex;
  624. flex-direction: column;
  625. color: #f7d680;
  626. height: 240upx;
  627. background: linear-gradient(left, rgba(0, 0, 0, .7), rgba(0, 0, 0, .8));
  628. border-radius: 16upx 16upx 0 0;
  629. overflow: hidden;
  630. position: relative;
  631. padding: 20upx 24upx;
  632. .card-bg {
  633. position: absolute;
  634. top: 20upx;
  635. right: 0;
  636. width: 380upx;
  637. height: 260upx;
  638. }
  639. .b-btn {
  640. position: absolute;
  641. right: 20upx;
  642. top: 16upx;
  643. width: 132upx;
  644. height: 40upx;
  645. text-align: center;
  646. line-height: 40upx;
  647. font-size: 22upx;
  648. color: #36343c;
  649. border-radius: 20px;
  650. background: linear-gradient(left, #f9e6af, #ffd465);
  651. z-index: 1;
  652. }
  653. .tit {
  654. font-size: $font-base+2upx;
  655. color: #f7d680;
  656. margin-bottom: 28upx;
  657. .yticon {
  658. color: #f6e5a3;
  659. margin-right: 16upx;
  660. }
  661. }
  662. .e-b {
  663. font-size: $font-sm;
  664. color: #d8cba9;
  665. margin-top: 10upx;
  666. }
  667. }
  668. .cover-container {
  669. padding: 1px 10px ;
  670. padding-bottom: 200upx;
  671. /* background-color: #F5F6FA; */
  672. /* border-radius: 20px; */
  673. margin-top: 60upx;
  674. .arc {
  675. position: absolute;
  676. left: 0;
  677. top: -34upx;
  678. width: 100%;
  679. height: 36upx;
  680. }
  681. }
  682. .tj-sction {
  683. @extend %section;
  684. .tj-item {
  685. @extend %flex-center;
  686. flex-direction: column;
  687. height: 140upx;
  688. font-size: $font-sm;
  689. color: #75787d;
  690. }
  691. .num {
  692. font-size: $font-lg;
  693. color: $font-color-dark;
  694. margin-bottom: 8upx;
  695. }
  696. }
  697. .order-section {
  698. @extend %section;
  699. padding: 28upx 0;
  700. margin-top: 20upx;
  701. .order-item {
  702. @extend %flex-center;
  703. width: 120upx;
  704. height: 120upx;
  705. border-radius: 10upx;
  706. font-size: $font-sm;
  707. color: $font-color-dark;
  708. }
  709. .yticon {
  710. font-size: 48upx;
  711. margin-bottom: 18upx;
  712. color: #fa436a;
  713. }
  714. .icon-shouhoutuikuan {
  715. font-size: 44upx;
  716. }
  717. }
  718. .history-section {
  719. padding: 30upx 0 0;
  720. margin-top: 20upx;
  721. background: #fff;
  722. border-radius: 10upx;
  723. .sec-header {
  724. display: flex;
  725. align-items: center;
  726. font-size: $font-base;
  727. color: $font-color-dark;
  728. line-height: 40upx;
  729. margin-left: 30upx;
  730. .yticon {
  731. font-size: 44upx;
  732. color: #5eba8f;
  733. margin-right: 16upx;
  734. line-height: 40upx;
  735. }
  736. }
  737. .h-list {
  738. white-space: nowrap;
  739. padding: 30upx 30upx 0;
  740. image {
  741. display: inline-block;
  742. width: 160upx;
  743. height: 160upx;
  744. margin-right: 20upx;
  745. border-radius: 10upx;
  746. }
  747. }
  748. }
  749. .grid {
  750. display: flex;
  751. align-items: center;
  752. flex-wrap: wrap;
  753. /* border-top: 2upx solid rgba(172,172,172,.2); */
  754. .grid-item-3 {
  755. box-sizing: border-box;
  756. width: calc(100% / 3);
  757. border-bottom: 2upx solid rgba(172, 172, 172, .2);
  758. border-right: 2upx solid rgba(172, 172, 172, .2);
  759. text-align: center;
  760. padding: 40upx 0;
  761. position: relative;
  762. /* view{
  763. font-size: $font-sm;
  764. margin-top: 16upx;
  765. color: $font-color-dark;
  766. } */
  767. .grid_icon {
  768. font-size: 48upx;
  769. margin-bottom: 18upx;
  770. color: #fa436a;
  771. }
  772. .tip_text {
  773. display: block;
  774. padding: 4upx 8upx;
  775. text-align: center;
  776. border-radius: 36upx;
  777. font-size: 24upx;
  778. background-color: #fa436a;
  779. color: rgba(255, 255, 255, 1);
  780. position: absolute;
  781. right: 6upx;
  782. top: 6upx;
  783. }
  784. }
  785. .grid-item-3:nth-child(3n + 3),
  786. .grid-item-4:nth-child(4n + 4) {
  787. border-right: none;
  788. }
  789. }
  790. .headPortrait {
  791. width: 75px;
  792. height: 75px;
  793. border-radius: 40px;
  794. border: 2px solid #ffffff;
  795. }
  796. .personal {
  797. margin-top: 10px;
  798. margin-left: 20px;
  799. }
  800. .information {
  801. font-size: 15px;
  802. font-weight: 600;
  803. height: 36px;
  804. }
  805. .indexlow{
  806. /* margin-top: 30px; */
  807. border-radius: 10px;
  808. }
  809. .cu-list>.cu-item:after{
  810. border:none;
  811. }
  812. .sign{
  813. width: 18px;
  814. height: 18px;
  815. top: 4px;
  816. margin-right: 6px;
  817. }
  818. .indexUp{
  819. padding:0 20px;
  820. align-items: center;
  821. }
  822. </style>