作者 lihongjuan

1

<template>
<view class="content">
<image class="bg" src="../../static/bg_img@2x(2).png"></image>
<image class="card" src="../../static/card_img@2x.png"></image>
<view class="card">
<image src="../../static/card_img@2x.png"></image>
</view>
<view class="cardText">
<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration" :indicator-color="indicatorColor" :indicator-active-color="indicatorActiveColor" @change="swiperChange" :circle="true" circular="true">
... ... @@ -191,20 +194,23 @@ export default {
}
}
.dots{
position: absolute;
// position: absolute;
bottom: 36rpx;
left: 50%;
transform: translate(-50%);
width: 50rpx;
height: 10rpx;
z-index: 999;
display: flex;
justify-content: space-between;
overflow: hidden;
margin:0 auto;
// display: flex;
// justify-content: space-between;
.dot{
width: 10rpx;
height: 10rpx;
background-color: #fff;
border-radius:12rpx;
float: left;
}
.active{
width: 30rpx;
... ...
... ... @@ -104,6 +104,16 @@
}
});
},
timestampToTime(timestamp) {
var date = new Date(timestamp * 1000);//时间戳为10位需*1000,
var Y = date.getFullYear();
var M = date.getMonth() + 1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1
var D = date.getDate();
var h = date.getHours() + ':';
var m = date.getMinutes() + ':';
var s = date.getSeconds();
return Y +"-"+ M+'-' + D
},
getuserinfo() {
var that = this
var url = "student/getMyInfo"
... ... @@ -113,6 +123,7 @@
}
app.post(url, params, "get").then((res) => {
console.log(res)
res.starttime=that.timestampToTime(res.starttime)
that.userinfolist = res
}).catch((err) => {
console.log(err)
... ...
... ... @@ -272,6 +272,8 @@
}, 1500);
} else {
this.schoolmate.page=1;
this.schoolmateList=[];
var url = "student/getStudentList"
var token = uni.getStorageSync('token')
var params = {
... ...