index.vue 20 KB

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