123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <script>
- export default {
- onLaunch: function(options) {
- // wx.hideHomeButton();
- // this.getFont()
- // uni.hideTabBar()
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- },
- methods: {
- getFont() {
- uni.loadFontFace({
- family: "FZZhunYuan-M02S",
- global: true,
- source: 'url("https://guess-shop.oss-cn-beijing.aliyuncs.com/static/font/FZZhunYuan-M02S.woff2")',
- success: (msg) => {
- console.log(msg);
- },
- fail: (err) => {
- console.log(err);
- },
- });
- uni.loadFontFace({
- family: "FZCuYuan-M03",
- global: true,
- source: 'url("https://guess-shop.oss-cn-beijing.aliyuncs.com/static/font/yuanGBK.woff2")',
- success: (msg) => {
- console.log(msg);
- },
- fail: (err) => {
- console.log(err);
- },
- });
- },
- }
- }
- </script>
- <style lang="scss">
- @import "@/uni_modules/uview-ui/index.scss";
- @import "@/static/iconfont/iconfont.css";
- body,html{
- background-color: #f6f6f6;
- height: 100%;
- }
-
- img,
- [alt],
- img[alt]{
- max-width: 100%;
- }
- /*每个页面公共css */
- view,
- text {
- font-family: FZZhunYuan-M02S;
- }
- .flex-box-r{
- display: flex;
- align-items: center;
- justify-content: flex-end;
- }
- .flex-box-cloum{
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .flex-box-c-b{
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .flex-box-s{
- display: flex;
- justify-content: space-between;
- }
- .flex-box-a{
- display: flex;
- justify-content: space-around;
- }
- .flex-box-f{
- display: flex;
- justify-content: flex-start;
- }
- .flex-box {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- ::v-deep .u-navbar__content__title {
- font-family: FZCuYuan-M03;
- font-size: 38rpx !important;
- }
- // 富文本展示
- .ql-indent-1 {
- margin-left: 96rpx;
- }
- .ql-indent-2 {
- margin-left: 192rpx;
- }
- .ql-indent-3 {
- margin-left: 288rpx;
- }
- .ql-indent-4 {
- margin-left: 384rpx;
- }
- .ql-indent-5 {
- margin-left: 480rpx;
- }
- .ql-indent-6 {
- margin-left: 576rpx;
- }
- .ql-indent-7 {
- margin-left: 672rpx;
- }
- .ql-indent-8 {
- margin-left: 768rpx;
- }
-
- // img {
- // max-width: 100%;
- // }
-
- .ql-align-center {
- text-align: center;
- }
-
- .ql-align-right {
- text-align: right;
- }
-
- blockquote {
- display: block;
- border-left: 8px solid #d0e5f2;
- padding: 5px 10px;
- margin: 10px 0;
- line-height: 1.4;
- font-size: 100%;
- background-color: #f1f1f1;
- }
-
- .ql-indent-1 {
- margin-left: 60rpx;
- }
-
- .ql-indent-2 {
- margin-left: 120rpx;
- }
-
- .ql-indent-3 {
- margin-left: 180rpx;
- }
-
- .ql-indent-4 {
- margin-left: 240rpx;
- }
-
- .ql-indent-5 {
- margin-left: 300rpx;
- }
- .ql-size-huge {
- font-size: 80rpx !important;
- display: inline-block !important;
- line-height: 90rpx !important;
- }
- .ql-size-large {
- font-size: 48rpx;
- display: inline-block;
- line-height: 50rpx;
- }
- .ql-size-small {
- font-size: 24rpx;
- display: inline-block;
- line-height: 30rpx;
- }
-
- .ql-font-serif {
- font-family: Georgia, Times New Roman, serif;
- }
- .ql-font-monospace {
- font-family: Monaco, Courier New, monospace;
- }
-
- </style>
|