|
@@ -1,49 +1,52 @@
|
|
|
<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 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>
|
|
|
-
|
|
|
-
|
|
|
- <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 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>
|
|
|
-
|
|
|
-
|
|
|
- <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 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>
|
|
|
- <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 class="nosub-box" v-if="!subscribe" @click="getSubscribe">
|
|
|
+ <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 class="nosub-content">对孩子成绩综合全面分析</view>
|
|
|
- <view class="nosub-content">点击订阅</view>
|
|
|
+
|
|
|
</view>
|
|
|
-
|
|
|
-</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {mapState} from 'vuex'
|
|
|
+ import {
|
|
|
+ mapState ,mapMutations
|
|
|
+ } from 'vuex'
|
|
|
export default {
|
|
|
name: "analysis-box",
|
|
|
- computed:{
|
|
|
- ...mapState('m_parent',['subscribe'])
|
|
|
+ computed: {
|
|
|
+ ...mapState('m_parent', ['subscribe']),
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -51,6 +54,29 @@
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapMutations('m_parent',['updateSubscribe']),
|
|
|
+ //获取订阅
|
|
|
+ getSubscribe() {
|
|
|
+ this.updateSubscribe(true)
|
|
|
+ const orderInfo = {
|
|
|
+ order_price: 0.01,
|
|
|
+ }
|
|
|
+ //获取服务供应商
|
|
|
+ // uni.getProvider({
|
|
|
+ // service: 'payment',
|
|
|
+ // success: function(res) {
|
|
|
+ // console.log(res.provider)
|
|
|
+ // if (res.provider.indexOf('wxpay')) {
|
|
|
+ // //调用客户端支付api
|
|
|
+ // uni.requestPayment({
|
|
|
+ // provider: res.provider,
|
|
|
+ // orderInfo: orderInfo
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+
|
|
|
+ },
|
|
|
//导航玫瑰图页面
|
|
|
navRoseChart(e) {
|
|
|
console.log(e);
|
|
@@ -109,26 +135,33 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .nosub-box{
|
|
|
+
|
|
|
+ .nosub-box {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
border-radius: 16rpx;
|
|
|
background: $card-back-base64;
|
|
|
- background-size: cover;//背景图片自适应
|
|
|
+ background-size: cover; //背景图片自适应
|
|
|
box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
|
width: 347rpx;
|
|
|
height: 345rpx;
|
|
|
- .nosub-text{
|
|
|
+
|
|
|
+ .nosub-text {
|
|
|
font-size: 40rpx;
|
|
|
font-weight: bold;
|
|
|
- color: #ab725c;
|
|
|
- margin-left: 10rpx;
|
|
|
+ margin-left: 10rpx;
|
|
|
+ background-image: linear-gradient(to right, #a56d58, #e8997d);
|
|
|
+ background-clip: text;//裁剪成文字的前景色
|
|
|
+ color: transparent;//文字颜色变成透明
|
|
|
}
|
|
|
- .nosub-content{
|
|
|
- margin: 25rpx 25rpx 0 25rpx;
|
|
|
+
|
|
|
+ .nosub-content {
|
|
|
+ margin: 25rpx 65rpx 0 25rpx;
|
|
|
font-size: 45rpx;
|
|
|
font-weight: bold;
|
|
|
- color: #ab725c;
|
|
|
+ background-image: linear-gradient(to right, #a56d58, #e8997d);
|
|
|
+ background-clip: text;//裁剪成文字的前景色
|
|
|
+ color: transparent;//文字颜色变成透明
|
|
|
}
|
|
|
}
|
|
|
</style>
|