user.vue 23 KB

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