user.vue 19 KB

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