user.vue 23 KB

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