App.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <script>
  2. export default {
  3. onLaunch: function(e) {
  4. // console.log(e)
  5. console.log('App Launch')
  6. },
  7. onShow: function(query) {
  8. // #ifdef MP-WEIXIN
  9. if(query.scene!==1011){
  10. uni.removeStorageSync('qrcode')
  11. uni.showModal({
  12. title: '温馨提示!',
  13. content: '请扫码使用',
  14. success: function (res) {
  15. uni.exitMiniProgram({
  16. success(res){
  17. console.log(res)
  18. },
  19. complete(res){
  20. console.log(res)
  21. }
  22. })
  23. }
  24. });
  25. }
  26. // #endif
  27. },
  28. onHide: function() {
  29. console.log('App Hide')
  30. }
  31. }
  32. </script>
  33. <style lang="scss">
  34. /*每个页面公共css */
  35. .uni-table{
  36. &{
  37. position: relative;
  38. width: 100%;
  39. border-radius: 5px;
  40. background-color: #fff;
  41. box-sizing: border-box;
  42. display: table;
  43. overflow-x: auto;
  44. }
  45. .uni-table-tr{
  46. display: table-row;
  47. transition: all 0.3s;
  48. box-sizing: border-box;
  49. }
  50. .uni-table-th{
  51. padding: 12px 10px;
  52. display: table-cell;
  53. box-sizing: border-box;
  54. font-size: 14px;
  55. font-weight: bold;
  56. color: #909399;
  57. border-bottom: 1px #ebeef5 solid;
  58. }
  59. .uni-table-td{
  60. display: table-cell;
  61. padding: 8px 10px;
  62. font-size: 14px;
  63. border-bottom: 1px #EBEEF5 solid;
  64. font-weight: 400;
  65. color: #606266;
  66. line-height: 23px;
  67. box-sizing: border-box;
  68. }
  69. }
  70. </style>