1 Star 7 Fork 5

BAD_CODE/tm-vuetify-live

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
App.vue 5.57 KB
一键复制 编辑 原始数据 按行查看 历史
kviewui 提交于 2021-12-29 18:42 . 直播界面初始化
<script>
export default {
onLaunch: function() {
console.log('App Launch');
// #ifdef APP-NVUE || APP-PLUS-NVUE
//at.alicdn.com/t/font_2660213_naog46qr7c.ttf?t=1636788566991
var domModule = weex.requireModule('dom');
//../../tm-vuetify/scss/iconfonts/iconfont.ttf\
domModule.addRule('fontFace', {
fontFamily: 'iconfontTM', //注意这里必须是驼峰命名,跟上面的css样式对照
src: "url(\'https://at.alicdn.com/t/font_2660213_naog46qr7c.ttf?t=1636788566991\')"
});
// #endif
// uni.navigateTo({
// url: '/pages/live/index'
// })
},
onShow: function() {
console.log('App Show');
// #ifdef MP
const updateManager = uni.getUpdateManager();
updateManager.onCheckForUpdate(function(res) {});
updateManager.onUpdateReady(function(res) {
uni.showModal({
title: '更新提示',
content: '新版本已经准备好,确认重启应用?',
showCancel: false,
success(res) {
if (res.confirm) {
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager.applyUpdate();
}
}
});
});
updateManager.onUpdateFailed(function(res) {
// 新的版本下载失败
uni.showModal({
title: '更新提示',
content: '新版本更新失败,确认重试',
success(res) {
if (res.confirm) {
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager.applyUpdate();
}
}
});
});
// #endif
},
onHide: function() {
console.log('App Hide');
}
};
</script>
<style>
/*每个页面公共css */
@import './tm-vuetify/mian.min.css';
@import './tm-vuetify/scss/theme.css';
@font-face {
font-family: 'myicon'; /* Project id 2948283 */
src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAXQAAsAAAAADEgAAAWCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYAC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Me2h5nDnR+n5CxRI++YlzVOSc8q7okNl62Ur8+LGmXSD9kFZuPEDlMKEhZck6XjVjYETxZ+uy5XR0dLlW9UN7Wu2aSm6yzTNBGcP6yvY0Zzq+3IHI6oPMqpCRfGbXeymHITstsbszMhOlaWyRPsFjYaJ4wUs5g0O1uAAC/w39SoMtaMwEwLa2Zghg6/na3HO0YryYCd4MNvfb5MhD4f0URaU3/L9a9Ws5X2FXi5QeRTRE1gXjQzsPS0R5i84akkz3GyOBO42YnLL0MWkjFoK0qVW8+0srRP0elmUEFeyJAe17JFHhxVxIKXm7tl8/h0uEkNW6RXL30ogiS4W3Az0fjxwr2wv5+FMYDrhnUIobK6/7vjafxJ4E4QqInh41W0ChjI10fiXLzorvaHQxV+M74/Z/bz088/sVbNuSOJq8wed6S9QYHCbe+dAdpAp2G6kAs5zVaK1NwilCcBr8wGF5ESzwssc0LlPBDoGHcBiUUaKDRZlIY2F5j4KIBamktT8JKfiuv7SKAHCmF4gFyMJiDwsxEkQfaCws9ppaG9DibJPAaNn8/gpSW/bc1HruXifTYQDg1VK/U1L1L53bz6lT9o/STMnbO5/zC2p5mUJ1mi+I4Fpu4yNrSFc5Kk4ZluGPvDNDEpwwNql3TOqTJNJXQrSc3z5mwgHBqiWom+5kVa4uaXcHn6B62fhAHbhGX/YeybYRMTOQlZofJuXCq023NdG9oCJ4kk3dTwTNzGguA4vWRCwbMNqF1C1yBPlaSyP1nVmPRrnn/WAMCL2IYWUihhCFNoYaE6i3l9d36cve3rw4Joj6rjBcfQN+DNBgAA')
format('woff2');
}
/* 下方是自定义图标演示 */
.myicon {
font-family: 'myicon' !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.myicon-camera:before {
content: '\e60f';
}
.myicon-music:before {
content: '\e617';
}
.myicon-news:before {
content: '\e618';
}
.myicon-phone:before {
content: '\e619';
}
.myicon-video:before {
content: '\e61f';
}
/* #ifndef APP-NVUE || APP-PLUS-NVUE */
body::-webkit-scrollbar,
div::-webkit-scrollbar,
*::-webkit-scrollbar {
display: none;
}
body.pages-index-index uni-page-body,
body {
padding-bottom: 0 !important;
}
/* #endif */
/* 自定义样式 */
.max-content {
width: max-content;
}
.tag-accent {
background: linear-gradient(90deg, rgba(180, 101, 218, 1) 0%, rgba(207, 108, 201, 1) 33%, rgba(238, 96, 156, 1) 66%, rgba(238, 96, 156, 1) 100%) !important;
color: white;
}
.text-size-xxl {
font-size: 48rpx;
}
.text-size-base {
font-size: 28rpx;
}
.flex-reverse-row {
flex-direction: row-reverse;
}
.flex-reverse-col {
flex-direction: column-reverse;
}
.line-height-1 {
line-height: 1;
}
/* 个人中心样式 */
.title-number {
font-size: 48rpx;
}
.line-height-number {
line-height: 20px;
}
/* 聊天界面样式 */
.self-input-bg {
background: linear-gradient(141.36deg, rgba(252, 96, 198, 1) 0%, rgba(252, 76, 105, 1) 100%);
}
.bottom-input-body {
height: 96rpx;
width: 690rpx;
}
.bottom-input {
width: 500rpx;
height: 96rpx;
}
.bottom-input-right-icon {
width: 48rpx;
height: 48rpx;
}
.bottom-input-cursor {
caret-color: white;
}
.avatar-big {
width: 160rpx;
height: 160rpx;
}
.avatar-small {
width: 80rpx;
height: 80rpx;
}
.follow-btn {
width: 88rpx;
height: 48rpx;
}
.devide {
border-left: 1rpx solid rgba(0, 0, 0, .2);
height: 18rpx;
}
</style>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bad_-code/tm-vuetify-live.git
git@gitee.com:bad_-code/tm-vuetify-live.git
bad_-code
tm-vuetify-live
tm-vuetify-live
master

搜索帮助