user.vue 19 KB

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