user.vue 35 KB

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