user.vue 36 KB

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