合同小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
1.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <script lang="uts">
  2. let firstBackTime = 0
  3. export default {
  4. usrInfo:{},
  5. allMsg:[],
  6. infoList:[],
  7. productName:"",
  8. productUrl:'',
  9. storeName:'',
  10. dealerAddress:'',
  11. pid:'',
  12. pid_1:'',
  13. orderCount:'',
  14. certFront:'',
  15. carPic:'',
  16. certBack:'',
  17. id:'',
  18. flag:0,
  19. onLaunch: function () {
  20. console.log('App Launch')
  21. },
  22. onShow: function () {
  23. console.log('App Show')
  24. },
  25. onHide: function () {
  26. console.log('App Hide')
  27. },
  28. // #ifdef APP-ANDROID
  29. onLastPageBackPress: function () {
  30. console.log('App LastPageBackPress')
  31. if (firstBackTime == 0) {
  32. uni.showToast({
  33. title: '再按一次退出应用',
  34. position: 'bottom',
  35. })
  36. firstBackTime = Date.now()
  37. setTimeout(() => {
  38. firstBackTime = 0
  39. }, 2000)
  40. } else if (Date.now() - firstBackTime < 2000) {
  41. firstBackTime = Date.now()
  42. uni.exit()
  43. }
  44. },
  45. // #endif
  46. onExit: function () {
  47. console.log('App Exit')
  48. },
  49. }
  50. </script>
  51. <style>
  52. @import "@/static/iconfont.css";
  53. @import "css/header.css";
  54. /*每个页面公共css */
  55. body{
  56. background-color: #ffffff;
  57. }
  58. body {
  59. font-family: Arial, sans-serif;
  60. margin: 0;
  61. padding: 0;
  62. }
  63. body::-webkit-scrollbar {
  64. display: none;
  65. }
  66. @media only screen and (-webkit-min-device-pixel-ratio:2),(min-device-pixel-ratio:2){
  67. .uni-hairline{
  68. border-width: 0.5px !important;
  69. }
  70. .uni-nbfc {
  71. background-color: transparent !important;
  72. }
  73. }
  74. @media screen and (min-width: 320px) {
  75. html {font-size: 14px;}
  76. }
  77. @media screen and (min-width: 360px) {
  78. html {font-size: 16px;}
  79. }
  80. @media screen and (min-width: 400px) {
  81. html {font-size: 18px;}
  82. }
  83. @media screen and (min-width: 440px) {
  84. html {font-size: 20px;}
  85. }
  86. @media screen and (min-width: 480px) {
  87. html {font-size: 22px;}
  88. }
  89. @media screen and (min-width: 640px) {
  90. html {font-size: 28px;}
  91. }
  92. </style>