代码拉取完成,页面将自动刷新
<script>
export default {
name: "ROOT",
onLaunch: function () {
//页面显示会去判断token 没有就去登录
},
onShow: function () {},
onReady: function () {
// if (!uni.getStorageSync("token")) {
// uni.reLaunch({
// url: "/pages/login/index",
// });
// }
},
onHide: function () {},
onLoad: function () {
if (!uni.getStorageSync("token")) {
uni.reLaunch({
url: "/pages/login/index",
});
}
var args = plus.runtime.arguments;
if (args) {
console.log(args);
// 处理args参数,如直达到某新页面等
}
},
methods: {},
};
</script>
<style lang="scss">
@import "uview-ui/index.scss";
@import "static/jitai/font/iconfont.css";
* { box-sizing: border-box; }
view,text { box-sizing: border-box; }
.info_warp {
width: 750rpx;
padding: 18rpx;
position: relative;
&::after {
width: 100%;
height: 200rpx;
position: absolute;
left: 0rpx;
right: 0rpx;
top: 0rpx;
content: '';
border-radius: 0 0 60rpx 60rpx;
background: #35c877;
}
.form_box {
min-height: 400rpx;
background: #fff;
border-radius: 10rpx;
position: absolute;
z-index: 3;
top: 40rpx;
left: 18rpx;
right: 18rpx;
&::after {
height: 20rpx;
content: '';
background: rgba(255,255,255,0.6);
position: absolute;
border-radius: 14rpx 14rpx 0 0;
left: 20rpx;
right: 20rpx;
top: -20rpx;
z-index: -1;
}
&::before {
height: 40rpx;
content: '';
background: rgba(255,255,255,0.4);
position: absolute;
border-radius: 14rpx 14rpx 0 0;
left: 38rpx;
right: 38rpx;
top: -38rpx;
z-index: -2;
}
}
}
.alert_box {
width: 100%;
padding: 30rpx 28rpx 0 28rpx;
.u-btn {
width: 100% !important;
justify-content: start !important;
padding: 0 0 0 30rpx !important;
.u-icon {
margin-right: 6rpx !important;
}
}
}
.uformitem {
//#ifdef H5
padding: 22rpx 34rpx !important;
//#endif
.u-form-item {
padding: 22rpx 34rpx !important;
}
}
.submitBtns {
padding: 34rpx;
}
.btns {
position: relative;
overflow: hidden;
&::before {
display: block;
content: '';
background: rgba(255,255,255,0.2);
position: absolute; border-radius: 50%;
animation: twinkle 1.1s;
animation-iteration-count: infinite;
opacity: 0;
width: 0;
height: 0;
}
}
@keyframes twinkle{
0%{
width: 0;
height: 0;
opacity: 0;
left: 50%;
top: 50%;
}
50%{
opacity: 1;
}
100%{
width: 100%;
height: 300%;
left: 0;
top: -100%;
opacity: 0;
}
}
.warp {
width: 750rpx;
min-height: 100%;
}
.body {
border-top: 2rpx solid #dedede;
padding: 16rpx 32rpx 32rpx 32rpx;
}
.index_warp {
width: 750rpx;
height: 460rpx;
position: relative;
background: url(~@/static/jitai/line.png) no-repeat center -60px #35c877;
background-size: auto 100%;
padding-top: 44px;
}
.submitBtn {
padding: 30rpx 0rpx 0 0;
}
.all_title_box {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
.title_left {
display: flex;
justify-content: flex-start;
align-items: center;
.svg {
height: 60rpx;
margin-right: 8rpx;
display: flex;
align-items: center;
image {
width: 60rpx;
height: 60rpx;
}
}
.text {
font-weight: 40rpx;
font-weight: bold;
color: #ffa911;
padding-left: 4rpx;
}
}
navigator {
font-size: 26rpx;
color: #999;
.u-icon {
margin-left: 4rpx;
}
}
}
.list_goods {
width: 100%;
.all_title_box {
margin-bottom: 10rpx!important;
.text {
color: #666;
}
}
.item {
background: #fff;
padding: 10rpx;
border-radius: 20rpx;
display: flex;
align-items: center;
margin-bottom: 20rpx;
image {
width: 192rpx;
height: 192rpx;
border-radius: 16rpx;
}
.infos {
padding-left: 20rpx;
.name {
width: 100%;
font-size: 28rpx;
color: #666;
padding: 4rpx 0 10rpx 0;
}
.span {
font-size: 24rpx;
color: #999;
}
.price {
padding-top: 30rpx;
font-size: 30rpx;
font-weight: bold;
color: #ffa911;
}
}
}
}
//用户等级
.level {
font-size: 28rpx;
position: relative;
color: rgba(255,255,255,0.6);
padding-left: 40rpx;
.l_icon {
width: 40rpx;
height: 59rpx;
position: absolute;
z-index: 9;
left: 0rpx;
top: 0rpx;
&.level_1 {
background: url(~@/static/jitai/level/level_1.png) no-repeat;
background-size: 30rpx 44rpx;
}
&.level_2 {
background: url(~@/static/jitai/level/level_2.png) no-repeat;
background-size: 30rpx 44rpx;
}
&.level_3 {
background: url(~@/static/jitai/level/level_3.png) no-repeat;
background-size: 30rpx 44rpx;
}
&.level_4 {
background: url(~@/static/jitai/level/level_4.png) no-repeat;
background-size: 30rpx 44rpx;
}
&.level_5 {
background: url(~@/static/jitai/level/level_5.png) no-repeat;
background-size: 30rpx 44rpx;
}
&.level_6 {
background: url(~@/static/jitai/level/level_6.png) no-repeat;
background-size: 30rpx 44rpx;
}
}
}
//通用明细列表
.log_list_box {
width: 750rpx;
padding: 28rpx;
.item {
width: 100%;
padding: 28rpx 32rpx;
display: flex;
justify-content: space-between;
align-items: center;
background: #fff;
border-radius: 10rpx;
margin-bottom: 28rpx;
&:nth-last-child(1) {
margin-bottom: 0rpx;
}
.name {
font-size: 32rpx;
padding-bottom: 10rpx;
color: #666;
}
.time {
color: #ccc;
font-size: 26rpx;
}
.log_right {
text-align: center;
.jr {
font-size: 32rpx;
padding-bottom: 10rpx;
font-weight: bold;
&.jia {
color: #18B566;
}
&.jian {
color: #ff0000;
}
}
.tips {
font-size: 26rpx;
&.warning {
color: #ff0000;
}
&.success {
color: #18B566;
}
}
}
}
}
</style>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。