user.vue 26 KB

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