|
@@ -23,7 +23,7 @@
|
|
可使用积分
|
|
可使用积分
|
|
</view>
|
|
</view>
|
|
<view class="available-number">
|
|
<view class="available-number">
|
|
- <text>{{myMsg.integral_able}}</text>积分
|
|
|
|
|
|
+ <text>{{ integralNum }}</text>积分
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -34,7 +34,7 @@
|
|
积分任务
|
|
积分任务
|
|
</view>
|
|
</view>
|
|
<view class="line">
|
|
<view class="line">
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<view class="do">
|
|
<view class="do">
|
|
做任务赚积分
|
|
做任务赚积分
|
|
@@ -157,17 +157,24 @@
|
|
立即完成
|
|
立即完成
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
</view> -->
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import {recordInfo} from "../../../api/notice.js"
|
|
|
|
- import {getAccountInfo} from "@/api/login.js"
|
|
|
|
- export default{
|
|
|
|
- data(){
|
|
|
|
- return{
|
|
|
|
|
|
+ import {
|
|
|
|
+ recordInfo
|
|
|
|
+ } from "../../../api/notice.js"
|
|
|
|
+ import {
|
|
|
|
+ getAccountInfo
|
|
|
|
+ } from "@/api/login.js"
|
|
|
|
+ import {
|
|
|
|
+ myUserInfo
|
|
|
|
+ } from "@/api/government.js"
|
|
|
|
+ export default {
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
config: {
|
|
config: {
|
|
back: true, //false是tolbar页面 是则不写
|
|
back: true, //false是tolbar页面 是则不写
|
|
title: '我的积分',
|
|
title: '我的积分',
|
|
@@ -176,10 +183,11 @@
|
|
backgroundColor: [1, "#FFFFFF"],
|
|
backgroundColor: [1, "#FFFFFF"],
|
|
statusBarFontColor: '#1A1A1A',
|
|
statusBarFontColor: '#1A1A1A',
|
|
},
|
|
},
|
|
- myMsg:{}, //我的个人信息
|
|
|
|
- integral:{}, //我的积分
|
|
|
|
|
|
+ myMsg: {}, //我的个人信息
|
|
|
|
+ integral: {}, //我的积分
|
|
imgUrl: this.$mConfig.staticUrl,
|
|
imgUrl: this.$mConfig.staticUrl,
|
|
- id: 0
|
|
|
|
|
|
+ id: 0,
|
|
|
|
+ integralNum: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -187,55 +195,59 @@
|
|
this.getMyMsg()
|
|
this.getMyMsg()
|
|
this.getuserInfo()
|
|
this.getuserInfo()
|
|
},
|
|
},
|
|
- methods:{
|
|
|
|
- getuserInfo(){
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ getuserInfo() {
|
|
let shop = uni.getStorageSync('shop')
|
|
let shop = uni.getStorageSync('shop')
|
|
- this.$http.get('/account/getAccountInfo/'+shop.id).then(async res => {
|
|
|
|
|
|
+ this.$http.get('/account/getAccountInfo/' + shop.id).then(async res => {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
- this.id =res.data.id
|
|
|
|
|
|
+ this.id = res.data.id
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ myUserInfo().then(res => {
|
|
|
|
+ this.integralNum = res.data.integralAble
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
+ // integralNum
|
|
//跳个人主页
|
|
//跳个人主页
|
|
- goToCommunity(){
|
|
|
|
|
|
+ goToCommunity() {
|
|
let that = this
|
|
let that = this
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url:"/pages/research/community/homepage?user_id=" + that.id
|
|
|
|
|
|
+ url: "/pages/research/community/homepage?user_id=" + that.id
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//跳研吧
|
|
//跳研吧
|
|
- goToRecommend(){
|
|
|
|
|
|
+ goToRecommend() {
|
|
// uni.navigateTo({
|
|
// uni.navigateTo({
|
|
// url:"/pages/index/recommend"
|
|
// url:"/pages/index/recommend"
|
|
// })
|
|
// })
|
|
},
|
|
},
|
|
//跳主页
|
|
//跳主页
|
|
- goToHomePage(){
|
|
|
|
|
|
+ goToHomePage() {
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
- url:"/pages/index/lidaPage"
|
|
|
|
|
|
+ url: "/pages/index/lidaPage"
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//跳转积分明细
|
|
//跳转积分明细
|
|
- goTodetailed(){
|
|
|
|
|
|
+ goTodetailed() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url:"./pointsDetails"
|
|
|
|
|
|
+ url: "./pointsDetails"
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//获取积分接口
|
|
//获取积分接口
|
|
- getMyList(){
|
|
|
|
- this.$http.get(recordInfo).then(res=>{
|
|
|
|
- if(res&&res.code==200){
|
|
|
|
|
|
+ getMyList() {
|
|
|
|
+ this.$http.get(recordInfo).then(res => {
|
|
|
|
+ if (res && res.code == 200) {
|
|
this.integral = res.data
|
|
this.integral = res.data
|
|
console.log(this.integral)
|
|
console.log(this.integral)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//获取我的信息
|
|
//获取我的信息
|
|
- getMyMsg(){
|
|
|
|
- this.$http.get(getAccountInfo).then(res=>{
|
|
|
|
- if(res&&res.code==200){
|
|
|
|
|
|
+ getMyMsg() {
|
|
|
|
+ this.$http.get(getAccountInfo).then(res => {
|
|
|
|
+ if (res && res.code == 200) {
|
|
this.myMsg = res.data
|
|
this.myMsg = res.data
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -244,24 +256,27 @@
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
- .content{
|
|
|
|
|
|
+ .content {
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
border-radius: 40rpx 40rpx 0 0;
|
|
border-radius: 40rpx 40rpx 0 0;
|
|
padding: 38rpx 30rpx 0;
|
|
padding: 38rpx 30rpx 0;
|
|
- .content-item{
|
|
|
|
|
|
+
|
|
|
|
+ .content-item {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
border-bottom: 1rpx solid #E6E6E6;
|
|
border-bottom: 1rpx solid #E6E6E6;
|
|
padding-bottom: 36rpx;
|
|
padding-bottom: 36rpx;
|
|
- .purchase{
|
|
|
|
- .purchase-commodity{
|
|
|
|
|
|
+
|
|
|
|
+ .purchase {
|
|
|
|
+ .purchase-commodity {
|
|
margin-top: 30rpx;
|
|
margin-top: 30rpx;
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
color: #1A1A1A;
|
|
color: #1A1A1A;
|
|
- font-weight: 400;
|
|
|
|
|
|
+ font-weight: 400;
|
|
}
|
|
}
|
|
- .introduce{
|
|
|
|
|
|
+
|
|
|
|
+ .introduce {
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
margin-top: 17rpx;
|
|
margin-top: 17rpx;
|
|
color: #999999;
|
|
color: #999999;
|
|
@@ -269,94 +284,110 @@
|
|
line-height: 30rpx;
|
|
line-height: 30rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .complete{
|
|
|
|
|
|
+
|
|
|
|
+ .complete {
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
padding: 12rpx 35rpx;
|
|
padding: 12rpx 35rpx;
|
|
border-radius: 32rpx;
|
|
border-radius: 32rpx;
|
|
- background-color: rgb(64,194,213);
|
|
|
|
|
|
+ background-color: rgb(64, 194, 213);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .content-top{
|
|
|
|
|
|
+
|
|
|
|
+ .content-top {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
- .task{
|
|
|
|
|
|
+
|
|
|
|
+ .task {
|
|
font-size: 36rpx;
|
|
font-size: 36rpx;
|
|
color: #1A1A1A;
|
|
color: #1A1A1A;
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
- .line{
|
|
|
|
|
|
+
|
|
|
|
+ .line {
|
|
width: 1rpx;
|
|
width: 1rpx;
|
|
height: 32rpx;
|
|
height: 32rpx;
|
|
background-color: #707070;
|
|
background-color: #707070;
|
|
margin: 16rpx;
|
|
margin: 16rpx;
|
|
}
|
|
}
|
|
- .do{
|
|
|
|
|
|
+
|
|
|
|
+ .do {
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
color: #666666;
|
|
color: #666666;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .mypoints{
|
|
|
|
|
|
+
|
|
|
|
+ .mypoints {
|
|
background-color: #F5F5F5;
|
|
background-color: #F5F5F5;
|
|
}
|
|
}
|
|
- .top{
|
|
|
|
|
|
+
|
|
|
|
+ .top {
|
|
// margin: 25rpx 30rpx 0 30rpx ;
|
|
// margin: 25rpx 30rpx 0 30rpx ;
|
|
-
|
|
|
|
|
|
+
|
|
padding: 25rpx 30rpx 0;
|
|
padding: 25rpx 30rpx 0;
|
|
- .top-item{
|
|
|
|
-
|
|
|
|
- background-color: rgb(64,194,213);
|
|
|
|
|
|
+
|
|
|
|
+ .top-item {
|
|
|
|
+
|
|
|
|
+ background-color: rgb(64, 194, 213);
|
|
// background-repeat: no-repeat;
|
|
// background-repeat: no-repeat;
|
|
// border-radius: 18rpx;
|
|
// border-radius: 18rpx;
|
|
border-top-right-radius: 18rpx;
|
|
border-top-right-radius: 18rpx;
|
|
border-top-left-radius: 18rpx;
|
|
border-top-left-radius: 18rpx;
|
|
padding: 30rpx 20rpx;
|
|
padding: 30rpx 20rpx;
|
|
- .available{
|
|
|
|
|
|
+
|
|
|
|
+ .available {
|
|
text-align: center;
|
|
text-align: center;
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
- // margin-top: 50rpx;
|
|
|
|
- .available-name{
|
|
|
|
|
|
+
|
|
|
|
+ // margin-top: 50rpx;
|
|
|
|
+ .available-name {
|
|
margin-bottom: 6rpx;
|
|
margin-bottom: 6rpx;
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
line-height: 24rpx;
|
|
line-height: 24rpx;
|
|
// text-shadow: 0rpx 11rpx 49rpx #2A0709;
|
|
// text-shadow: 0rpx 11rpx 49rpx #2A0709;
|
|
}
|
|
}
|
|
- .available-number{
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ .available-number {
|
|
|
|
+
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
- text{
|
|
|
|
|
|
+
|
|
|
|
+ text {
|
|
font-size: 50rpx;
|
|
font-size: 50rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .own{
|
|
|
|
|
|
+
|
|
|
|
+ .own {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
- .image{
|
|
|
|
- image{
|
|
|
|
|
|
+
|
|
|
|
+ .image {
|
|
|
|
+ image {
|
|
width: 86rpx;
|
|
width: 86rpx;
|
|
height: 86rpx;
|
|
height: 86rpx;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .name{
|
|
|
|
|
|
+
|
|
|
|
+ .name {
|
|
flex: 1;
|
|
flex: 1;
|
|
margin-left: 20rpx;
|
|
margin-left: 20rpx;
|
|
font-size: 36rpx;
|
|
font-size: 36rpx;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
- .detailed{
|
|
|
|
|
|
+
|
|
|
|
+ .detailed {
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
// line-height: 30rpx;
|
|
// line-height: 30rpx;
|
|
- color: rgb(64,194,213);
|
|
|
|
|
|
+ color: rgb(64, 194, 213);
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
// padding: 10rpx 30rpx 14rpx ;
|
|
// padding: 10rpx 30rpx 14rpx ;
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
@@ -366,13 +397,13 @@
|
|
justify-content: center;
|
|
justify-content: center;
|
|
width: 195rpx;
|
|
width: 195rpx;
|
|
height: 55rpx;
|
|
height: 55rpx;
|
|
- .iconfont{
|
|
|
|
|
|
+
|
|
|
|
+ .iconfont {
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
margin-right: 16rpx;
|
|
margin-right: 16rpx;
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-</style>
|
|
|
|
|
|
+</style>
|