user.vue 20 KB

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