user.vue 21 KB

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