index.vue 20 KB

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