user.vue 37 KB

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