index.vue 20 KB

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