scancodeout.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  1. <!-- 出库扫码 -->
  2. <template>
  3. <view class="content">
  4. <view class="text-area">
  5. <scan @getCode="getScanCode" />
  6. </view>
  7. <view class="stripe"></view>
  8. <view class="roll">
  9. <view>
  10. <view @click="show =! show">
  11. <u-icon name="edit-pen"></u-icon>{{$t('scanenter.input')}}
  12. </view>
  13. <view class="lnput" v-if="show==false">
  14. <input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true" />
  15. <u-button type="primary" size="medium" @click="manualentry" throttle-time="2000">{{$t('scanenter.confirmentry')}}</u-button>
  16. </view>
  17. <view class="" v-else>
  18. <view>{{tips}}:{{number}}</view>
  19. </view>
  20. </view>
  21. <view>
  22. <view></view>
  23. <view></view>
  24. <view style="width: 94%;height: 20px;background-color: #FFFFFF;margin: 0 auto;margin-top: -3rpx;border-radius: 0;">
  25. <image src="../../../static/sailun/line.png" style="width: 96%;height: 1rpx;;" mode=""></image>
  26. </view>
  27. </view>
  28. <view class="generate">
  29. <u-table font-size="24" border-color="#ffffff" bg-color="#fff">
  30. <u-tr class="u-tr">
  31. <u-th class="u-th" width="30%">{{$t('scanenter.number')}}</u-th>
  32. <u-th class="u-th">{{$t('scanenter.Specifications')}}</u-th>
  33. <u-th class="u-th" width="15%">{{$t('scanenter.operation')}}</u-th>
  34. </u-tr>
  35. <u-tr class="u-tr" v-for="(item, index) in lisi" :key="index">
  36. <u-td class="u-td" width="30%">{{item.tireNumber}}</u-td>
  37. <u-td class="u-td">{{item.maktx}}</u-td>
  38. <u-td class="u-td" width="15%"><text @click="confirm(index)" style="color: #FA3534;">{{$t('scanenter.Delete')}}</text></u-td>
  39. </u-tr>
  40. </u-table>
  41. <u-divider color="rgb(144, 147, 153)" half-width="200" border-color="rgb(144, 147, 153)" margin-top="40">{{$t('scanenter.slide')}}</u-divider>
  42. </view>
  43. </view>
  44. <view class="determine">
  45. <u-button type="primary" shape="circle" @click="scancodein">{{$t('scanenter.confirm')}}</u-button>
  46. </view>
  47. <view>
  48. </view>
  49. <u-toast ref="repeat" position="bottom" />
  50. </view>
  51. </template>
  52. <script>
  53. import {
  54. request
  55. } from '../../../common/request/request'
  56. require("promise.prototype.finally").shim()
  57. var QQMapWX = require('../../../components/mi-map/qqmap-wx-jssdk.min.js')
  58. var qqmapsdk = new QQMapWX({
  59. key: 'LXCBZ-NNIKD-UZ64F-H6AFI-UNJLH-OCFGE'
  60. })
  61. export default {
  62. data() {
  63. return {
  64. tips: this.$t('scanenter.tips'),
  65. number: this.$t('scanenter.tips_a'),
  66. content: this.$t('scanenter.pleaseenter_s'),
  67. number_s: '',
  68. number_a: '',
  69. lisi: [],
  70. background: {
  71. backgroundColor: '#0094fe',
  72. },
  73. show: true,
  74. show_s: false,
  75. show_d: false,
  76. res: '',
  77. position: '',
  78. point: '',
  79. coord: '',
  80. address: '',
  81. }
  82. },
  83. onBackPress(options) {
  84. if (options.from == 'backbutton') {
  85. this.$u.route({
  86. type: 'switchTab',
  87. url: 'pages/home/index'
  88. })
  89. }
  90. return true;
  91. },
  92. onLaunch() {
  93. uni.$on('update', data => {
  94. this.lisi = data.lisi
  95. })
  96. },
  97. created() {
  98. uni.getNetworkType({
  99. success: function(res) {
  100. let none = res.networkType
  101. if (none == 'none') {
  102. uni.showToast({
  103. icon: 'none',
  104. title: this.$t('unified.networkstate'),
  105. position: "bottom"
  106. })
  107. }
  108. }
  109. });
  110. uni.$on('data', res => {
  111. this.lisi = res.lisi
  112. })
  113. //开始扫码
  114. const innerAudioContext = uni.createInnerAudioContext();
  115. innerAudioContext.autoplay = true;
  116. innerAudioContext.src = '../../../static/mp3/start.mp3';
  117. innerAudioContext.onPlay(() => {
  118. });
  119. innerAudioContext.onError((res) => {
  120. });
  121. this.coord = ''
  122. },
  123. onShow() {
  124. this.mounteds()
  125. },
  126. methods: {
  127. mounteds() {
  128. let that = this
  129. uni.getLocation({
  130. type: 'gcj02', // 返回国测局坐标
  131. geocode: true,
  132. success: function(res) {
  133. that.tishi(res)
  134. },
  135. fail: function(e) {
  136. uni.showToast({
  137. icon: 'none',
  138. title: this.$t('scanenter.locationstate')
  139. })
  140. }
  141. })
  142. },
  143. async tishi(res) {
  144. let this_ = this
  145. this_.baidu = res
  146. qqmapsdk.reverseGeocoder({
  147. location: {
  148. latitude: res.latitude,
  149. longitude: res.longitude
  150. },
  151. success(res) {
  152. var newCity = ''
  153. // 取到用户的定位地址,赋值传递出去
  154. let aress = res.result.address_component.nation + res.result.address_component.province + res.result.address_component
  155. .city + res.result.formatted_addresses.recommend
  156. request({
  157. url: '/baseReq/getBaiDuMapMsg',
  158. method: 'get',
  159. params: {
  160. longitude: this_.baidu.longitude,
  161. latitude: this_.baidu.latitude
  162. }
  163. }).then(res => {
  164. if (res.data.code != 0) {
  165. uni.showToast({
  166. icon: 'none',
  167. title: this.$t('scanenter.seekfailed')
  168. })
  169. } else {
  170. this_.baidu = res.data.data.result
  171. this_.addreev(this_.baidu, aress)
  172. }
  173. }).catch(err => {
  174. uni.showToast({
  175. icon: 'none',
  176. title: this.$t('scanenter.networkstate_s')
  177. })
  178. }).finally(() => {
  179. // Loading.close()
  180. })
  181. }
  182. })
  183. },
  184. async addreev(res, x) {
  185. this.address = x
  186. this.degree = res
  187. },
  188. //手动录入调用
  189. manualentry() {
  190. if (this.number_a.length != 0) {
  191. if (this.degree == undefined) {
  192. uni.showToast({
  193. icon: 'none',
  194. title: this.$t('scanenter.locationstate'),
  195. position: "bottom"
  196. })
  197. return
  198. } else {
  199. request({
  200. url: '/storeScan/storeScanGetTyre',
  201. method: 'Post',
  202. data: {
  203. storeId: this.$store.state.storeInfo.storeId,
  204. userId: this.$store.state.storeInfo.userId,
  205. tyreNum: this.number_a,
  206. scanType: 2,
  207. scanWay: 0,
  208. longitude: this.degree.x,
  209. latitude: this.degree.y,
  210. scanAddress: this.address
  211. }
  212. }).then(res => {
  213. console.log(res)
  214. switch (res.data.code) {
  215. case 513:
  216. {
  217. let name = 'regular'
  218. this.tipss(res, name)
  219. break;
  220. }
  221. case 514:
  222. {
  223. let name = 'nonoperating'
  224. this.tipss(res, name)
  225. break
  226. }
  227. case 515:
  228. {
  229. let name = 'warehousing'
  230. this.tipss(res, name)
  231. break
  232. }
  233. case 516:
  234. {
  235. let name = 'prohibit'
  236. this.tipss(res, name)
  237. break
  238. }
  239. case 518:
  240. {
  241. let name = 'gobeyond'
  242. this.tipss(res, name)
  243. break
  244. }
  245. case 519:
  246. {
  247. let name = 'notallow'
  248. this.tipss(res, name)
  249. break
  250. }
  251. case 520:
  252. {
  253. let name = 'repeat-out'
  254. this.tipss(res, name)
  255. break
  256. }
  257. case 500:
  258. {
  259. let name = 'error'
  260. this.tipss(res, name)
  261. break
  262. }
  263. case 0:
  264. {
  265. this.res = res
  266. for (let i = 0; i < this.lisi.length; i++) {
  267. if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
  268. let err = {
  269. "data": {
  270. "msg": this.$t('scanenter.repeat'),
  271. }
  272. }
  273. let name = 'duplicateentry'
  274. this.tipss(err, name)
  275. return
  276. }
  277. }
  278. this.container()
  279. break
  280. }
  281. }
  282. // if (res.data.code == 513) {
  283. // let name = 'regular'
  284. // this.tipss(res, name)
  285. // return
  286. // }
  287. // if (res.data.code == 514) {
  288. // let name = 'nonoperating'
  289. // this.tipss(res, name)
  290. // return
  291. // }
  292. // if (res.data.code == 515) {
  293. // let name = 'warehousing'
  294. // this.tipss(res, name)
  295. // return
  296. // }
  297. // if (res.data.code == 516) {
  298. // let name = 'prohibit'
  299. // this.tipss(res, name)
  300. // return
  301. // }
  302. // if (res.data.code == 517) {
  303. // let name = 'atypism'
  304. // this.tipss(res, name)
  305. // return
  306. // }
  307. // if (res.data.code == 518) {
  308. // let name = 'gobeyond'
  309. // this.tipss(res, name)
  310. // return
  311. // }
  312. // if (res.data.code == 519) {
  313. // let name = 'notallow'
  314. // this.tipss(res, name)
  315. // return
  316. // }
  317. // if (res.data.code == 520) {
  318. // let name = 'repeat-out'
  319. // this.tipss(res, name)
  320. // return
  321. // }
  322. // if (res.data.code == 500) {
  323. // let name = 'error'
  324. // this.tipss(res, name)
  325. // return
  326. // }
  327. // if (res.data.code == 0) {
  328. // this.res = res
  329. // for (let i = 0; i < this.lisi.length; i++) {
  330. // if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
  331. // let err = {
  332. // "data": {
  333. // "msg": "请勿重复录入",
  334. // }
  335. // }
  336. // let name = 'duplicateentry'
  337. // this.tipss(err, name)
  338. // return
  339. // }
  340. // }
  341. // this.container()
  342. // }
  343. }).catch(err => {
  344. this.$refs.repeat.show({
  345. title: this.$t('scanenter.networkstate_s'),
  346. type: 'default',
  347. position: 'bottom'
  348. })
  349. })
  350. .finally(() => {
  351. // Loading.close()
  352. })
  353. }
  354. } else {
  355. this.$refs.repeat.show({
  356. title: this.$t('scanenter.pleaseenter'),
  357. type: 'default',
  358. position: 'bottom'
  359. })
  360. }
  361. },
  362. tipss(res, name) {
  363. this.$refs.repeat.show({
  364. title: res.data.msg,
  365. type: 'default',
  366. position: 'bottom'
  367. })
  368. //提示语音
  369. const innerAudioContext = uni.createInnerAudioContext();
  370. innerAudioContext.autoplay = true;
  371. innerAudioContext.src = '../../../static/mp3/' + name + '.mp3';
  372. innerAudioContext.onPlay(() => {
  373. });
  374. innerAudioContext.onError((res) => {
  375. });
  376. },
  377. container() {
  378. this.$refs.repeat.show({
  379. title: this.$t('scanenter.inputsuccess'),
  380. type: 'success',
  381. position: 'bottom'
  382. })
  383. //录入成功语音
  384. const innerAudioContext = uni.createInnerAudioContext();
  385. innerAudioContext.autoplay = true;
  386. innerAudioContext.src = '../../../static/mp3/entered.mp3';
  387. innerAudioContext.onPlay(() => {
  388. });
  389. innerAudioContext.onError((res) => {
  390. });
  391. this.show_s = false
  392. this.number_a = ''
  393. this.lisi.push({
  394. specs: this.res.data.data[0].specs,
  395. flagRegular: this.res.data.data[0].isRegular,
  396. diameter: this.res.data.data[0].diameter,
  397. maktx: this.res.data.data[0].maktx,
  398. pattern: this.res.data.data[0].pattern,
  399. soldToPartyKunnr: this.res.data.data[0].soldToPartyKunnr,
  400. matnr: this.res.data.data[0].matnr,
  401. tireNumber: this.res.data.data[0].tirenumber,
  402. brand: this.res.data.data[0].brand,
  403. shippedDate: this.res.data.data[0].shippedDate,
  404. plyRating: this.res.data.data[0].plyRating,
  405. scanWay: '0'
  406. })
  407. },
  408. //获取扫码控件
  409. getScanCode(val) {
  410. uni.getNetworkType({
  411. success: function(res) {
  412. let none = res.networkType
  413. if (none == 'none') {
  414. uni.showToast({
  415. icon: 'none',
  416. title: this.$t('unified.networkstate'),
  417. position: "bottom"
  418. })
  419. const innerAudioContext = uni.createInnerAudioContext();
  420. innerAudioContext.autoplay = true;
  421. innerAudioContext.src = '../../../static/mp3/failure.mp3';
  422. innerAudioContext.onPlay(() => {
  423. });
  424. innerAudioContext.onError((res) => {
  425. });
  426. }
  427. }
  428. });
  429. this.number = val
  430. this.number_s = val
  431. if (this.degree == undefined) {
  432. uni.showToast({
  433. icon: 'none',
  434. title: this.$t('scanenter.transformation'),
  435. position: "bottom"
  436. })
  437. return
  438. } else {
  439. request({
  440. url: '/storeScan/storeScanGetTyre',
  441. method: 'Post',
  442. data: {
  443. storeId: this.$store.state.storeInfo.storeId,
  444. userId: this.$store.state.storeInfo.userId,
  445. tyreNum: val,
  446. scanType: 2,
  447. scanWay: 1,
  448. longitude: this.degree.x,
  449. latitude: this.degree.y,
  450. scanAddress: this.address
  451. }
  452. }).then(res => {
  453. this.res_s = res
  454. this.tips = this.$t('scanenter.number')
  455. switch (res.data.code) {
  456. case 513:
  457. {
  458. let name = 'regular'
  459. this.tipss(res, name)
  460. break;
  461. }
  462. case 514:
  463. {
  464. let name = 'nonoperating'
  465. this.tipss(res, name)
  466. break
  467. }
  468. case 515:
  469. {
  470. let name = 'warehousing'
  471. this.tipss(res, name)
  472. break
  473. }
  474. case 516:
  475. {
  476. let name = 'prohibit'
  477. this.tipss(res, name)
  478. break
  479. }
  480. case 518:
  481. {
  482. let name = 'gobeyond'
  483. this.tipss(res, name)
  484. break
  485. }
  486. case 519:
  487. {
  488. let name = 'notallow'
  489. this.tipss(res, name)
  490. break
  491. }
  492. case 520:
  493. {
  494. let name = 'repeat-out'
  495. this.tipss(res, name)
  496. break
  497. }
  498. case 500:
  499. {
  500. let name = 'error'
  501. this.tipss(res, name)
  502. break
  503. }
  504. case 0:
  505. {
  506. this.res = res
  507. for (let i = 0; i < this.lisi.length; i++) {
  508. if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
  509. let err = {
  510. "data": {
  511. "msg": this.$t('scanenter.repeat'),
  512. }
  513. }
  514. let name = 'duplicateentry'
  515. this.tipss(err, name)
  516. return
  517. }
  518. }
  519. this.container()
  520. break
  521. }
  522. }
  523. // if (res.data.code == 513) {
  524. // let name = 'regular'
  525. // this.tipss(res, name)
  526. // return
  527. // }
  528. // if (res.data.code == 514) {
  529. // let name = 'nonoperating'
  530. // this.tipss(res, name)
  531. // return
  532. // }
  533. // if (res.data.code == 515) {
  534. // let name = 'warehousing'
  535. // this.tipss(res, name)
  536. // return
  537. // }
  538. // if (res.data.code == 516) {
  539. // let name = 'prohibit'
  540. // this.tipss(res, name)
  541. // return
  542. // }
  543. // if (res.data.code == 517) {
  544. // let name = 'atypism'
  545. // this.tipss(res, name)
  546. // return
  547. // }
  548. // if (res.data.code == 518) {
  549. // let name = 'gobeyond'
  550. // this.tipss(res, name)
  551. // return
  552. // }
  553. // if (res.data.code == 519) {
  554. // let name = 'notallow'
  555. // this.tipss(res, name)
  556. // return
  557. // }
  558. // if (res.data.code == 520) {
  559. // let name = 'repeat-out'
  560. // this.tipss(res, name)
  561. // return
  562. // }
  563. // if (res.data.code == 500) {
  564. // let name = 'error'
  565. // this.tipss(res, name)
  566. // return
  567. // }
  568. // if (res.data.code == 0) {
  569. // this.res = res
  570. // for (let i = 0; i < this.lisi.length; i++) {
  571. // if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
  572. // let err = {
  573. // "data": {
  574. // "msg": "请勿重复扫码",
  575. // }
  576. // }
  577. // let name = 'repeatcode'
  578. // this.tipss(err, name)
  579. // return
  580. // }
  581. // }
  582. // this.container_s()
  583. // }
  584. // //
  585. }).catch(err => {
  586. if (err.code == 400) { //谁给我删了......
  587. this.$refs.repeat.show({
  588. title: this.$t('scanenter.networkstate_s'),
  589. type: 'default',
  590. position: 'bottom'
  591. })
  592. } else {
  593. this.$refs.repeat.show({
  594. title: this.$t('scanenter.repeatscan'),
  595. type: 'default',
  596. position: 'bottom'
  597. })
  598. this.repeated()
  599. }
  600. })
  601. .finally(() => {
  602. // Loading.close()
  603. })
  604. }
  605. },
  606. container_s() {
  607. this.show_d = false
  608. this.number_s = ''
  609. this.lisi.push({
  610. specs: this.res_s.data.data[0].specs,
  611. flagRegular: this.res_s.data.data[0].isRegular,
  612. diameter: this.res_s.data.data[0].diameter,
  613. maktx: this.res_s.data.data[0].maktx,
  614. pattern: this.res_s.data.data[0].pattern,
  615. soldToPartyKunnr: this.res_s.data.data[0].soldToPartyKunnr,
  616. matnr: this.res_s.data.data[0].matnr,
  617. tireNumber: this.res_s.data.data[0].tirenumber,
  618. brand: this.res_s.data.data[0].brand,
  619. shippedDate: this.res_s.data.data[0].shippedDate,
  620. plyRating: this.res_s.data.data[0].plyRating,
  621. scanWay: '1'
  622. })
  623. const innerAudioContext = uni.createInnerAudioContext();
  624. innerAudioContext.autoplay = true;
  625. innerAudioContext.src = '../../../static/mp3/scansuccess.mp3';
  626. innerAudioContext.onPlay(() => {
  627. });
  628. innerAudioContext.onError((res) => {
  629. });
  630. this.$refs.repeat.show({
  631. title: this.$t('scanenter.scansuccess'),
  632. type: 'success',
  633. position: 'bottom'
  634. })
  635. },
  636. confirm(index) {
  637. this.lisi.splice(index, 1)
  638. },
  639. scancodein() {
  640. if (this.lisi == '') {
  641. this.$refs.repeat.show({
  642. title: this.$t('scanenter.nodata'),
  643. type: 'default',
  644. position: 'bottom'
  645. })
  646. } else {
  647. this.$u.route({
  648. type: 'redirectTo',
  649. url: 'pages/home/Scan-code-out/index'
  650. })
  651. uni.$emit('update', {
  652. materialList: this.lisi,
  653. address: this.address,
  654. degree: this.degree
  655. })
  656. }
  657. },
  658. repeated() {
  659. const innerAudioContext = uni.createInnerAudioContext();
  660. innerAudioContext.autoplay = true;
  661. innerAudioContext.src = '../../../static/mp3/rescan.mp3';
  662. innerAudioContext.onPlay(() => {
  663. });
  664. innerAudioContext.onError((res) => {
  665. });
  666. }
  667. }
  668. }
  669. </script>
  670. <style lang="scss" scoped>
  671. .lnput>input {
  672. background-color: none;
  673. width: 60%;
  674. font-size: 42rpx;
  675. float: left;
  676. margin-top: 10rpx;
  677. margin-left: 20rpx;
  678. }
  679. .generate {
  680. width: 98%;
  681. height: 300rpx;
  682. overflow: auto;
  683. margin: 0 auto;
  684. margin-top: 120rpx;
  685. }
  686. .determine {
  687. width: 690rpx;
  688. margin-top: 30rpx;
  689. }
  690. .content {
  691. display: flex;
  692. flex-direction: column;
  693. align-items: center;
  694. justify-content: center;
  695. // background-color: #F29100;
  696. padding-top: 400px;
  697. }
  698. .content_s {
  699. padding: 24rpx;
  700. text-align: center;
  701. }
  702. .logo {
  703. height: 200rpx;
  704. width: 200rpx;
  705. margin-top: 200rpx;
  706. margin-left: auto;
  707. margin-right: auto;
  708. margin-bottom: 50rpx;
  709. }
  710. .stripe {
  711. width: 740rpx;
  712. height: 30rpx;
  713. background-color: #00A0EA;
  714. border-radius: 12rpx;
  715. margin: 0 auto;
  716. margin-top: -100rpx;
  717. }
  718. .text-area {
  719. width: 100%;
  720. display: flex;
  721. background-color: #000000;
  722. position: static;
  723. justify-content: center;
  724. padding-top: 180rpx;
  725. }
  726. .title {
  727. font-size: 36rpx;
  728. color: #8f8f94;
  729. }
  730. .roll {
  731. width: 710rpx;
  732. height: auto;
  733. background: #FFFFFF;
  734. margin: 0 auto;
  735. margin-top: -15rpx;
  736. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(101, 176, 249, 0.3);
  737. border-bottom-left-radius: 10rpx;
  738. border-bottom-right-radius: 10rpx;
  739. padding-top: 50rpx;
  740. padding-bottom: 50rpx;
  741. }
  742. .roll>view:nth-child(1)>view:nth-child(2) {
  743. font-size: 42rpx;
  744. font-weight: bold;
  745. color: #0192FD;
  746. text-align: center;
  747. margin-bottom: 50rpx;
  748. }
  749. .roll>view:nth-child(1)>view:nth-child(1) {
  750. width: 200rpx;
  751. color: #0094FE;
  752. position: relative;
  753. top: -40rpx;
  754. left: 500rpx;
  755. font-size: 32rpx;
  756. text-align: center;
  757. }
  758. .roll>view:nth-child(2)>view {
  759. width: 40rpx;
  760. height: 40rpx;
  761. background-color: #F4F4F4;
  762. border-radius: 100%;
  763. float: right;
  764. margin-right: -20rpx;
  765. }
  766. .roll>view:nth-child(2)>view:nth-child(1) {
  767. float: left;
  768. margin-left: -20rpx;
  769. }
  770. .status_bar {
  771. height: var(--status-bar-height);
  772. width: 100%;
  773. background-color: #0095FF;
  774. }
  775. </style>