2020-06-08 15:23:23 +08:00
|
|
|
<template>
|
|
|
|
<view class="integral1">
|
|
|
|
<view class="integral-top">
|
|
|
|
<view>
|
|
|
|
<view class="title">总积分</view>
|
2020-07-30 20:33:16 +08:00
|
|
|
<view class="value">{{ memberInfo.member_points || 0 }}</view>
|
2020-06-08 15:23:23 +08:00
|
|
|
</view>
|
|
|
|
<view>
|
|
|
|
<view class="title">经验值</view>
|
2020-07-30 20:33:16 +08:00
|
|
|
<view class="value">{{ memberInfo.member_exppoints || 0 }}</view>
|
2020-06-08 15:23:23 +08:00
|
|
|
</view>
|
2020-07-08 18:14:41 +08:00
|
|
|
<view @click="viewProgress">
|
2020-06-08 15:23:23 +08:00
|
|
|
<view class="title">预计进度</view>
|
2020-07-08 18:14:41 +08:00
|
|
|
<!-- <view class="value">{{ memberInfo.next_grade_exppoints_diff }}</view> -->
|
|
|
|
<view class="value">
|
|
|
|
<image src="/static/image/mine/32.png"></image>
|
|
|
|
</view>
|
2020-06-08 15:23:23 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
2020-07-06 17:32:29 +08:00
|
|
|
<scroll-view scroll-y class="integral-botom" :style="{ height: integralHeight }">
|
2020-08-17 16:01:02 +08:00
|
|
|
|
|
|
|
<view class="medal-title">
|
|
|
|
<!-- <image src="../static/mine/29.png"></image> -->
|
|
|
|
<view>积分获取规则</view>
|
|
|
|
<!-- <image src="../static/mine/30.png"></image> -->
|
|
|
|
</view>
|
|
|
|
<view class="medal-content">
|
|
|
|
<rich-text :nodes="nodes"></rich-text>
|
|
|
|
</view>
|
|
|
|
<view class="medal-title">
|
|
|
|
<!-- <image src="../static/mine/29.png"></image> -->
|
|
|
|
<view>会员等级权益</view>
|
|
|
|
<!-- <image src="../static/mine/30.png"></image> -->
|
|
|
|
</view>
|
|
|
|
<view class="medal-content">
|
|
|
|
<rich-text :nodes="dengji"></rich-text>
|
|
|
|
</view>
|
2020-06-08 15:23:23 +08:00
|
|
|
</scroll-view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
2020-07-06 17:32:29 +08:00
|
|
|
import common from '@/static/js/common.js';
|
2020-06-08 15:23:23 +08:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2020-07-06 17:32:29 +08:00
|
|
|
memberInfo: {},
|
|
|
|
integralHeight: 0,
|
|
|
|
nodes: '',
|
2020-08-17 16:01:02 +08:00
|
|
|
dengji:""
|
2020-06-08 15:23:23 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
this.setIntegralHeight();
|
2020-07-06 17:32:29 +08:00
|
|
|
this.getMemberPointsStat();
|
2020-06-08 15:23:23 +08:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
setIntegralHeight() {
|
2020-07-06 17:32:29 +08:00
|
|
|
const res = uni.getSystemInfoSync();
|
|
|
|
// console.log(res.windowHeight);
|
2020-08-09 18:39:35 +08:00
|
|
|
this.integralHeight = res.windowHeight - (res.windowWidth / 750) * 251 + 'px';
|
2020-07-06 17:32:29 +08:00
|
|
|
},
|
|
|
|
getMemberPointsStat() {
|
|
|
|
this.$u.api.getMemberPointsStat().then((res)=>{
|
|
|
|
if (res.errCode == 0) {
|
|
|
|
this.memberInfo = res.data;
|
2020-08-11 09:46:05 +08:00
|
|
|
this.nodes = common.unescapeHTML(this.memberInfo.points_rule.document_content);
|
2020-08-17 16:01:02 +08:00
|
|
|
this.dengji = common.unescapeHTML(res.data.grade_rule.document_content)
|
2020-07-06 17:32:29 +08:00
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
2020-07-08 18:14:41 +08:00
|
|
|
viewProgress() {
|
|
|
|
this.$u.route({
|
|
|
|
url: '/pageE/mine/MineProgress'
|
|
|
|
})
|
|
|
|
},
|
2020-06-08 15:23:23 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.integral1 {
|
|
|
|
height: calc(100vh - var(--window-top));
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
.integral-top {
|
|
|
|
padding: 79rpx 88rpx;
|
|
|
|
width: 750rpx;
|
|
|
|
height: 271rpx;
|
|
|
|
background: linear-gradient(0deg,rgba(246,211,119,1) 1%,rgba(240,154,105,1) 100%);
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
> view {
|
|
|
|
flex: 1;
|
|
|
|
text-align: center;
|
|
|
|
.title {
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: rgba(255,255,255, 0.6);
|
|
|
|
margin-bottom: 29rpx;
|
|
|
|
}
|
|
|
|
.value {
|
|
|
|
font-size: 48rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: rgba(255,255,255,1);
|
2020-07-08 18:14:41 +08:00
|
|
|
> image {
|
|
|
|
width: 52rpx;
|
|
|
|
height: 35rpx;
|
|
|
|
}
|
2020-06-08 15:23:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.integral-botom {
|
2020-07-06 17:32:29 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 30rpx;
|
2020-06-08 15:23:23 +08:00
|
|
|
position: absolute;
|
2020-07-06 17:32:29 +08:00
|
|
|
width: 100%;
|
|
|
|
// height: calc(100vh - 251rpx);
|
2020-06-08 15:23:23 +08:00
|
|
|
background: rgba(255,255,255,1);
|
|
|
|
border-radius: 20rpx 20rpx 0rpx 0rpx;
|
|
|
|
top: 251rpx;
|
|
|
|
z-index: 9;
|
|
|
|
}
|
2020-08-17 16:01:02 +08:00
|
|
|
|
|
|
|
.medal-title {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
margin-bottom: 52rpx;
|
|
|
|
> image {
|
|
|
|
width: 22rpx;
|
|
|
|
height: 22rpx;
|
|
|
|
}
|
|
|
|
> view {
|
|
|
|
font-size: 32rpx;
|
|
|
|
color: rgba(51,51,51,1);
|
|
|
|
margin: 0 30rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.medal-content {
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
}
|
2020-06-08 15:23:23 +08:00
|
|
|
}
|
|
|
|
</style>
|