scancodeout.vue 20 KB

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