user.vue 21 KB

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