123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <template>
- <view>
-
- <view class="block" v-if="!subscribe">
- <view class="item-container" @click="navRoseChart">
- <view class="analysis-name">
- <view class="t-icon t-icon-xtubiao-"></view>
- <text class="analysis-text">优劣科目分析</text>
- </view>
- </view>
-
-
- <view class="item-container" @click="navRadarChart">
- <view class="analysis-name">
- <view class="t-icon t-icon-xtubiao-3"></view>
- <text class="analysis-text">考试能力分析</text>
- </view>
- </view>
-
-
- <view class="item-container" @click="navArcbarChart">
- <view class="analysis-name">
- <view class="t-icon t-icon-xtubiao-6"></view>
- <text class="analysis-text">成绩占比分析</text>
- </view>
- </view>
- </view>
- <view class="nosub-box" v-if="subscribe">
- <view style="display: flex; align-items: center;margin: 30rpx 0 0 15rpx;">
- <!-- <view class="t-icon t-icon-xtubiao-3" style="width: 50rpx;height: 50rpx;"></view> -->
- <view class="nosub-text">综合分析模块</view>
- </view>
- <view class="nosub-content">对孩子成绩综合全面分析</view>
- <view class="nosub-content">点击订阅</view>
- </view>
-
- </view>
- </template>
- <script>
- import {mapState} from 'vuex'
- export default {
- name: "analysis-box",
- computed:{
- ...mapState('m_parent',['subscribe'])
- },
- data() {
- return {
- };
- },
- methods: {
- //导航玫瑰图页面
- navRoseChart(e) {
- console.log(e);
- uni.navigateTo({
- url: "/gradepkg/rose-chart/rose-chart"
- })
- },
- //导航雷达图页面
- navRadarChart(e) {
- console.log(e);
- uni.navigateTo({
- url: "/gradepkg/radar-chart/radar-chart"
- })
- },
- //导航到进度条页面
- navArcbarChart(e) {
- console.log(e);
- uni.navigateTo({
- url: "/gradepkg/arcbar-chart/arcbar-chart"
- })
- },
- }
- }
- </script>
- <style lang="scss">
- .block {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- width: 347rpx;
- height: 345rpx;
- .item-container {
- display: flex;
- align-items: center;
- border-radius: 16rpx;
- background-color: #FFFFFF;
- box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
- width: 347rpx;
- height: 100rpx;
- .analysis-name {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- width: 100%;
- margin: 20rpx 0rpx 20rpx 40rpx;
- .analysis-text {
- margin: 26rpx;
- font-size: 30rpx;
- font-weight: bold;
- color: #3B4144;
- }
- }
- }
- }
- .nosub-box{
- display: flex;
- flex-direction: column;
- border-radius: 16rpx;
- background: $card-back-base64;
- background-size: cover;//背景图片自适应
- box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
- width: 347rpx;
- height: 345rpx;
- .nosub-text{
- font-size: 40rpx;
- font-weight: bold;
- color: #ab725c;
- margin-left: 10rpx;
- }
- .nosub-content{
- margin: 25rpx 25rpx 0 25rpx;
- font-size: 45rpx;
- font-weight: bold;
- color: #ab725c;
- }
- }
- </style>
|