index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984
  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 class="content2">
  15. <view>收购信息</view>
  16. <view @click="navTo('/pages/erpbusiness/acquisitionInformation?status='+status+'&id='+sgId)">{{status}}></view>
  17. </view>
  18. </view>
  19. <!-- <view class="wrap">
  20. <view class='title'>出库管理</view>
  21. <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']">
  22. <view class="cu-item" v-for="(item,index) in gridList1" :key="index" @click="gridClick(item, index)"
  23. v-if="index<gridCol*2">
  24. <view :class="['cuIcon-' + item.cuIcon,'text-' + item.color]">
  25. <image :src="item.src" class="sign"></image>
  26. </view>
  27. <text>{{item.name}}</text>
  28. </view>
  29. </view>
  30. </view> -->
  31. <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
  32. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='温馨提示'
  33. showCancelButton='false' :content="content" @confirm="goOpenService" @cancel="cancelClick"></u-modal>
  34. <u-modal v-model="isShowAlert1" :title-style="{fontSize: '18px',fontWeight:'500'}"
  35. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='登录提示'
  36. showCancelButton='false' :content="content1" @confirm="alertBtn1" @cancel="cancelClick1"></u-modal>
  37. </view>
  38. </template>
  39. <script>
  40. import dragButton from "@/components/drag-button/drag-button.vue";
  41. import {
  42. mapState
  43. } from 'vuex';
  44. let startY = 0,
  45. moveY = 0,
  46. pageAtTop = true;
  47. export default {
  48. components: {
  49. dragButton
  50. },
  51. data() {
  52. return {
  53. status:'',
  54. isShowAlert1: false,
  55. content1: '当前登入信息验证失败,是否重新登录?',
  56. isShowAlert: false,
  57. content: '您确定要退出吗?',
  58. a: false,
  59. inputShow: false,
  60. modalName: '',
  61. mycarStyle: '',
  62. feild: undefined,
  63. inputContent: '',
  64. coverTransform: 'translateY(0px)',
  65. coverTransition: '0s',
  66. moving: false,
  67. footprintList: [],
  68. isVip: false,
  69. userInfoTmp: [],
  70. inputStatus: 'none',
  71. carInfo: [],
  72. gridCol: 4,
  73. gridBorder: false,
  74. headUrl: "../../static/img/myimg/YongHu@3x.png",
  75. userphone: "",
  76. username: "请更改昵称",
  77. gridList: [{
  78. num: 0,
  79. name: '邀请用户',
  80. // icon: 'cuIcon-apps',
  81. src: '../../static/img/erp/yaoqingyonghu@3x.png',
  82. tips: 0,
  83. url: '/pages/erpbusiness/QRCode/QRCode',
  84. show: true
  85. },
  86. {
  87. num: 1,
  88. name: '收购质检',
  89. // icon: 'cuIcon-calendar',
  90. src: '../../static/img/erp/shougouzhijian@3x.png',
  91. tips: 0,
  92. url: '/pages/erpbusiness/quality_testing?managementType=1',
  93. show: true
  94. },
  95. {
  96. num: 2,
  97. name: '收购检斤',
  98. // icon: 'cuIcon-copy',
  99. src: '../../static/img/erp/shougoujianjin@3x.png',
  100. tips: 0,
  101. url: '/pages/erpbusiness/acquisitionInspection/acquisitionInspection',
  102. show: true
  103. }
  104. // {
  105. // num: 5,
  106. // name: '设置',
  107. // // icon: 'cuIcon-edit',
  108. // src:'../../static/img/sign/shezhi@2x.png',
  109. // tips: 0,
  110. // url: `/pages/user/setUp`,
  111. // show: true
  112. // }
  113. ],
  114. gridList1: [
  115. // {
  116. // num: 0,
  117. // name: '出库检斤',
  118. // // icon: 'cuIcon-apps',
  119. // src:'../../static/img/erp/chukujianjin@3x.png',
  120. // tips: 0,
  121. // url: '/pages/erpbusiness/acquisitionInspection/warehouseWeighing',
  122. // show: false
  123. // },
  124. {
  125. num: 1,
  126. name: '出库质检',
  127. // icon: 'cuIcon-calendar',
  128. src: '../../static/img/erp/chukuzhijian@3x.png',
  129. tips: 0,
  130. url: '/pages/erpbusiness/quality_testing?managementType=3',
  131. show: true
  132. }
  133. // {
  134. // num: 5,
  135. // name: '设置',
  136. // // icon: 'cuIcon-edit',
  137. // src:'../../static/img/sign/shezhi@2x.png',
  138. // tips: 0,
  139. // url: `/pages/user/setUp`,
  140. // show: true
  141. // }
  142. ],
  143. showTran: true,
  144. companyId: 1,
  145. current: 4,
  146. sgId:''
  147. }
  148. },
  149. onLoad() {
  150. },
  151. // #ifndef MP
  152. onNavigationBarButtonTap(e) {
  153. const index = e.index;
  154. if (index === 0) {
  155. this.navTo('/pages/set/set');
  156. } else if (index === 1) {
  157. // #ifdef APP-PLUS
  158. const pages = getCurrentPages();
  159. const page = pages[pages.length - 1];
  160. const currentWebview = page.$getAppWebview();
  161. currentWebview.hideTitleNViewButtonRedDot({
  162. index
  163. });
  164. // #endif
  165. uni.navigateTo({
  166. url: '/pages/notice/notice'
  167. })
  168. }
  169. },
  170. // #endif
  171. computed: {
  172. ...mapState(['hasLogin', 'userInfo']),
  173. // 手机号中间4位加*
  174. starUserphone() {
  175. let reg = /^(\d{3})\d{4}(\d{4})$/;
  176. if (this.userphone) {
  177. return this.userphone.replace(reg, "$1****$2");
  178. }
  179. }
  180. },
  181. onShow() {
  182. this.isShow();
  183. uni.hideKeyboard()
  184. uni.showTabBar()
  185. this.loadData()
  186. this.getStatus()
  187. this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
  188. console.log("checkSession", res)
  189. if (res.data.data == "INVALID") {
  190. this.isShowAlert1 = true;
  191. // uni.showModal({
  192. // title: '登录提示',
  193. // content: '当前登入信息验证失败,是否重新登录?',
  194. // showCancel: true,
  195. // confirmText: '登录',
  196. // success: (e) => {
  197. // if (e.confirm) {
  198. // uni.navigateTo({
  199. // url: '/pages/public/login'
  200. // })
  201. // }
  202. // },
  203. // fail: () => {},
  204. // complete: () => {}
  205. // })
  206. }
  207. })
  208. console.log("hasLogin", this.hasLogin)
  209. if (this.userInfo) {
  210. if (!this.userInfo.avatarUrl) {
  211. this.headUrl = "../../static/img/myimg/YongHu@3x.png"
  212. } else {
  213. this.headUrl = this.userInfo.avatarUrl
  214. }
  215. this.username = this.userInfo.userName
  216. this.userphone = this.userInfo.phone
  217. var that = this
  218. this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
  219. console.log("noticeNumber", res)
  220. if (res.data.data) {
  221. let name = 'myTip';
  222. let value = res.data.data.task;
  223. that.$store.commit('$uStore', {
  224. name,
  225. value
  226. });
  227. if (value != 0 && value) {
  228. uni.setTabBarBadge({
  229. index: 4,
  230. text: value + ""
  231. })
  232. }
  233. name = 'taskTip';
  234. value = res.data.data.task;
  235. that.$store.commit('$uStore', {
  236. name,
  237. value
  238. });
  239. // name = 'contractTip';
  240. // value = res.data.data.contractTip;
  241. // that.$store.commit('$uStore', {
  242. // name,
  243. // value
  244. // });
  245. }
  246. })
  247. } else {
  248. this.headUrl = "../../static/img/myimg/YongHu@3x.png"
  249. this.username = "立即登录"
  250. }
  251. console.log("this.userInfo", this.userInfo)
  252. },
  253. methods: {
  254. getStatus(){
  255. let _obj = {
  256. commonId:uni.getStorageSync("userInfo").id,
  257. }
  258. this.$api.doRequest('get', '/acquisitionInfo/getInfo',_obj ).then(res => {
  259. if (res.data.code == 200) {
  260. this.status = res.data.data.status
  261. this.sgId = res.data.data.commonId
  262. }
  263. })
  264. },
  265. alertBtn1() {
  266. uni.navigateTo({
  267. url: '/pages/public/login'
  268. })
  269. },
  270. cancelClick() {
  271. this.isShowAlert = false
  272. },
  273. cancelClick1() {
  274. this.isShowAlert = false
  275. },
  276. goOpenService() {
  277. uni.hideTabBarRedDot({
  278. index: 3
  279. })
  280. uni.clearStorageSync();
  281. this.$store.commit('logout')
  282. this.$api.logout()
  283. uni.navigateTo({
  284. url: `/pages/public/login`
  285. })
  286. },
  287. getRoles: function(role) {
  288. let _roles = uni.getStorageSync('rolesList')
  289. for (let i = 0; i < _roles.length; i++) {
  290. if (_roles[i] == role) {
  291. return true
  292. }
  293. }
  294. return false
  295. },
  296. isShow() {
  297. for (let i = 0; i < this.gridList.length; i++) {
  298. if (i == 1) {
  299. this.gridList[i].show = this.getRoles('acquisitionQuality.view')
  300. } else if (i == 2) {
  301. this.gridList[i].show = this.getRoles('acquisitionWeight.view')
  302. }
  303. }
  304. for (let k = 0; k < this.gridList1.length; k++) {
  305. if (k == 0) {
  306. this.gridList1[k].show = this.getRoles('acquisitionWeightOut.view')
  307. } else if (k == 1) {
  308. this.gridList1[k].show = this.getRoles('acquisitionQualityOut.view')
  309. }
  310. }
  311. },
  312. fankui() {
  313. uni.navigateTo({
  314. url: `/pages/user/fankui`
  315. })
  316. },
  317. zhibo() {
  318. uni.navigateTo({
  319. url: `/pageB/video/broadcast`
  320. })
  321. },
  322. look() {
  323. uni.navigateTo({
  324. url: `/pageB/video/look`
  325. })
  326. },
  327. contactUs() {
  328. const that = this
  329. uni.makePhoneCall({
  330. // 手机号
  331. phoneNumber: '18241771147',
  332. // 成功回调
  333. success: (res) => {},
  334. // 失败回调
  335. fail: (res) => {}
  336. });
  337. },
  338. loadData() {
  339. // const that = this
  340. // if(uni.getStorageSync("PageCur")){
  341. // that.PageCur = uni.getStorageSync("PageCur");
  342. // }
  343. // that.userInfoTmp = uni.getStorageSync("userInfo")
  344. // uni.showLoading({
  345. // title: '正在加载',
  346. // mask:true
  347. // })
  348. // that.$api.request('integral', 'getIndexData', failres => {
  349. // that.$api.msg(failres.errmsg)
  350. // uni.hideLoading()
  351. // }).then(res => {
  352. // let data = res.data
  353. // uni.setStorageSync("message", data.message);
  354. // uni.setStorageSync("task", data.task);
  355. // uni.setStorageSync("contract", data.contract);
  356. // uni.setStorageSync('showTran', data.showTran);
  357. // that.showTran = data.showTran
  358. // that.gridList[4].tips = data.task
  359. // that.gridList[2].tips = data.contract
  360. // that.companyId = data.companyId
  361. // uni.hideLoading()
  362. // })
  363. },
  364. gridClick(item, index) {
  365. var that = this
  366. if (item.name == "退出登录") {
  367. this.logout()
  368. return;
  369. } else if (item.name == "联系我们") {
  370. //#ifdef MP
  371. this.inputShow = true
  372. this.inputStatus = 'inline'
  373. this.feild = "nickname"
  374. this.inputContent = ''
  375. //#endif
  376. //#ifdef APP-PLUS
  377. this.contactUs()
  378. //#endif
  379. return;
  380. } else if (item.name == '我的车辆') {
  381. const that = this
  382. uni.showLoading({
  383. title: '正在加载',
  384. mask: true
  385. })
  386. that.$api.request('tran', 'getMyCarList', failres => {
  387. that.$api.msg(failres.errmsg)
  388. uni.hideLoading()
  389. }).then(res => {
  390. that.carInfo = res.data
  391. if (that.carInfo.length == 0) {
  392. that.$api.msg('暂无车辆信息')
  393. } else {
  394. var height = that.carInfo.length * 100
  395. var width = 500
  396. that.mycarStyle = "height:" + height + "rpx;width:" + width + "rpx"
  397. that.modalName = 'MycarModal'
  398. }
  399. uni.hideLoading()
  400. })
  401. return;
  402. }
  403. if (!this.hasLogin) {
  404. uni.showModal({
  405. title: '登录提示',
  406. content: '您尚未登录,是否立即登录?',
  407. showCancel: true,
  408. confirmText: '登录',
  409. success: (e) => {
  410. if (e.confirm) {
  411. uni.navigateTo({
  412. url: '/pages/public/login'
  413. })
  414. }
  415. },
  416. fail: () => {},
  417. complete: () => {}
  418. })
  419. } else {
  420. if (item.url) {
  421. uni.navigateTo({
  422. url: item.url
  423. })
  424. }
  425. }
  426. },
  427. setting() {
  428. if (!this.hasLogin) {
  429. uni.showModal({
  430. title: '登录提示',
  431. content: '您尚未登录,是否立即登录?',
  432. showCancel: true,
  433. confirmText: '登录',
  434. success: (e) => {
  435. if (e.confirm) {
  436. uni.navigateTo({
  437. url: '/pages/public/login'
  438. })
  439. }
  440. },
  441. fail: () => {},
  442. complete: () => {}
  443. })
  444. } else {
  445. uni.navigateTo({
  446. url: '/pages/user/setUp'
  447. })
  448. }
  449. },
  450. toLogin() {
  451. console.log("userInfo", this.userInfo)
  452. if (!this.hasLogin || !this.userInfo || this.username == "立即登录") {
  453. uni.navigateTo({
  454. url: '/pages/public/login_account_number'
  455. })
  456. } else {
  457. uni.navigateTo({
  458. url: '/pages/user/setUp'
  459. })
  460. }
  461. // else if(!this.userInfo.nickname){
  462. // this.inputShow = true
  463. // this.inputStatus = 'inline'
  464. // this.feild = "nickname"
  465. // this.inputContent = ''
  466. // }
  467. },
  468. confirm() {
  469. const that = this
  470. if (!that.inputContent) {
  471. that.$api.msg('输入不能为空')
  472. return
  473. }
  474. let obj = {}
  475. obj[that.feild] = that.inputContent
  476. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  477. that.userInfo.nickname = that.inputContent
  478. that.inputContent = ''
  479. that.$store.commit('login', that.userInfo)
  480. })
  481. },
  482. cancel() {
  483. this.inputShow = false
  484. this.inputStatus = 'none'
  485. this.genderShow = false
  486. },
  487. myAccount() {
  488. uni.navigateTo({
  489. url: `/pageA/pages/contract`
  490. })
  491. },
  492. logout() {
  493. // const that = this
  494. this.isShowAlert = true
  495. // uni.showModal({
  496. // title: '询问',
  497. // content: '您确定要退出吗?',
  498. // cancelText: '取消',
  499. // confirmText: '确定',
  500. // success: (e) => {
  501. // if (e.confirm) {
  502. // uni.hideTabBarRedDot({
  503. // index:3
  504. // })
  505. // uni.clearStorageSync();
  506. // that.$store.commit('logout')
  507. // that.$api.logout()
  508. // uni.navigateTo({
  509. // url: `/pages/public/login`
  510. // })
  511. // }
  512. // }
  513. // })
  514. },
  515. /**
  516. * 统一跳转接口,拦截未登录路由
  517. * navigator标签现在默认没有转场动画,所以用view
  518. */
  519. navTo(url) {
  520. if (!this.hasLogin) {
  521. url = '/pages/public/login';
  522. }
  523. uni.navigateTo({
  524. url
  525. })
  526. },
  527. mycarClick(carNo) {
  528. this.modalName = null
  529. uni.navigateTo({
  530. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  531. })
  532. },
  533. qrClick(userInfo) {
  534. this.modalName = null
  535. uni.navigateTo({
  536. url: `/pages/user/qr`
  537. })
  538. },
  539. scanCode() {
  540. uni.scanCode({
  541. success: function(res) {
  542. uni.navigateTo({
  543. url: res.result
  544. })
  545. }
  546. })
  547. },
  548. hideModal(e) {
  549. this.modalName = null
  550. },
  551. }
  552. }
  553. </script>
  554. <style lang='scss' scoped>
  555. page {
  556. background: #F5F6FA;
  557. }
  558. .container {
  559. padding-top: 85px;
  560. padding-top: 35px;
  561. background-color: #F5F6FA;
  562. position: relative;
  563. width: 100vw;
  564. height: 100vh;
  565. overflow: hidden;
  566. background: url('~@/static/img/login/bg_slices/bg@3x.png');
  567. background-size: 100% 100%;
  568. margin: 0 auto;
  569. }
  570. .cu-tag.badge {
  571. right: 26rpx;
  572. }
  573. .path {
  574. color: #007aff;
  575. display: inline-block;
  576. text-align: center;
  577. }
  578. .icon {
  579. margin-right: 10rpx;
  580. }
  581. .portrait-box {
  582. margin-top: 20rpx;
  583. }
  584. .qr-wrap {
  585. margin-top: 20upx;
  586. color: #fff;
  587. font-size: 32rpx;
  588. }
  589. .cu-list {
  590. /* height: 483rpx;
  591. overflow-y: scroll; */
  592. background: transparent;
  593. }
  594. .cu-list.grid.no-border {
  595. padding: 0;
  596. }
  597. .badge_user {
  598. color: #fff;
  599. background-color: #dc3545;
  600. display: inline-block;
  601. padding: .25em .4em;
  602. font-size: 75%;
  603. font-weight: 700;
  604. line-height: 1;
  605. text-align: center;
  606. white-space: nowrap;
  607. vertical-align: top;
  608. border-radius: 50%;
  609. transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  610. }
  611. @keyframes move_wave {
  612. 0% {
  613. transform: translateX(0) translateZ(0) scaleY(1)
  614. }
  615. 50% {
  616. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  617. }
  618. 100% {
  619. transform: translateX(-50%) translateZ(0) scaleY(1)
  620. }
  621. }
  622. .bg {
  623. position: relative;
  624. height: 300rpx;
  625. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  626. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  627. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  628. }
  629. .bg_ware {
  630. position: absolute;
  631. left: 0;
  632. bottom: -2rpx;
  633. width: 100%;
  634. mix-blend-mode: screen;
  635. height: 224rpx;
  636. }
  637. %flex-center {
  638. display: flex;
  639. flex-direction: column;
  640. justify-content: center;
  641. align-items: center;
  642. }
  643. %section {
  644. display: flex;
  645. justify-content: space-around;
  646. align-content: center;
  647. background: #fff;
  648. border-radius: 10upx;
  649. }
  650. .grid-item-box {
  651. flex: 1;
  652. /* position: relative;
  653. */
  654. /* #ifndef APP-NVUE */
  655. display: flex;
  656. /* #endif */
  657. flex-direction: column;
  658. align-items: center;
  659. justify-content: center;
  660. padding: 15px 0;
  661. }
  662. .image {
  663. width: 80rpx;
  664. height: 80rpx;
  665. }
  666. .text {
  667. font-size: 26rpx;
  668. margin-top: 10rpx;
  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: 60upx;
  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: 40px;
  897. height: 40px;
  898. top: 4px;
  899. margin-right: 6px;
  900. }
  901. .indexUp {
  902. padding: 0 20px;
  903. align-items: center;
  904. }
  905. .wrap {
  906. background: #fff;
  907. margin: 10px;
  908. border-radius: 10px;
  909. padding: 10px;
  910. .title {
  911. font-size: 16px;
  912. }
  913. }
  914. .content2{
  915. display: flex;
  916. justify-content: space-between;
  917. }
  918. </style>