App.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <script>
  2. import api from "@/ajax/api.js"
  3. import store from "@/store/index.js"
  4. export default {
  5. globalData: {
  6. skRSAPublicKey: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsYWp5UANmyoaXbhza0N23fzh2ciKYl/u2J30VhCzTFG4tldFTLaYOmTNFRWstUFPRaHp0vALjAW2espTuSpQQVawy2rqpQcIMcMS+W9cDtgvcVp/L3yFge2RdEQKXK3lxv7Iu8H4mA9SKfDRKjyb/pu2nVi4bcwdJidPW7NKnAZ+ejjiZesVAZ9/FWPseHg5w9qzGSY8arPJSGHzaeDSIq9oEZo0A3/N5xLyQEzp2a1jktuukCPZB2+9z9eGzAoD2vHK3WEypBbmg8jYVNPPWZ1p1of0h/2I+hTH7ZTW6jePvDHuGSU/U1Ql5DuBh2pmyqFN8FyTUfv12MihNzEwhwIDAQAB",
  7. aes: "1234123412ABCDEF",
  8. iv: "ABCDEF1234123412"
  9. },
  10. onInit: function() {
  11. },
  12. onLaunch: function() {
  13. // console.log('App Launch')
  14. console.log(this.$u.config.v);
  15. var script = document.createElement('script')
  16. script.src = 'https://ssl.captcha.qq.com/TCaptcha.js'
  17. document.body.appendChild(script)
  18. },
  19. onShow: function() {
  20. //隐私协议 获取是否隐藏和开启市场和转赠
  21. api.aboutall().then(res => {
  22. store.commit("change_send", res.data.zeng) //判断是否开启转赠
  23. store.commit("change_market", res.data.is_mark) //判断是否开启转售
  24. store.commit("change_kg", res.data.is_kg) //判断是否开启转售
  25. if (res.data.is_mark == 1) {
  26. } else {
  27. uni.setTabBarItem({
  28. index: 1,
  29. visible: false
  30. })
  31. }
  32. })
  33. }
  34. }
  35. </script>
  36. <style lang="scss">
  37. @import "uview-ui/index.scss";
  38. </style>
  39. <style>
  40. @font-face {
  41. font-family: AlibabaSans-Black;
  42. src: url('https://b216.oss-cn-hangzhou.aliyuncs.com/98/c26977f10e409e4cce3c8007d5226b.otf');
  43. // src: "";
  44. }
  45. page {
  46. background: #171918;
  47. color: #000;
  48. height: 100vh;
  49. }
  50. .container {
  51. height: 100vh;
  52. width: 750rpx;
  53. overflow-y: scroll;
  54. background: #171918;
  55. color: #fff;
  56. }
  57. .uni-tabbar {
  58. padding-bottom: 30rpx !important;
  59. }
  60. .zindex999 {
  61. position: relative;
  62. z-index: 999;
  63. }
  64. .shadow {
  65. box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.1607843137254902);
  66. }
  67. .text_hide {
  68. overflow-x: hidden;
  69. text-overflow: ellipsis;
  70. /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  71. word-break: keep-all;
  72. /* 不换行 */
  73. white-space: nowrap;
  74. /* 不换行 */
  75. }
  76. /* 从下弹出样式 */
  77. .pop_down {
  78. height: 100vh;
  79. width: 100%;
  80. background: rgba(0, 0, 0, .6);
  81. position: fixed;
  82. top: 0;
  83. left: 0;
  84. z-index: 999;
  85. display: flex;
  86. justify-content: center;
  87. transform: translateY(-100vh);
  88. animation: down 1s;
  89. animation-fill-mode: forwards;
  90. }
  91. .pop_down>view {
  92. align-self: center;
  93. }
  94. /* //若影若现弹出样式 */
  95. .pop_ocy {
  96. height: 100vh;
  97. width: 100%;
  98. background: rgba(0, 0, 0, .6);
  99. position: fixed;
  100. top: 0;
  101. left: 0;
  102. z-index: 999;
  103. display: flex;
  104. justify-content: center;
  105. animation: ocy .5s;
  106. animation-fill-mode: forwards;
  107. opacity: 0
  108. }
  109. /* #ifdef H5 */
  110. uni-page-body {
  111. height: 100%;
  112. }
  113. /* #endif */
  114. .pop_ocy>view {
  115. align-self: center;
  116. }
  117. @keyframes down {
  118. 0% {}
  119. 100% {
  120. transform: translateY(0);
  121. }
  122. }
  123. @keyframes ocy {
  124. 0% {}
  125. 100% {
  126. opacity: 1;
  127. }
  128. }
  129. @keyframes rotate {
  130. 0% {
  131. transform: rotateY(0deg);
  132. /*从0度开始*/
  133. }
  134. 100% {
  135. transform: rotateY(360deg);
  136. /*360度结束*/
  137. }
  138. }
  139. .systemColor {
  140. /* background: linear-gradient(to bottom, #F2CF9C, #FFDEB3,#794013);
  141. -webkit-background-clip: text;
  142. display: inline-block;
  143. color: transparent; */
  144. color: #6E4DFF;
  145. }
  146. .systemBcg {
  147. background: #F2CF9C;
  148. }
  149. /* .bcgBlack {
  150. background: #fff;
  151. }
  152. */
  153. .colorBlack {
  154. color: #fff;
  155. }
  156. .bcgWhite {
  157. background: #000;
  158. }
  159. .colorWhite {
  160. color: #000;
  161. }
  162. /deep/ p img {
  163. width: 100%;
  164. }
  165. </style>