user.vue 35 KB

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