commonUserTest.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // 测试账号
  2. // console.log('系统信息')
  3. // console.log(uni.getSystemInfoSync())
  4. let device = ''
  5. if (uni.getSystemInfoSync()['platform'] == 'android') {
  6. if (uni.getSystemInfoSync()['windowWidth'] ==
  7. 360 && uni.getSystemInfoSync()['windowHeight'] == 640) {
  8. device = 'galaxyS5'
  9. }
  10. if (uni.getSystemInfoSync()['windowWidth'] ==
  11. 411 && uni.getSystemInfoSync()['windowHeight'] == 731) {
  12. device = 'Pixel2'
  13. }
  14. if (uni.getSystemInfoSync()['windowWidth'] ==
  15. 411 && uni.getSystemInfoSync()['windowHeight'] == 823) {
  16. device = 'Pixel2XL'
  17. }
  18. } else {
  19. if (uni.getSystemInfoSync()['windowWidth'] ==
  20. 320 && uni.getSystemInfoSync()['windowHeight'] == 568) {
  21. device = 'iphone5'
  22. }
  23. if (uni.getSystemInfoSync()['windowWidth'] ==
  24. 375 && uni.getSystemInfoSync()['windowHeight'] == 667) {
  25. device = 'iphone6'
  26. }
  27. if (uni.getSystemInfoSync()['windowWidth'] == 414 &&
  28. uni.getSystemInfoSync()['windowHeight'] == 736) {
  29. device = 'iphone6Plus'
  30. }
  31. if (uni.getSystemInfoSync()['windowWidth'] ==
  32. 375 && uni.getSystemInfoSync()['windowHeight'] == 812) {
  33. device = 'iphoneX'
  34. }
  35. if (uni.getSystemInfoSync()['windowWidth'] ==
  36. 768 && uni.getSystemInfoSync()['windowHeight'] == 1024) {
  37. device = 'iPad'
  38. }
  39. }
  40. // console.log(device)
  41. let data_token = {
  42. // 商家安卓
  43. galaxyS5: { //商家/王启利
  44. FOREND_TOKEN: '0_16410285003b52483389fff69b346aded3cb2fd7c3',
  45. phone: '17640181459',
  46. role: 1,
  47. },
  48. Pixel2: { //商家/刘丽丽
  49. FOREND_TOKEN: '0_1641708193e465a78a2001815048b7578d5b0c522c',
  50. phone: '15620638138',
  51. role: 1,
  52. },
  53. Pixel2XL: { //商家/郑丹
  54. FOREND_TOKEN: '0_1641029086bdd9a0a3eee33a57599c1190551af157',
  55. phone: '18920787806',
  56. role: 1,
  57. },
  58. // 非商家苹果
  59. iphone5: { //非商家/郑丹
  60. FOREND_TOKEN: '0_16410286940877303e14d960c9531ad3ed30ad1893',
  61. phone: '18920787806',
  62. role: 0,
  63. },
  64. iPad: { //非商家/刘丽丽
  65. FOREND_TOKEN: '0_16410286321c07727beb9b333892b76df64888134b',
  66. phone: '15620638138',
  67. role: 0,
  68. },
  69. iphone6: { //非商家/王启利
  70. FOREND_TOKEN: '0_16411115964c58fe94cc824e171ab1c737c5b0ff3b',
  71. phone: '17640181459',
  72. role: 0,
  73. },
  74. iphone6Plus: { //非商家/尤
  75. FOREND_TOKEN: '0_1641708193abc2303e086db9de0b09f541eeb9b6b0',
  76. phone: '18920407769',
  77. role: 0,
  78. },
  79. iphoneX: { //非商家/庞亚静
  80. FOREND_TOKEN: '0_1641708193101e6c433fb28188718dc8b672527dbe',
  81. phone: '18222906683',
  82. role: 0,
  83. },
  84. }
  85. export default {
  86. data_token_data: data_token[device],
  87. }