user.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080
  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. let data = res.data
  359. that.plantList = data
  360. // that.makeScrollData(that.plantList, 8)
  361. uni.hideLoading()
  362. })
  363. // const that = this
  364. // if(uni.getStorageSync("PageCur")){
  365. // that.PageCur = uni.getStorageSync("PageCur");
  366. // }
  367. // that.userInfoTmp = uni.getStorageSync("userInfo")
  368. // uni.showLoading({
  369. // title: '正在加载',
  370. // mask:true
  371. // })
  372. // that.$api.request('integral', 'getIndexData', failres => {
  373. // that.$api.msg(failres.errmsg)
  374. // uni.hideLoading()
  375. // }).then(res => {
  376. // let data = res.data
  377. // uni.setStorageSync("message", data.message);
  378. // uni.setStorageSync("task", data.task);
  379. // uni.setStorageSync("contract", data.contract);
  380. // uni.setStorageSync('showTran', data.showTran);
  381. // that.showTran = data.showTran
  382. // that.gridList[4].tips = data.task
  383. // that.gridList[2].tips = data.contract
  384. // that.companyId = data.companyId
  385. // uni.hideLoading()
  386. // })
  387. },
  388. gridClick(item, index) {
  389. var that = this
  390. if (item.name == "退出登录") {
  391. this.logout()
  392. return;
  393. } else if (item.name == "联系我们") {
  394. //#ifdef MP
  395. this.inputShow = true
  396. this.inputStatus = 'inline'
  397. this.feild = "nickname"
  398. this.inputContent = ''
  399. //#endif
  400. //#ifdef APP-PLUS
  401. this.contactUs()
  402. //#endif
  403. return;
  404. } else if (item.name == '我的车辆') {
  405. const that = this
  406. uni.showLoading({
  407. title: '正在加载',
  408. mask: true
  409. })
  410. that.$api.request('tran', 'getMyCarList', failres => {
  411. that.$api.msg(failres.errmsg)
  412. uni.hideLoading()
  413. }).then(res => {
  414. that.carInfo = res.data
  415. if (that.carInfo.length == 0) {
  416. that.$api.msg('暂无车辆信息')
  417. } else {
  418. var height = that.carInfo.length * 100
  419. var width = 500
  420. that.mycarStyle = "height:" + height + "rpx;width:" + width + "rpx"
  421. that.modalName = 'MycarModal'
  422. }
  423. uni.hideLoading()
  424. })
  425. return;
  426. }
  427. if (!this.hasLogin) {
  428. uni.showModal({
  429. title: '登录提示',
  430. content: '您尚未登录,是否立即登录?',
  431. showCancel: true,
  432. confirmText: '登录',
  433. success: (e) => {
  434. if (e.confirm) {
  435. uni.navigateTo({
  436. url: '/pages/public/login'
  437. })
  438. }
  439. },
  440. fail: () => {},
  441. complete: () => {}
  442. })
  443. } else {
  444. if (item.url) {
  445. uni.navigateTo({
  446. url: item.url + `?companyId=${that.companyId}`
  447. })
  448. }
  449. }
  450. },
  451. setting() {
  452. if (!this.hasLogin) {
  453. uni.showModal({
  454. title: '登录提示',
  455. content: '您尚未登录,是否立即登录?',
  456. showCancel: true,
  457. confirmText: '登录',
  458. success: (e) => {
  459. if (e.confirm) {
  460. uni.navigateTo({
  461. url: '/pages/public/login'
  462. })
  463. }
  464. },
  465. fail: () => {},
  466. complete: () => {}
  467. })
  468. } else {
  469. uni.navigateTo({
  470. url: '/pages/user/setUp'
  471. })
  472. }
  473. },
  474. toLogin() {
  475. console.log("userInfo", this.userInfo)
  476. if (!this.hasLogin || !this.userInfo || this.username == "立即登录") {
  477. uni.navigateTo({
  478. url: '/pages/public/login_account_number'
  479. })
  480. } else {
  481. uni.navigateTo({
  482. url: '/pages/user/setUp'
  483. })
  484. }
  485. // else if(!this.userInfo.nickname){
  486. // this.inputShow = true
  487. // this.inputStatus = 'inline'
  488. // this.feild = "nickname"
  489. // this.inputContent = ''
  490. // }
  491. },
  492. confirm() {
  493. const that = this
  494. if (!that.inputContent) {
  495. that.$api.msg('输入不能为空')
  496. return
  497. }
  498. let obj = {}
  499. obj[that.feild] = that.inputContent
  500. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  501. that.userInfo.nickname = that.inputContent
  502. that.inputContent = ''
  503. that.$store.commit('login', that.userInfo)
  504. })
  505. },
  506. cancel() {
  507. this.inputShow = false
  508. this.inputStatus = 'none'
  509. this.genderShow = false
  510. },
  511. myAccount() {
  512. uni.navigateTo({
  513. url: `/pageA/pages/contract`
  514. })
  515. },
  516. logout() {
  517. const that = this
  518. uni.showModal({
  519. title: '询问',
  520. content: '您确定要退出吗?',
  521. cancelText: '取消',
  522. confirmText: '确定',
  523. success: (e) => {
  524. if (e.confirm) {
  525. uni.hideTabBarRedDot({
  526. index: 3
  527. })
  528. uni.clearStorageSync();
  529. that.$store.commit('logout')
  530. that.$api.logout()
  531. uni.navigateTo({
  532. url: `/pages/public/login`
  533. })
  534. }
  535. }
  536. })
  537. },
  538. /**
  539. * 统一跳转接口,拦截未登录路由
  540. * navigator标签现在默认没有转场动画,所以用view
  541. */
  542. navTo(url) {
  543. if (!this.hasLogin) {
  544. url = '/pages/public/login';
  545. }
  546. uni.navigateTo({
  547. url
  548. })
  549. },
  550. mycarClick(carNo) {
  551. this.modalName = null
  552. uni.navigateTo({
  553. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  554. })
  555. },
  556. qrClick(userInfo) {
  557. this.modalName = null
  558. uni.navigateTo({
  559. url: `/pages/user/qr`
  560. })
  561. },
  562. scanCode() {
  563. uni.scanCode({
  564. success: function(res) {
  565. uni.navigateTo({
  566. url: res.result
  567. })
  568. }
  569. })
  570. },
  571. hideModal(e) {
  572. this.modalName = null
  573. },
  574. }
  575. }
  576. </script>
  577. <style lang='scss' scoped>
  578. page {
  579. background: #F8F9FC;
  580. }
  581. .container {
  582. padding-top: 85px;
  583. padding-top: 35px;
  584. background-color: #F5F6FA;
  585. position: relative;
  586. width: 100vw;
  587. overflow: hidden;
  588. background: url('~@/static/img/login/bg_slices/bg@3x.png');
  589. background-size: 100% 100%;
  590. margin: 0 auto;
  591. }
  592. .cu-tag.badge {
  593. right: 26rpx;
  594. }
  595. .path {
  596. color: #007aff;
  597. display: inline-block;
  598. text-align: center;
  599. }
  600. .icon {
  601. margin-right: 10rpx;
  602. }
  603. .portrait-box {
  604. margin-top: 20rpx;
  605. }
  606. .qr-wrap {
  607. margin-top: 20upx;
  608. color: #fff;
  609. font-size: 32rpx;
  610. }
  611. .cu-list {
  612. /* height: 483rpx;
  613. overflow-y: scroll; */
  614. margin-top: 16rpx;
  615. margin-bottom: 80rpx;
  616. }
  617. .cu-list.grid>.cu-item .badge_user {
  618. color: #fff;
  619. border: 1px solid #fff;
  620. background-color: #FF6600;
  621. display: inline-block;
  622. padding: .25em .25em;
  623. position: absolute;
  624. font-size: 9px;
  625. font-weight: 700;
  626. line-height: 1;
  627. text-align: center;
  628. white-space: nowrap;
  629. vertical-align: top;
  630. right: 26px;
  631. top: -10px;
  632. z-index: 2;
  633. border-radius: 50%;
  634. transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  635. }
  636. @keyframes move_wave {
  637. 0% {
  638. transform: translateX(0) translateZ(0) scaleY(1)
  639. }
  640. 50% {
  641. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  642. }
  643. 100% {
  644. transform: translateX(-50%) translateZ(0) scaleY(1)
  645. }
  646. }
  647. .bg {
  648. position: relative;
  649. height: 300rpx;
  650. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  651. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  652. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  653. }
  654. .bg_ware {
  655. position: absolute;
  656. left: 0;
  657. bottom: -2rpx;
  658. width: 100%;
  659. mix-blend-mode: screen;
  660. height: 224rpx;
  661. }
  662. %flex-center {
  663. display: flex;
  664. flex-direction: column;
  665. justify-content: center;
  666. align-items: center;
  667. }
  668. %section {
  669. display: flex;
  670. justify-content: space-around;
  671. align-content: center;
  672. background: #fff;
  673. border-radius: 10upx;
  674. }
  675. .grid-item-box {
  676. flex: 1;
  677. /* position: relative;
  678. */
  679. /* #ifndef APP-NVUE */
  680. display: flex;
  681. /* #endif */
  682. flex-direction: column;
  683. align-items: center;
  684. justify-content: center;
  685. padding: 15px 0;
  686. }
  687. .user-section {
  688. height: 520upx;
  689. padding: 100upx 30upx 0;
  690. position: relative;
  691. .bg {
  692. position: absolute;
  693. left: 0;
  694. top: 0;
  695. width: 100%;
  696. height: 100%;
  697. filter: blur(1px);
  698. box-shadow: 0px 1px 8px #ccc;
  699. /* background:linear-gradient(#0eb0c9,#126bae); */
  700. /* opacity: .7; */
  701. }
  702. }
  703. .user-info-box {
  704. height: 180upx;
  705. /* display:flex; */
  706. /* align-items:center; */
  707. text-align: center;
  708. position: relative;
  709. z-index: 1;
  710. .portrait {
  711. width: 130upx;
  712. height: 130upx;
  713. border: 5upx solid #fff;
  714. border-radius: 50%;
  715. }
  716. .username {
  717. font-size: $font-lg + 3upx;
  718. color: #fff;
  719. margin-top: 20upx;
  720. }
  721. }
  722. .vip-card-box {
  723. display: flex;
  724. flex-direction: column;
  725. color: #f7d680;
  726. height: 240upx;
  727. background: linear-gradient(left, rgba(0, 0, 0, .7), rgba(0, 0, 0, .8));
  728. border-radius: 16upx 16upx 0 0;
  729. overflow: hidden;
  730. position: relative;
  731. padding: 20upx 24upx;
  732. .card-bg {
  733. position: absolute;
  734. top: 20upx;
  735. right: 0;
  736. width: 380upx;
  737. height: 260upx;
  738. }
  739. .b-btn {
  740. position: absolute;
  741. right: 20upx;
  742. top: 16upx;
  743. width: 132upx;
  744. height: 40upx;
  745. text-align: center;
  746. line-height: 40upx;
  747. font-size: 22upx;
  748. color: #36343c;
  749. border-radius: 20px;
  750. background: linear-gradient(left, #f9e6af, #ffd465);
  751. z-index: 1;
  752. }
  753. .tit {
  754. font-size: $font-base+2upx;
  755. color: #f7d680;
  756. margin-bottom: 28upx;
  757. .yticon {
  758. color: #f6e5a3;
  759. margin-right: 16upx;
  760. }
  761. }
  762. .e-b {
  763. font-size: $font-sm;
  764. color: #d8cba9;
  765. margin-top: 10upx;
  766. }
  767. }
  768. .cover-container {
  769. padding: 1px 10px;
  770. padding-bottom: 20rpx;
  771. /* background-color: #F5F6FA; */
  772. /* border-radius: 20px; */
  773. margin-top: 12upx;
  774. .arc {
  775. position: absolute;
  776. left: 0;
  777. top: -34upx;
  778. width: 100%;
  779. height: 36upx;
  780. }
  781. }
  782. .tj-sction {
  783. @extend %section;
  784. .tj-item {
  785. @extend %flex-center;
  786. flex-direction: column;
  787. height: 140upx;
  788. font-size: $font-sm;
  789. color: #75787d;
  790. }
  791. .num {
  792. font-size: $font-lg;
  793. color: $font-color-dark;
  794. margin-bottom: 8upx;
  795. }
  796. }
  797. .order-section {
  798. @extend %section;
  799. padding: 28upx 0;
  800. margin-top: 20upx;
  801. .order-item {
  802. @extend %flex-center;
  803. width: 120upx;
  804. height: 120upx;
  805. border-radius: 10upx;
  806. font-size: $font-sm;
  807. color: $font-color-dark;
  808. }
  809. .yticon {
  810. font-size: 48upx;
  811. margin-bottom: 18upx;
  812. color: #fa436a;
  813. }
  814. .icon-shouhoutuikuan {
  815. font-size: 44upx;
  816. }
  817. }
  818. .history-section {
  819. padding: 30upx 0 0;
  820. margin-top: 20upx;
  821. background: #fff;
  822. border-radius: 10upx;
  823. .sec-header {
  824. display: flex;
  825. align-items: center;
  826. font-size: $font-base;
  827. color: $font-color-dark;
  828. line-height: 40upx;
  829. margin-left: 30upx;
  830. .yticon {
  831. font-size: 44upx;
  832. color: #5eba8f;
  833. margin-right: 16upx;
  834. line-height: 40upx;
  835. }
  836. }
  837. .h-list {
  838. white-space: nowrap;
  839. padding: 30upx 30upx 0;
  840. image {
  841. display: inline-block;
  842. width: 160upx;
  843. height: 160upx;
  844. margin-right: 20upx;
  845. border-radius: 10upx;
  846. }
  847. }
  848. }
  849. .grid {
  850. display: flex;
  851. align-items: center;
  852. flex-wrap: wrap;
  853. /* border-top: 2upx solid rgba(172,172,172,.2); */
  854. .grid-item-3 {
  855. box-sizing: border-box;
  856. width: calc(100% / 3);
  857. border-bottom: 2upx solid rgba(172, 172, 172, .2);
  858. border-right: 2upx solid rgba(172, 172, 172, .2);
  859. text-align: center;
  860. padding: 40upx 0;
  861. position: relative;
  862. /* view{
  863. font-size: $font-sm;
  864. margin-top: 16upx;
  865. color: $font-color-dark;
  866. } */
  867. .grid_icon {
  868. font-size: 48upx;
  869. margin-bottom: 18upx;
  870. color: #fa436a;
  871. }
  872. .tip_text {
  873. display: block;
  874. padding: 4upx 8upx;
  875. text-align: center;
  876. border-radius: 36upx;
  877. font-size: 24upx;
  878. background-color: #fa436a;
  879. color: rgba(255, 255, 255, 1);
  880. position: absolute;
  881. right: 6upx;
  882. top: 6upx;
  883. }
  884. }
  885. .grid-item-3:nth-child(3n + 3),
  886. .grid-item-4:nth-child(4n + 4) {
  887. border-right: none;
  888. }
  889. }
  890. .headPortrait {
  891. width: 75px;
  892. height: 75px;
  893. border-radius: 40px;
  894. border: 2px solid #ffffff;
  895. }
  896. .personal {
  897. margin-top: 10px;
  898. margin-left: 20px;
  899. }
  900. .information {
  901. font-size: 15px;
  902. font-weight: 600;
  903. height: 36px;
  904. }
  905. .indexlow {
  906. /* margin-top: 30px; */
  907. border-radius: 10px;
  908. }
  909. .cu-list>.cu-item:after {
  910. border: none;
  911. }
  912. .sign {
  913. width: 35px;
  914. height: 35px;
  915. top: 4px;
  916. }
  917. .sign1 {
  918. width: 26px;
  919. height: 26px;
  920. top: 4px;
  921. }
  922. .indexUp {
  923. padding: 0 20px;
  924. align-items: center;
  925. }
  926. .cu-list.grid>.cu-item .cu-tag.badge {
  927. color: #fff;
  928. background: #FF6600;
  929. font-size: 9px;
  930. line-height: 5px;
  931. padding: 5px;
  932. }
  933. .cover-container-item {
  934. background: #fff;
  935. border-radius: 10px;
  936. padding: 10px 0;
  937. }
  938. .cover-container-item .cu-list {
  939. margin: 0;
  940. }
  941. .cover-container-item .cu-list.grid>.cu-item [class*=cuIcon] {
  942. margin: 0;
  943. }
  944. .guess-section-wrap-item {
  945. float: left;
  946. width: 38vw;
  947. background: #F9F9FA;
  948. padding: 7px;
  949. margin: 20rpx;
  950. border-radius: 3px;
  951. // width:50%;
  952. }
  953. .guess-section-wrap-item:first-child {
  954. // margin-left:2px;
  955. }
  956. .clearfix:after {
  957. content: "";
  958. display: block;
  959. clear: both;
  960. }
  961. .guess-section-wrap {
  962. padding: 15px;
  963. margin: 10rpx 20rpx;
  964. border-radius: 5px;
  965. background: #fff;
  966. overflow: hidden;
  967. }
  968. .guess-section-wrap .price {
  969. color: #B2B3BB;
  970. display: flex;
  971. align-items: center;
  972. }
  973. .title {
  974. font-size: 28upx;
  975. color: $font-color-dark;
  976. font-weight: bold;
  977. height: 50upx;
  978. line-height: 50upx;
  979. flex: 2.5;
  980. }
  981. .factory {
  982. font-size: 26rpx;
  983. font-weight: 900;
  984. }
  985. .currectprice {
  986. color: rgba(253, 113, 79, 1);
  987. font-size: 18px;
  988. font-weight: 550;
  989. vertical-align: middle;
  990. margin-right: 10px;
  991. }
  992. .yesterday {
  993. font-size: 14px;
  994. font-weight: 600;
  995. vertical-align: middle;
  996. }
  997. .yesterday.up {
  998. color: rgba(253, 113, 79, 1);
  999. }
  1000. .yesterday.down {
  1001. color: #22C572;
  1002. }
  1003. </style>