user.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485
  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. that.compName = uni.getStorageSync('compName1')
  485. that.$api.doRequest('get', '/commonUser/getCompOwn', {
  486. phone: that.userInfo.phone
  487. }).then(res => {
  488. if (res.data.data) {
  489. that.companyList = res.data.data
  490. uni.setStorageSync('companyList', that.companyList)
  491. console.log("that.3333")
  492. console.log(that.companyList)
  493. if (that.companyList.length > 0) {
  494. if (!that.compName) {
  495. that.compName = that.companyList[0].compName
  496. uni.setStorageSync('compName1', that.companyList[0].compName)
  497. }
  498. console.log("this.compName")
  499. console.log(that.compName)
  500. that.haveCompany = true
  501. } else {
  502. that.haveCompany = false
  503. }
  504. }
  505. })
  506. } else {
  507. this.headUrl = "../../static/img/myimg/YongHu@3x.png"
  508. this.username = "立即登录"
  509. }
  510. console.log("this.userInfo", this.userInfo)
  511. },
  512. methods: {
  513. alertBtn() {
  514. uni.navigateTo({
  515. url: '/pages/public/login'
  516. })
  517. },
  518. cancelClick() {
  519. this.isShowAlert = false
  520. },
  521. compconfirm(e) {
  522. var that = this
  523. uni.showLoading({
  524. title: '登录中',
  525. mask: true
  526. })
  527. console.log("clinetId", this.clientId)
  528. this.$api.doRequest('get', '/commonUser/login', {
  529. phone: this.userInfo.phone,
  530. password: "999999",
  531. cid: this.clientId
  532. }).then(res => {
  533. if (res.data.code == 200) {
  534. console.log("userInfo", res.data.data)
  535. uni.setStorageSync('userInfo', res.data.data)
  536. this.$api.doRequest('post', '/commonUser/api/loginQuickly', {
  537. mobilePhone: this.userInfo.phone,
  538. companyName: this.companyList[e[0]].compName,
  539. veriCode: "123456",
  540. }).then(res1 => {
  541. console.log("loginQuickly", res)
  542. uni.setStorageSync("cangid",'')
  543. if (res1.data.code == 200) {
  544. uni.setStorageSync('pcUserInfo', res1.data.data)
  545. uni.setStorageSync('compName1', that.companyList[e[0]].compName)
  546. that.compName = that.companyList[e[0]].compName
  547. helper.getListByUserId()
  548. } else {
  549. // that.$api.doRequest('post','/commonUser/api/loginQuickly',{mobilePhone: '14444444444',
  550. // veriCode: "123456",}).then(res2 => {
  551. // uni.setStorageSync('pcUserInfo', res2.data.data)
  552. // helper.getListByUserId()
  553. // })
  554. }
  555. that.$store.commit('login', res.data.data)
  556. var name = 'userInfo';
  557. var value = res.data.data;
  558. that.$store.commit('$uStore', {
  559. name,
  560. value
  561. });
  562. // that.liangxinLogin()
  563. // uni.switchTab({
  564. // url: '/pages/sale/information'
  565. // });
  566. uni.hideLoading()
  567. uni.hideKeyboard()
  568. uni.showTabBar()
  569. uni.removeTabBarBadge({
  570. index: 4
  571. })
  572. that.loadData()
  573. that.username = that.userInfo.userName ? that.userInfo.userName : uni
  574. .getStorageSync("userInfo").data
  575. .userName
  576. that.userphone = that.userInfo.phone ? that.userInfo.phone : uni
  577. .getStorageSync("userInfo").data.phone
  578. that.$api.doRequest('get', '/newNoticeTask/query/noticeTasks').then(res => {
  579. console.log("noticeNumber", res)
  580. if (res.data.data) {
  581. let name = 'myTip';
  582. let value = res.data.data.total;
  583. that.$store.commit('$uStore', {
  584. name,
  585. value
  586. });
  587. if (value != 0 && value) {
  588. uni.setTabBarBadge({
  589. index: 4,
  590. text: value + ""
  591. })
  592. }
  593. name = 'taskTip';
  594. value = res.data.data.total;
  595. that.$store.commit('$uStore', {
  596. name,
  597. value
  598. });
  599. // name = 'contractTip';
  600. // value = res.data.data.contractTip;
  601. // that.$store.commit('$uStore', {
  602. // name,
  603. // value
  604. // });
  605. }
  606. })
  607. that.$api.msg('切换成功')
  608. })
  609. } else {
  610. uni.hideLoading()
  611. uni.showToast({
  612. title: res.data.message,
  613. icon: 'none',
  614. duration: 2000
  615. })
  616. }
  617. })
  618. .catch(res => {
  619. console.log(res);
  620. });
  621. // var that = this
  622. // this.$api.doRequest('post', '/commonUser/api/loginQuickly', {
  623. // mobilePhone: this.userInfo.phone,
  624. // companyName: this.companyList[e[0]].compName,
  625. // veriCode: "123456",
  626. // }).then(res1 => {
  627. // if (res1.data.code == 200) {
  628. // uni.setStorageSync('pcUserInfo', res1.data.data)
  629. // uni.setStorageSync('compName1', that.companyList[e[0]].compName)
  630. // that.compName = that.companyList[e[0]].compName
  631. // helper.getListByUserId()
  632. // that.$api.msg('切换成功')
  633. // } else {
  634. // that.$api.doRequest('post', '/commonUser/api/loginQuickly', {
  635. // mobilePhone: '14444444444',
  636. // companyName: this.companyList[e[0]].compName,
  637. // veriCode: "123456",
  638. // }).then(res2 => {
  639. // uni.setStorageSync('pcUserInfo', res2.data.data)
  640. // uni.setStorageSync('compName1', that.companyList[e[0]].compName)
  641. // that.compName = that.companyList[e[0]].compName
  642. // helper.getListByUserId()
  643. // that.$api.msg('切换成功')
  644. // })
  645. // }
  646. // })
  647. },
  648. getRoles: function(role) {
  649. let _roles = uni.getStorageSync('rolesList')
  650. for (let i = 0; i < _roles.length; i++) {
  651. if (_roles[i] == role) {
  652. return true
  653. }
  654. }
  655. return false
  656. },
  657. isShow() {
  658. for (let k = 0; k < this.gridList1.length; k++) {
  659. if (k == 6) {
  660. this.gridList1[k].show = this.getRoles('reportData.view')
  661. } else if (k == 7) {
  662. this.gridList1[k].show = this.getRoles('monitoring.view')
  663. }
  664. }
  665. },
  666. smBtnClick() {
  667. if (!this.hasLogin) {
  668. this.isShowAlert = true;
  669. // uni.showModal({
  670. // title: '提示',
  671. // content: '您尚未登录,是否立即登录?',
  672. // showCancel: true,
  673. // confirmText: '登录',
  674. // success: (e) => {
  675. // if (e.confirm) {
  676. // uni.navigateTo({
  677. // url: '/pages/public/login'
  678. // })
  679. // }
  680. // },
  681. // fail: () => {},
  682. // complete: () => {}
  683. // })
  684. } else {
  685. uni.scanCode({
  686. success: function(res) {
  687. console.log('条码内容:' + res.result);
  688. uni.navigateTo({
  689. url: "/pages/erpbusiness/sm/sm?data=" + res.result
  690. })
  691. }
  692. });
  693. }
  694. },
  695. fankui() {
  696. uni.navigateTo({
  697. url: `/pages/user/fankui`
  698. })
  699. },
  700. zhibo() {
  701. uni.navigateTo({
  702. url: `/pageB/video/broadcast`
  703. })
  704. },
  705. look() {
  706. uni.navigateTo({
  707. url: `/pageB/video/look`
  708. })
  709. },
  710. contactUs() {
  711. const that = this
  712. uni.makePhoneCall({
  713. // 手机号
  714. phoneNumber: '18241771147',
  715. // 成功回调
  716. success: (res) => {},
  717. // 失败回调
  718. fail: (res) => {}
  719. });
  720. },
  721. loadData() {
  722. // 工厂价格
  723. // let that = this
  724. // that.$api.request('news', 'getFactoryPriceInfo', {
  725. // category: this.category,
  726. // page: 1,
  727. // limit: 99999
  728. // }, failres => {
  729. // that.$api.msg(failres.errmsg)
  730. // this.isLoadMore = false
  731. // this.loadStatus = 'nomore'
  732. // if (this.pages > 1) {
  733. // this.pages = 1
  734. // }
  735. // uni.hideLoading()
  736. // }).then(res => {
  737. // let data = res.data
  738. // that.plantList = data
  739. // // that.makeScrollData(that.plantList, 8)
  740. // uni.hideLoading()
  741. // })
  742. // const that = this
  743. // if(uni.getStorageSync("PageCur")){
  744. // that.PageCur = uni.getStorageSync("PageCur");
  745. // }
  746. // that.userInfoTmp = uni.getStorageSync("userInfo")
  747. // uni.showLoading({
  748. // title: '正在加载',
  749. // mask:true
  750. // })
  751. // that.$api.request('integral', 'getIndexData', failres => {
  752. // that.$api.msg(failres.errmsg)
  753. // uni.hideLoading()
  754. // }).then(res => {
  755. // let data = res.data
  756. // uni.setStorageSync("message", data.message);
  757. // uni.setStorageSync("task", data.task);
  758. // uni.setStorageSync("contract", data.contract);
  759. // uni.setStorageSync('showTran', data.showTran);
  760. // that.showTran = data.showTran
  761. // that.gridList[4].tips = data.task
  762. // that.gridList[2].tips = data.contract
  763. // that.companyId = data.companyId
  764. // uni.hideLoading()
  765. // })
  766. },
  767. gridClick(item, index) {
  768. var that = this
  769. if (item.name == "退出登录") {
  770. this.logout()
  771. return;
  772. } else if (item.name == "联系我们") {
  773. //#ifdef MP
  774. this.inputShow = true
  775. this.inputStatus = 'inline'
  776. this.feild = "nickname"
  777. this.inputContent = ''
  778. //#endif
  779. //#ifdef APP-PLUS
  780. this.contactUs()
  781. //#endif
  782. return;
  783. } else if (item.name == '我的车辆') {
  784. const that = this
  785. uni.showLoading({
  786. title: '正在加载',
  787. mask: true
  788. })
  789. that.$api.request('tran', 'getMyCarList', failres => {
  790. that.$api.msg(failres.errmsg)
  791. uni.hideLoading()
  792. }).then(res => {
  793. that.carInfo = res.data
  794. if (that.carInfo.length == 0) {
  795. that.$api.msg('暂无车辆信息')
  796. } else {
  797. var height = that.carInfo.length * 100
  798. var width = 500
  799. that.mycarStyle = "height:" + height + "rpx;width:" + width + "rpx"
  800. that.modalName = 'MycarModal'
  801. }
  802. uni.hideLoading()
  803. })
  804. return;
  805. }
  806. if (!this.hasLogin) {
  807. this.isShowAlert = true;
  808. // uni.showModal({
  809. // title: '提示',
  810. // content: '您尚未登录,是否立即登录?',
  811. // showCancel: true,
  812. // confirmText: '登录',
  813. // success: (e) => {
  814. // if (e.confirm) {
  815. // uni.navigateTo({
  816. // url: '/pages/public/login'
  817. // })
  818. // }
  819. // },
  820. // fail: () => {},
  821. // complete: () => {}
  822. // })
  823. } else {
  824. if (item.url) {
  825. uni.navigateTo({
  826. url: item.url + `?companyId=${that.companyId}`
  827. })
  828. }
  829. }
  830. },
  831. setting() {
  832. if (!this.hasLogin) {
  833. this.isShowAlert = true;
  834. // uni.showModal({
  835. // title: '提示',
  836. // content: '您尚未登录,是否立即登录?',
  837. // showCancel: true,
  838. // confirmText: '登录',
  839. // success: (e) => {
  840. // if (e.confirm) {
  841. // uni.navigateTo({
  842. // url: '/pages/public/login'
  843. // })
  844. // }
  845. // },
  846. // fail: () => {},
  847. // complete: () => {}
  848. // })
  849. } else {
  850. uni.navigateTo({
  851. url: '/pages/user/setUp'
  852. })
  853. }
  854. },
  855. toLogin() {
  856. console.log("userInfo", this.userInfo)
  857. if (!this.hasLogin || !this.userInfo || this.username == "立即登录") {
  858. uni.navigateTo({
  859. url: '/pages/public/login_account_number'
  860. })
  861. } else {
  862. uni.navigateTo({
  863. url: '/pages/user/setUp'
  864. })
  865. }
  866. // else if(!this.userInfo.nickname){
  867. // this.inputShow = true
  868. // this.inputStatus = 'inline'
  869. // this.feild = "nickname"
  870. // this.inputContent = ''
  871. // }
  872. },
  873. confirm() {
  874. const that = this
  875. if (!that.inputContent) {
  876. that.$api.msg('输入不能为空')
  877. return
  878. }
  879. let obj = {}
  880. obj[that.feild] = that.inputContent
  881. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  882. that.userInfo.nickname = that.inputContent
  883. that.inputContent = ''
  884. that.$store.commit('login', that.userInfo)
  885. })
  886. },
  887. cancel() {
  888. this.inputShow = false
  889. this.inputStatus = 'none'
  890. this.genderShow = false
  891. },
  892. myAccount() {
  893. uni.navigateTo({
  894. url: `/pageA/pages/contract`
  895. })
  896. },
  897. logout() {
  898. // const that = this
  899. this.isShowAlert = true
  900. // uni.showModal({
  901. // title: '询问',
  902. // content: '您确定要退出吗?',
  903. // cancelText: '取消',
  904. // confirmText: '确定',
  905. // success: (e) => {
  906. // if (e.confirm) {
  907. // uni.hideTabBarRedDot({
  908. // index: 3
  909. // })
  910. // uni.clearStorageSync();
  911. // that.$store.commit('logout')
  912. // that.$api.logout()
  913. // uni.navigateTo({
  914. // url: `/pages/public/login`
  915. // })
  916. // }
  917. // }
  918. // })
  919. },
  920. /**
  921. * 统一跳转接口,拦截未登录路由
  922. * navigator标签现在默认没有转场动画,所以用view
  923. */
  924. navTo(url) {
  925. if (!this.hasLogin) {
  926. url = '/pages/public/login';
  927. }
  928. uni.navigateTo({
  929. url
  930. })
  931. },
  932. mycarClick(carNo) {
  933. this.modalName = null
  934. uni.navigateTo({
  935. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  936. })
  937. },
  938. qrClick(userInfo) {
  939. this.modalName = null
  940. uni.navigateTo({
  941. url: `/pages/user/qr`
  942. })
  943. },
  944. scanCode() {
  945. uni.scanCode({
  946. success: function(res) {
  947. uni.navigateTo({
  948. url: res.result
  949. })
  950. }
  951. })
  952. },
  953. hideModal(e) {
  954. this.modalName = null
  955. },
  956. }
  957. }
  958. </script>
  959. <style lang='scss' scoped>
  960. .company {
  961. position: fixed;
  962. right: 0;
  963. top: 10%;
  964. background: url('../../static/img/qiyebeijing.png');
  965. background-size: 100%;
  966. font-size: 11px;
  967. padding-bottom: 5px;
  968. padding-left: 10px;
  969. border-radius: 40rpx 0 0 40rpx;
  970. }
  971. .company .icon {
  972. position: relative;
  973. top: 4px;
  974. }
  975. page {
  976. background: #F8F9FC;
  977. }
  978. .container {
  979. padding-top: 85px;
  980. padding-top: 35px;
  981. background-color: #F5F6FA;
  982. position: relative;
  983. width: 100vw;
  984. overflow: hidden;
  985. background: url('~@/static/img/login/bg_slices/bg@3x.png');
  986. background-size: 100% 100%;
  987. margin: 0 auto;
  988. height: calc(100vh - 0px);
  989. }
  990. .cu-tag.badge {
  991. right: 26rpx;
  992. }
  993. .path {
  994. color: #007aff;
  995. display: inline-block;
  996. text-align: center;
  997. }
  998. .icon {
  999. margin-right: 10rpx;
  1000. }
  1001. .portrait-box {
  1002. margin-top: 20rpx;
  1003. }
  1004. .qr-wrap {
  1005. margin-top: 20upx;
  1006. color: #fff;
  1007. font-size: 32rpx;
  1008. }
  1009. .cu-list {
  1010. /* height: 483rpx;
  1011. overflow-y: scroll; */
  1012. margin-top: 16rpx;
  1013. margin-bottom: 80rpx;
  1014. }
  1015. .cu-list.grid>.cu-item .badge_user {
  1016. color: #fff;
  1017. display: flex;
  1018. justify-content: center;
  1019. align-items: center;
  1020. border: 1px solid #fff;
  1021. background-color: #f43530;
  1022. padding: 4px;
  1023. position: absolute;
  1024. font-size: 12px;
  1025. font-weight: 700;
  1026. width: 22px;
  1027. height: 22px;
  1028. right: 19px;
  1029. top: -12px;
  1030. z-index: 2;
  1031. border-radius: 50%;
  1032. }
  1033. @keyframes move_wave {
  1034. 0% {
  1035. transform: translateX(0) translateZ(0) scaleY(1)
  1036. }
  1037. 50% {
  1038. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  1039. }
  1040. 100% {
  1041. transform: translateX(-50%) translateZ(0) scaleY(1)
  1042. }
  1043. }
  1044. .bg {
  1045. position: relative;
  1046. height: 300rpx;
  1047. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  1048. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  1049. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  1050. }
  1051. .bg_ware {
  1052. position: absolute;
  1053. left: 0;
  1054. bottom: -2rpx;
  1055. width: 100%;
  1056. mix-blend-mode: screen;
  1057. height: 224rpx;
  1058. }
  1059. %flex-center {
  1060. display: flex;
  1061. flex-direction: column;
  1062. justify-content: center;
  1063. align-items: center;
  1064. }
  1065. %section {
  1066. display: flex;
  1067. justify-content: space-around;
  1068. align-content: center;
  1069. background: #fff;
  1070. border-radius: 10upx;
  1071. }
  1072. .grid-item-box {
  1073. flex: 1;
  1074. /* position: relative;
  1075. */
  1076. /* #ifndef APP-NVUE */
  1077. display: flex;
  1078. /* #endif */
  1079. flex-direction: column;
  1080. align-items: center;
  1081. justify-content: center;
  1082. padding: 15px 0;
  1083. }
  1084. .user-section {
  1085. height: 520upx;
  1086. padding: 100upx 30upx 0;
  1087. position: relative;
  1088. .bg {
  1089. position: absolute;
  1090. left: 0;
  1091. top: 0;
  1092. width: 100%;
  1093. height: 100%;
  1094. filter: blur(1px);
  1095. box-shadow: 0px 1px 8px #ccc;
  1096. /* background:linear-gradient(#0eb0c9,#126bae); */
  1097. /* opacity: .7; */
  1098. }
  1099. }
  1100. .user-info-box {
  1101. height: 180upx;
  1102. /* display:flex; */
  1103. /* align-items:center; */
  1104. text-align: center;
  1105. position: relative;
  1106. z-index: 1;
  1107. .portrait {
  1108. width: 130upx;
  1109. height: 130upx;
  1110. border: 5upx solid #fff;
  1111. border-radius: 50%;
  1112. }
  1113. .username {
  1114. font-size: $font-lg + 3upx;
  1115. color: #fff;
  1116. margin-top: 20upx;
  1117. }
  1118. }
  1119. .vip-card-box {
  1120. display: flex;
  1121. flex-direction: column;
  1122. color: #f7d680;
  1123. height: 240upx;
  1124. background: linear-gradient(left, rgba(0, 0, 0, .7), rgba(0, 0, 0, .8));
  1125. border-radius: 16upx 16upx 0 0;
  1126. overflow: hidden;
  1127. position: relative;
  1128. padding: 20upx 24upx;
  1129. .card-bg {
  1130. position: absolute;
  1131. top: 20upx;
  1132. right: 0;
  1133. width: 380upx;
  1134. height: 260upx;
  1135. }
  1136. .b-btn {
  1137. position: absolute;
  1138. right: 20upx;
  1139. top: 16upx;
  1140. width: 132upx;
  1141. height: 40upx;
  1142. text-align: center;
  1143. line-height: 40upx;
  1144. font-size: 22upx;
  1145. color: #36343c;
  1146. border-radius: 20px;
  1147. background: linear-gradient(left, #f9e6af, #ffd465);
  1148. z-index: 1;
  1149. }
  1150. .tit {
  1151. font-size: $font-base+2upx;
  1152. color: #f7d680;
  1153. margin-bottom: 28upx;
  1154. .yticon {
  1155. color: #f6e5a3;
  1156. margin-right: 16upx;
  1157. }
  1158. }
  1159. .e-b {
  1160. font-size: $font-sm;
  1161. color: #d8cba9;
  1162. margin-top: 10upx;
  1163. }
  1164. }
  1165. .cover-container {
  1166. padding: 1px 10px;
  1167. padding-bottom: 20rpx;
  1168. /* background-color: #F5F6FA; */
  1169. /* border-radius: 20px; */
  1170. margin-top: 12upx;
  1171. .arc {
  1172. position: absolute;
  1173. left: 0;
  1174. top: -34upx;
  1175. width: 100%;
  1176. height: 36upx;
  1177. }
  1178. }
  1179. .tj-sction {
  1180. @extend %section;
  1181. .tj-item {
  1182. @extend %flex-center;
  1183. flex-direction: column;
  1184. height: 140upx;
  1185. font-size: $font-sm;
  1186. color: #75787d;
  1187. }
  1188. .num {
  1189. font-size: $font-lg;
  1190. color: $font-color-dark;
  1191. margin-bottom: 8upx;
  1192. }
  1193. }
  1194. .order-section {
  1195. @extend %section;
  1196. padding: 28upx 0;
  1197. margin-top: 20upx;
  1198. .order-item {
  1199. @extend %flex-center;
  1200. width: 120upx;
  1201. height: 120upx;
  1202. border-radius: 10upx;
  1203. font-size: $font-sm;
  1204. color: $font-color-dark;
  1205. }
  1206. .yticon {
  1207. font-size: 48upx;
  1208. margin-bottom: 18upx;
  1209. color: #fa436a;
  1210. }
  1211. .icon-shouhoutuikuan {
  1212. font-size: 44upx;
  1213. }
  1214. }
  1215. .history-section {
  1216. padding: 30upx 0 0;
  1217. margin-top: 20upx;
  1218. background: #fff;
  1219. border-radius: 10upx;
  1220. .sec-header {
  1221. display: flex;
  1222. align-items: center;
  1223. font-size: $font-base;
  1224. color: $font-color-dark;
  1225. line-height: 40upx;
  1226. margin-left: 30upx;
  1227. .yticon {
  1228. font-size: 44upx;
  1229. color: #5eba8f;
  1230. margin-right: 16upx;
  1231. line-height: 40upx;
  1232. }
  1233. }
  1234. .h-list {
  1235. white-space: nowrap;
  1236. padding: 30upx 30upx 0;
  1237. image {
  1238. display: inline-block;
  1239. width: 160upx;
  1240. height: 160upx;
  1241. margin-right: 20upx;
  1242. border-radius: 10upx;
  1243. }
  1244. }
  1245. }
  1246. .grid {
  1247. display: flex;
  1248. align-items: center;
  1249. flex-wrap: wrap;
  1250. /* border-top: 2upx solid rgba(172,172,172,.2); */
  1251. .grid-item-3 {
  1252. box-sizing: border-box;
  1253. width: calc(100% / 3);
  1254. border-bottom: 2upx solid rgba(172, 172, 172, .2);
  1255. border-right: 2upx solid rgba(172, 172, 172, .2);
  1256. text-align: center;
  1257. padding: 40upx 0;
  1258. position: relative;
  1259. /* view{
  1260. font-size: $font-sm;
  1261. margin-top: 16upx;
  1262. color: $font-color-dark;
  1263. } */
  1264. .grid_icon {
  1265. font-size: 48upx;
  1266. margin-bottom: 18upx;
  1267. color: #fa436a;
  1268. }
  1269. .tip_text {
  1270. display: block;
  1271. padding: 4upx 8upx;
  1272. text-align: center;
  1273. border-radius: 36upx;
  1274. font-size: 24upx;
  1275. background-color: #fa436a;
  1276. color: rgba(255, 255, 255, 1);
  1277. position: absolute;
  1278. right: 6upx;
  1279. top: 6upx;
  1280. }
  1281. }
  1282. .grid-item-3:nth-child(3n + 3),
  1283. .grid-item-4:nth-child(4n + 4) {
  1284. border-right: none;
  1285. }
  1286. }
  1287. .headPortrait {
  1288. width: 112rpx;
  1289. height: 112rpx;
  1290. border-radius: 40px;
  1291. border: 2px solid #ffffff;
  1292. }
  1293. .personal {
  1294. margin-top: 10px;
  1295. margin-left: 10px;
  1296. }
  1297. .information {
  1298. font-size: 15px;
  1299. font-weight: 600;
  1300. height: 60rpx;
  1301. }
  1302. .indexlow {
  1303. /* margin-top: 30px; */
  1304. border-radius: 10px;
  1305. }
  1306. .cu-list>.cu-item:after {
  1307. border: none;
  1308. }
  1309. .sign {
  1310. width: 35px;
  1311. height: 35px;
  1312. top: 4px;
  1313. }
  1314. .sign1 {
  1315. width: 26px;
  1316. height: 26px;
  1317. top: 4px;
  1318. }
  1319. .indexUp {
  1320. padding: 0 20px;
  1321. align-items: center;
  1322. }
  1323. .cu-list.grid>.cu-item .cu-tag.badge {
  1324. color: #fff;
  1325. background: #FF6600;
  1326. font-size: 9px;
  1327. line-height: 5px;
  1328. padding: 5px;
  1329. }
  1330. .cover-container-item {
  1331. background: #fff;
  1332. border-radius: 10px;
  1333. padding: 10px 0;
  1334. }
  1335. .cover-container-item .cu-list {
  1336. margin: 0;
  1337. }
  1338. .cover-container-item .cu-list.grid>.cu-item [class*=cuIcon] {
  1339. margin: 0;
  1340. }
  1341. .guess-section-wrap-item {
  1342. float: left;
  1343. width: 38vw;
  1344. background: #F9F9FA;
  1345. padding: 7px;
  1346. margin: 20rpx;
  1347. border-radius: 3px;
  1348. // width:50%;
  1349. }
  1350. .guess-section-wrap-item:first-child {
  1351. // margin-left:2px;
  1352. }
  1353. .clearfix:after {
  1354. content: "";
  1355. display: block;
  1356. clear: both;
  1357. }
  1358. .guess-section-wrap {
  1359. padding: 15px;
  1360. margin: 10rpx 20rpx;
  1361. border-radius: 5px;
  1362. background: #fff;
  1363. overflow: hidden;
  1364. }
  1365. .guess-section-wrap .price {
  1366. color: #B2B3BB;
  1367. display: flex;
  1368. align-items: center;
  1369. }
  1370. .title {
  1371. font-size: 28upx;
  1372. color: $font-color-dark;
  1373. font-weight: bold;
  1374. height: 50upx;
  1375. line-height: 50upx;
  1376. flex: 2.5;
  1377. }
  1378. .factory {
  1379. font-size: 26rpx;
  1380. font-weight: 900;
  1381. }
  1382. .currectprice {
  1383. color: rgba(253, 113, 79, 1);
  1384. font-size: 18px;
  1385. font-weight: 550;
  1386. vertical-align: middle;
  1387. margin-right: 10px;
  1388. }
  1389. .yesterday {
  1390. font-size: 14px;
  1391. font-weight: 600;
  1392. vertical-align: middle;
  1393. }
  1394. .yesterday.up {
  1395. color: rgba(253, 113, 79, 1);
  1396. }
  1397. .yesterday.down {
  1398. color: #22C572;
  1399. }
  1400. </style>