App.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <script>
  2. export default {
  3. onLaunch: function(options) {
  4. // wx.hideHomeButton();
  5. // this.getFont()
  6. // uni.hideTabBar()
  7. },
  8. onShow: function() {
  9. console.log('App Show')
  10. },
  11. onHide: function() {
  12. console.log('App Hide')
  13. },
  14. methods: {
  15. getFont() {
  16. uni.loadFontFace({
  17. family: "FZZhunYuan-M02S",
  18. global: true,
  19. source: 'url("https://guess-shop.oss-cn-beijing.aliyuncs.com/static/font/FZZhunYuan-M02S.woff2")',
  20. success: (msg) => {
  21. console.log(msg);
  22. },
  23. fail: (err) => {
  24. console.log(err);
  25. },
  26. });
  27. uni.loadFontFace({
  28. family: "FZCuYuan-M03",
  29. global: true,
  30. source: 'url("https://guess-shop.oss-cn-beijing.aliyuncs.com/static/font/yuanGBK.woff2")',
  31. success: (msg) => {
  32. console.log(msg);
  33. },
  34. fail: (err) => {
  35. console.log(err);
  36. },
  37. });
  38. },
  39. }
  40. }
  41. </script>
  42. <style lang="scss">
  43. @import "@/uni_modules/uview-ui/index.scss";
  44. @import "@/static/iconfont/iconfont.css";
  45. body,html{
  46. background-color: #f6f6f6;
  47. height: 100%;
  48. }
  49. img,
  50. [alt],
  51. img[alt]{
  52. max-width: 100%;
  53. }
  54. .ql-video>video {
  55. width: 100% !important;
  56. height: 200px !important;
  57. }
  58. .empty-box{
  59. position: relative;
  60. width: 582rpx;
  61. height: 582rpx;
  62. margin: 0 auto;
  63. margin-top: 100rpx;
  64. .empty-txt{
  65. position: absolute;
  66. top: 400rpx;
  67. left: 50%;
  68. transform: translateX(-50%);
  69. font-size: 28rpx;
  70. color: #999;
  71. }
  72. }
  73. // 隐藏滚动条
  74. ::-webkit-scrollbar {
  75. display: none;
  76. }
  77. // 富文本展示
  78. .ql-editor-box {
  79. text-align: justify;
  80. font-family: auto !important;
  81. ::v-deep .ql-indent-1 {
  82. margin-left: 96rpx;
  83. }
  84. ::v-deep .ql-indent-2 {
  85. margin-left: 192rpx;
  86. }
  87. ::v-deep .ql-indent-3 {
  88. margin-left: 288rpx;
  89. }
  90. ::v-deep .ql-indent-4 {
  91. margin-left: 384rpx;
  92. }
  93. ::v-deep .ql-indent-5 {
  94. margin-left: 480rpx;
  95. }
  96. ::v-deep .ql-indent-6 {
  97. margin-left: 576rpx;
  98. }
  99. ::v-deep .ql-indent-7 {
  100. margin-left: 672rpx;
  101. }
  102. ::v-deep .ql-indent-8 {
  103. margin-left: 768rpx;
  104. }
  105. ::v-deep img {
  106. max-width: 100%;
  107. }
  108. ::v-deep .ql-align-center {
  109. text-align: center;
  110. }
  111. ::v-deep .ql-align-right {
  112. text-align: right;
  113. }
  114. ::v-deep blockquote {
  115. display: block;
  116. border-left: 8px solid #d0e5f2;
  117. padding: 5px 10px;
  118. margin: 10px 0;
  119. line-height: 1.4;
  120. font-size: 100%;
  121. background-color: #f1f1f1;
  122. }
  123. ::v-deep .ql-indent-1 {
  124. margin-left: 60rpx;
  125. }
  126. ::v-deep .ql-indent-2 {
  127. margin-left: 120rpx;
  128. }
  129. ::v-deep .ql-indent-3 {
  130. margin-left: 180rpx;
  131. }
  132. ::v-deep .ql-indent-4 {
  133. margin-left: 240rpx;
  134. }
  135. ::v-deep .ql-indent-5 {
  136. margin-left: 300rpx;
  137. }
  138. ::v-deep .ql-size-huge {
  139. font-size: 80rpx;
  140. display: inline-block;
  141. line-height: 90rpx;
  142. }
  143. ::v-deep .ql-size-large {
  144. font-size: 48rpx;
  145. display: inline-block;
  146. line-height: 50rpx;
  147. }
  148. ::v-deep .ql-size-small {
  149. font-size: 24rpx;
  150. display: inline-block;
  151. line-height: 30rpx;
  152. }
  153. ::v-deep .ql-font-serif {
  154. font-family: Georgia, Times New Roman, serif;
  155. }
  156. ::v-deep .ql-font-monospace {
  157. font-family: Monaco, Courier New, monospace;
  158. }
  159. }
  160. /*每个页面公共css */
  161. view,
  162. text {
  163. font-family: FZZhunYuan-M02S;
  164. }
  165. .flex-box-r{
  166. display: flex;
  167. align-items: center;
  168. justify-content: flex-end;
  169. }
  170. .flex-box-cloum{
  171. display: flex;
  172. flex-direction: column;
  173. align-items: center;
  174. }
  175. .flex-box-c-b{
  176. display: flex;
  177. align-items: center;
  178. justify-content: space-between;
  179. }
  180. .flex-box-s{
  181. display: flex;
  182. justify-content: space-between;
  183. }
  184. .flex-box-a{
  185. display: flex;
  186. justify-content: space-around;
  187. }
  188. .flex-box-f{
  189. display: flex;
  190. justify-content: flex-start;
  191. }
  192. .flex-box {
  193. display: flex;
  194. justify-content: center;
  195. align-items: center;
  196. }
  197. ::v-deep .u-navbar__content__title {
  198. font-family: FZCuYuan-M03;
  199. font-size: 38rpx !important;
  200. }
  201. // 富文本展示
  202. .ql-indent-1 {
  203. margin-left: 96rpx;
  204. }
  205. .ql-indent-2 {
  206. margin-left: 192rpx;
  207. }
  208. .ql-indent-3 {
  209. margin-left: 288rpx;
  210. }
  211. .ql-indent-4 {
  212. margin-left: 384rpx;
  213. }
  214. .ql-indent-5 {
  215. margin-left: 480rpx;
  216. }
  217. .ql-indent-6 {
  218. margin-left: 576rpx;
  219. }
  220. .ql-indent-7 {
  221. margin-left: 672rpx;
  222. }
  223. .ql-indent-8 {
  224. margin-left: 768rpx;
  225. }
  226. // img {
  227. // max-width: 100%;
  228. // }
  229. .ql-align-center {
  230. text-align: center;
  231. }
  232. .ql-align-right {
  233. text-align: right;
  234. }
  235. blockquote {
  236. display: block;
  237. border-left: 8px solid #d0e5f2;
  238. padding: 5px 10px;
  239. margin: 10px 0;
  240. line-height: 1.4;
  241. font-size: 100%;
  242. background-color: #f1f1f1;
  243. }
  244. .ql-indent-1 {
  245. margin-left: 60rpx;
  246. }
  247. .ql-indent-2 {
  248. margin-left: 120rpx;
  249. }
  250. .ql-indent-3 {
  251. margin-left: 180rpx;
  252. }
  253. .ql-indent-4 {
  254. margin-left: 240rpx;
  255. }
  256. .ql-indent-5 {
  257. margin-left: 300rpx;
  258. }
  259. .ql-size-huge {
  260. font-size: 80rpx !important;
  261. display: inline-block !important;
  262. line-height: 90rpx !important;
  263. }
  264. .ql-size-large {
  265. font-size: 48rpx;
  266. display: inline-block;
  267. line-height: 50rpx;
  268. }
  269. .ql-size-small {
  270. font-size: 24rpx;
  271. display: inline-block;
  272. line-height: 30rpx;
  273. }
  274. .ql-font-serif {
  275. font-family: Georgia, Times New Roman, serif;
  276. }
  277. .ql-font-monospace {
  278. font-family: Monaco, Courier New, monospace;
  279. }
  280. </style>