2023-11-27 09:24:16 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="container">
|
|
|
|
|
<view class="my-header">
|
|
|
|
|
<view class="my-icons" @click="goback"> <uni-icons type="left" color="#ffffff" size="16"></uni-icons>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="my-text">我的积分</view>
|
2023-11-28 18:10:16 +08:00
|
|
|
|
<view class="my-icons">{{myPoints}}</view>
|
2023-11-27 09:24:16 +08:00
|
|
|
|
</view>
|
|
|
|
|
<!-- 顶部区域 -->
|
|
|
|
|
<view class="top-box">
|
|
|
|
|
<view class="b-box">
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="hui-size">我的积分</view>
|
|
|
|
|
<view class="lan-num">0</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="anniu">
|
|
|
|
|
积分上传
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="bai-box">
|
|
|
|
|
<view class="box-title">积分任务</view>
|
|
|
|
|
<view class="dis-bt">
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="">加油返回积分</view>
|
|
|
|
|
<view class="hui-min">根据每次加油消费金额,获得比例积分</view>
|
|
|
|
|
</view>
|
2023-11-28 18:10:16 +08:00
|
|
|
|
<view class="xanniu" @click="comeOn">去加油</view>
|
2023-11-27 09:24:16 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="dis-bt">
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="">油卡充值返积分</view>
|
|
|
|
|
<view class="hui-min">根据每次加油消费金额,获得比例积分</view>
|
|
|
|
|
</view>
|
2023-11-28 18:10:16 +08:00
|
|
|
|
<view class="xanniu" @click="recharge">去充值</view>
|
2023-11-27 09:24:16 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-11-28 18:10:16 +08:00
|
|
|
|
import config from '@/config'
|
|
|
|
|
import request from '../../utils/request';
|
2023-11-27 09:24:16 +08:00
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
2023-11-28 18:10:16 +08:00
|
|
|
|
myPoints:0, // 我的积分
|
2023-11-27 09:24:16 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2023-11-28 18:10:16 +08:00
|
|
|
|
// 查询我的积分
|
|
|
|
|
getUserInfoList(){
|
|
|
|
|
request({
|
|
|
|
|
url: '/business/userManager/user/name/'+1,
|
|
|
|
|
method: 'get',
|
|
|
|
|
// params:{}
|
|
|
|
|
}).then((res)=>{
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
|
|
|
|
|
console.log("hello world",res)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 去加油
|
|
|
|
|
comeOn () {},
|
|
|
|
|
// 去充值
|
|
|
|
|
recharge () {},
|
|
|
|
|
|
2023-11-27 09:24:16 +08:00
|
|
|
|
goback() {
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.content {
|
|
|
|
|
background: #f4f5f6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding-top: 88px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.my-header {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 88px;
|
|
|
|
|
background: #1678ff;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 0px 15px;
|
|
|
|
|
padding-top: 40px;
|
|
|
|
|
|
|
|
|
|
.my-icons {
|
|
|
|
|
width: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-box {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100px;
|
|
|
|
|
background: #1678ff;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 1px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.b-box {
|
|
|
|
|
width: 90%;
|
|
|
|
|
height: 100px;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
margin-top: 25px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.anniu {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
border-radius: 50px;
|
|
|
|
|
background: linear-gradient(90deg, #65bfff 0%, #0483ff 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hui-size {
|
|
|
|
|
color: #999999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.lan-num {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
color: #1678ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bai-box {
|
|
|
|
|
width: 90%;
|
|
|
|
|
margin: 20px auto;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
margin-top: 40px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dis-bt {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hui-min {
|
|
|
|
|
width: 90%;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #999999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xanniu {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: 40px;
|
|
|
|
|
width: 80px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border-radius: 50px;
|
|
|
|
|
background: linear-gradient(90deg, #65bfff 0%, #0483ff 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-title {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|