user.vue 21 KB

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