index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  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.titleIn')
  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: 1,
  210. scanWay: 0,
  211. longitude: this.degree.x,
  212. latitude: this.degree.y,
  213. scanAddress: this.address
  214. }
  215. }).then(res => {
  216. this.tips = this.$t('scanenter.number')
  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 517:
  237. {
  238. let name = 'atypism'
  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 == 517) {
  301. // let name = 'atypism'
  302. // this.tipss(res, name)
  303. // return
  304. // }
  305. // if (res.data.code == 518) {
  306. // let name = 'gobeyond'
  307. // this.tipss(res, name)
  308. // return
  309. // }
  310. // if (res.data.code == 519) {
  311. // let name = 'notallow'
  312. // this.tipss(res, name)
  313. // return
  314. // }
  315. // if (res.data.code == 500) {
  316. // let name = 'error'
  317. // this.tipss(res, name)
  318. // return
  319. // }
  320. // if (res.data.code == 0) {
  321. // this.res = res
  322. // for (let i = 0; i < this.lisi.length; i++) {
  323. // if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
  324. // let err = {
  325. // "data": {
  326. // "msg": "请勿重复录入",
  327. // }
  328. // }
  329. // let name = 'duplicateentry'
  330. // this.tipss(err, name)
  331. // return
  332. // }
  333. // }
  334. // this.container()
  335. // }
  336. }).catch(err => {
  337. this.$refs.repeat.show({
  338. title: this.$t('scanenter.networkstate_s'),
  339. type: 'default',
  340. position: 'bottom'
  341. })
  342. })
  343. .finally(() => {
  344. // Loading.close()
  345. })
  346. }
  347. } else {
  348. this.$refs.repeat.show({
  349. title: this.$t('scanenter.pleaseenter'),
  350. type: 'default',
  351. position: 'bottom'
  352. })
  353. }
  354. },
  355. tipss(res, name) {
  356. this.$refs.repeat.show({
  357. title: res.data.msg,
  358. type: 'default',
  359. position: 'bottom'
  360. })
  361. //提示语音
  362. const innerAudioContext = uni.createInnerAudioContext();
  363. innerAudioContext.autoplay = true;
  364. innerAudioContext.src = '../../../static/mp3/' + name + '.mp3';
  365. innerAudioContext.onPlay(() => {
  366. });
  367. innerAudioContext.onError((res) => {
  368. });
  369. },
  370. container() {
  371. this.$refs.repeat.show({
  372. title: this.$t('scanenter.inputsuccess'),
  373. type: 'success',
  374. position: 'bottom'
  375. })
  376. //录入成功语音
  377. const innerAudioContext = uni.createInnerAudioContext();
  378. innerAudioContext.autoplay = true;
  379. innerAudioContext.src = '../../../static/mp3/entered.mp3';
  380. innerAudioContext.onPlay(() => {
  381. });
  382. innerAudioContext.onError((res) => {
  383. });
  384. this.show_s = false
  385. this.number_a = ''
  386. this.lisi.push({
  387. specs: this.res.data.data[0].specs,
  388. flagRegular: this.res.data.data[0].isRegular,
  389. diameter: this.res.data.data[0].diameter,
  390. maktx: this.res.data.data[0].maktx,
  391. pattern: this.res.data.data[0].pattern,
  392. soldToPartyKunnr: this.res.data.data[0].soldToPartyKunnr,
  393. matnr: this.res.data.data[0].matnr,
  394. tireNumber: this.res.data.data[0].tirenumber,
  395. brand: this.res.data.data[0].brand,
  396. shippedDate: this.res.data.data[0].shippedDate,
  397. plyRating: this.res.data.data[0].plyRating,
  398. scanWay: '0'
  399. })
  400. },
  401. //获取扫码控件
  402. getScanCode(val) {
  403. uni.getNetworkType({
  404. success: function(res) {
  405. let none = res.networkType
  406. if (none == 'none') {
  407. uni.showToast({
  408. icon: 'none',
  409. title: this.$t('unified.networkstate'),
  410. position: "bottom"
  411. })
  412. const innerAudioContext = uni.createInnerAudioContext();
  413. innerAudioContext.autoplay = true;
  414. innerAudioContext.src = '../../../static/mp3/failure.mp3';
  415. innerAudioContext.onPlay(() => {
  416. });
  417. innerAudioContext.onError((res) => {
  418. });
  419. }
  420. }
  421. });
  422. this.number = val
  423. this.number_s = val
  424. if (val.length != 0) {
  425. this.tips = this.$t('scanenter.number')
  426. }
  427. if (this.degree == undefined) {
  428. uni.showToast({
  429. icon: 'none',
  430. title: this.$t('scanenter.transformation'),
  431. position: "bottom"
  432. })
  433. return
  434. } else {
  435. request({
  436. url: '/storeScan/storeScanGetTyre',
  437. method: 'Post',
  438. data: {
  439. storeId: this.$store.state.storeInfo.storeId,
  440. userId: this.$store.state.storeInfo.userId,
  441. tyreNum: val,
  442. scanType: 1,
  443. scanWay: 0,
  444. longitude: this.degree.x,
  445. latitude: this.degree.y,
  446. scanAddress: this.address
  447. }
  448. }).then(res => {
  449. this.tips = this.$t('scanenter.number')
  450. switch (res.data.code) {
  451. case 513:
  452. {
  453. let name = 'regular'
  454. this.tipss(res, name)
  455. break;
  456. }
  457. case 514:
  458. {
  459. let name = 'nonoperating'
  460. this.tipss(res, name)
  461. break
  462. }
  463. case 515:
  464. {
  465. let name = 'warehousing'
  466. this.tipss(res, name)
  467. break
  468. }
  469. case 517:
  470. {
  471. let name = 'atypism'
  472. this.tipss(res, name)
  473. break
  474. }
  475. case 518:
  476. {
  477. let name = 'gobeyond'
  478. this.tipss(res, name)
  479. break
  480. }
  481. case 519:
  482. {
  483. let name = 'notallow'
  484. this.tipss(res, name)
  485. break
  486. }
  487. case 520:
  488. {
  489. let name = 'repeat-out'
  490. this.tipss(res, name)
  491. break
  492. }
  493. case 500:
  494. {
  495. let name = 'error'
  496. this.tipss(res, name)
  497. break
  498. }
  499. case 0:
  500. {
  501. this.res = res
  502. for (let i = 0; i < this.lisi.length; i++) {
  503. if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
  504. let err = {
  505. "data": {
  506. "msg": this.$t('scanenter.repeat'),
  507. }
  508. }
  509. let name = 'duplicateentry'
  510. this.tipss(err, name)
  511. return
  512. }
  513. }
  514. this.container()
  515. break
  516. }
  517. }
  518. // if (res.data.code == 513) {
  519. // let name = 'regular'
  520. // this.tipss(res, name)
  521. // return
  522. // }
  523. // if (res.data.code == 514) {
  524. // let name = 'nonoperating'
  525. // this.tipss(res, name)
  526. // return
  527. // }
  528. // if (res.data.code == 515) {
  529. // let name = 'warehousing'
  530. // this.tipss(res, name)
  531. // return
  532. // }
  533. // if (res.data.code == 517) {
  534. // let name = 'atypism'
  535. // this.tipss(res, name)
  536. // return
  537. // }
  538. // if (res.data.code == 518) {
  539. // let name = 'gobeyond'
  540. // this.tipss(res, name)
  541. // return
  542. // }
  543. // if (res.data.code == 519) {
  544. // let name = 'notallow'
  545. // this.tipss(res, name)
  546. // return
  547. // }
  548. // if (res.data.code == 500) {
  549. // let name = 'error'
  550. // this.tipss(res, name)
  551. // return
  552. // }
  553. // if (res.data.code == 0) {
  554. // this.res = res
  555. // for (let i = 0; i < this.lisi.length; i++) {
  556. // if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
  557. // let err = {
  558. // "data": {
  559. // "msg": "请勿重复录入",
  560. // }
  561. // }
  562. // let name = 'duplicateentry'
  563. // this.tipss(err, name)
  564. // return
  565. // }
  566. // }
  567. // this.container()
  568. // }
  569. }).catch(err => {
  570. this.$refs.repeat.show({
  571. title: this.$t('scanenter.networkstate_s'),
  572. type: 'default',
  573. position: 'bottom'
  574. })
  575. })
  576. .finally(() => {
  577. // Loading.close()
  578. })
  579. }
  580. },
  581. container_s() {
  582. this.show_d = false
  583. this.number_s = ''
  584. this.lisi.push({
  585. specs: this.res_s.data.data[0].specs,
  586. flagRegular: this.res_s.data.data[0].isRegular,
  587. diameter: this.res_s.data.data[0].diameter,
  588. maktx: this.res_s.data.data[0].maktx,
  589. pattern: this.res_s.data.data[0].pattern,
  590. soldToPartyKunnr: this.res_s.data.data[0].soldToPartyKunnr,
  591. matnr: this.res_s.data.data[0].matnr,
  592. tireNumber: this.res_s.data.data[0].tirenumber,
  593. brand: this.res_s.data.data[0].brand,
  594. shippedDate: this.res_s.data.data[0].shippedDate,
  595. plyRating: this.res_s.data.data[0].plyRating,
  596. scanWay: '1'
  597. })
  598. const innerAudioContext = uni.createInnerAudioContext();
  599. innerAudioContext.autoplay = true;
  600. innerAudioContext.src = '../../../static/mp3/scansuccess.mp3';
  601. innerAudioContext.onPlay(() => {
  602. });
  603. innerAudioContext.onError((res) => {
  604. });
  605. this.$refs.repeat.show({
  606. title: this.$t('scanenter.scansuccess'),
  607. type: 'success',
  608. position: 'bottom'
  609. })
  610. },
  611. confirm(index) {
  612. this.lisi.splice(index, 1)
  613. },
  614. scancodein() {
  615. if (this.lisi == '') {
  616. this.$refs.repeat.show({
  617. title: this.$t('scanenter.nodata'),
  618. type: 'default',
  619. position: 'bottom'
  620. })
  621. } else {
  622. this.$u.route({
  623. type: 'redirectTo',
  624. url: 'pages/home/Scan-code-in/index'
  625. })
  626. uni.$emit('update', {
  627. materialList: this.lisi,
  628. address: this.address,
  629. degree: this.degree
  630. })
  631. }
  632. },
  633. repeated() {
  634. const innerAudioContext = uni.createInnerAudioContext();
  635. innerAudioContext.autoplay = true;
  636. innerAudioContext.src = '../../../static/mp3/rescan.mp3';
  637. innerAudioContext.onPlay(() => {
  638. });
  639. innerAudioContext.onError((res) => {
  640. });
  641. }
  642. }
  643. }
  644. </script>
  645. <style lang="scss" scoped>
  646. .lnput>input {
  647. background-color: none;
  648. width: 60%;
  649. font-size: 42rpx;
  650. float: left;
  651. margin-top: 10rpx;
  652. margin-left: 20rpx;
  653. }
  654. .generate {
  655. width: 98%;
  656. height: 300rpx;
  657. overflow: auto;
  658. margin: 0 auto;
  659. margin-top: 120rpx;
  660. }
  661. .determine {
  662. width: 690rpx;
  663. margin-top: 30rpx;
  664. }
  665. .content {
  666. display: flex;
  667. flex-direction: column;
  668. align-items: center;
  669. justify-content: center;
  670. // background-color: #F29100;
  671. padding-top: 400px;
  672. }
  673. .content_s {
  674. padding: 24rpx;
  675. text-align: center;
  676. }
  677. .logo {
  678. height: 200rpx;
  679. width: 200rpx;
  680. margin-top: 200rpx;
  681. margin-left: auto;
  682. margin-right: auto;
  683. margin-bottom: 50rpx;
  684. }
  685. .stripe {
  686. width: 740rpx;
  687. height: 30rpx;
  688. background-color: #00A0EA;
  689. border-radius: 12rpx;
  690. margin: 0 auto;
  691. margin-top: -100rpx;
  692. }
  693. .text-area {
  694. width: 100%;
  695. display: flex;
  696. background-color: #000000;
  697. position: static;
  698. justify-content: center;
  699. padding-top: 180rpx;
  700. }
  701. .title {
  702. font-size: 36rpx;
  703. color: #8f8f94;
  704. }
  705. .roll {
  706. width: 710rpx;
  707. height: auto;
  708. background: #FFFFFF;
  709. margin: 0 auto;
  710. margin-top: -15rpx;
  711. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(101, 176, 249, 0.3);
  712. border-bottom-left-radius: 10rpx;
  713. border-bottom-right-radius: 10rpx;
  714. padding-top: 50rpx;
  715. padding-bottom: 50rpx;
  716. }
  717. .roll>view:nth-child(1)>view:nth-child(2) {
  718. font-size: 42rpx;
  719. font-weight: bold;
  720. color: #0192FD;
  721. text-align: center;
  722. margin-bottom: 50rpx;
  723. }
  724. .roll>view:nth-child(1)>view:nth-child(1) {
  725. width: 200rpx;
  726. color: #0094FE;
  727. position: relative;
  728. top: -40rpx;
  729. left: 500rpx;
  730. font-size: 32rpx;
  731. text-align: center;
  732. }
  733. .roll>view:nth-child(2)>view {
  734. width: 40rpx;
  735. height: 40rpx;
  736. background-color: #F4F4F4;
  737. border-radius: 100%;
  738. float: right;
  739. margin-right: -20rpx;
  740. }
  741. .roll>view:nth-child(2)>view:nth-child(1) {
  742. float: left;
  743. margin-left: -20rpx;
  744. }
  745. .status_bar {
  746. height: var(--status-bar-height);
  747. width: 100%;
  748. background-color: #0095FF;
  749. }
  750. </style>