123456
This commit is contained in:
+596
@@ -0,0 +1,596 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="TopBox">
|
||||
<view class="bean">
|
||||
<image class="beanImg" mode="scaleToFill" src="@/static/image/jindou1.png"></image>
|
||||
<text class="beanText1">{{userinfo.beans || '0'}}金豆</text>
|
||||
</view>
|
||||
<view class="rightBox" style="display: flex;align-items: flex-end">
|
||||
<view class="view0"></view>
|
||||
<view class="view1"></view>
|
||||
<view class="view2"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Box">
|
||||
<view class="Top">
|
||||
<view class="sign_conent_title">
|
||||
<text class="zitiyangshi">签到</text>
|
||||
<span class="sign_conent_title_span zitiyangshi">7</span>
|
||||
<text class="zitiyangshi">天得金豆</text>
|
||||
</view>
|
||||
<image class="rejoice" src="@/static/image/rejoice.png" mode=""></image>
|
||||
<view class="sign" @click="cksigin()">今日签到</view>
|
||||
</view>
|
||||
|
||||
<view class="signBox">
|
||||
|
||||
<view class="timeFormat">
|
||||
{{$u.timeFormat(new Date().getTime(), 'yyyy-mm-dd')}}
|
||||
</view>
|
||||
|
||||
<view class="succession">
|
||||
<view class="left">
|
||||
<view class="skytext">已连续签到</view>
|
||||
<view class="skytext" style="color: #FB5F97;padding: 0 6rpx;font-size: 32rpx;">{{qdjl}}</view>
|
||||
<view class="skytext">天</view>
|
||||
</view>
|
||||
<view class="right">
|
||||
连续签到金豆翻倍哦
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<scroll-view class="scroll-view_H" scroll-x="true" show-scrollbar='false'>
|
||||
<view class="scroll_view_items" v-for="(item, index) in sign_list" :key="index">
|
||||
<view class="scroll_view_itemsv">
|
||||
<view class="scroll_view_item">
|
||||
<view class="scroll_view_item_img_box" :style="{width:index == 6?'72rpx':'89rpx'}">
|
||||
<view v-if="item.xz==2"
|
||||
style="width: 72rpx;height: 110rpx;background-color:#FD8FB7;text-align: center;border-radius: 8rpx;border: 2rpx solid rgba(64,21,32,0.2);">
|
||||
<view
|
||||
style="color: #fff;font-size: 30rpx;position: absolute;top: 56rpx;left: 20rpx;">
|
||||
{{item.beans}}
|
||||
</view>
|
||||
<image src="@/static/image/jindou.png"
|
||||
style="width: 54rpx;height: 56rpx;margin-top: 10rpx;"></image>
|
||||
</view>
|
||||
|
||||
<view v-if="item.xz==1"
|
||||
style="width: 72rpx;height: 110rpx;background-color: #FFEFF5;text-align: center;border-radius: 8rpx;border: 2rpx solid rgba(64,21,32,0.2);">
|
||||
<view
|
||||
style="color: #401520;font-size: 30rpx;position: absolute;top: 56rpx;left: 20rpx;">
|
||||
{{item.beans}}
|
||||
</view>
|
||||
<image src="@/static/image/jindou.png"
|
||||
style="width: 54rpx;height: 56rpx;margin-top: 10rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="scroll_view_item_tips" style="margin-top: 60rpx;">{{ item.day }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
userinfo: {},
|
||||
//签到
|
||||
newsa: [],
|
||||
record: [],
|
||||
sign_list: [],
|
||||
qdjl: 0,
|
||||
tdsy: 0,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
onLoad(e) {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
this.ongrzlTap()
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
// getList() {
|
||||
// let that = this;
|
||||
// that.$httpRequest({
|
||||
// url: "/api/video/zuiju",
|
||||
// method: "GET",
|
||||
// data: {}
|
||||
// }).then(res => {
|
||||
// that.newsa = res.new
|
||||
// that.record = res.record
|
||||
// that.sign_list = res.getweek
|
||||
// that.qdjl = res.qdjl
|
||||
// that.tdsy = res.tdsy
|
||||
// }).catch(err => {
|
||||
// console.log(err)
|
||||
// })
|
||||
// },
|
||||
ongrzlTap() {
|
||||
this.$httpRequest({
|
||||
url: "/api/user/index",
|
||||
method: "POST"
|
||||
}).then(res => {
|
||||
if (res.data.code == 1) {
|
||||
this.userinfo = res.data.data;
|
||||
uni.setStorage({ //缓存配置信息
|
||||
key: 'userinfo',
|
||||
data: res.data.data
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
getList() {
|
||||
let this_ = this
|
||||
let data = {};
|
||||
if (uni.getStorageSync("userinfo")) {
|
||||
data.uid = uni.getStorageSync("userinfo").id;
|
||||
}
|
||||
this.$httpRequest({
|
||||
url: '/api/video/zuiju',
|
||||
data: data,
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
this.newsa = res.new
|
||||
this.record = res.record
|
||||
this.sign_list = res.getweek
|
||||
this.qdjl = res.qdjl
|
||||
this.tdsy = res.tdsy
|
||||
}).catch(err => {
|
||||
console.log('clientindex err', err)
|
||||
})
|
||||
},
|
||||
cksigin() {
|
||||
if (uni.getStorageSync("userinfo")) {
|
||||
let this_ = this
|
||||
let data = {};
|
||||
data.tdsy = this.tdsy
|
||||
data.token = uni.getStorageSync("userinfo").token
|
||||
data.uid = uni.getStorageSync("userinfo").id
|
||||
this.$httpRequest({
|
||||
url: '/api/user/qingdao',
|
||||
data: data,
|
||||
}).then(res => {
|
||||
this_.getList()
|
||||
uni.showToast({
|
||||
title: res.data.msg,
|
||||
duration: 1500,
|
||||
icon: 'none'
|
||||
});
|
||||
}).catch(err => {
|
||||
console.log('clientindex err', err)
|
||||
})
|
||||
} else {
|
||||
console.log(123);
|
||||
uni.showToast({
|
||||
title: '请您先登录',
|
||||
duration: 1500,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@font-face {
|
||||
font-family: "MyFont";
|
||||
src: url('https://youlu.youlu.xyz/assets/fonts/ZiTiaoZiChangGuDan-Shan-ChaoHei.ttf');
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(173deg, #FEECEB, #FEECEB, #FFF6DD, #f7f7f7, #f7f7f7) no-repeat;
|
||||
padding: 40rpx 36rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.zitiyangshi {
|
||||
font-family: 'MyFont';
|
||||
font-weight: 500;
|
||||
font-size: 34rpx;
|
||||
color: #401520;
|
||||
}
|
||||
|
||||
.TopBox {
|
||||
font-size: 28rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.bean {
|
||||
font-size: 28rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
.view0 {
|
||||
border-left: 20rpx solid transparent;
|
||||
border-top: 20rpx solid transparent;
|
||||
border-right: 20rpx solid #fff;
|
||||
border-bottom: 6rpx solid #fff;
|
||||
}
|
||||
|
||||
.view1 {
|
||||
width: 40rpx;
|
||||
height: 64rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 34rpx 0 0 0;
|
||||
}
|
||||
|
||||
.view2 {
|
||||
margin-right: 16rpx;
|
||||
border-left: 150rpx solid #fff;
|
||||
border-top: 30rpx solid transparent;
|
||||
border-right: 150rpx solid transparent;
|
||||
border-bottom: 34rpx solid #fff;
|
||||
|
||||
}
|
||||
|
||||
.beanText1 {
|
||||
color: #401520;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
line-height: 50rpx;
|
||||
padding-bottom: 12rpx;
|
||||
padding-left: 8rpx;
|
||||
}
|
||||
|
||||
.beanImg {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.Box {
|
||||
background-color: #fff;
|
||||
border-radius: 32rpx;
|
||||
width: 100%;
|
||||
// min-height: 600rpx;
|
||||
padding: 24rpx;
|
||||
}
|
||||
|
||||
.Top {
|
||||
display: flex;
|
||||
position: relative;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 28rpx;
|
||||
|
||||
.sign_conent_title {
|
||||
// width: 100%;
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
|
||||
.sign_conent_title_span {
|
||||
color: #FB3D82 !important;
|
||||
font-size: 48rpx;
|
||||
margin-left: 12rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.rejoice {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
position: absolute;
|
||||
left: 300rpx;
|
||||
top: -96rpx;
|
||||
}
|
||||
|
||||
.sign {
|
||||
width: 168rpx;
|
||||
height: 64rpx;
|
||||
background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%), #FB3D82;
|
||||
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
||||
|
||||
font-family: OPPOSans, OPPOSans;
|
||||
font-weight: 400;
|
||||
font-size: 26rpx;
|
||||
color: #FFFFFF;
|
||||
line-height: 64rpx;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.signBox {
|
||||
width: 638rpx;
|
||||
height: 282rpx;
|
||||
background: #FFF7F9;
|
||||
border-radius: 24rpx;
|
||||
padding: 16rpx;
|
||||
|
||||
.timeFormat {
|
||||
font-family: OPPOSans, OPPOSans;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #BB959E;
|
||||
line-height: 29rpx;
|
||||
}
|
||||
|
||||
.succession {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 16rpx 0;
|
||||
|
||||
.left {
|
||||
display: flex;
|
||||
|
||||
.skytext {
|
||||
font-family: OPPOSans, OPPOSans;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #401520;
|
||||
line-height: 29rpx
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
font-family: OPPOSans, OPPOSans;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #BB959E;
|
||||
line-height: 24rpx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-view_H {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
white-space: nowrap;
|
||||
|
||||
.scroll_view_items {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.scroll_view_itemsv {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.scroll_view_item {
|
||||
.scroll_view_item_img_box {
|
||||
width: 90rpx;
|
||||
height: 30rpx;
|
||||
position: relative;
|
||||
|
||||
.scroll_view_item_top {
|
||||
font-size: 24upx;
|
||||
color: #bfbfbf;
|
||||
// font-weight: bold;
|
||||
position: absolute;
|
||||
top: 14upx;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.scroll_view_item_bottom {
|
||||
font-size: 12upx;
|
||||
color: #ffe29d;
|
||||
position: absolute;
|
||||
bottom: 18upx;
|
||||
left: 42upx;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll_view_item_tips {
|
||||
width: 72upx;
|
||||
text-align: center;
|
||||
font-size: 24upx;
|
||||
padding-top: 40upx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.scroll_view_item_img {
|
||||
width: 60upx;
|
||||
height: 60upx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll_xian {
|
||||
width: 40upx;
|
||||
height: 4upx;
|
||||
background: #bfbfbf;
|
||||
margin-top: 30upx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.integral-mall-goods {
|
||||
width: 100%;
|
||||
height: 280rpx;
|
||||
background: #F2F2F2;
|
||||
border-radius: 16upx;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<style scoped>
|
||||
.patop80 {
|
||||
padding-top: 80rpx;
|
||||
}
|
||||
|
||||
.home-header {
|
||||
height: 300rpx;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
border-radius: 0rpx 0rpx 48rpx 48rpx;
|
||||
}
|
||||
|
||||
.home-main {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
margin-top: -156rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
.home-mendian {
|
||||
width: 100%;
|
||||
height: 84rpx;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 42rpx;
|
||||
}
|
||||
|
||||
.integral-mall-header {
|
||||
position: relative;
|
||||
height: 320rpx;
|
||||
}
|
||||
|
||||
.integral-mall-header .bg {
|
||||
width: 100%;
|
||||
height: 320rpx;
|
||||
}
|
||||
|
||||
.integral-mall-header .main {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 320rpx;
|
||||
}
|
||||
|
||||
.swiper-integral {
|
||||
height: 32rpx;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.integral-mall-main {
|
||||
position: relative;
|
||||
/* margin-top: -104rpx; */
|
||||
}
|
||||
|
||||
.integal-mall-menu {
|
||||
width: 100%;
|
||||
height: 190rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
|
||||
.integral-tuan-l {
|
||||
width: 100%;
|
||||
height: 280rpx;
|
||||
background: #f2f2f2;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
|
||||
.integral-mall-coupon {
|
||||
background: #FFFFFF;
|
||||
position: relative;
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.integral-mall-coupon .top {
|
||||
padding: 0rpx 0rpx 24rpx 0rpx;
|
||||
border-bottom: 2rpx dashed #FEC675;
|
||||
}
|
||||
|
||||
.integral-mall-coupon .y-l,
|
||||
.integral-mall-coupon .y-r {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
border-radius: 10rpx;
|
||||
background: #F5F6FA;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
top: 284rpx;
|
||||
}
|
||||
|
||||
.integral-mall-coupon .y-l {
|
||||
left: -10rpx;
|
||||
}
|
||||
|
||||
.integral-mall-coupon .y-r {
|
||||
right: -10rpx;
|
||||
}
|
||||
|
||||
.integral-mall-coupon .coupon-value {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.integral-mall-coupon .coupon-value image {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.integral-mall-coupon .coupon-value .num {
|
||||
width: 100%;
|
||||
height: 64rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.integral-mall-goods {
|
||||
width: 100%;
|
||||
height: 280rpx;
|
||||
background: #F2F2F2;
|
||||
border-radius: 16upx;
|
||||
}
|
||||
|
||||
.titleNview-placing {
|
||||
height: var(--status-bar-height);
|
||||
padding-top: 44px;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
.tuan-product-l {
|
||||
width: 150rpx;
|
||||
height: 200rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #F2F2F2;
|
||||
}
|
||||
|
||||
.tuan-product-r {
|
||||
width: calc(100% - 150rpx);
|
||||
}
|
||||
|
||||
.btn-vip-adviser_bg {
|
||||
width: 155rpx;
|
||||
height: 65rpx;
|
||||
border-radius: 12rpx;
|
||||
background-image: linear-gradient(180deg, #70FEBC 0%, #0BD99F 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-vip-adviser {
|
||||
width: 150rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 28rpx;
|
||||
/* font-weight: 600; */
|
||||
background: #FFF;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user