user.vue 20 KB

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