App.vue 5.5 KB

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